Home
last modified time | relevance | path

Searched refs:atomic_store (Results 1 – 25 of 98) sorted by relevance

1234

/llvm-project/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
H A Datomic_store.pass.cpp33 std::atomic_store(&t, T(1)); in operator ()()
36 std::atomic_store(&vt, T(2)); in operator ()()
39 ASSERT_NOEXCEPT(std::atomic_store(&t, T(1))); in operator ()()
40 ASSERT_NOEXCEPT(std::atomic_store(&vt, T(2))); in operator ()()
/llvm-project/compiler-rt/lib/xray/
H A Dxray_profiling.cpp91 atomic_store(&TLD.Allocators, 0, memory_order_release); in getThreadLocalData()
129 atomic_store(&TLD.Allocators, Allocators, memory_order_release); in getThreadLocalData()
142 atomic_store(&TLD.FCT, FCT, memory_order_release); in getThreadLocalData()
216 atomic_store(&ProfilerLogFlushStatus, in profilingFlush()
260 atomic_store(&ProfilerLogFlushStatus, XRayLogFlushStatus::XRAY_LOG_FLUSHED, in profilingFlush()
262 atomic_store(&ProfilerLogStatus, XRayLogInitStatus::XRAY_LOG_UNINITIALIZED, in profilingFlush()
343 atomic_store(&ProfilerLogStatus, XRayLogInitStatus::XRAY_LOG_FINALIZED, in profilingFinalize()
396 atomic_store(&ProfilerLogStatus, in profilingLoggingInit()
413 atomic_store(&ProfilerLogStatus, in profilingLoggingInit()
474 atomic_store(&ProfilerLogStatus, XRayLogInitStatus::XRAY_LOG_INITIALIZED, in profilingLoggingInit()
H A Dxray_interface.cpp279 atomic_store(&XRayPatching, false, memory_order_release); in controlPatching()
369 atomic_store(&XRayPatching, false, memory_order_release); in mprotectAndPatchFunction()
388 [] { atomic_store(&XRayPatching, false, memory_order_release); }); in mprotectAndPatchFunction()
432 [] { atomic_store(&XRayPatching, false, memory_order_release); }); in __xray_set_customevent_handler()
518 atomic_store(&__xray::XRayPatchedFunction, in __xray_function_address()
528 atomic_store(&__xray::XRayPatchedCustomEvent, in __xray_max_function_id()
538 atomic_store(&__xray::XRayPatchedTypedEvent,
618 atomic_store(&XRayArgLogger, reinterpret_cast<uint64_t>(entry),
H A Dxray_buffer_queue.cpp115 atomic_store(&BackingStore->RefCount, 1, memory_order_release); in init()
116 atomic_store(&ExtentsBackingStore->RefCount, 1, memory_order_release); in init()
127 atomic_store(Buf.Extents, 0, memory_order_release); in init()
140 atomic_store(&Finalizing, 0, memory_order_release); in init()
212 atomic_store(B->Buff.Extents, atomic_load(Buf.Extents, memory_order_acquire), in releaseBuffer()
H A Dxray_fdr_logging.cpp309 atomic_store(&LoggingStatus, XRayLogInitStatus::XRAY_LOG_UNINITIALIZED, in fdrLoggingFlush()
323 atomic_store(&LogFlushStatus, XRayLogFlushStatus::XRAY_LOG_FLUSHED, in fdrLoggingFlush()
340 atomic_store(&LogFlushStatus, Result, memory_order_release); in fdrLoggingFlush()
378 atomic_store(&LogFlushStatus, XRayLogFlushStatus::XRAY_LOG_FLUSHED, in fdrLoggingFlush()
402 atomic_store(&LoggingStatus, XRayLogInitStatus::XRAY_LOG_FINALIZED, in fdrLoggingFinalize()
680 atomic_store(&TicksPerSec, in fdrLoggingInit()
701 atomic_store(&ThresholdTicks, in fdrLoggingInit()
716 atomic_store(&LoggingStatus, XRayLogInitStatus::XRAY_LOG_INITIALIZED, in fdrLoggingInit()
H A Dxray_init.cpp135 atomic_store(&XRayFlagsInitialized, true, memory_order_release);
144 atomic_store(&XRayNumObjects, 0, memory_order_release);
159 atomic_store(&XRayInitialized, true, memory_order_release);
H A Dxray_basic_logging.cpp95 atomic_store(&CycleFrequency, getTSCFrequency(), memory_order_release); in getLog()
386 atomic_store(&UseRealTSC, probeRequiredCPUFeatures(), memory_order_release); in basicLoggingInit()
388 atomic_store(&TicksPerSec, in basicLoggingInit()
423 atomic_store(&ThresholdTicks, in basicLoggingInit()
H A Dxray_recursion_guard.h50 atomic_store(&Running, 0, memory_order_release); in ~RecursionGuard()
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_addrhashmap.h310 atomic_store(&b->add, (uptr)add, memory_order_relaxed); in acquire()
322 atomic_store(&b->add, (uptr)add1, memory_order_relaxed); in acquire()
346 atomic_store(&c->addr, h->addr_, memory_order_release); in release()
351 atomic_store(&c->addr, 0, memory_order_release); in release()
361 atomic_store(&c->addr, addr1, memory_order_release); in release()
362 atomic_store(&c1->addr, 0, memory_order_release); in release()
370 atomic_store(&c1->addr, 0, memory_order_relaxed); in release()
H A Dsanitizer_allocator.cpp43 atomic_store(&internal_allocator_initialized, 1, memory_order_release); in internal_allocator()
195 atomic_store(&allocator_may_return_null, may_return_null, in SetAllocatorMayReturnNull()
211 atomic_store(&rss_limit_exceeded, limit_exceeded, memory_order_relaxed); in SetRssLimitExceeded()
H A Dsanitizer_stackdepot.cpp133 atomic_store(&run_, 1, memory_order_release); in NewWorkNotify()
168 atomic_store(&run_, 0, memory_order_release); in Stop()
179 atomic_store(&run_, 0, memory_order_release); in LockAndStop()
H A Dsanitizer_libignore.cpp86 atomic_store(&ignored_ranges_count_, idx + 1, memory_order_release); in OnLibraryLoaded()
117 atomic_store(&instrumented_ranges_count_, idx + 1, in OnLibraryLoaded()
H A Dsanitizer_stoptheworld_netbsd_libcdep.cpp171 atomic_store(&inst->arg->done, 1, memory_order_relaxed); in TracerThreadSignalHandler()
228 atomic_store(&tracer_thread_argument->done, 1, memory_order_relaxed); in TracerThread()
276 atomic_store(&tracer_thread_argument.done, 0, memory_order_relaxed); in StopTheWorld()
H A Dsanitizer_thread_registry.cpp33 atomic_store(&thread_destroyed, 0, memory_order_release); in SetName()
57 atomic_store(&thread_destroyed, 1, memory_order_release); in SetJoined()
109 atomic_store(&thread_destroyed, 0, memory_order_release); in ThreadRegistry()
H A Dsanitizer_stack_store.cpp141 atomic_store(&data_, reinterpret_cast<uptr>(ptr), memory_order_release); in Create()
299 atomic_store(&data_, reinterpret_cast<uptr>(unpacked), memory_order_release); in GetOrUnpack()
362 atomic_store(&data_, reinterpret_cast<uptr>(packed), memory_order_release); in Pack()
/llvm-project/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/
H A Datomic_notify_one.pass.cpp43 std::atomic_store(&a, T(3)); in operator ()()
54 std::atomic_store(&a, T(4)); in operator ()()
H A Datomic_wait.pass.cpp44 std::atomic_store(&t, T(3)); in operator ()()
57 std::atomic_store(&vt, T(4)); in operator ()()
H A Datomic_wait_explicit.pass.cpp46 std::atomic_store(&t, T(3)); in operator ()()
59 std::atomic_store(&vt, T(4)); in operator ()()
H A Datomic_notify_all.pass.cpp59 std::atomic_store(&a, T(3)); in operator ()()
84 std::atomic_store(&a, T(4)); in operator ()()
/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cpp59 atomic_store(&s->rc, 1, memory_order_relaxed); in allocsync()
113 atomic_store(&d->aux_sync, 0, memory_order_relaxed); in init()
140 atomic_store(&fdctx.globsync.rc, (u64)-1, memory_order_relaxed); in FdInit()
141 atomic_store(&fdctx.filesync.rc, (u64)-1, memory_order_relaxed); in FdInit()
142 atomic_store(&fdctx.socksync.rc, (u64)-1, memory_order_relaxed); in FdInit()
247 atomic_store(&d->aux_sync, 0, memory_order_relaxed); in FdClose()
/llvm-project/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_test_util_posix.cpp358 atomic_store(&impl->event, 0, __tsan::memory_order_release); in ScopedThreadCallback()
362 atomic_store(&impl->event, 0, __tsan::memory_order_release); in ScopedThreadCallback()
373 atomic_store(&event, (uintptr_t)e, __tsan::memory_order_release); in send()
383 atomic_store(&impl_->event, 0, __tsan::memory_order_relaxed); in ScopedThread()
/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_interceptors.cpp142 atomic_store(&param.t, 0, memory_order_relaxed); in INTERCEPTOR()
143 atomic_store(&param.is_registered, 0, memory_order_relaxed); in INTERCEPTOR()
156 atomic_store(&param.t, reinterpret_cast<uptr>(t), memory_order_release); in INTERCEPTOR()
/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dtsd_exclusive.h107 atomic_store(&Disabled, 1U, memory_order_release); in disable()
111 atomic_store(&Disabled, 0U, memory_order_release); in enable()
H A Datomic_helpers.h71 inline void atomic_store(volatile T *A, typename T::Type V, memory_order MO) { in atomic_store() function
132 atomic_store(A, V, memory_order_relaxed); in atomic_store_relaxed()
/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/
H A Datomic_store.pass.cpp31 std::atomic_store(&p, r); in main()

1234