| /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/ |
| H A D | atomic_fetch_add.pass.cpp | 32 assert(std::atomic_fetch_add(&t, T(2)) == T(1)); in operator ()() 34 ASSERT_NOEXCEPT(std::atomic_fetch_add(&t, 0)); in operator ()() 39 assert(std::atomic_fetch_add(&t, T(2)) == T(1)); in operator ()() 41 ASSERT_NOEXCEPT(std::atomic_fetch_add(&t, 0)); in operator ()() 54 assert(std::atomic_fetch_add(&t, 2) == &a[0]); in testp() 55 std::atomic_fetch_add<T>(&t, 0); in testp() 57 ASSERT_NOEXCEPT(std::atomic_fetch_add(&t, 0)); in testp() 64 assert(std::atomic_fetch_add(&t, 2) == &a[0]); in testp() 65 std::atomic_fetch_add<T>(&t, 0); in testp() 67 ASSERT_NOEXCEPT(std::atomic_fetch_add(&t, 0)); in testp()
|
| /llvm-project-15.0.7/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-15.0.7/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-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_atomic_clang_mips.h | 40 inline atomic_uint64_t::Type atomic_fetch_add(volatile atomic_uint64_t *ptr, in atomic_fetch_add() function 61 return atomic_fetch_add(ptr, -val, mo); in atomic_fetch_sub() 99 return atomic_fetch_add(Newptr, zero, mo); in atomic_load()
|
| H A D | sanitizer_stack_store.cpp | 75 uptr start = atomic_fetch_add(&total_frames_, count, memory_order_relaxed); in Alloc() 96 atomic_fetch_add(&allocated_, size, memory_order_relaxed); in Map() 370 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_atomic_clang.h | 46 inline typename T::Type atomic_fetch_add(volatile T *a, in atomic_fetch_add() function
|
| H A D | sanitizer_tls_get_addr.cpp | 68 atomic_fetch_add(&number_of_live_dtls, 1, memory_order_relaxed); in DTLS_NextBlock()
|
| /llvm-project-15.0.7/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-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_suppressions.cpp | 100 atomic_fetch_add(&(*sp)->hit_count, 1, memory_order_relaxed); in IsSuppressed() 138 atomic_fetch_add(&s->hit_count, 1, memory_order_relaxed); in IsSuppressed()
|
| H A D | tsan_external.cpp | 78 uptr new_tag = atomic_fetch_add(&used_tags, 1, memory_order_relaxed); in __tsan_external_register_tag()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_suppressions.cpp | 100 atomic_fetch_add(&(*sp)->hit_count, 1, memory_order_relaxed); in IsSuppressed() 138 atomic_fetch_add(&s->hit_count, 1, memory_order_relaxed); in IsSuppressed()
|
| H A D | tsan_external.cpp | 78 uptr new_tag = atomic_fetch_add(&used_tags, 1, memory_order_relaxed); in __tsan_external_register_tag()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/BPF/ |
| 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-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_tsd_shared.cpp | 63 u32 Index = atomic_fetch_add(&CurrentIndex, 1, memory_order_relaxed); in initThread()
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_thread.cpp | 45 unique_id_ = atomic_fetch_add(&unique_id, 1, memory_order_relaxed); in Init()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/Darwin/ |
| H A D | xpc-race.mm | 55 atomic_fetch_add(&processed_msgs, 1);
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | report.cpp | 43 if (atomic_fetch_add(&NumberOfCalls, 1, memory_order_relaxed) > 2) { in reportCheckFailed()
|
| H A D | tsd_shared.h | 156 const u32 Index = atomic_fetch_add(&CurrentIndex, 1U, memory_order_relaxed); in initThread()
|
| 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-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_rtl.cpp | 39 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) { in MemprofDie()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | stdatomic.h | 202 using std::atomic_fetch_add _LIBCPP_USING_IF_EXISTS;
|
| /llvm-project-15.0.7/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-15.0.7/clang/lib/Headers/ |
| H A D | stdatomic.h | 142 #define atomic_fetch_add(object, operand) __c11_atomic_fetch_add(object, operand, __ATOMIC_SEQ_CST) macro
|