/llvm-project/libcxx/test/std/atomics/atomics.ref/ |
H A D | compare_exchange_weak.pass.cpp | 84 ….compare_exchange_weak(old_val, new_val, std::memory_order::release, std::memory_order::relaxed)) { in operator ()() 103 auto val = x.load(std::memory_order::relaxed); in operator ()() 104 …hile (!x.compare_exchange_weak(val, val, std::memory_order::acquire, std::memory_order::relaxed)) { in operator ()() 111 auto val = x.load(std::memory_order::relaxed); in operator ()() 123 ….compare_exchange_weak(old_val, new_val, std::memory_order::acq_rel, std::memory_order::relaxed)) { in operator ()() 127 auto val = x.load(std::memory_order::relaxed); in operator ()() 128 …hile (!x.compare_exchange_weak(val, val, std::memory_order::acq_rel, std::memory_order::relaxed)) { in operator ()() 140 auto val = x.load(std::memory_order::relaxed); in operator ()() 152 ….compare_exchange_weak(old_val, new_val, std::memory_order::seq_cst, std::memory_order::relaxed)) { in operator ()() 156 auto val = x.load(std::memory_order::relaxed); in operator ()() [all …]
|
H A D | compare_exchange_strong.pass.cpp | 83 ….compare_exchange_strong(old_val, new_val, std::memory_order::release, std::memory_order::relaxed); in operator ()() 102 auto val = x.load(std::memory_order::relaxed); in operator ()() 103 …le (!x.compare_exchange_strong(val, val, std::memory_order::acquire, std::memory_order::relaxed)) { in operator ()() 110 auto val = x.load(std::memory_order::relaxed); in operator ()() 121 ….compare_exchange_strong(old_val, new_val, std::memory_order::acq_rel, std::memory_order::relaxed); in operator ()() 125 auto val = x.load(std::memory_order::relaxed); in operator ()() 126 …le (!x.compare_exchange_strong(val, val, std::memory_order::acq_rel, std::memory_order::relaxed)) { in operator ()() 137 auto val = x.load(std::memory_order::relaxed); in operator ()() 148 ….compare_exchange_strong(old_val, new_val, std::memory_order::seq_cst, std::memory_order::relaxed); in operator ()() 152 auto val = x.load(std::memory_order::relaxed); in operator ()() [all …]
|
H A D | notify_all.pass.cpp | 42 started_num.fetch_add(1, std::memory_order::relaxed); in operator ()() 45 wait_done_num.fetch_add(1, std::memory_order::relaxed); in operator ()() 52 while (started_num.load(std::memory_order::relaxed) != number_of_threads) { in operator ()() 63 while (wait_done_num.load(std::memory_order::relaxed) != number_of_threads) { in operator ()()
|
H A D | wait.pass.cpp | 62 auto result = x.load(std::memory_order::relaxed); in operator ()() 73 auto result = x.load(std::memory_order::relaxed); in operator ()() 78 auto result = x.load(std::memory_order::relaxed); in operator ()()
|
/llvm-project/clang/include/clang/Basic/ |
H A D | BuiltinsWebAssembly.def | 153 TARGET_BUILTIN(__builtin_wasm_relaxed_madd_f32x4, "V4fV4fV4fV4f", "nc", "relaxed-simd") 154 TARGET_BUILTIN(__builtin_wasm_relaxed_nmadd_f32x4, "V4fV4fV4fV4f", "nc", "relaxed-simd") 155 TARGET_BUILTIN(__builtin_wasm_relaxed_madd_f64x2, "V2dV2dV2dV2d", "nc", "relaxed-simd") 156 TARGET_BUILTIN(__builtin_wasm_relaxed_nmadd_f64x2, "V2dV2dV2dV2d", "nc", "relaxed-simd") 160 TARGET_BUILTIN(__builtin_wasm_relaxed_laneselect_i8x16, "V16ScV16ScV16ScV16Sc", "nc", "relaxed-simd") 161 TARGET_BUILTIN(__builtin_wasm_relaxed_laneselect_i16x8, "V8sV8sV8sV8s", "nc", "relaxed-simd") 162 TARGET_BUILTIN(__builtin_wasm_relaxed_laneselect_i32x4, "V4iV4iV4iV4i", "nc", "relaxed-simd") 163 TARGET_BUILTIN(__builtin_wasm_relaxed_laneselect_i64x2, "V2LLiV2LLiV2LLiV2LLi", "nc", "relaxed-simd") 165 TARGET_BUILTIN(__builtin_wasm_relaxed_swizzle_i8x16, "V16ScV16ScV16Sc", "nc", "relaxed-simd") 167 TARGET_BUILTIN(__builtin_wasm_relaxed_min_f32x4, "V4fV4fV4f", "nc", "relaxed [all...] |
/llvm-project/clang/test/OpenMP/ |
H A D | atomic_compare_codegen.cpp | 220 #pragma omp atomic compare relaxed in foo() 222 #pragma omp atomic compare relaxed in foo() 224 #pragma omp atomic compare relaxed in foo() 226 #pragma omp atomic compare relaxed in foo() 228 #pragma omp atomic compare relaxed in foo() 231 #pragma omp atomic compare relaxed in foo() 234 #pragma omp atomic compare relaxed in foo() 237 #pragma omp atomic compare relaxed in foo() 241 #pragma omp atomic compare relaxed in foo() 243 #pragma omp atomic compare relaxed in foo() [all …]
|
H A D | atomic_ast_print.cpp | 172 #pragma omp atomic relaxed in foo() 176 #pragma omp atomic relaxed write in foo() 178 #pragma omp atomic update relaxed in foo() 180 #pragma omp atomic relaxed capture in foo() 182 #pragma omp atomic capture relaxed in foo() 188 #pragma omp atomic compare relaxed in foo() 190 #pragma omp atomic relaxed compare in foo() 192 #pragma omp atomic compare relaxed in foo() 194 #pragma omp atomic compare capture relaxed in foo() 196 #pragma omp atomic compare relaxed capture in foo() [all …]
|
H A D | requires_messages.cpp | 29 #pragma omp requires atomic_default_mem_order(relaxed) // expected-error {{only one atomic_default_… 41 #pragma omp requires atomic_default_mem_order(acq_rel), atomic_default_mem_order(relaxed) // expect…
|
H A D | atomic_messages.cpp | 857 T relaxed() { in relaxed() function 860 #pragma omp atomic relaxed in relaxed() 865 #pragma omp atomic relaxed seq_cst in relaxed() 869 #pragma omp atomic update relaxed in relaxed() 877 int relaxed() { in relaxed() function 881 #pragma omp atomic read relaxed in relaxed() 886 #pragma omp atomic seq_cst relaxed in relaxed() 890 #pragma omp atomic update relaxed in relaxed() 895 …return relaxed<int>(); // omp50-note {{in instantiation of function template specialization 'relax… in relaxed() 975 #pragma omp atomic compare fail(relaxed) fail(seq_cst) in mixed()
|
/llvm-project/libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/ |
H A D | compare_exchange_strong.pass.cpp | 71 testBasic<T, MaybeVolatile>(std::memory_order::relaxed); in test_impl() 72 testBasic<T, MaybeVolatile>(std::memory_order::relaxed, std::memory_order_relaxed); in test_impl() 95 auto val = x.load(std::memory_order::relaxed); in test_impl() 103 auto val = x.load(std::memory_order::relaxed); in test_impl() 118 auto val = x.load(std::memory_order::relaxed); in test_impl() 130 auto val = x.load(std::memory_order::relaxed); in test_impl() 145 auto val = x.load(std::memory_order::relaxed); in test_impl() 157 auto val = x.load(std::memory_order::relaxed); in test_impl() 169 auto result = x.load(std::memory_order::relaxed); in test_impl() 178 auto result = x.load(std::memory_order::relaxed); in test_impl() [all …]
|
H A D | compare_exchange_weak.pass.cpp | 80 testBasic<T, MaybeVolatile>(std::memory_order::relaxed); in test_impl() 81 testBasic<T, MaybeVolatile>(std::memory_order::relaxed, std::memory_order_relaxed); in test_impl() 106 auto val = x.load(std::memory_order::relaxed); in test_impl() 114 auto val = x.load(std::memory_order::relaxed); in test_impl() 130 auto val = x.load(std::memory_order::relaxed); in test_impl() 143 auto val = x.load(std::memory_order::relaxed); in test_impl() 159 auto val = x.load(std::memory_order::relaxed); in test_impl() 172 auto val = x.load(std::memory_order::relaxed); in test_impl() 184 auto result = x.load(std::memory_order::relaxed); in test_impl() 193 auto result = x.load(std::memory_order::relaxed); in test_impl() [all …]
|
H A D | wait.pass.cpp | 42 a.wait(T(1.1), std::memory_order::relaxed); in test_impl() 58 started.store(true, std::memory_order::relaxed); in test_impl() 66 while (!started.load(std::memory_order::relaxed)) { in test_impl() 84 auto result = x.load(std::memory_order::relaxed); in test_impl() 95 auto result = x.load(std::memory_order::relaxed); in test_impl() 100 auto result = x.load(std::memory_order::relaxed); in test_impl()
|
H A D | notify_all.pass.cpp | 52 started_num.fetch_add(1, std::memory_order::relaxed); in test_impl() 55 wait_done_num.fetch_add(1, std::memory_order::relaxed); in test_impl() 62 while (started_num.load(std::memory_order::relaxed) != number_of_threads) { in test_impl() 73 while (wait_done_num.load(std::memory_order::relaxed) != number_of_threads) { in test_impl()
|
H A D | notify_one.pass.cpp | 46 started.store(true, std::memory_order::relaxed); in test_impl() 54 while (!started.load(std::memory_order::relaxed)) { in test_impl()
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | AtomicOrdering.h | 29 relaxed = 0, enumerator 45 return (Int)AtomicOrderingCABI::relaxed <= I && in isValidAtomicOrderingCABI() 149 /* NotAtomic */ AtomicOrderingCABI::relaxed, in toCABI() 150 /* Unordered */ AtomicOrderingCABI::relaxed, in toCABI() 151 /* relaxed */ AtomicOrderingCABI::relaxed, in toCABI()
|
/llvm-project/llvm/test/CodeGen/WebAssembly/ |
H A D | simd-intrinsics.ll | 1 ; RUN: llc < %s -asm-verbose=false -verify-machineinstrs -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers -mattr=+simd128,+relaxed-simd | FileCheck %s --check-prefixes=CHECK,SLOW 2 ; RUN: llc < %s -asm-verbose=false -verify-machineinstrs -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers -mattr=+simd128,+relaxed-simd -fast-isel | FileCheck %s 174 declare <16 x i8> @llvm.wasm.relaxed.laneselect.v16i8(<16 x i8>, <16 x i8>, <16 x i8>) 176 %v = call <16 x i8> @llvm.wasm.relaxed.laneselect.v16i8( 186 declare <16 x i8> @llvm.wasm.relaxed.swizzle(<16 x i8>, <16 x i8>) 188 %a = call <16 x i8> @llvm.wasm.relaxed.swizzle(<16 x i8> %x, <16 x i8> %y) 350 declare <8 x i16> @llvm.wasm.relaxed.laneselect.v8i16(<8 x i16>, <8 x i16>, <8 x i16>) 352 %v = call <8 x i16> @llvm.wasm.relaxed.laneselect.v8i16( 362 declare <8 x i16> @llvm.wasm.relaxed.q15mulr.signed(<8 x i16>, <8 x i16>) 364 %v = call <8 x i16> @llvm.wasm.relaxed [all...] |
/llvm-project/llvm/test/Assembler/ |
H A D | autoupgrade-wasm-intrinsics.ll | 6 ; CHECK-NEXT: [[RES:%.*]] = call <16 x i8> @llvm.wasm.relaxed.laneselect.v16i8(<16 x i8> [[A:%.*… 15 ; CHECK-NEXT: [[RES:%.*]] = call <8 x i16> @llvm.wasm.relaxed.dot.i8x16.i7x16.signed(<16 x i8> [… 24 ; CHECK-NEXT: [[RES:%.*]] = call <4 x i32> @llvm.wasm.relaxed.dot.i8x16.i7x16.add.signed(<16 x i… 33 ; CHECK-NEXT: [[RES:%.*]] = call <4 x float> @llvm.wasm.relaxed.madd.v4f32(<4 x float> [[A:%.*]]… 42 ; CHECK-NEXT: [[RES:%.*]] = call <4 x float> @llvm.wasm.relaxed.nmadd.v4f32(<4 x float> [[A:%.*]…
|
/llvm-project/llvm/test/MC/Hexagon/ |
H A D | new-value-check.s | 22 # No errors from this point on with the relaxed checks. 27 # valid in relaxed, p0 could always be true 34 # valid (relaxed): p2 and p3 cannot be proven to violate the new-value 42 # valid (relaxed): p3 could be always true
|
/llvm-project/llvm/test/MC/RISCV/ |
H A D | compressed-relocations.s | 13 # A compressed jump (c.j) to an unresolved symbol will be relaxed to a (jal). 19 # A compressed branch (c.bnez) to an unresolved symbol will be relaxed to a (bnez). 20 # The (bnez) to an unresolved symbol will in turn be relaxed to (beqz; jal)
|
/llvm-project/llvm/test/ExecutionEngine/RuntimeDyld/X86/ |
H A D | ELF-relaxed.s | 3 # RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/relaxed.o %s 4 # RUN: llvm-rtdyld -triple=x86_64-pc-linux -verify %t/file.o %t/relaxed.o
|
/llvm-project/offload/DeviceRTL/src/ |
H A D | Synchronization.cpp | 86 Case(atomic::relaxed); in atomicMinFP() 126 atomic::relaxed); // commutative 138 atomic::store(&namedBarrierTracker, load, atomic::relaxed); 143 load = atomic::load(&namedBarrierTracker, atomic::relaxed); 169 if (Ordering != atomic::relaxed) in atomicInc() 174 if (Ordering != atomic::relaxed) in atomicInc() 198 !cas((uint32_t *)Lock, UNSET, SET, atomic::relaxed, atomic::relaxed)) { in namedBarrier()
|
/llvm-project/libcxx/include/__atomic/ |
H A D | memory_order.h | 32 relaxed = __mo_relaxed, enumerator 43 inline constexpr auto memory_order_relaxed = memory_order::relaxed;
|
/llvm-project/llvm/test/Transforms/SimpleLoopUnswitch/ |
H A D | exponential-switch-unswitch.ll | 28 ; With relaxed candidates multiplier (unscaled candidates == 8) we should allow 40 ; With relaxed candidates multiplier (unscaled candidates == 8) and with relaxed 61 ; Somewhat relaxed restrictions on candidates: 67 ; Even more relaxed restrictions on candidates and siblings.
|
H A D | exponential-nontrivial-unswitch.ll | 21 ; With relaxed candidates multiplier (unscaled candidates == 8) we should allow 23 ; With relaxed candidates multiplier (unscaled candidates == 8) we should allow 34 ; With relaxed candidates multiplier (unscaled candidates == 8) and with relaxed
|
/llvm-project/llvm/test/CodeGen/NVPTX/ |
H A D | intrinsics-sm90.ll | 127 ; CHECK: barrier.cluster.arrive.relaxed; 128 call void @llvm.nvvm.barrier.cluster.arrive.relaxed() 140 ; CHECK: barrier.cluster.arrive.relaxed.aligned; 141 call void @llvm.nvvm.barrier.cluster.arrive.relaxed.aligned() 189 declare void @llvm.nvvm.barrier.cluster.arrive.relaxed() 192 declare void @llvm.nvvm.barrier.cluster.arrive.relaxed.aligned()
|