| /llvm-project-15.0.7/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/ |
| H A D | atomic_exchange.pass.cpp | 33 assert(std::atomic_exchange(&t, T(2)) == T(1)); in operator ()() 36 assert(std::atomic_exchange(&vt, T(4)) == T(3)); in operator ()() 39 ASSERT_NOEXCEPT(std::atomic_exchange(&t, T(2))); in operator ()() 40 ASSERT_NOEXCEPT(std::atomic_exchange(&vt, T(4))); in operator ()()
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_profiling.cpp | 155 auto FCT = atomic_exchange(&TLD.FCT, 0, memory_order_acq_rel); in cleanupTLD() 160 auto Allocators = atomic_exchange(&TLD.Allocators, 0, memory_order_acq_rel); in cleanupTLD() 172 uptr P = atomic_exchange(&T.FCT, 0, memory_order_acq_rel); in postCurrentThreadFCT() 180 uptr A = atomic_exchange(&T.Allocators, 0, memory_order_acq_rel); in postCurrentThreadFCT() 225 s32 Previous = atomic_exchange(&ProfilerLogFlushStatus, in profilingFlush() 431 if (atomic_exchange(&ThreadExitingLatch, 1, memory_order_acq_rel)) in profilingLoggingInit() 457 if (atomic_exchange(&ThreadExitingLatch, 1, memory_order_acq_rel)) in profilingLoggingInit()
|
| H A D | xray_recursion_guard.h | 39 : Running(R), Valid(!atomic_exchange(&R, 1, memory_order_acq_rel)) {} in RecursionGuard()
|
| H A D | xray_buffer_queue.cpp | 219 if (atomic_exchange(&Finalizing, 1, memory_order_acq_rel)) in finalize()
|
| H A D | xray_fdr_logging.cpp | 287 if (atomic_exchange(&LogFlushStatus, XRayLogFlushStatus::XRAY_LOG_FLUSHING, in fdrLoggingFlush()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_atomic_msvc.h | 147 inline u8 atomic_exchange(volatile atomic_uint8_t *a, in atomic_exchange() function 154 inline u16 atomic_exchange(volatile atomic_uint16_t *a, in atomic_exchange() function 161 inline u32 atomic_exchange(volatile atomic_uint32_t *a, in atomic_exchange() function
|
| H A D | sanitizer_atomic_clang.h | 62 inline typename T::Type atomic_exchange(volatile T *a, in atomic_exchange() function
|
| H A D | sanitizer_coverage_fuchsia.cpp | 87 u32 idx = atomic_exchange(guard_ptr, 0, memory_order_relaxed); in TracePcGuard()
|
| H A D | sanitizer_tls_get_addr.cpp | 87 DTLS::DTVBlock *block = (DTLS::DTVBlock *)atomic_exchange( in DTLS_Destroy()
|
| H A D | sanitizer_mutex.cpp | 26 atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow()
|
| H A D | sanitizer_common.cpp | 380 return !atomic_exchange(&in_crash_state, 1, memory_order_relaxed); in __sanitizer_acquire_crash_state()
|
| H A D | sanitizer_mutex.h | 36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/ |
| H A D | atomic_exchange.pass.cpp | 31 r = std::atomic_exchange(&p, r); in main()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | linux.cpp | 114 V = atomic_exchange(&M, Sleeping, memory_order_acquire); in lockSlow() 118 V = atomic_exchange(&M, Sleeping, memory_order_acquire); in lockSlow()
|
| H A D | atomic_helpers.h | 107 inline typename T::Type atomic_exchange(volatile T *A, typename T::Type V, in atomic_exchange() function
|
| /llvm-project-15.0.7/compiler-rt/lib/ubsan/ |
| H A D | ubsan_value.h | 60 u32 OldColumn = __sanitizer::atomic_exchange( in acquire()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_external.cpp | 95 (char *)atomic_exchange(header_ptr, (uptr)header, memory_order_seq_cst); in __tsan_external_register_header()
|
| H A D | tsan_rtl.cpp | 478 atomic_exchange(&bg_thread, 1, memory_order_relaxed) == 0) { in MaybeSpawnBackgroundThread()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_external.cpp | 95 (char *)atomic_exchange(header_ptr, (uptr)header, memory_order_seq_cst); in __tsan_external_register_header()
|
| /llvm-project-15.0.7/mlir/test/Dialect/SPIRV/IR/ |
| H A D | atomic-ops.mlir | 116 func.func @atomic_exchange(%ptr: !spv.ptr<i32, Workgroup>, %value: i32) -> i32 { 124 func.func @atomic_exchange(%ptr: !spv.ptr<i32, Workgroup>, %value: i64) -> i32 { 132 func.func @atomic_exchange(%ptr: !spv.ptr<i64, Workgroup>, %value: i32) -> i32 {
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | stdatomic.h | 200 using std::atomic_exchange _LIBCPP_USING_IF_EXISTS;
|
| /llvm-project-15.0.7/clang/lib/Headers/ |
| H A D | stdatomic.h | 133 #define atomic_exchange(object, desired) __c11_atomic_exchange(object, desired, __ATOMIC_SEQ_CST) macro
|
| /llvm-project-15.0.7/libcxx/test/std/atomics/stdatomic.h.syn/ |
| H A D | types.compile.pass.cpp | 215 using ::atomic_exchange; in f()
|
| /llvm-project-15.0.7/clang/test/SemaOpenCL/ |
| H A D | fdeclare-opencl-builtins.cl | 196 atomic_exchange(a_int, d); 197 // expected-error@-1{{use of undeclared identifier 'atomic_exchange'}}
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.cpp | 449 atomic_exchange(&m->user_requested_size, 0, memory_order_acquire); in Deallocate()
|