diff options
Diffstat (limited to 'r600/lib/synchronization/barrier_impl.ll')
-rw-r--r-- | r600/lib/synchronization/barrier_impl.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/r600/lib/synchronization/barrier_impl.ll b/r600/lib/synchronization/barrier_impl.ll new file mode 100644 index 0000000..99ac018 --- /dev/null +++ b/r600/lib/synchronization/barrier_impl.ll @@ -0,0 +1,12 @@ +declare void @llvm.AMDGPU.barrier.local() nounwind +declare void @llvm.AMDGPU.barrier.global() nounwind + +define void @barrier_local() nounwind alwaysinline { + call void @llvm.AMDGPU.barrier.local() + ret void +} + +define void @barrier_global() nounwind alwaysinline { + call void @llvm.AMDGPU.barrier.global() + ret void +} |