summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2011-03-31 15:13:13 +0000
committerRichard Osborne <richard@xmos.com>2011-03-31 15:13:13 +0000
commit9a827b30ab1e297c4184a7e7ca51cdbc584feaf1 (patch)
tree2312729475d5094acb7caff2f8318490ed5885bf /llvm/include
parent4c0aebfb91ca69ebce13d10b9e12549efe560a6f (diff)
downloadbcm5719-llvm-9a827b30ab1e297c4184a7e7ca51cdbc584feaf1.tar.gz
bcm5719-llvm-9a827b30ab1e297c4184a7e7ca51cdbc584feaf1.zip
Add XCore intrinsics for initializing / starting / synchronizing threads.
llvm-svn: 128633
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IntrinsicsXCore.td17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/include/llvm/IntrinsicsXCore.td b/llvm/include/llvm/IntrinsicsXCore.td
index 96e2896a3cc..e633af045c3 100644
--- a/llvm/include/llvm/IntrinsicsXCore.td
+++ b/llvm/include/llvm/IntrinsicsXCore.td
@@ -69,4 +69,21 @@ let TargetPrefix = "xcore" in { // All intrinsics start with "llvm.xcore.".
def int_xcore_checkevent : Intrinsic<[llvm_ptr_ty],[llvm_ptr_ty]>;
def int_xcore_clre : Intrinsic<[],[],[]>;
+
+ // Intrinsics for threads.
+ def int_xcore_getst : Intrinsic <[llvm_anyptr_ty],[llvm_anyptr_ty],
+ [NoCapture<0>]>;
+ def int_xcore_msync : Intrinsic <[],[llvm_anyptr_ty], [NoCapture<0>]>;
+ def int_xcore_ssync : Intrinsic <[],[]>;
+ def int_xcore_mjoin : Intrinsic <[],[llvm_anyptr_ty], [NoCapture<0>]>;
+ def int_xcore_initsp : Intrinsic <[],[llvm_anyptr_ty, llvm_ptr_ty],
+ [NoCapture<0>]>;
+ def int_xcore_initpc : Intrinsic <[],[llvm_anyptr_ty, llvm_ptr_ty],
+ [NoCapture<0>]>;
+ def int_xcore_initlr : Intrinsic <[],[llvm_anyptr_ty, llvm_ptr_ty],
+ [NoCapture<0>]>;
+ def int_xcore_initcp : Intrinsic <[],[llvm_anyptr_ty, llvm_ptr_ty],
+ [NoCapture<0>]>;
+ def int_xcore_initdp : Intrinsic <[],[llvm_anyptr_ty, llvm_ptr_ty],
+ [NoCapture<0>]>;
}
OpenPOWER on IntegriCloud