/external/clang/test/OpenMP/ |
D | atomic_messages.cpp | 6 #pragma omp atomic in foo() 14 #pragma omp atomic in foo() 42 #pragma omp atomic read in read() 46 #pragma omp atomic read in read() 50 #pragma omp atomic read in read() 54 #pragma omp atomic read in read() 58 #pragma omp atomic read in read() 63 #pragma omp atomic read read in read() 74 #pragma omp atomic read in read() 78 #pragma omp atomic read in read() [all …]
|
D | atomic_messages.c | 6 #pragma omp atomic in foo() 14 #pragma omp atomic in foo() 33 #pragma omp atomic read in readint() 37 #pragma omp atomic read in readint() 41 #pragma omp atomic read in readint() 45 #pragma omp atomic read in readint() 49 #pragma omp atomic read in readint() 52 #pragma omp atomic read read in readint() 61 #pragma omp atomic read read in readS() 72 #pragma omp atomic write in writeint() [all …]
|
D | atomic_update_codegen.cpp | 82 #pragma omp atomic in main() 85 #pragma omp atomic in main() 88 #pragma omp atomic update in main() 91 #pragma omp atomic in main() 94 #pragma omp atomic update in main() 112 #pragma omp atomic in main() 127 #pragma omp atomic update in main() 131 #pragma omp atomic in main() 146 #pragma omp atomic update in main() 161 #pragma omp atomic in main() [all …]
|
D | atomic_read_codegen.c | 83 #pragma omp atomic read in main() 87 #pragma omp atomic read in main() 91 #pragma omp atomic read in main() 95 #pragma omp atomic read in main() 99 #pragma omp atomic read in main() 103 #pragma omp atomic read in main() 107 #pragma omp atomic read in main() 111 #pragma omp atomic read in main() 115 #pragma omp atomic read in main() 119 #pragma omp atomic read in main() [all …]
|
D | atomic_write_codegen.c | 83 #pragma omp atomic write in main() 87 #pragma omp atomic write in main() 91 #pragma omp atomic write in main() 95 #pragma omp atomic write in main() 99 #pragma omp atomic write in main() 103 #pragma omp atomic write in main() 107 #pragma omp atomic write in main() 111 #pragma omp atomic write in main() 115 #pragma omp atomic write in main() 119 #pragma omp atomic write in main() [all …]
|
D | atomic_capture_codegen.cpp | 83 #pragma omp atomic capture in main() 88 #pragma omp atomic capture in main() 92 #pragma omp atomic capture in main() 97 #pragma omp atomic capture in main() 116 #pragma omp atomic capture in main() 132 #pragma omp atomic capture in main() 137 #pragma omp atomic capture in main() 153 #pragma omp atomic capture in main() 169 #pragma omp atomic capture in main() 185 #pragma omp atomic capture in main() [all …]
|
D | atomic_ast_print.cpp | 13 #pragma omp atomic in foo() 15 #pragma omp atomic read in foo() 17 #pragma omp atomic write in foo() 19 #pragma omp atomic update in foo() 21 #pragma omp atomic capture in foo() 23 #pragma omp atomic capture in foo() 28 #pragma omp atomic seq_cst in foo() 30 #pragma omp atomic read seq_cst in foo() 32 #pragma omp atomic seq_cst write in foo() 34 #pragma omp atomic update seq_cst in foo() [all …]
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | AtomicLongMap.java | 28 import java.util.concurrent.atomic.AtomicLong; 82 AtomicLong atomic = map.get(key); in get() local 83 return atomic == null ? 0L : atomic.get(); in get() 106 AtomicLong atomic = map.get(key); in addAndGet() local 107 if (atomic == null) { in addAndGet() 108 atomic = map.putIfAbsent(key, new AtomicLong(delta)); in addAndGet() 109 if (atomic == null) { in addAndGet() 116 long oldValue = atomic.get(); in addAndGet() 119 if (map.replace(key, atomic, new AtomicLong(delta))) { in addAndGet() 127 if (atomic.compareAndSet(oldValue, newValue)) { in addAndGet() [all …]
|
/external/libdrm/ |
D | xf86atomic.h | 46 int atomic; member 49 # define atomic_read(x) ((x)->atomic) 50 # define atomic_set(x, val) ((x)->atomic = (val)) 51 # define atomic_inc(x) ((void) __sync_fetch_and_add (&(x)->atomic, 1)) 52 # define atomic_inc_return(x) (__sync_add_and_fetch (&(x)->atomic, 1)) 53 # define atomic_dec_and_test(x) (__sync_add_and_fetch (&(x)->atomic, -1) == 0) 54 # define atomic_add(x, v) ((void) __sync_add_and_fetch(&(x)->atomic, (v))) 55 # define atomic_dec(x, v) ((void) __sync_sub_and_fetch(&(x)->atomic, (v))) 56 # define atomic_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (&(x)->atomic, oldv, newv) 66 AO_t atomic; member [all …]
|
/external/libcxx/test/std/atomics/atomics.types.generic/ |
D | integral_typedefs.pass.cpp | 46 static_assert((std::is_same<std::atomic<char>, std::atomic_char>::value), ""); in main() 47 static_assert((std::is_same<std::atomic<signed char>, std::atomic_schar>::value), ""); in main() 48 static_assert((std::is_same<std::atomic<unsigned char>, std::atomic_uchar>::value), ""); in main() 49 static_assert((std::is_same<std::atomic<short>, std::atomic_short>::value), ""); in main() 50 static_assert((std::is_same<std::atomic<unsigned short>, std::atomic_ushort>::value), ""); in main() 51 static_assert((std::is_same<std::atomic<int>, std::atomic_int>::value), ""); in main() 52 static_assert((std::is_same<std::atomic<unsigned int>, std::atomic_uint>::value), ""); in main() 53 static_assert((std::is_same<std::atomic<long>, std::atomic_long>::value), ""); in main() 54 static_assert((std::is_same<std::atomic<unsigned long>, std::atomic_ulong>::value), ""); in main() 55 static_assert((std::is_same<std::atomic<long long>, std::atomic_llong>::value), ""); in main() [all …]
|
D | cstdint_typedefs.pass.cpp | 45 …static_assert((std::is_same<std::atomic< std::int_least8_t>, std::atomic_int_least8_t>::value),… in main() 46 …static_assert((std::is_same<std::atomic< std::uint_least8_t>, std::atomic_uint_least8_t>::value),… in main() 47 …static_assert((std::is_same<std::atomic< std::int_least16_t>, std::atomic_int_least16_t>::value),… in main() 48 …static_assert((std::is_same<std::atomic<std::uint_least16_t>, std::atomic_uint_least16_t>::value),… in main() 49 …static_assert((std::is_same<std::atomic< std::int_least32_t>, std::atomic_int_least32_t>::value),… in main() 50 …static_assert((std::is_same<std::atomic<std::uint_least32_t>, std::atomic_uint_least32_t>::value),… in main() 51 …static_assert((std::is_same<std::atomic< std::int_least64_t>, std::atomic_int_least64_t>::value),… in main() 52 …static_assert((std::is_same<std::atomic<std::uint_least64_t>, std::atomic_uint_least64_t>::value),… in main() 54 …static_assert((std::is_same<std::atomic< std::int_fast8_t>, std::atomic_int_fast8_t>::value), "… in main() 55 …static_assert((std::is_same<std::atomic< std::uint_fast8_t>, std::atomic_uint_fast8_t>::value), "… in main() [all …]
|
/external/libcxx/include/ |
D | atomic | 2 //===--------------------------- atomic -----------------------------------===// 15 atomic synopsis 94 struct atomic 123 atomic() noexcept = default; 124 constexpr atomic(T desr) noexcept; 125 atomic(const atomic&) = delete; 126 atomic& operator=(const atomic&) = delete; 127 atomic& operator=(const atomic&) volatile = delete; 133 struct atomic<integral> 180 atomic() noexcept = default; [all …]
|
/external/llvm/test/Transforms/DeadStoreElimination/ |
D | atomic.ll | 6 ; Sanity tests for atomic stores. 8 ; atomic ops, just some transformations are not allowed across release-acquire pairs. 21 store atomic i32 0, i32* @y unordered, align 4 29 ; CHECK-NOT: store atomic 31 store atomic i32 0, i32* @x unordered, align 4 36 ; DSE unordered store overwriting non-atomic store (allowed) 39 ; CHECK: store atomic i32 1 41 store atomic i32 1, i32* @x unordered, align 4 45 ; DSE no-op unordered atomic store (allowed) 50 %x = load atomic i32, i32* @x unordered, align 4 [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | atomic.ll | 6 ; Check transforms involving atomic operations 10 ; CHECK: %x = load atomic i32, i32* %p seq_cst, align 4 12 %x = load atomic i32, i32* %p seq_cst, align 4 40 ; Forwarding from a stronger ordered atomic is fine 43 ; CHECK: %x = load atomic i32, i32* %p seq_cst, align 4 45 %x = load atomic i32, i32* %p seq_cst, align 4 46 %y = load atomic i32, i32* %p unordered, align 4 51 ; Forwarding from a non-atomic is not. (The earlier load 52 ; could in priciple be promoted to atomic and then forwarded, 53 ; but we can't just drop the atomic from the load.) [all …]
|
/external/libcxx/test/std/atomics/atomics.lockfree/ |
D | isalwayslockfree.pass.cpp | 24 if (std::atomic<T>::is_always_lock_free) in checkAlwaysLockFree() 25 assert(std::atomic<T>().is_lock_free()); in checkAlwaysLockFree() 84 static_assert(std::atomic<bool>::is_always_lock_free == (2 == ATOMIC_BOOL_LOCK_FREE)); in main() 85 static_assert(std::atomic<char>::is_always_lock_free == (2 == ATOMIC_CHAR_LOCK_FREE)); in main() 86 static_assert(std::atomic<signed char>::is_always_lock_free == (2 == ATOMIC_CHAR_LOCK_FREE)); in main() 87 static_assert(std::atomic<unsigned char>::is_always_lock_free == (2 == ATOMIC_CHAR_LOCK_FREE)); in main() 88 static_assert(std::atomic<char16_t>::is_always_lock_free == (2 == ATOMIC_CHAR16_T_LOCK_FREE)); in main() 89 static_assert(std::atomic<char32_t>::is_always_lock_free == (2 == ATOMIC_CHAR32_T_LOCK_FREE)); in main() 90 static_assert(std::atomic<wchar_t>::is_always_lock_free == (2 == ATOMIC_WCHAR_T_LOCK_FREE)); in main() 91 static_assert(std::atomic<short>::is_always_lock_free == (2 == ATOMIC_SHORT_LOCK_FREE)); in main() [all …]
|
/external/llvm/test/Transforms/GVN/ |
D | atomic.ll | 15 store atomic i32 %x, i32* @x unordered, align 4 27 %y = load atomic i32, i32* @x unordered, align 4 39 %x = load atomic i32, i32* @x unordered, align 4 48 ; CHECK: load atomic i32, i32* @x unordered 51 %x2 = load atomic i32, i32* @x unordered, align 4 62 store atomic i32 %x, i32* @x release, align 4 63 %w = load atomic i32, i32* @x acquire, align 4 75 store atomic i32 %x, i32* @x monotonic, align 4 86 %x = load atomic i32, i32* @y unordered, align 4 87 %clobber = load atomic i32, i32* @x monotonic, align 4 [all …]
|
/external/llvm/test/Analysis/DivergenceAnalysis/AMDGPU/ |
D | llvm.amdgcn.buffer.atomic.ll | 3 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.buffer.atomic.swap( 6 %orig = call i32 @llvm.amdgcn.buffer.atomic.swap(i32 %data, <4 x i32> %rsrc, i32 0, i32 0, i1 0) 11 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.buffer.atomic.add( 14 %orig = call i32 @llvm.amdgcn.buffer.atomic.add(i32 %data, <4 x i32> %rsrc, i32 0, i32 0, i1 0) 19 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.buffer.atomic.sub( 22 %orig = call i32 @llvm.amdgcn.buffer.atomic.sub(i32 %data, <4 x i32> %rsrc, i32 0, i32 0, i1 0) 27 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.buffer.atomic.smin( 30 %orig = call i32 @llvm.amdgcn.buffer.atomic.smin(i32 %data, <4 x i32> %rsrc, i32 0, i32 0, i1 0) 35 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.buffer.atomic.umin( 38 %orig = call i32 @llvm.amdgcn.buffer.atomic.umin(i32 %data, <4 x i32> %rsrc, i32 0, i32 0, i1 0) [all …]
|
D | llvm.amdgcn.image.atomic.ll | 3 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.image.atomic.swap.i32( 6 …%orig = call i32 @llvm.amdgcn.image.atomic.swap.i32(i32 %data, i32 %addr, <8 x i32> %rsrc, i1 0, i… 11 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.image.atomic.add.i32( 14 …%orig = call i32 @llvm.amdgcn.image.atomic.add.i32(i32 %data, i32 %addr, <8 x i32> %rsrc, i1 0, i1… 19 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.image.atomic.sub.i32( 22 …%orig = call i32 @llvm.amdgcn.image.atomic.sub.i32(i32 %data, i32 %addr, <8 x i32> %rsrc, i1 0, i1… 27 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.image.atomic.smin.i32( 30 …%orig = call i32 @llvm.amdgcn.image.atomic.smin.i32(i32 %data, i32 %addr, <8 x i32> %rsrc, i1 0, i… 35 ;CHECK: DIVERGENT: %orig = call i32 @llvm.amdgcn.image.atomic.umin.i32( 38 …%orig = call i32 @llvm.amdgcn.image.atomic.umin.i32(i32 %data, i32 %addr, <8 x i32> %rsrc, i1 0, i… [all …]
|
/external/jemalloc/test/unit/ |
D | prng.c | 4 test_prng_lg_range_u32(bool atomic) in test_prng_lg_range_u32() argument 10 ra = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32() 12 rb = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32() 17 rb = prng_lg_range_u32(&sb, 32, atomic); in test_prng_lg_range_u32() 22 ra = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32() 23 rb = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32() 28 ra = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32() 31 rb = prng_lg_range_u32(&sb, lg_range, atomic); in test_prng_lg_range_u32() 78 test_prng_lg_range_zu(bool atomic) in test_prng_lg_range_zu() argument 84 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu() [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | atomic_mi.ll | 5 ; This file checks that atomic (non-seq_cst) stores of immediate values are 9 ; Similarily, it checks that a binary operation of an immediate with an atomic 38 store atomic i8 42, i8* %p release, align 1 49 store atomic i16 42, i16* %p monotonic, align 2 63 store atomic i32 42, i32* %p release, align 4 75 store atomic i64 42, i64* %p release, align 8 85 store atomic i64 100000000000, i64* %p monotonic, align 8 95 store atomic i32 42, i32* %p seq_cst, align 4 110 %1 = load atomic i8, i8* %p seq_cst, align 1 112 store atomic i8 %2, i8* %p release, align 1 [all …]
|
/external/swiftshader/third_party/LLVM/test/Transforms/DeadStoreElimination/ |
D | atomic.ll | 6 ; Sanity tests for atomic stores. 8 ; atomic ops, just some transformations are not allowed across them. 22 store atomic i32 0, i32* @y unordered, align 4 34 %x = load atomic i32* @y seq_cst, align 4 39 ; DSE across seq_cst store (store before atomic store must not be removed) 43 ; CHECK: store atomic i32 2 46 store atomic i32 2, i32* @y seq_cst, align 4 54 ; CHECK-NOT: store atomic 57 store atomic i32 0, i32* @x unordered, align 4 62 ; DSE unordered store overwriting non-atomic store (allowed) [all …]
|
/external/llvm/test/Transforms/EarlyCSE/ |
D | atomics.ll | 6 %1 = load atomic i32, i32* %P2 seq_cst, align 4 15 ; atomic to non-atomic forwarding is legal 17 %a = load atomic i32, i32* %P1 seq_cst, align 4 21 ; CHECK: load atomic i32, i32* %P1 26 ; atomic to unordered atomic forwarding is legal 28 %a = load atomic i32, i32* %P1 seq_cst, align 4 29 %b = load atomic i32, i32* %P1 unordered, align 4 32 ; CHECK: load atomic i32, i32* %P1 seq_cst 40 %a = load atomic i32, i32* %P1 seq_cst, align 4 41 %b = load atomic i32, i32* %P1 seq_cst, align 4 [all …]
|
/external/llvm/test/Bitcode/ |
D | memInstructions.3.2.ll | 86 ; CHECK: %res1 = load atomic i8, i8* %ptr1 unordered, align 1 87 %res1 = load atomic i8, i8* %ptr1 unordered, align 1 89 ; CHECK-NEXT: %res2 = load atomic i8, i8* %ptr1 monotonic, align 1 90 %res2 = load atomic i8, i8* %ptr1 monotonic, align 1 92 ; CHECK-NEXT: %res3 = load atomic i8, i8* %ptr1 acquire, align 1 93 %res3 = load atomic i8, i8* %ptr1 acquire, align 1 95 ; CHECK-NEXT: %res4 = load atomic i8, i8* %ptr1 seq_cst, align 1 96 %res4 = load atomic i8, i8* %ptr1 seq_cst, align 1 98 ; CHECK-NEXT: %res5 = load atomic volatile i8, i8* %ptr1 unordered, align 1 99 %res5 = load atomic volatile i8, i8* %ptr1 unordered, align 1 [all …]
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | llvm.amdgcn.buffer.atomic.ll | 22 %o1 = call i32 @llvm.amdgcn.buffer.atomic.swap(i32 %data, <4 x i32> %rsrc, i32 0, i32 0, i1 0) 23 %o2 = call i32 @llvm.amdgcn.buffer.atomic.swap(i32 %o1, <4 x i32> %rsrc, i32 %vindex, i32 0, i1 0) 24 …%o3 = call i32 @llvm.amdgcn.buffer.atomic.swap(i32 %o2, <4 x i32> %rsrc, i32 0, i32 %voffset, i1 0) 25 …%o4 = call i32 @llvm.amdgcn.buffer.atomic.swap(i32 %o3, <4 x i32> %rsrc, i32 %vindex, i32 %voffset… 27 %o5 = call i32 @llvm.amdgcn.buffer.atomic.swap(i32 %o4, <4 x i32> %rsrc, i32 0, i32 %ofs.5, i1 0) 28 %o6 = call i32 @llvm.amdgcn.buffer.atomic.swap(i32 %o5, <4 x i32> %rsrc, i32 0, i32 8192, i1 0) 29 %unused = call i32 @llvm.amdgcn.buffer.atomic.swap(i32 %o6, <4 x i32> %rsrc, i32 0, i32 0, i1 0) 54 …%t1 = call i32 @llvm.amdgcn.buffer.atomic.add(i32 %data, <4 x i32> %rsrc, i32 %vindex, i32 0, i1 0) 55 %t2 = call i32 @llvm.amdgcn.buffer.atomic.sub(i32 %t1, <4 x i32> %rsrc, i32 %vindex, i32 0, i1 0) 56 %t3 = call i32 @llvm.amdgcn.buffer.atomic.smin(i32 %t2, <4 x i32> %rsrc, i32 %vindex, i32 0, i1 0) [all …]
|
/external/llvm/cmake/modules/ |
D | CheckAtomic.cmake | 1 # atomic builtins are required for threading support. 5 # Sometimes linking against libatomic is required for atomic ops, if 12 #include <atomic> 13 std::atomic<int> x; 25 #include <atomic> 27 std::atomic<uint64_t> x (0); 44 check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC) 46 list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic") 49 message(FATAL_ERROR "Host compiler must support std::atomic!") 57 # Check for 64 bit atomic operations. [all …]
|