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_fetch_add.h>13#include <clc/opencl/atomic/atomic_fetch_add.h>14 15#define __CLC_FUNCTION atomic_fetch_add16#define __CLC_IMPL_FUNCTION __clc_atomic_fetch_add17 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