brintos

brintos / llvm-project-archived public Read only

0
0
Text · 659 B · 69e87d9 Raw
17 lines · plain
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-exception6//7//===----------------------------------------------------------------------===//8 9#include <clc/opencl/explicit_fence/explicit_memory_fence.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 yet15  __clc_r600_barrier();16}17