Home
last modified time | relevance | path

Searched refs:atomic_fetch_add (Results 1 – 25 of 49) sorted by relevance

12

/llvm-project/flang/test/Semantics/
H A Datomic05.f902 ! This test checks for semantic errors in atomic_fetch_add subroutine calls based on
19 call atomic_fetch_add(scalar_coarray, val, old_val)
20 call atomic_fetch_add(scalar_coarray[1], val, old_val)
21 call atomic_fetch_add(scalar_coarray, val, old_val, status)
22 call atomic_fetch_add(scalar_coarray[1], val, old_val, status)
23 call atomic_fetch_add(atom=scalar_coarray, value=val, old=old_val, stat=status)
24 call atomic_fetch_add(stat=status, old=old_val, value=val, atom=scalar_coarray)
29 call atomic_fetch_add(atomic_logical, val, old_logical)
32 call atomic_fetch_add(scalar_coarray, val, old_logical)
34 !ERROR: 'atom=' argument must be a scalar coarray or coindexed object for intrinsic 'atomic_fetch_add'
[all...]
/llvm-project/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
H A Datomic_fetch_add.pass.cpp34 assert(std::atomic_fetch_add(&t, T(2)) == T(1)); in operator ()()
36 ASSERT_NOEXCEPT(std::atomic_fetch_add(&t, 0)); in operator ()()
41 assert(std::atomic_fetch_add(&t, T(2)) == T(1)); in operator ()()
43 ASSERT_NOEXCEPT(std::atomic_fetch_add(&t, 0)); in operator ()()
56 assert(std::atomic_fetch_add(&t, 2) == &a[0]); in testp()
57 std::atomic_fetch_add<T>(&t, 0); in testp()
59 ASSERT_NOEXCEPT(std::atomic_fetch_add(&t, 0)); in testp()
66 assert(std::atomic_fetch_add(&t, 2) == &a[0]); in testp()
67 std::atomic_fetch_add<T>(&t, 0); in testp()
69 ASSERT_NOEXCEPT(std::atomic_fetch_add(&t, 0)); in testp()
/llvm-project/libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/
H A Datomic_fetch_add.verify.cpp22 std::atomic_fetch_add(&obj, 0); in void_pointer()
27 std::atomic_fetch_add(&obj, 0); in void_pointer()
37 std::atomic_fetch_add(&obj, 0); in pointer_to_incomplete_type()
42 std::atomic_fetch_add(&obj, 0); in pointer_to_incomplete_type()
50 std::atomic_fetch_add(&fun, 0); in function_pointer()
55 std::atomic_fetch_add(&fun, 0); in function_pointer()
67 std::atomic_fetch_add(&fun, 0); in member_function_pointer()
72 std::atomic_fetch_add(&fun, 0); in member_function_pointer()
/llvm-project/lldb/test/API/macosx/queues/
H A Dmain.c15 atomic_fetch_add(&thread_count, 1); in doing_the_work_1()
34 atomic_fetch_add(&thread_count, 1); in submit_work_1b()
42 atomic_fetch_add(&thread_count, 1); in doing_the_work_2()
57 atomic_fetch_add(&finished_enqueueing_work, 1); in submit_work_2()
65 atomic_fetch_add(&thread_count, 1); in doing_the_work_3()
111 atomic_fetch_add(&thread_count, 1); in main()
117 atomic_fetch_add(&thread_count, 1); in main()
123 atomic_fetch_add(&thread_count, 1); in main()
129 atomic_fetch_add(&thread_count, 1); in main()
135 atomic_fetch_add(&thread_count, 1); in main()
/llvm-project/compiler-rt/lib/xray/
H A Dxray_fdr_log_writer.h88 atomic_fetch_add(Buffer.Extents, sizeof(T), memory_order_acq_rel);
118 atomic_fetch_add(Buffer.Extents, Size, memory_order_acq_rel);
162 atomic_fetch_add(Buffer.Extents, sizeof(R) + sizeof(A),
187 atomic_fetch_add(Buffer.Extents, sizeof(R) + EventSize,
210 atomic_fetch_add(Buffer.Extents, EventSize, memory_order_acq_rel);
H A Dxray_buffer_queue.cpp53 atomic_fetch_add(&C->RefCount, 1, memory_order_acq_rel); in incRefCount()
111 atomic_fetch_add(&Generation, 1, memory_order_acq_rel); in init()
/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_suppressions.cpp102 atomic_fetch_add(&(*sp)->hit_count, 1, memory_order_relaxed); in IsSuppressed()
140 atomic_fetch_add(&s->hit_count, 1, memory_order_relaxed); in IsSuppressed()
H A Dtsan_external.cpp85 uptr new_tag = atomic_fetch_add(&used_tags, 1, memory_order_relaxed); in __tsan_external_register_tag()
/llvm-project/llvm/test/CodeGen/BPF/
H A Dassembler-disassembler.s258 w0 = atomic_fetch_add((u32 *)(r1 + 0), w0)
266 r0 = atomic_fetch_add((u64 *)(r1 + 0), r0)
H A Datomics_2.ll68 ; CHECK: w0 = atomic_fetch_add((u32 *)(r1 + 0), w0)
78 ; CHECK: r0 = atomic_fetch_add((u64 *)(r1 + 0), r0)
90 ; CHECK: w0 = atomic_fetch_add((u32 *)(r1 + 0), w0)
101 ; CHECK: r0 = atomic_fetch_add((u64 *)(r1 + 0), r0)
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stack_store.cpp78 uptr start = atomic_fetch_add(&total_frames_, count, memory_order_relaxed); in Alloc()
101 atomic_fetch_add(&allocated_, size, memory_order_relaxed); in Map()
375 return n + atomic_fetch_add(&stored_, n, memory_order_release) == in Stored()
H A Dsanitizer_atomic_msvc.h105 inline u32 atomic_fetch_add(volatile atomic_uint32_t *a, in atomic_fetch_add() function
113 inline uptr atomic_fetch_add(volatile atomic_uintptr_t *a, in atomic_fetch_add() function
H A Dsanitizer_allocator_stats.h30 atomic_fetch_add(&stats_[i], v, memory_order_relaxed); in Add()
H A Dsanitizer_atomic_clang.h55 inline typename T::Type atomic_fetch_add(volatile T *a, typename T::Type v, in atomic_fetch_add() function
H A Dsanitizer_tls_get_addr.cpp64 atomic_fetch_add(&number_of_live_dtls, 1, memory_order_relaxed); in DTLS_NextBlock()
/llvm-project/llvm/test/MC/BPF/
H A Dbad-offsets.s28 r0 = atomic_fetch_add((u64 *)(r1 + 70000), r0)
/llvm-project/compiler-rt/test/tsan/Darwin/
H A Dxpc-race.mm55 atomic_fetch_add(&processed_msgs, 1);
/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dreport.cpp39 if (atomic_fetch_add(&NumberOfCalls, 1, memory_order_relaxed) > 2) { in reportCheckFailed()
H A Datomic_helpers.h79 inline typename T::Type atomic_fetch_add(volatile T *A, typename T::Type V, in atomic_fetch_add() function
/llvm-project/clang/test/SemaOpenCL/
H A Dfdeclare-opencl-builtins.cl138 i = atomic_fetch_add(a_int, i);
139 ip = atomic_fetch_add(a_intptr, ptrdiff);
140 uip = atomic_fetch_add(a_uintptr, ptrdiff);
/llvm-project/compiler-rt/lib/tsan/dd/
H A Ddd_rtl.cpp101 uptr id = atomic_fetch_add(&id_gen, 1, memory_order_relaxed); in ThreadInit()
/llvm-project/libcxx/include/
H A Dstdatomic.h100 using std::atomic_fetch_add // see below
211 using std::atomic_fetch_add _LIBCPP_USING_IF_EXISTS;
/llvm-project/clang/lib/Headers/
H A Dstdatomic.h156 #define atomic_fetch_add(object, operand) __c11_atomic_fetch_add(object, operand, __ATOMIC_SEQ_CST)
150 #define atomic_fetch_add(object, operand) __c11_atomic_fetch_add( global() macro
/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_rtl.cpp44 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) { in MemprofDie()
/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_thread.cpp46 unique_id_ = atomic_fetch_add(&unique_id, 1, memory_order_relaxed); in Init()

12