add nocapture attribute to llvm.mem* intrinsics and have tblgen
parse them. tblgen doesn't yet do anything with this info though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62065 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/CodeGenIntrinsics.h b/utils/TableGen/CodeGenIntrinsics.h
index 1170da0..dd99e31 100644
--- a/utils/TableGen/CodeGenIntrinsics.h
+++ b/utils/TableGen/CodeGenIntrinsics.h
@@ -63,13 +63,17 @@
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);
};