/llvm-project/clang/test/SemaOpenCL/ |
H A D | atomic-init.cl | 3 global atomic_int a1 = 0; 7 …atomic_int a2 = 0; // expected-error {{atomic variable can be initialized to a variable only in gl… 8 …private atomic_int a3 = 0; // expected-error {{atomic variable can be initialized to a variable on… 9 local atomic_int a4 = 0; // expected-error {{'__local' variable cannot have an initializer}} 10 …global atomic_int a5 = 0; // expected-error {{function scope variable cannot be declared in global… 11 static global atomic_int a6 = 0;
|
H A D | atomic-ops.cl | 20 atomic_int gn; 21 void f(atomic_int *i, const atomic_int *ci, 25 global atomic_int *i_g, local atomic_int *i_l, private atomic_int *i_p, 26 constant atomic_int *i_c) { 28 …peration must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const _… 35 …peration must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const _… 39 … operation must be a pointer to non-constant _Atomic type ('__constant atomic_int *' (aka '__const… 45 … operation must be a pointer to non-constant _Atomic type ('__constant atomic_int *' (aka '__const… 80 …bool cmpexch_10 = __opencl_atomic_compare_exchange_strong((global atomic_int *)0x308, (constant in… 82 …peration must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const _… [all …]
|
H A D | types.cl | 6 typedef atomic_int atomic_flag;
|
H A D | fdeclare-opencl-builtins.cl | 107 kernel void test_enum_args(volatile global atomic_int *global_p, global int *expected) { 130 void test_atomic_fetch(volatile __generic atomic_int *a_int, 173 void test_atomic_double_reporting(volatile __generic atomic_int *a) { 193 void test_atomics_without_scope_device(volatile __generic atomic_int *a_int) {
|
/llvm-project/clang/test/Parser/ |
H A D | opencl-atomics-cl20.cl | 15 atomic_int i; 20 // expected-error@-5 {{use of undeclared identifier 'atomic_int'}} 56 // expected-error@-25 {{unknown type name 'atomic_intptr_t'; did you mean 'atomic_int'?}} 57 // expected-note@* {{'atomic_int' declared here}} 76 void foo(atomic_int * ptr) {} 78 atomic_int i; 81 …i++; // expected-error {{invalid argument type '__private atomic_int' (aka '__private _Atomic(int)… 83 …i += 1; // expected-error {{invalid operands to binary expression ('__private atomic_int' (aka '__… 84 …operands to binary expression ('__private atomic_int' (aka '__private _Atomic(int)') and '__privat…
|
H A D | atomic.c | 4 typedef _Atomic(int) atomic_int; // ext-warning {{'_Atomic' is a C11 extension}} typedef 5 typedef _Atomic int atomic_int; // ext-warning {{'_Atomic' is a C11 extension}} typedef 6 typedef _Atomic _Atomic _Atomic(int) atomic_int; // expected-warning {{duplicate '_Atomic' declarat… typedef 11 typedef const atomic_int const_atomic_int;
|
/llvm-project/llvm/unittests/Support/ |
H A D | ThreadPool.cpp | 141 std::atomic_int checked_in{0}; in TYPED_TEST() 156 static void TestFunc(std::atomic_int &checked_in, int i) { checked_in += i; } in TestFunc() 161 std::atomic_int checked_in{0}; in TYPED_TEST() 174 std::atomic_int i{0}; in TYPED_TEST() 189 std::atomic_int i{0}; in TYPED_TEST() 230 std::atomic_int checked_in{0}; in TYPED_TEST() 261 std::atomic_int checked_in1{0}; in TYPED_TEST() 262 std::atomic_int checked_in2{0}; in TYPED_TEST() 294 std::atomic_int checked_in1{0}; in TYPED_TEST() 305 std::atomic_int checked_in in TYPED_TEST() [all...] |
/llvm-project/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
H A D | notify_one.pass.cpp | 54 std::atomic_int test1(0); 55 std::atomic_int test2(0); 56 std::atomic_int ready(2); 57 std::atomic_int which(0);
|
/llvm-project/clang/test/CodeGenOpenCL/ |
H A D | atomic-ops.cl | 36 atomic_int j; 38 void fi1(atomic_int *i) { 53 void fi2(atomic_int *i) { 59 void test_addr(global atomic_int *ig, private atomic_int *ip, local atomic_int *il) { 71 void fi3(atomic_int *i, atomic_uint *ui) { 89 bool fi4(atomic_int *i) { 100 void fi5(atomic_int *i, int scope) { 123 void fi6(atomic_int * [all...] |
H A D | atomic-ops-libcall.cl | 21 void f(atomic_int *i, global atomic_int *gi, local atomic_int *li, private atomic_int *pi, atomic_u…
|
/llvm-project/clang/test/SemaOpenCLCXX/ |
H A D | invalid-kernel.clcpp | 32 kernel void k_atomic_v(atomic_int in); 34 // expected-error@-2{{'__private atomic_int' (aka '__private _Atomic(int)') cannot be used as the t… 36 kernel void k_atomic_p(__global atomic_int *in); 37 kernel void k_atomic_r(__global atomic_int &in);
|
/llvm-project/clang/test/CodeGen/ |
H A D | atomic-ops.c | 35 int fi1c(atomic_int *i) { in fi1c() 60 void fi2c(atomic_int *i) { in fi2c() 102 int fi3e(atomic_int *i) { in fi3e() 151 _Bool fi4c(atomic_int *i) { in fi4c()
|
/llvm-project/lldb/test/API/macosx/queues/ |
H A D | main.c | 7 atomic_int finished_enqueueing_work = 0; 8 atomic_int thread_count = 0;
|
/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_stoptheworld_test.cpp | 31 std::atomic_int counter = {}; 88 std::atomic_int counters[kThreadCount] = {};
|
/llvm-project/libcxx/test/libcxx/atomics/stdatomic.h.syn/ |
H A D | dont_hijack_header.compile.pass.cpp | 22 atomic_int i; // just make sure the header isn't empty in f()
|
/llvm-project/libcxx/test/std/atomics/atomics.types.generic/ |
H A D | integral.pass.cpp | 180 test<std::atomic_int, int>(); in main() 209 test<volatile std::atomic_int, int>(); in main()
|
H A D | integral_typedefs.pass.cpp | 16 // typedef atomic<int> atomic_int; 52 static_assert((std::is_same<std::atomic<int>, std::atomic_int>::value), ""); in main()
|
/llvm-project/libcxx/test/std/thread/thread.jthread/ |
H A D | dtor.pass.cpp | 46 std::atomic_int calledTimes = 0; in main()
|
H A D | join.pass.cpp | 31 std::atomic_int calledTimes = 0; in main()
|
H A D | assign.move.pass.cpp | 56 std::atomic_int calledTimes = 0; in main()
|
/llvm-project/clang/test/AST/Interp/ |
H A D | atomic.c |
|
/llvm-project/lldb/test/Shell/Register/Core/Inputs/ |
H A D | multithread.cpp | 9 std::atomic_int start_counter{3};
|
/llvm-project/libcxx/include/__atomic/ |
H A D | aliases.h | 35 using atomic_int = atomic<int>; 34 using atomic_int = atomic<int>; global() variable
|
/llvm-project/clang/lib/Headers/ |
H A D | opencl-c.h | 13250 void __ovld atomic_init(volatile atomic_int *, int); 13262 void __ovld atomic_init(volatile __global atomic_int *, int); 13263 void __ovld atomic_init(volatile __local atomic_int *, int); 13289 int __ovld atomic_fetch_add(volatile atomic_int *, int); 13291 int __ovld atomic_fetch_sub(volatile atomic_int *, int); 13293 int __ovld atomic_fetch_or(volatile atomic_int *, int); 13295 int __ovld atomic_fetch_xor(volatile atomic_int *, int); 13297 int __ovld atomic_fetch_and(volatile atomic_int *, int); 13299 int __ovld atomic_fetch_min(volatile atomic_int *, int); 13301 int __ovld atomic_fetch_max(volatile atomic_int *, int); [all …]
|
/llvm-project/libcxx/include/ |
H A D | stdatomic.h | 48 using std::atomic_int // see below 156 using std::atomic_int _LIBCPP_USING_IF_EXISTS;
|