summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/IntrinsicEmitter.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2016-07-11 01:28:42 +0000
committerHal Finkel <hfinkel@anl.gov>2016-07-11 01:28:42 +0000
commit47646c09818bd3571d72b3f0e312b1f301ec66ee (patch)
treed0644b42bcf449127b342c831980cdfd6f4a348c /llvm/utils/TableGen/IntrinsicEmitter.cpp
parentce881a41f9b8ffcf722bb1772035aa8e2a47f7f4 (diff)
downloadbcm5719-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/IntrinsicEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/IntrinsicEmitter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp
index bee7fbf715b..062d25c6a4e 100644
--- a/llvm/utils/TableGen/IntrinsicEmitter.cpp
+++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp
@@ -548,6 +548,12 @@ EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS) {
OS << "Attribute::NoCapture";
addComma = true;
break;
+ case CodeGenIntrinsic::Returned:
+ if (addComma)
+ OS << ",";
+ OS << "Attribute::Returned";
+ addComma = true;
+ break;
case CodeGenIntrinsic::ReadOnly:
if (addComma)
OS << ",";
OpenPOWER on IntegriCloud