/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 …]
|
D | atomic_codegen.cpp | 25 #pragma omp atomic read in parallel_atomic_ewc() 32 #pragma omp atomic write in parallel_atomic_ewc() 50 #pragma omp atomic in parallel_atomic_ewc() 52 #pragma omp atomic in parallel_atomic_ewc() 71 #pragma omp atomic capture in parallel_atomic_ewc() 82 #pragma omp atomic read in parallel_atomic() 88 #pragma omp atomic write in parallel_atomic() 95 #pragma omp atomic update in parallel_atomic() 102 #pragma omp atomic capture in parallel_atomic()
|
/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 | 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 …]
|
D | integral_typedefs.pass.cpp | 34 static_assert((std::is_same<std::atomic<char>, std::atomic_char>::value), ""); in main() 35 static_assert((std::is_same<std::atomic<signed char>, std::atomic_schar>::value), ""); in main() 36 static_assert((std::is_same<std::atomic<unsigned char>, std::atomic_uchar>::value), ""); in main() 37 static_assert((std::is_same<std::atomic<short>, std::atomic_short>::value), ""); in main() 38 static_assert((std::is_same<std::atomic<unsigned short>, std::atomic_ushort>::value), ""); in main() 39 static_assert((std::is_same<std::atomic<int>, std::atomic_int>::value), ""); in main() 40 static_assert((std::is_same<std::atomic<unsigned int>, std::atomic_uint>::value), ""); in main() 41 static_assert((std::is_same<std::atomic<long>, std::atomic_long>::value), ""); in main() 42 static_assert((std::is_same<std::atomic<unsigned long>, std::atomic_ulong>::value), ""); in main() 43 static_assert((std::is_same<std::atomic<long long>, std::atomic_llong>::value), ""); in main() [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/libcxx/include/ |
D | atomic | 2 //===--------------------------- atomic -----------------------------------===// 15 atomic synopsis 90 struct atomic 118 atomic() noexcept = default; 119 constexpr atomic(T desr) noexcept; 120 atomic(const atomic&) = delete; 121 atomic& operator=(const atomic&) = delete; 122 atomic& operator=(const atomic&) volatile = delete; 128 struct atomic<integral> 174 atomic() noexcept = default; [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/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/Transforms/AtomicExpand/X86/ |
D | expand-atomic-non-integer.ll | 1 ; RUN: opt -S %s -atomic-expand -mtriple=x86_64-linux-gnu | FileCheck %s 10 ; CHECK: %2 = load atomic i32, i32* %1 unordered, align 4 13 %res = load atomic float, float* %ptr unordered, align 4 20 ; CHECK: %2 = load atomic i32, i32* %1 seq_cst, align 4 23 %res = load atomic float, float* %ptr seq_cst, align 4 30 ; CHECK: %2 = load atomic volatile i32, i32* %1 unordered, align 4 33 %res = load atomic volatile float, float* %ptr unordered, align 4 40 ; CHECK: %2 = load atomic i32, i32 addrspace(1)* %1 unordered, align 4 43 %res = load atomic float, float addrspace(1)* %ptr unordered, align 4 51 ; CHECK: store atomic i32 %1, i32* %2 unordered, align 4 [all …]
|
/external/llvm/test/CodeGen/XCore/ |
D | atomic.ll | 28 %0 = load atomic i32, i32* bitcast (i64* @pool to i32*) acquire, align 4 32 %1 = load atomic i16, i16* bitcast (i64* @pool to i16*) acquire, align 2 36 %2 = load atomic i8, i8* bitcast (i64* @pool to i8*) acquire, align 1 40 %3 = load atomic i32, i32* bitcast (i64* @pool to i32*) seq_cst, align 4 44 %4 = load atomic i16, i16* bitcast (i64* @pool to i16*) seq_cst, align 2 48 %5 = load atomic i8, i8* bitcast (i64* @pool to i8*) seq_cst, align 1 52 store atomic i32 %0, i32* bitcast (i64* @pool to i32*) release, align 4 56 store atomic i16 %1, i16* bitcast (i64* @pool to i16*) release, align 2 60 store atomic i8 %2, i8* bitcast (i64* @pool to i8*) release, align 1 65 store atomic i32 %3, i32* bitcast (i64* @pool to i32*) seq_cst, align 4 [all …]
|
/external/llvm/test/Instrumentation/MemorySanitizer/ |
D | atomics.ll | 76 ; atomic load: preserve alignment, load shadow value after app value 80 %0 = load atomic i32, i32* %p seq_cst, align 16 85 ; CHECK: load atomic i32, i32* {{.*}} seq_cst, align 16 91 ; atomic load: preserve alignment, load shadow value after app value 95 %0 = load atomic i32, i32* %p acquire, align 16 100 ; CHECK: load atomic i32, i32* {{.*}} acquire, align 16 106 ; atomic load monotonic: bump up to load acquire 110 %0 = load atomic i32, i32* %p monotonic, align 16 115 ; CHECK: load atomic i32, i32* {{.*}} acquire, align 16 121 ; atomic load unordered: bump up to load acquire [all …]
|
/external/libcxx/test/support/ |
D | cmpxchg_loop.h | 4 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired) { in cmpxchg_weak_loop() argument 6 if (atomic.compare_exchange_weak(expected, desired) == true) { in cmpxchg_weak_loop() 15 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired, in cmpxchg_weak_loop() argument 19 if (atomic.compare_exchange_weak(expected, desired, success, in cmpxchg_weak_loop() 29 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired) { in c_cmpxchg_weak_loop() argument 31 if (std::atomic_compare_exchange_weak(atomic, expected, desired) == true) { in c_cmpxchg_weak_loop() 40 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired, in c_cmpxchg_weak_loop() argument 44 if (std::atomic_compare_exchange_weak_explicit(atomic, expected, desired, in c_cmpxchg_weak_loop()
|
/external/llvm/test/Transforms/SLPVectorizer/X86/ |
D | atomics.ll | 7 ; The SLPVectorizer should not vectorize atomic stores and it should not 8 ; schedule regular stores around atomic stores. 12 ; CHECK: store atomic i32 14 ; CHECK: store atomic i32 16 ; CHECK: store atomic i32 18 ; CHECK: store atomic i32 22 …store atomic i32 0, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @x, i64 0, i64 0) release, … 24 …store atomic i32 1, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @x, i64 0, i64 1) release, … 26 …store atomic i32 2, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @x, i64 0, i64 2) release, … 28 …store atomic i32 3, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @x, i64 0, i64 3) release, …
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/ |
D | AtomicJavaBean.java | 18 import java.util.concurrent.atomic.AtomicLong; 22 private AtomicLong atomic; field in AtomicJavaBean 33 return atomic; in getAtomic() 36 public void setAtomic(AtomicLong atomic) { in setAtomic() argument 37 this.atomic = atomic; in setAtomic()
|
/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; 28 check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC) 30 list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic") 33 message(FATAL_ERROR "Host compiler must support std::atomic!") 41 ## TODO: This define is only used for the legacy atomic operations in 43 ## assumes C++11 <atomic> works. 68 message(STATUS "Warning: LLVM will be built thread-unsafe because atomic builtins are missing")
|
/external/llvm/test/Assembler/ |
D | atomic.ll | 3 ; Basic smoke test for atomic operations. 6 ; CHECK: load atomic i32, i32* %x unordered, align 4 7 load atomic i32, i32* %x unordered, align 4 8 ; CHECK: load atomic volatile i32, i32* %x singlethread acquire, align 4 9 load atomic volatile i32, i32* %x singlethread acquire, align 4 10 ; CHECK: store atomic i32 3, i32* %x release, align 4 11 store atomic i32 3, i32* %x release, align 4 12 ; CHECK: store atomic volatile i32 3, i32* %x singlethread monotonic, align 4 13 store atomic volatile i32 3, i32* %x singlethread monotonic, align 4
|