summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenIntrinsics.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-04-28 20:25:27 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-04-28 20:25:27 +0000
commitb19b57ea60da58d81c4af03a7ef2a1dd6a640267 (patch)
tree316220d5be2377b1456f2263960e67b6b11a5ed2 /llvm/utils/TableGen/CodeGenIntrinsics.h
parent744c215e2958c13854c1d730a323132ce2dc9c57 (diff)
downloadbcm5719-llvm-b19b57ea60da58d81c4af03a7ef2a1dd6a640267.tar.gz
bcm5719-llvm-b19b57ea60da58d81c4af03a7ef2a1dd6a640267.zip
Add speculatable function attribute
This attribute tells the optimizer that the function may be speculated. Patch by Tom Stellard llvm-svn: 301680
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 6df0e6a62ca..d126f273a1a 100644
--- a/llvm/utils/TableGen/CodeGenIntrinsics.h
+++ b/llvm/utils/TableGen/CodeGenIntrinsics.h
@@ -123,6 +123,9 @@ struct CodeGenIntrinsic {
/// True if the intrinsic is marked as convergent.
bool isConvergent;
+ // True if the intrinsic is marked as speculatable.
+ bool isSpeculatable;
+
enum ArgAttribute { NoCapture, Returned, ReadOnly, WriteOnly, ReadNone };
std::vector<std::pair<unsigned, ArgAttribute>> ArgumentAttributes;
OpenPOWER on IntegriCloud