/llvm-project/flang/test/Semantics/ |
H A D | atomic05.f90 | 2 ! 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 D | atomic_fetch_add.pass.cpp | 34 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 D | atomic_fetch_add.verify.cpp | 22 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 D | main.c | 15 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 D | xray_fdr_log_writer.h | 88 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 D | xray_buffer_queue.cpp | 53 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 D | tsan_suppressions.cpp | 102 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 D | tsan_external.cpp | 85 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 D | assembler-disassembler.s | 258 w0 = atomic_fetch_add((u32 *)(r1 + 0), w0) 266 r0 = atomic_fetch_add((u64 *)(r1 + 0), r0)
|
H A D | atomics_2.ll | 68 ; 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 D | sanitizer_stack_store.cpp | 78 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 D | sanitizer_atomic_msvc.h | 105 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 D | sanitizer_allocator_stats.h | 30 atomic_fetch_add(&stats_[i], v, memory_order_relaxed); in Add()
|
H A D | sanitizer_atomic_clang.h | 55 inline typename T::Type atomic_fetch_add(volatile T *a, typename T::Type v, in atomic_fetch_add() function
|
H A D | sanitizer_tls_get_addr.cpp | 64 atomic_fetch_add(&number_of_live_dtls, 1, memory_order_relaxed); in DTLS_NextBlock()
|
/llvm-project/llvm/test/MC/BPF/ |
H A D | bad-offsets.s | 28 r0 = atomic_fetch_add((u64 *)(r1 + 70000), r0)
|
/llvm-project/compiler-rt/test/tsan/Darwin/ |
H A D | xpc-race.mm | 55 atomic_fetch_add(&processed_msgs, 1);
|
/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | report.cpp | 39 if (atomic_fetch_add(&NumberOfCalls, 1, memory_order_relaxed) > 2) { in reportCheckFailed()
|
H A D | atomic_helpers.h | 79 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 D | fdeclare-opencl-builtins.cl | 138 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 D | dd_rtl.cpp | 101 uptr id = atomic_fetch_add(&id_gen, 1, memory_order_relaxed); in ThreadInit()
|
/llvm-project/libcxx/include/ |
H A D | stdatomic.h | 100 using std::atomic_fetch_add // see below 211 using std::atomic_fetch_add _LIBCPP_USING_IF_EXISTS;
|
/llvm-project/clang/lib/Headers/ |
H A D | stdatomic.h | 156 #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 D | memprof_rtl.cpp | 44 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) { in MemprofDie()
|
/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_thread.cpp | 46 unique_id_ = atomic_fetch_add(&unique_id, 1, memory_order_relaxed); in Init()
|