summaryrefslogtreecommitdiff
path: root/amdgpu/lib/workitem/get_local_id.ll
diff options
context:
space:
mode:
Diffstat (limited to 'amdgpu/lib/workitem/get_local_id.ll')
-rw-r--r--amdgpu/lib/workitem/get_local_id.ll18
1 files changed, 0 insertions, 18 deletions
diff --git a/amdgpu/lib/workitem/get_local_id.ll b/amdgpu/lib/workitem/get_local_id.ll
deleted file mode 100644
index ac5522a..0000000
--- a/amdgpu/lib/workitem/get_local_id.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-declare i32 @llvm.r600.read.tidig.x() nounwind readnone
-declare i32 @llvm.r600.read.tidig.y() nounwind readnone
-declare i32 @llvm.r600.read.tidig.z() nounwind readnone
-
-define i32 @get_local_id(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.tidig.x() nounwind readnone
- ret i32 %x
-y_dim:
- %y = call i32 @llvm.r600.read.tidig.y() nounwind readnone
- ret i32 %y
-z_dim:
- %z = call i32 @llvm.r600.read.tidig.z() nounwind readnone
- ret i32 %z
-default:
- ret i32 0
-}