declare void @pocl.barrier()

; Use noduplicate to avoid unwanted (illegal in OpenCL C semantics)
; code motion / replication of barriers.
define void @barrier(i32 %flags) noduplicate {
entry:
  call void @pocl.barrier()
  ret void
}

declare void @pocl.barrier()

define void @barrier(i32 %flags) {
entry:
  call void @pocl.barrier()
  ret void
}
Revert "Use noduplicate to avoid unwanted (illegal in OpenCL C semantics)"
Revert "Use noduplicate to avoid unwanted (illegal in OpenCL C semantics)"

This reverts commit d97e0216587f1db5e130c7ebe5087a12ae27ae5f.
