diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2016-07-22 17:24:20 +0000 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2016-07-22 17:24:20 +0000 |
commit | 74f02db922b4609095da4218fd3016c2c51d056b (patch) | |
tree | 63edc54fa54dfa66fbce3a716c068d3d029ded20 /libclc/amdgpu | |
parent | 3c89bb09d55c089dced548401e023b30b4c72206 (diff) | |
download | llvm-74f02db922b4609095da4218fd3016c2c51d056b.zip llvm-74f02db922b4609095da4218fd3016c2c51d056b.tar.gz llvm-74f02db922b4609095da4218fd3016c2c51d056b.tar.bz2 |
AMDGPU: Use clang intrinsics for workitem builtins
v2: split into 2 patches
use clang builtins for other intrinsics as well
v3: Fix warnings
Switch r600 to use implictarg.ptr
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 276442
Diffstat (limited to 'libclc/amdgpu')
-rw-r--r-- | libclc/amdgpu/lib/SOURCES | 7 | ||||
-rw-r--r-- | libclc/amdgpu/lib/workitem/get_work_dim.ll | 8 |
2 files changed, 3 insertions, 12 deletions
diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES index 39287bf..403e1e7 100644 --- a/libclc/amdgpu/lib/SOURCES +++ b/libclc/amdgpu/lib/SOURCES @@ -1,10 +1,6 @@ atomic/atomic.cl math/nextafter.cl math/sqrt.cl -workitem/get_num_groups.ll -workitem/get_local_size.ll -workitem/get_global_size.ll -workitem/get_work_dim.ll synchronization/barrier.cl image/get_image_width.cl image/get_image_height.cl @@ -20,3 +16,6 @@ image/write_imagef.cl image/write_imagei.cl image/write_imageui.cl image/write_image_impl.ll +workitem/get_num_groups.ll +workitem/get_local_size.ll +workitem/get_global_size.ll diff --git a/libclc/amdgpu/lib/workitem/get_work_dim.ll b/libclc/amdgpu/lib/workitem/get_work_dim.ll deleted file mode 100644 index 1f86b5e0..0000000 --- a/libclc/amdgpu/lib/workitem/get_work_dim.ll +++ /dev/null @@ -1,8 +0,0 @@ -declare i32 @llvm.AMDGPU.read.workdim() nounwind readnone - -define i32 @get_work_dim() nounwind readnone alwaysinline { - %x = call i32 @llvm.AMDGPU.read.workdim() nounwind readnone , !range !0 - ret i32 %x -} - -!0 = !{ i32 1, i32 4 } |