Home
last modified time | relevance | path

Searched refs:memory_order_acquire (Results 1 – 25 of 55) sorted by relevance

123

/external/clang/test/Sema/
Datomic-ops.c120 __atomic_load(s1, s2, memory_order_acquire); in f()
203 …__c11_atomic_load(ci, memory_order_acquire); // expected-error {{address argument to atomic operat… in f()
233 atomic_compare_exchange_weak_explicit(&n, &k, k, memory_order_seq_cst, memory_order_acquire); in f()
241 k = atomic_fetch_add_explicit(&n, k, memory_order_acquire); in f()
273 (void)__c11_atomic_load(Ap, memory_order_acquire); in memory_checks()
283 …(void)__c11_atomic_store(Ap, val, memory_order_acquire); // expected-warning {{memory order argume… in memory_checks()
290 (void)__c11_atomic_fetch_add(Ap, 1, memory_order_acquire); in memory_checks()
308 (void)__c11_atomic_fetch_sub(Ap, val, memory_order_acquire); in memory_checks()
315 (void)__c11_atomic_fetch_and(Ap, val, memory_order_acquire); in memory_checks()
322 (void)__c11_atomic_fetch_or(Ap, val, memory_order_acquire); in memory_checks()
[all …]
/external/clang/test/CodeGen/
Dbig-atomic-ops.c13 memory_order_relaxed, memory_order_consume, memory_order_acquire, enumerator
96 …eturn __c11_atomic_compare_exchange_strong(i, &cmp, 1, memory_order_acquire, memory_order_acquire); in fi4()
104 …return __atomic_compare_exchange(i, &cmp, &desired, 0, memory_order_acquire, memory_order_acquire); in fi4a()
111 return __atomic_compare_exchange_n(i, &cmp, 1, 1, memory_order_acquire, memory_order_acquire); in fi4b()
184 __atomic_test_and_set(&flag2, memory_order_acquire); in test_and_set()
Datomic-ops.c125 …eturn __c11_atomic_compare_exchange_strong(i, &cmp, 1, memory_order_acquire, memory_order_acquire); in fi4()
137 …return __atomic_compare_exchange(i, &cmp, &desired, 0, memory_order_acquire, memory_order_acquire); in fi4a()
148 return __atomic_compare_exchange_n(i, &cmp, 1, 1, memory_order_acquire, memory_order_acquire); in fi4b()
305 __atomic_test_and_set(&flag2, memory_order_acquire); in test_and_set()
443 __c11_atomic_compare_exchange_strong(ptr, ptr2, 43, memory_order_acquire, memory_order_relaxed); in failureOrder()
446 __c11_atomic_compare_exchange_weak(ptr, ptr2, 43, memory_order_seq_cst, memory_order_acquire); in failureOrder()
Darm-atomics-m.c7 memory_order_relaxed, memory_order_consume, memory_order_acquire, enumerator
Darm-atomics-m0.c7 memory_order_relaxed, memory_order_consume, memory_order_acquire, enumerator
Darm-atomics.c9 memory_order_relaxed, memory_order_consume, memory_order_acquire, enumerator
Datomic-arm64.c7 memory_order_acquire = 2, enumerator
Datomics-inlining.c16 memory_order_acquire, enumerator
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock()
57 && atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow()
106 memory_order_acquire)) in Lock()
118 u32 prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire); in ReadLock()
153 memory_order_acquire)) in LockSlow()
164 u32 prev = atomic_load(&state_, memory_order_acquire); in ReadLockSlow()
Dsanitizer_persistent_allocator.h38 uptr cmp = atomic_load(&region_pos, memory_order_acquire); in tryAlloc()
39 uptr end = atomic_load(&region_end, memory_order_acquire); in tryAlloc()
42 memory_order_acquire)) in tryAlloc()
Dsanitizer_lfstack.h49 u64 cmp = atomic_load(&head_, memory_order_acquire); in Pop()
58 memory_order_acquire)) in Pop()
Dsanitizer_atomic_clang_x86.h31 | memory_order_acquire | memory_order_seq_cst)); in atomic_load()
45 } else if (mo == memory_order_acquire) { in atomic_load()
Dsanitizer_atomic_clang_other.h28 | memory_order_acquire | memory_order_seq_cst)); in atomic_load()
42 } else if (mo == memory_order_acquire) { in atomic_load()
Dsanitizer_quarantine.h58 uptr GetSize() const { return atomic_load(&max_size_, memory_order_acquire); } in GetSize()
89 uptr min_size = atomic_load(&min_size_, memory_order_acquire); in Recycle()
Dsanitizer_libignore.h73 const uptr n = atomic_load(&loaded_count_, memory_order_acquire); in IsIgnored()
Dsanitizer_atomic.h24 memory_order_acquire = 1 << 2, enumerator
/external/libchrome/base/
Datomicops_internals_portable.h100 std::memory_order_acquire, in Acquire_CompareAndSwap()
101 std::memory_order_acquire); in Acquire_CompareAndSwap()
134 return ((AtomicLocation32)ptr)->load(std::memory_order_acquire); in Acquire_Load()
183 std::memory_order_acquire, in Acquire_CompareAndSwap()
184 std::memory_order_acquire); in Acquire_CompareAndSwap()
217 return ((AtomicLocation64)ptr)->load(std::memory_order_acquire); in Acquire_Load()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_atomic_test.cc57 CheckStoreLoad<atomic_uint8_t, memory_order_acquire, memory_order_relaxed>(); in TEST()
63 CheckStoreLoad<atomic_uint16_t, memory_order_acquire, memory_order_relaxed>(); in TEST()
69 CheckStoreLoad<atomic_uint32_t, memory_order_acquire, memory_order_relaxed>(); in TEST()
75 CheckStoreLoad<atomic_uint64_t, memory_order_acquire, memory_order_relaxed>(); in TEST()
83 CheckStoreLoad<atomic_uintptr_t, memory_order_acquire, memory_order_relaxed> in TEST()
/external/libcxx/test/std/atomics/atomics.flag/
Dtest_and_set.pass.cpp45 assert(f.test_and_set(std::memory_order_acquire) == 0); in main()
46 assert(f.test_and_set(std::memory_order_acquire) == 1); in main()
87 assert(f.test_and_set(std::memory_order_acquire) == 0); in main()
88 assert(f.test_and_set(std::memory_order_acquire) == 1); in main()
Datomic_flag_test_and_set_explicit.pass.cpp39 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_acquire) == 0); in main()
75 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_acquire) == 0); in main()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc232 memory_order_acquire)) in Lock()
238 memory_order_acquire)) { in Lock()
261 uptr prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire); in ReadLock()
265 prev = atomic_load(&state_, memory_order_acquire); in ReadLock()
/external/libcxx/test/std/atomics/atomics.types.generic/
Dbool.pass.cpp76 assert(obj.load(std::memory_order_acquire) == true); in main()
131 assert(obj.load(std::memory_order_acquire) == true); in main()
186 assert(obj.load(std::memory_order_acquire) == true); in main()
/external/compiler-rt/lib/asan/
Dasan_stack.cc27 return atomic_load(&malloc_context_size, memory_order_acquire); in GetMallocContextSize()
Dasan_allocator.cc276 options->min_redzone = atomic_load(&min_redzone, memory_order_acquire); in GetOptions()
277 options->max_redzone = atomic_load(&max_redzone, memory_order_acquire); in GetOptions()
280 atomic_load(&alloc_dealloc_mismatch, memory_order_acquire); in GetOptions()
293 u32 min_rz = atomic_load(&min_redzone, memory_order_acquire); in ComputeRZLog()
294 u32 max_rz = atomic_load(&max_redzone, memory_order_acquire); in ComputeRZLog()
465 CHUNK_QUARANTINE, memory_order_acquire)) in AtomicallySetQuarantineFlag()
477 if (atomic_load(&alloc_dealloc_mismatch, memory_order_acquire)) { in QuarantineChunk()
/external/libcxx/test/std/atomics/atomics.order/
Dmemory_order.pass.cpp27 assert(std::memory_order_acquire == 2); in main()

123