Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
H A Datomic_fetch_add.pass.cpp32 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 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-15.0.7/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-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_atomic_clang_mips.h40 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 Dsanitizer_stack_store.cpp75 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 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_atomic_clang.h46 inline typename T::Type atomic_fetch_add(volatile T *a, in atomic_fetch_add() function
H A Dsanitizer_tls_get_addr.cpp68 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 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-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_suppressions.cpp100 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 Dtsan_external.cpp78 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 Dtsan_suppressions.cpp100 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 Dtsan_external.cpp78 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 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-15.0.7/compiler-rt/lib/scudo/
H A Dscudo_tsd_shared.cpp63 u32 Index = atomic_fetch_add(&CurrentIndex, 1, memory_order_relaxed); in initThread()
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_thread.cpp45 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 Dxpc-race.mm55 atomic_fetch_add(&processed_msgs, 1);
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dreport.cpp43 if (atomic_fetch_add(&NumberOfCalls, 1, memory_order_relaxed) > 2) { in reportCheckFailed()
H A Dtsd_shared.h156 const u32 Index = atomic_fetch_add(&CurrentIndex, 1U, memory_order_relaxed); in initThread()
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-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_rtl.cpp39 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) { in MemprofDie()
/llvm-project-15.0.7/libcxx/include/
H A Dstdatomic.h202 using std::atomic_fetch_add _LIBCPP_USING_IF_EXISTS;
/llvm-project-15.0.7/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-15.0.7/clang/lib/Headers/
H A Dstdatomic.h142 #define atomic_fetch_add(object, operand) __c11_atomic_fetch_add(object, operand, __ATOMIC_SEQ_CST) macro

123