summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenIntrinsics.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-05-28 06:31:34 +0000
committerJohn McCall <rjmccall@apple.com>2011-05-28 06:31:34 +0000
commit375dcc9ec9d6000b3c6436b2fbe66b876251f1cf (patch)
tree3b071e201bb581e1a11efb336c2ff073b8bb47fb /llvm/utils/TableGen/CodeGenIntrinsics.h
parent5638b9f01e145c9dfbf96698bc6d05a38358595d (diff)
downloadbcm5719-llvm-375dcc9ec9d6000b3c6436b2fbe66b876251f1cf.tar.gz
bcm5719-llvm-375dcc9ec9d6000b3c6436b2fbe66b876251f1cf.zip
Change how tblgen generates attributes for intrinsics to use a single
switch. With this newfound organization, teach tblgen how not to give all intrinsics the 'nounwind' attribute. Introduce a new intrinsic, llvm.eh.resume, which does not have this attribute. Documentation and uses to follow. llvm-svn: 132252
Diffstat (limited to 'llvm/utils/TableGen/CodeGenIntrinsics.h')
-rw-r--r--llvm/utils/TableGen/CodeGenIntrinsics.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenIntrinsics.h b/llvm/utils/TableGen/CodeGenIntrinsics.h
index 3208c0d628d..3f6ba61172c 100644
--- a/llvm/utils/TableGen/CodeGenIntrinsics.h
+++ b/llvm/utils/TableGen/CodeGenIntrinsics.h
@@ -69,6 +69,9 @@ namespace llvm {
/// isCommutative - True if the intrinsic is commutative.
bool isCommutative;
+
+ /// canThrow - True if the intrinsic can throw.
+ bool canThrow;
enum ArgAttribute {
NoCapture
OpenPOWER on IntegriCloud