diff options
author | Richard Osborne <richard@xmos.com> | 2011-03-16 18:34:00 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-03-16 18:34:00 +0000 |
commit | bb057453db627a8614091af7eff2de971644255a (patch) | |
tree | e2033046af62eacaa1251794afac1c5d72015425 /include | |
parent | bfc4c983a6c523b95972cf43e1b202f8eb1ebfd2 (diff) | |
download | llvm-bb057453db627a8614091af7eff2de971644255a.tar.gz llvm-bb057453db627a8614091af7eff2de971644255a.tar.bz2 llvm-bb057453db627a8614091af7eff2de971644255a.tar.xz |
Add checkevent intrinsic to check if any resources owned by the current thread
can event.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IntrinsicsXCore.td | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/IntrinsicsXCore.td b/include/llvm/IntrinsicsXCore.td index 056ae04f91..48ff9ce507 100644 --- a/include/llvm/IntrinsicsXCore.td +++ b/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<[],[],[]>; } |