llvm-6502/test/Transforms/LowerAtomic/barrier.ll
Peter Collingbourne 3bababf880 Add an atomic lowering pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110113 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-03 16:19:16 +00:00

11 lines
264 B
LLVM

; RUN: opt < %s -loweratomic -S | FileCheck %s
declare void @llvm.memory.barrier(i1 %ll, i1 %ls, i1 %sl, i1 %ss, i1 %device)
define void @barrier() {
; CHECK: @barrier
call void @llvm.memory.barrier(i1 0, i1 0, i1 0, i1 0, i1 0)
; CHECK-NEXT: ret
ret void
}