summaryrefslogtreecommitdiff
path: root/r600/lib/workitem/get_group_id.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-02-13 01:01:59 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-02-13 01:01:59 +0000
commitba011288a9659d57736956c47b8522eace520807 (patch)
tree9b09f077808a5517692f892bf2847663c3881ca4 /r600/lib/workitem/get_group_id.ll
parentb518692b52a0bbdf9cf0e2167b9629dd9501abcd (diff)
Split sources for amdgcn and r600
Most files remain in a common amdgpu directory. Also switches barriers to to use convergent, and use llvm.amdgcn.s.barrier. This now requires 3.9/trunk to build amdgcn. git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@260777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'r600/lib/workitem/get_group_id.ll')
-rw-r--r--r600/lib/workitem/get_group_id.ll18
1 files changed, 0 insertions, 18 deletions
diff --git a/r600/lib/workitem/get_group_id.ll b/r600/lib/workitem/get_group_id.ll
deleted file mode 100644
index 0dc86e5..0000000
--- a/r600/lib/workitem/get_group_id.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-declare i32 @llvm.r600.read.tgid.x() nounwind readnone
-declare i32 @llvm.r600.read.tgid.y() nounwind readnone
-declare i32 @llvm.r600.read.tgid.z() nounwind readnone
-
-define i32 @get_group_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.tgid.x() nounwind readnone
- ret i32 %x
-y_dim:
- %y = call i32 @llvm.r600.read.tgid.y() nounwind readnone
- ret i32 %y
-z_dim:
- %z = call i32 @llvm.r600.read.tgid.z() nounwind readnone
- ret i32 %z
-default:
- ret i32 0
-}