summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenIntrinsics.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-12 01:12:03 +0000
committerChris Lattner <sabre@nondot.org>2009-01-12 01:12:03 +0000
commit9a3113aeb8b560cf696bbd3684367fedcc10a9b3 (patch)
treeb8f02cf841b1bf84baa52988747e10c91e7f33df /llvm/utils/TableGen/CodeGenIntrinsics.h
parent5562d19ebeed9d8d0d14aa6eae63baeda9676fdc (diff)
downloadbcm5719-llvm-9a3113aeb8b560cf696bbd3684367fedcc10a9b3.tar.gz
bcm5719-llvm-9a3113aeb8b560cf696bbd3684367fedcc10a9b3.zip
add nocapture attribute to llvm.mem* intrinsics and have tblgen
parse them. tblgen doesn't yet do anything with this info though. llvm-svn: 62065
Diffstat (limited to 'llvm/utils/TableGen/CodeGenIntrinsics.h')
-rw-r--r--llvm/utils/TableGen/CodeGenIntrinsics.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/CodeGenIntrinsics.h b/llvm/utils/TableGen/CodeGenIntrinsics.h
index 1170da0f359..dd99e319d6c 100644
--- a/llvm/utils/TableGen/CodeGenIntrinsics.h
+++ b/llvm/utils/TableGen/CodeGenIntrinsics.h
@@ -63,13 +63,17 @@ namespace llvm {
NoMem, ReadArgMem, ReadMem, WriteArgMem, WriteMem
} ModRef;
- // This is set to true if the intrinsic is overloaded by its argument
- // types.
+ /// This is set to true if the intrinsic is overloaded by its argument
+ /// types.
bool isOverloaded;
- // isCommutative - True if the intrinsic is commutative.
- //
+ /// isCommutative - True if the intrinsic is commutative.
bool isCommutative;
+
+ enum ArgAttribute {
+ NoCapture
+ };
+ std::vector<std::pair<unsigned, ArgAttribute> > ArgumentAttributes;
CodeGenIntrinsic(Record *R);
};
OpenPOWER on IntegriCloud