brintos

brintos / llvm-project-archived public Read only

0
0
Text · 938 B · 69bdf37 Raw
26 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#if defined(__opencl_c_atomic_order_seq_cst) &&                                \10    defined(__opencl_c_atomic_scope_device)11 12#include <clc/atomic/clc_atomic_compare_exchange.h>13#include <clc/opencl/atomic/atomic_compare_exchange_weak.h>14 15#define __CLC_FUNCTION atomic_compare_exchange_weak16#define __CLC_COMPARE_EXCHANGE17 18#define __CLC_BODY <atomic_def.inc>19#include <clc/integer/gentype.inc>20 21#define __CLC_BODY <atomic_def.inc>22#include <clc/math/gentype.inc>23 24#endif // defined(__opencl_c_atomic_order_seq_cst) &&25       // defined(__opencl_c_atomic_scope_device)26