summaryrefslogtreecommitdiffstats
path: root/libclc/amdgpu/lib/workitem
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-08-25 07:31:40 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-08-25 07:31:40 +0000
commit958fce3192ac088dae3371bdedb43ffd6d4a5402 (patch)
tree3f3fdda1a74cd2a3420cb03048b234204b46658b /libclc/amdgpu/lib/workitem
parent83fd5d6acaa6a4346162af4a85ef10ec08b6e2cc (diff)
downloadbcm5719-llvm-958fce3192ac088dae3371bdedb43ffd6d4a5402.tar.gz
bcm5719-llvm-958fce3192ac088dae3371bdedb43ffd6d4a5402.zip
amdgcn: Fix return type of get_num_groups
llvm-svn: 279723
Diffstat (limited to 'libclc/amdgpu/lib/workitem')
-rw-r--r--libclc/amdgpu/lib/workitem/get_num_groups.ll18
1 files changed, 0 insertions, 18 deletions
diff --git a/libclc/amdgpu/lib/workitem/get_num_groups.ll b/libclc/amdgpu/lib/workitem/get_num_groups.ll
deleted file mode 100644
index a708f422c27..00000000000
--- a/libclc/amdgpu/lib/workitem/get_num_groups.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-declare i32 @llvm.r600.read.ngroups.x() nounwind readnone
-declare i32 @llvm.r600.read.ngroups.y() nounwind readnone
-declare i32 @llvm.r600.read.ngroups.z() nounwind readnone
-
-define i32 @get_num_groups(i32 %dim) nounwind readnone alwaysinline {
- switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
-x_dim:
- %x = call i32 @llvm.r600.read.ngroups.x() nounwind readnone
- ret i32 %x
-y_dim:
- %y = call i32 @llvm.r600.read.ngroups.y() nounwind readnone
- ret i32 %y
-z_dim:
- %z = call i32 @llvm.r600.read.ngroups.z() nounwind readnone
- ret i32 %z
-default:
- ret i32 0
-}
OpenPOWER on IntegriCloud