Home
last modified time | relevance | path

Searched refs:memory_order_acq_rel (Results 1 – 25 of 159) sorted by relevance

1234567

/external/llvm-project/libcxx/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.verify.cpp30 …x.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operation… in main()
32 …vx.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operatio… in main()
41 …std::atomic_load_explicit(&x, std::memory_order_acq_rel); // expected-warning {{memory order argum… in main()
43 …std::atomic_load_explicit(&vx, std::memory_order_acq_rel); // expected-warning {{memory order argu… in main()
54 …x.store(42, std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic oper… in main()
57 …vx.store(42, std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic ope… in main()
66 …std::atomic_store_explicit(&x, 42, std::memory_order_acq_rel); // expected-warning {{memory order … in main()
69 …std::atomic_store_explicit(&vx, 42, std::memory_order_acq_rel); // expected-warning {{memory order… in main()
78 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // expe… in main()
80 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // exp… in main()
[all …]
/external/libcxx/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.fail.cpp31 …x.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operation… in main()
33 …vx.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operatio… in main()
42 …std::atomic_load_explicit(&x, std::memory_order_acq_rel); // expected-warning {{memory order argum… in main()
44 …std::atomic_load_explicit(&vx, std::memory_order_acq_rel); // expected-warning {{memory order argu… in main()
55 …x.store(42, std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic oper… in main()
58 …vx.store(42, std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic ope… in main()
67 …std::atomic_store_explicit(&x, 42, std::memory_order_acq_rel); // expected-warning {{memory order … in main()
70 …std::atomic_store_explicit(&vx, 42, std::memory_order_acq_rel); // expected-warning {{memory order… in main()
79 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // expe… in main()
81 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // exp… in main()
[all …]
/external/clang/test/Sema/
Datomic-ops.c252 k = atomic_fetch_and_explicit(&n, k, memory_order_acq_rel); in f()
285 …(void)__c11_atomic_load(Ap, memory_order_acq_rel); // expected-warning {{memory order argument to … in memory_checks()
295 …(void)__c11_atomic_store(Ap, val, memory_order_acq_rel); // expected-warning {{memory order argume… in memory_checks()
302 (void)__c11_atomic_fetch_add(Ap, 1, memory_order_acq_rel); in memory_checks()
320 (void)__c11_atomic_fetch_sub(Ap, val, memory_order_acq_rel); in memory_checks()
327 (void)__c11_atomic_fetch_and(Ap, val, memory_order_acq_rel); in memory_checks()
334 (void)__c11_atomic_fetch_or(Ap, val, memory_order_acq_rel); in memory_checks()
341 (void)__c11_atomic_fetch_xor(Ap, val, memory_order_acq_rel); in memory_checks()
348 (void)__c11_atomic_exchange(Ap, val, memory_order_acq_rel); in memory_checks()
355 …(void)__c11_atomic_compare_exchange_strong(Ap, p, val, memory_order_acq_rel, memory_order_relaxed); in memory_checks()
[all …]
/external/llvm-project/clang/test/Sema/
Datomic-ops.c265 k = atomic_fetch_and_explicit(&n, k, memory_order_acq_rel); in f()
298 …(void)__c11_atomic_load(Ap, memory_order_acq_rel); // expected-warning {{memory order argument to … in memory_checks()
308 …(void)__c11_atomic_store(Ap, val, memory_order_acq_rel); // expected-warning {{memory order argume… in memory_checks()
315 (void)__c11_atomic_fetch_add(Ap, 1, memory_order_acq_rel); in memory_checks()
333 (void)__c11_atomic_fetch_sub(Ap, val, memory_order_acq_rel); in memory_checks()
340 (void)__c11_atomic_fetch_and(Ap, val, memory_order_acq_rel); in memory_checks()
347 (void)__c11_atomic_fetch_or(Ap, val, memory_order_acq_rel); in memory_checks()
354 (void)__c11_atomic_fetch_xor(Ap, val, memory_order_acq_rel); in memory_checks()
361 (void)__c11_atomic_fetch_min(Ap, val, memory_order_acq_rel); in memory_checks()
368 (void)__c11_atomic_fetch_max(Ap, val, memory_order_acq_rel); in memory_checks()
[all …]
/external/llvm-project/libcxx/test/std/atomics/atomics.general/
Dreplace_failure_order.pass.cpp33 (void) i.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
35 i.compare_exchange_strong(exp, 0, std::memory_order_acq_rel); in main()
38 (void) v.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
40 v.compare_exchange_strong(exp, 0, std::memory_order_acq_rel); in main()
/external/libcxx/test/std/atomics/atomics.general/
Dreplace_failure_order.pass.cpp32 i.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
34 i.compare_exchange_strong(exp, 0, std::memory_order_acq_rel); in main()
37 v.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
39 v.compare_exchange_strong(exp, 0, std::memory_order_acq_rel); in main()
/external/llvm-project/compiler-rt/lib/xray/
Dxray_profiling.cpp90 memory_order_acq_rel)) { in getThreadLocalData()
139 if (atomic_compare_exchange_strong(&TLD.FCT, &FCT, 1, memory_order_acq_rel)) { in getThreadLocalData()
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()
227 memory_order_acq_rel); in profilingFlush()
361 memory_order_acq_rel)) { in profilingLoggingInit()
431 if (atomic_exchange(&ThreadExitingLatch, 1, memory_order_acq_rel)) in profilingLoggingInit()
457 if (atomic_exchange(&ThreadExitingLatch, 1, memory_order_acq_rel)) in profilingLoggingInit()
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);
163 memory_order_acq_rel);
188 memory_order_acq_rel);
210 atomic_fetch_add(Buffer.Extents, EventSize, memory_order_acq_rel);
224 atomic_fetch_sub(Buffer.Extents, B, memory_order_acq_rel);
Dxray_buffer_queue.cpp46 if (atomic_fetch_sub(&C->RefCount, 1, memory_order_acq_rel) == 1) in decRefCount()
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()
219 if (atomic_exchange(&Finalizing, 1, memory_order_acq_rel)) in finalize()
/external/swiftshader/src/Common/
DThread.hpp307 inline void operator--() { ai.fetch_sub(1, std::memory_order_acq_rel); } in operator --()
308 inline void operator++() { ai.fetch_add(1, std::memory_order_acq_rel); } in operator ++()
309 inline int operator--(int) { return ai.fetch_sub(1, std::memory_order_acq_rel) - 1; } in operator --()
310 inline int operator++(int) { return ai.fetch_add(1, std::memory_order_acq_rel) + 1; } in operator ++()
311 inline void operator-=(int i) { ai.fetch_sub(i, std::memory_order_acq_rel); } in operator -=()
312 inline void operator+=(int i) { ai.fetch_add(i, std::memory_order_acq_rel); } in operator +=()
/external/tensorflow/tensorflow/core/platform/
Dblocking_counter.h37 unsigned int v = state_.fetch_sub(2, std::memory_order_acq_rel) - 2; in DecrementCount()
49 unsigned int v = state_.fetch_or(1, std::memory_order_acq_rel); in Wait()
59 unsigned int v = state_.fetch_or(1, std::memory_order_acq_rel); in WaitFor()
/external/llvm-project/libcxx/test/std/atomics/atomics.flag/
Dtest_and_set.pass.cpp58 assert(f.test_and_set(std::memory_order_acq_rel) == 0); in main()
59 assert(f.test_and_set(std::memory_order_acq_rel) == 1); in main()
100 assert(f.test_and_set(std::memory_order_acq_rel) == 0); in main()
101 assert(f.test_and_set(std::memory_order_acq_rel) == 1); in main()
Datomic_flag_test_explicit.pass.cpp57 assert(atomic_flag_test_explicit(&f, std::memory_order_acq_rel) == 0); in main()
59 assert(atomic_flag_test_explicit(&f, std::memory_order_acq_rel) == 1); in main()
101 assert(atomic_flag_test_explicit(&f, std::memory_order_acq_rel) == 0); in main()
103 assert(atomic_flag_test_explicit(&f, std::memory_order_acq_rel) == 1); in main()
Datomic_flag_test_and_set_explicit.pass.cpp52 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_acq_rel) == 0); in main()
88 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_acq_rel) == 0); in main()
/external/libcxx/test/std/atomics/atomics.flag/
Dtest_and_set.pass.cpp57 assert(f.test_and_set(std::memory_order_acq_rel) == 0); in main()
58 assert(f.test_and_set(std::memory_order_acq_rel) == 1); in main()
99 assert(f.test_and_set(std::memory_order_acq_rel) == 0); in main()
100 assert(f.test_and_set(std::memory_order_acq_rel) == 1); in main()
/external/llvm-project/libcxx/src/
Dbarrier.cpp57 …ent].__tickets[__round].__phase.compare_exchange_strong(expect, __full_step, memory_order_acq_rel)) in __arrive()
60 …ent].__tickets[__round].__phase.compare_exchange_strong(expect, __half_step, memory_order_acq_rel)) in __arrive()
66 …ent].__tickets[__round].__phase.compare_exchange_strong(expect, __full_step, memory_order_acq_rel)) in __arrive()
/external/llvm-project/clang/test/SemaOpenCL/
Datomic-ops.cl16 memory_order_acq_rel = __ATOMIC_ACQ_REL,
116 …(void)__opencl_atomic_load(Ap, memory_order_acq_rel, memory_scope_work_group); // expected-warning…
122 …(void)__opencl_atomic_store(Ap, val, memory_order_acq_rel, memory_scope_work_group); // expected-w…
128 (void)__opencl_atomic_fetch_add(Ap, 1, memory_order_acq_rel, memory_scope_work_group);
136 (void)__opencl_atomic_fetch_sub(Ap, val, memory_order_acq_rel, memory_scope_work_group);
142 (void)__opencl_atomic_fetch_and(Ap, val, memory_order_acq_rel, memory_scope_work_group);
148 (void)__opencl_atomic_fetch_or(Ap, val, memory_order_acq_rel, memory_scope_work_group);
154 (void)__opencl_atomic_fetch_xor(Ap, val, memory_order_acq_rel, memory_scope_work_group);
160 (void)__opencl_atomic_exchange(Ap, val, memory_order_acq_rel, memory_scope_work_group);
166 …(void)__opencl_atomic_compare_exchange_strong(Ap, p, val, memory_order_acq_rel, memory_order_relax…
[all …]
/external/llvm-project/compiler-rt/test/xray/TestCases/Posix/
Dfdr-thread-order.cpp36 std::atomic_thread_fence(std::memory_order_acq_rel); in main()
45 std::atomic_thread_fence(std::memory_order_acq_rel); in main()
/external/tensorflow/tensorflow/core/util/
Dincremental_barrier.cc34 if (left_.fetch_sub(1, std::memory_order_acq_rel) - 1 == 0) { in operator ()()
43 left_.fetch_add(1, std::memory_order_acq_rel); in Inc()
/external/oboe/src/fifo/
DFifoController.h43 mReadCounter.fetch_add(n, std::memory_order_acq_rel); in incrementReadCounter()
52 mWriteCounter.fetch_add(n, std::memory_order_acq_rel); in incrementWriteCounter()
DFifoControllerIndirect.h45 mReadCounterAddress->fetch_add(n, std::memory_order_acq_rel); in incrementReadCounter()
54 mWriteCounterAddress->fetch_add(n, std::memory_order_acq_rel); in incrementWriteCounter()
/external/swiftshader/src/Reactor/
DLLVMReactor.hpp130 case llvm::AtomicOrdering::AcquireRelease: return std::memory_order_acq_rel; in atomicOrdering()
134 return std::memory_order_acq_rel; in atomicOrdering()
151 case std::memory_order_acq_rel: return llvm::AtomicOrdering::AcquireRelease; in atomicOrdering()
/external/abseil-cpp/absl/strings/internal/
Dcord_internal.h50 return refcount != 1 && count_.fetch_sub(1, std::memory_order_acq_rel) != 1; in Decrement()
55 int32_t refcount = count_.fetch_sub(1, std::memory_order_acq_rel); in DecrementExpectHighRefcount()
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/
Dcord_internal.h50 return refcount != 1 && count_.fetch_sub(1, std::memory_order_acq_rel) != 1; in Decrement()
55 int32_t refcount = count_.fetch_sub(1, std::memory_order_acq_rel); in DecrementExpectHighRefcount()
/external/llvm-project/compiler-rt/lib/xray/tests/unit/
Dbuffer_queue_test.cpp185 Counter.fetch_add(1, std::memory_order_acq_rel); in TEST()
192 Counter.fetch_sub(1, std::memory_order_acq_rel); in TEST()
201 Counter.fetch_add(1, std::memory_order_acq_rel); in TEST()
207 Counter.fetch_sub(1, std::memory_order_acq_rel); in TEST()

1234567