diff options
author | Hal Finkel <hfinkel@anl.gov> | 2016-07-11 01:28:42 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2016-07-11 01:28:42 +0000 |
commit | 47646c09818bd3571d72b3f0e312b1f301ec66ee (patch) | |
tree | d0644b42bcf449127b342c831980cdfd6f4a348c /llvm/utils/TableGen/CodeGenTarget.cpp | |
parent | ce881a41f9b8ffcf722bb1772035aa8e2a47f7f4 (diff) | |
download | bcm5719-llvm-47646c09818bd3571d72b3f0e312b1f301ec66ee.tar.gz bcm5719-llvm-47646c09818bd3571d72b3f0e312b1f301ec66ee.zip |
Add a 'Returned' intrinsic property corresponding to the 'returned' argument attribute
This will be used by the upcoming llvm.noalias intrinsic.
Differential Revision: http://reviews.llvm.org/D22201
llvm-svn: 275034
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 1367e24bb2d..85fc4be901e 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -592,6 +592,9 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) { else if (Property->isSubClassOf("NoCapture")) { unsigned ArgNo = Property->getValueAsInt("ArgNo"); ArgumentAttributes.push_back(std::make_pair(ArgNo, NoCapture)); + } else if (Property->isSubClassOf("Returned")) { + unsigned ArgNo = Property->getValueAsInt("ArgNo"); + ArgumentAttributes.push_back(std::make_pair(ArgNo, Returned)); } else if (Property->isSubClassOf("ReadOnly")) { unsigned ArgNo = Property->getValueAsInt("ArgNo"); ArgumentAttributes.push_back(std::make_pair(ArgNo, ReadOnly)); |