| 1 |
//===----------------------------------------------------------------------===// |
| 2 |
// |
| 3 |
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 |
// See https://llvm.org/LICENSE.txt for license information. |
| 5 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 |
// |
| 7 |
//===----------------------------------------------------------------------===// |
| 8 |
|
| 9 |
#include <clc/opencl/opencl-base.h> |
| 10 |
|
| 11 |
_CLC_DEF void __clc_r600_barrier(void) __asm("llvm.r600.group.barrier"); |
| 12 |
|
| 13 |
_CLC_DEF _CLC_OVERLOAD void barrier(uint flags) { |
| 14 |
// We should call mem_fence here, but that is not implemented for r600 yet |
| 15 |
__clc_r600_barrier(); |
| 16 |
} |