summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2011-03-16 18:34:00 +0000
committerRichard Osborne <richard@xmos.com>2011-03-16 18:34:00 +0000
commitd4346f2388921b5b75cd19e64a0b3f797eaf0cd7 (patch)
tree21d2c868fff98f4549f7127dec59937fdb9e05b6 /llvm/include
parentce0bc3146992557491467cf44f14efbaed22247a (diff)
downloadbcm5719-llvm-d4346f2388921b5b75cd19e64a0b3f797eaf0cd7.tar.gz
bcm5719-llvm-d4346f2388921b5b75cd19e64a0b3f797eaf0cd7.zip
Add checkevent intrinsic to check if any resources owned by the current thread
can event. llvm-svn: 127741
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IntrinsicsXCore.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/IntrinsicsXCore.td b/llvm/include/llvm/IntrinsicsXCore.td
index 056ae04f913..48ff9ce5071 100644
--- a/llvm/include/llvm/IntrinsicsXCore.td
+++ b/llvm/include/llvm/IntrinsicsXCore.td
@@ -56,5 +56,11 @@ let TargetPrefix = "xcore" in { // All intrinsics start with "llvm.xcore.".
// Intrinsics for events.
def int_xcore_waitevent : Intrinsic<[llvm_ptr_ty],[], [IntrReadMem]>;
+
+ // If any of the resources owned by the thread are ready this returns the
+ // vector of one of the ready resources. If no resources owned by the thread
+ // are ready then the operand passed to the intrinsic is returned.
+ def int_xcore_checkevent : Intrinsic<[llvm_ptr_ty],[llvm_ptr_ty]>;
+
def int_xcore_clre : Intrinsic<[],[],[]>;
}
OpenPOWER on IntegriCloud