[libclc] 60/291: r600: Fix implementations of get_group_id.ll and get_local_size.ll

Andreas Beckmann anbe at moszumanska.debian.org
Tue Sep 8 10:53:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository libclc.

commit 5c45e8a2550704e2df01d4f1bdf0d7f6f0016f17
Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Wed Jun 26 18:22:00 2013 +0000

    r600: Fix implementations of get_group_id.ll and get_local_size.ll
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@185005 91177308-0d34-0410-b5e6-96231b3b80d8
---
 r600/lib/workitem/get_group_id.ll   | 12 ++++++------
 r600/lib/workitem/get_local_size.ll | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/r600/lib/workitem/get_group_id.ll b/r600/lib/workitem/get_group_id.ll
index 5131648..0dc86e5 100644
--- a/r600/lib/workitem/get_group_id.ll
+++ b/r600/lib/workitem/get_group_id.ll
@@ -1,17 +1,17 @@
-declare i32 @llvm.r600.read.local.size.x() nounwind readnone
-declare i32 @llvm.r600.read.local.size.y() nounwind readnone
-declare i32 @llvm.r600.read.local.size.z() nounwind readnone
+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.local.size.x() nounwind readnone
+  %x = call i32 @llvm.r600.read.tgid.x() nounwind readnone
   ret i32 %x
 y_dim:
-  %y = call i32 @llvm.r600.read.local.size.y() nounwind readnone
+  %y = call i32 @llvm.r600.read.tgid.y() nounwind readnone
   ret i32 %y
 z_dim:
-  %z = call i32 @llvm.r600.read.local.size.z() nounwind readnone
+  %z = call i32 @llvm.r600.read.tgid.z() nounwind readnone
   ret i32 %z
 default:
   ret i32 0
diff --git a/r600/lib/workitem/get_local_size.ll b/r600/lib/workitem/get_local_size.ll
index 6a71f75..0a98de6 100644
--- a/r600/lib/workitem/get_local_size.ll
+++ b/r600/lib/workitem/get_local_size.ll
@@ -1,17 +1,17 @@
-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
+declare i32 @llvm.r600.read.local.size.x() nounwind readnone
+declare i32 @llvm.r600.read.local.size.y() nounwind readnone
+declare i32 @llvm.r600.read.local.size.z() nounwind readnone
 
 define i32 @get_local_size(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
+  %x = call i32 @llvm.r600.read.local.size.x() nounwind readnone
   ret i32 %x
 y_dim:
-  %y = call i32 @llvm.r600.read.tgid.y() nounwind readnone
+  %y = call i32 @llvm.r600.read.local.size.y() nounwind readnone
   ret i32 %y
 z_dim:
-  %z = call i32 @llvm.r600.read.tgid.z() nounwind readnone
+  %z = call i32 @llvm.r600.read.local.size.z() nounwind readnone
   ret i32 %z
 default:
   ret i32 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git



More information about the Pkg-opencl-commits mailing list