summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-12-15 17:02:52 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-12-15 17:02:52 +0000
commit43f52df0b5bb2e07d83fb425a28fa0b42ce2f3f0 (patch)
treea12faa1fa3d4009dee3ff0843ed5f1d0ba7e5428 /llvm/include
parentad7d03daa64f232d784064a7a428cfa293867776 (diff)
downloadbcm5719-llvm-43f52df0b5bb2e07d83fb425a28fa0b42ce2f3f0.tar.gz
bcm5719-llvm-43f52df0b5bb2e07d83fb425a28fa0b42ce2f3f0.zip
AMDGPU/SI: Add llvm.amdgcn.mbcnt.* intrinsics
Summary: These are meant to be used instead of the llvm.SI.tid intrinsic which will be deprecated at some point. Reviewers: arsenm Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D15475 llvm-svn: 255652
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/IntrinsicsAMDGPU.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
index 98af638a15b..84582e8b992 100644
--- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
@@ -146,4 +146,12 @@ def int_amdgcn_interp_p2 :
[llvm_float_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
[IntrNoMem]>; // See int_amdgcn_v_interp_p1 for why this is
// IntrNoMem.
+
+def int_amdgcn_mbcnt_lo :
+ GCCBuiltin<"__builtin_amdgcn_mbcnt_lo">,
+ Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
+
+def int_amdgcn_mbcnt_hi :
+ GCCBuiltin<"__builtin_amdgcn_mbcnt_hi">,
+ Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
}
OpenPOWER on IntegriCloud