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 | d4346f2388921b5b75cd19e64a0b3f797eaf0cd7 (patch) | |
| tree | 21d2c868fff98f4549f7127dec59937fdb9e05b6 /llvm/include | |
| parent | ce0bc3146992557491467cf44f14efbaed22247a (diff) | |
| download | bcm5719-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.td | 6 |
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<[],[],[]>; } |

