[libclc] r275874 - R600: Use new barrier intrinsic
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 18 11:42:18 PDT 2016
Author: arsenm
Date: Mon Jul 18 13:42:17 2016
New Revision: 275874
URL: http://llvm.org/viewvc/llvm-project?rev=275874&view=rev
Log:
R600: Use new barrier intrinsic
Modified:
libclc/trunk/r600/lib/synchronization/barrier_impl.ll
Modified: libclc/trunk/r600/lib/synchronization/barrier_impl.ll
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/r600/lib/synchronization/barrier_impl.ll?rev=275874&r1=275873&r2=275874&view=diff
==============================================================================
--- libclc/trunk/r600/lib/synchronization/barrier_impl.ll (original)
+++ libclc/trunk/r600/lib/synchronization/barrier_impl.ll Mon Jul 18 13:42:17 2016
@@ -1,7 +1,6 @@
declare i32 @__clc_clk_local_mem_fence() #1
declare i32 @__clc_clk_global_mem_fence() #1
-declare void @llvm.AMDGPU.barrier.local() #0
-declare void @llvm.AMDGPU.barrier.global() #0
+declare void @llvm.r600.group.barrier() #0
define void @barrier(i32 %flags) #2 {
barrier_local_test:
@@ -11,7 +10,7 @@ barrier_local_test:
br i1 %1, label %barrier_local, label %barrier_global_test
barrier_local:
- call void @llvm.AMDGPU.barrier.local()
+ call void @llvm.r600.group.barrier()
br label %barrier_global_test
barrier_global_test:
@@ -21,7 +20,7 @@ barrier_global_test:
br i1 %3, label %barrier_global, label %done
barrier_global:
- call void @llvm.AMDGPU.barrier.global()
+ call void @llvm.r600.group.barrier()
br label %done
done:
More information about the cfe-commits
mailing list