1#include <clc/clc.h>
2
3_CLC_DEF void __clc_r600_barrier(void) __asm("llvm.r600.group.barrier");
4
5_CLC_DEF _CLC_OVERLOAD void barrier(uint flags) {
6 // We should call mem_fence here, but that is not implemented for r600 yet
7 __clc_r600_barrier();
8}
9