| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | atomic.c | 4 typedef _Atomic(int) atomic_int; // ext-warning {{'_Atomic' is a C11 extension}} 5 typedef _Atomic int atomic_int; // ext-warning {{'_Atomic' is a C11 extension}} 6 typedef _Atomic _Atomic _Atomic(int) atomic_int; // expected-warning {{duplicate '_Atomic' declarat… 12 typedef _Atomic const int const_atomic_int; // ext-warning {{'_Atomic' is a C11 extension}} 15 typedef const _Atomic(_Atomic int) const_atomic_int; // expected-error {{_Atomic cannot be applied … 21 typedef int *_Atomic atomic_int_ptr; // ext-warning {{'_Atomic' is a C11 extension}} 22 typedef _Atomic(int *) atomic_int_ptr; // ext-warning {{'_Atomic' is a C11 extension}} 23 typedef int (*_Atomic atomic_int_ptr); // ext-warning {{'_Atomic' is a C11 extension}} 25 typedef int _Atomic *int_atomic_ptr; // ext-warning {{'_Atomic' is a C11 extension}} 26 typedef _Atomic(int) *int_atomic_ptr; // ext-warning {{'_Atomic' is a C11 extension}} [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | atomic-type.cpp | 5 _Atomic(T) value; // expected-warning {{'_Atomic' is a C11 extension}} 7 void f() _Atomic; // expected-error {{expected ';' at end of declaration list}} 20 int &ovl1(_Atomic(int)); // expected-warning {{'_Atomic' is a C11 extension}} 22 long &ovl1(_Atomic(long)); // expected-warning {{'_Atomic' is a C11 extension}} 28 void test_overloading(int i, float f, _Atomic(int) ai, _Atomic(float) af, // expected-warning 2 {{'… in test_overloading() 72 _Atomic(X) z(X(0)); // expected-warning {{'_Atomic' is a C11 extension}} 75 _Atomic(X) e1(0); // expected-error {{cannot initialize}} \ 78 _Atomic(X) e2{0}; // expected-error {{illegal initializer}} \ in _Atomic() function 82 _Atomic(int) e3{0}; // expected-error {{illegal initializer}} \ in _Atomic() function 87 _Atomic(X) a; // expected-warning {{'_Atomic' is a C11 extension}} [all …]
|
| H A D | MicrosoftCompatibility.cpp | 16 _Atomic(int) z; 18 struct _Atomic { struct 19 _Atomic() {} in _Atomic() function 20 ~_Atomic() {} in ~_Atomic() argument 23 struct atomic : _Atomic<T> { 24 typedef _Atomic<T> TheBase; 27 _Atomic(int) alpha;
|
| /llvm-project-15.0.7/clang/test/Driver/ |
| H A D | riscv32-toolchain.c | 264 int align_a_c = __alignof(_Atomic(char)); 270 int align_a_i = __alignof(_Atomic(int)); 279 int align_a_l = __alignof(_Atomic(long)); 312 int size_a_c = sizeof(_Atomic(char)); 315 int size_a_s = sizeof(_Atomic(short)); 318 int size_a_i = sizeof(_Atomic(int)); 324 int size_a_wi = sizeof(_Atomic(wint_t)); 327 int size_a_l = sizeof(_Atomic(long)); 333 int size_a_p = sizeof(_Atomic(void*)); 336 int size_a_f = sizeof(_Atomic(float)); [all …]
|
| H A D | riscv64-toolchain.c | 220 int align_a_c = __alignof(_Atomic(char)); 226 int align_a_i = __alignof(_Atomic(int)); 235 int align_a_l = __alignof(_Atomic(long)); 268 int size_a_c = sizeof(_Atomic(char)); 271 int size_a_s = sizeof(_Atomic(short)); 274 int size_a_i = sizeof(_Atomic(int)); 280 int size_a_wi = sizeof(_Atomic(wint_t)); 283 int size_a_l = sizeof(_Atomic(long)); 289 int size_a_p = sizeof(_Atomic(void*)); 292 int size_a_f = sizeof(_Atomic(float)); [all …]
|
| /llvm-project-15.0.7/clang/lib/Headers/ |
| H A D | stdatomic.h | 84 typedef _Atomic(bool) atomic_bool; 86 typedef _Atomic(_Bool) atomic_bool; 88 typedef _Atomic(char) atomic_char; 89 typedef _Atomic(signed char) atomic_schar; 90 typedef _Atomic(unsigned char) atomic_uchar; 91 typedef _Atomic(short) atomic_short; 93 typedef _Atomic(int) atomic_int; 94 typedef _Atomic(unsigned int) atomic_uint; 95 typedef _Atomic(long) atomic_long; 96 typedef _Atomic(unsigned long) atomic_ulong; [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | atomic_ops.c | 8 _Atomic(int) i = 0; in foo() 9 _Atomic(short) j = 0; in foo() 32 extern _Atomic _Bool b; 48 extern _Atomic(_Complex int) x; 61 _Atomic(int) compound_add(_Atomic(int) in) { in compound_add() 70 _Atomic(int) compound_sub(_Atomic(int) in) { in compound_sub() 79 _Atomic(int) compound_xor(_Atomic(int) in) { in compound_xor() 88 _Atomic(int) compound_or(_Atomic(int) in) { in compound_or() 97 _Atomic(int) compound_and(_Atomic(int) in) { in compound_and() 106 _Atomic(int) compound_mul(_Atomic(int) in) { in compound_mul()
|
| H A D | c11atomics.c | 23 _Atomic(struct ptr) link; 36 _Atomic(_Bool) b; 37 _Atomic(int) i; 38 _Atomic(long long) l; 39 _Atomic(short) s; 40 _Atomic(char*) p; 41 _Atomic(float) f; 42 _Atomic(vector) v; 171 _Atomic(float) x = 2.0f; in testFloat() 274 _Atomic(S) x = (S){1,2,3,4}; in testStruct() [all …]
|
| H A D | c11atomics-ios.c | 10 void testFloat(_Atomic(float) *fp) { in testFloat() 21 _Atomic(float) x = 2.0f; in testFloat() 41 void testComplexFloat(_Atomic(_Complex float) *fp) { in testComplexFloat() 60 _Atomic(_Complex float) x = 2.0f; in testComplexFloat() 97 void testStruct(_Atomic(S) *fp) { in testStruct() 123 _Atomic(S) x = (S){1,2,3,4}; in testStruct() 147 void testPromotedStruct(_Atomic(PS) *fp) { in testPromotedStruct() 176 _Atomic(PS) x = (PS){1,2,3}; in testPromotedStruct() 205 PS test_promoted_load(_Atomic(PS) *addr) { in test_promoted_load() 223 void test_promoted_store(_Atomic(PS) *addr, PS *val) { in test_promoted_store() [all …]
|
| H A D | atomic-ops.c | 15 int fi1(_Atomic(int) *i) { in fi1() 41 void fi2(_Atomic(int) *i) { in fi2() 66 int fi3(_Atomic(int) *i) { in fi3() 117 _Bool fi4(_Atomic(int) *i) { in fi4() 166 float ff1(_Atomic(float) *d) { in ff1() 172 void ff2(_Atomic(float) *d) { in ff2() 273 int* fp1(_Atomic(int*) *p) { in fp1() 279 int* fp2(_Atomic(int*) *p) { in fp2() 301 X fs(_Atomic(X) *c) { in fs() 452 _Atomic(int) j = 12; in atomic_init_foo() [all …]
|
| H A D | big-atomic-ops.c | 17 int fi1(_Atomic(int) *i) { in fi1() 37 void fi2(_Atomic(int) *i) { in fi2() 56 int fi3(_Atomic(int) *i) { in fi3() 92 _Bool fi4(_Atomic(int) *i) { in fi4() 114 float ff1(_Atomic(float) *d) { in ff1() 120 void ff2(_Atomic(float) *d) { in ff2() 126 float ff3(_Atomic(float) *d) { in ff3() 130 int* fp1(_Atomic(int*) *p) { in fp1() 136 int* fp2(_Atomic(int*) *p) { in fp2() 158 X fs(_Atomic(X) *c) { in fs() [all …]
|
| H A D | atomic-arm64.c | 18 extern _Atomic(_Bool) a_bool; 19 extern _Atomic(float) a_float; 20 extern _Atomic(void*) a_pointer; 21 extern _Atomic(pointer_pair_t) a_pointer_pair; 22 extern _Atomic(pointer_quad_t) a_pointer_quad;
|
| H A D | atomic-ops-libcall.c | 11 int *test_c11_atomic_fetch_add_int_ptr(_Atomic(int *) *p) { in test_c11_atomic_fetch_add_int_ptr() 17 int *test_c11_atomic_fetch_sub_int_ptr(_Atomic(int *) *p) { in test_c11_atomic_fetch_sub_int_ptr() 23 int test_c11_atomic_fetch_add_int(_Atomic(int) *p) { in test_c11_atomic_fetch_add_int() 29 int test_c11_atomic_fetch_sub_int(_Atomic(int) *p) { in test_c11_atomic_fetch_sub_int()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | atomic-type.c | 6 _Atomic(int) t1; 7 _Atomic(int) *t2 = &t1; 10 _Atomic(_Atomic(int)*) t3; in f() 11 _Atomic(_Atomic(int)*) *t4[2] = { &t3, 0 }; in f() 14 extern _Atomic(int (*)(int(*)[], int(*)[10])) mergetest; 15 extern _Atomic(int (*)(int(*)[10], int(*)[])) mergetest; 16 extern _Atomic(int (*)(int(*)[10], int(*)[10])) mergetest; 18 _Atomic(int(void)) error1; // expected-error {{_Atomic cannot be applied to function type}} 20 _Atomic(int[10]) error3; // expected-error {{_Atomic cannot be applied to array type}} 21 _Atomic(const int) error4; // expected-error {{_Atomic cannot be applied to qualified type}} [all …]
|
| H A D | atomic-ops.c | 79 _Static_assert(atomic_is_lock_free((_Atomic(__int128)*)0), ""); // expected-no-error 130 void f(_Atomic(int) *i, const _Atomic(int) *ci, in f() 131 _Atomic(int*) *p, _Atomic(float) *f, _Atomic(double) *d, in f() 132 _Atomic(long double) *ld, in f() 316 _Atomic(int*) PR12527_a; 320 typedef struct { _Atomic(_Bool) flag; } flag; in PR16931() 325 void memory_checks(_Atomic(int) *Ap, int *p, int val) { in memory_checks() 601 volatile _Atomic(int) vai; in nullPointerWarning() 602 _Atomic(int) ai; in nullPointerWarning() 605 volatile _Atomic(int*) vap; in nullPointerWarning() [all …]
|
| H A D | auto-type.c | 35 _Atomic __auto_type aat1 = a; in Issue53652() 36 _Atomic __auto_type paat = &a; in Issue53652() 39 _Atomic(__auto_type) aat2 = a; // expected-error {{'__auto_type' not allowed here}} \ in Issue53652() 54 _Static_assert(__builtin_types_compatible_p(__typeof(aat1), _Atomic int), ""); in Issue53652() 55 _Static_assert(__builtin_types_compatible_p(_Atomic int, __typeof(aat1)), ""); in Issue53652() 56 _Static_assert(__builtin_types_compatible_p(__typeof(paat), _Atomic(int *)), ""); in Issue53652() 57 _Static_assert(__builtin_types_compatible_p(_Atomic(int *), __typeof(paat)), ""); in Issue53652()
|
| H A D | atomic-expr.c | 5 _Atomic(unsigned int) data1; 6 int _Atomic data2; 69 _Atomic int x; in func_15() 84 _Atomic struct { int val; } x, *xp; in func_16() 88 _Atomic union { in func_16() 102 _Atomic(struct { int val; }) z; in func_16()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | atomicinit.cpp | 13 _Atomic(int) i; 29 _Atomic(B) b; 49 _Atomic(bool) ab; 73 _Atomic(X) b(X(2)); 77 _Atomic(X) c{X(3)}; in _Atomic() function 80 _Atomic(X) a; 81 _Atomic(int) b; 97 _Atomic(X) b(X(2)); 98 _Atomic(X) c{X(3)}; in _Atomic() function 101 _Atomic(X) a; [all …]
|
| H A D | atomic-builtin-compound-assignment-overload.cpp | 3 _Atomic unsigned an_atomic_uint; 20 void enum3(_Atomic unsigned &an_atomic_uint_param) { in enum3() 26 void enum4(_Atomic unsigned &an_atomic_uint_param) { in enum4() 31 volatile _Atomic unsigned an_volatile_atomic_uint; 46 void enum7(volatile _Atomic unsigned &an_volatile_atomic_uint_param) { in enum7() 52 void enum8(volatile _Atomic unsigned &an_volatile_atomic_uint_param) { in enum8()
|
| /llvm-project-15.0.7/clang/test/CodeGen/X86/ |
| H A D | x86-atomic-long_double.c | 4 long double testinc(_Atomic long double *addr) { in testinc() 66 long double testdec(_Atomic long double *addr) { in testdec() 128 long double testcompassign(_Atomic long double *addr) { in testcompassign() 201 long double testassign(_Atomic long double *addr) { in testassign() 239 long double test_volatile_inc(volatile _Atomic long double *addr) { in test_volatile_inc() 300 long double test_volatile_dec(volatile _Atomic long double *addr) { in test_volatile_dec() 361 long double test_volatile_compassign(volatile _Atomic long double *addr) { in test_volatile_compassign() 433 long double test_volatile_assign(volatile _Atomic long double *addr) { in test_volatile_assign()
|
| /llvm-project-15.0.7/clang/test/CodeGen/PowerPC/ |
| H A D | atomic-alignment.c | 13 _Atomic(char) c; 16 _Atomic(short) s; 19 _Atomic(int) i; 24 _Atomic(long) l; 27 _Atomic(long long) ll; 36 _Atomic(O) o; 45 _Atomic(Q) q;
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | property-atomic-bool.m | 11 // CHECK: TypedefDecl {{.*}} referenced AtomicBool '_Atomic(_Bool)' 12 // CHECK: AtomicType {{.*}} '_Atomic(_Bool)' 15 // CHECK: ObjCPropertyDecl {{.*}} p '_Atomic(_Bool)' {{.*}} nonatomic 25 // CHECK: ObjCIvarDecl {{.*}} p '_Atomic(_Bool)' protected 26 // CHECK: ObjCPropertyDecl {{.*}} p '_Atomic(_Bool)' 31 // CHECK: ObjCIvarDecl {{.*}} p 'AtomicBool':'_Atomic(_Bool)' protected 32 // CHECK: ObjCPropertyDecl {{.*}} p 'AtomicBool':'_Atomic(_Bool)' 37 typedef _Atomic(_Bool) AtomicBool; 40 @property(nonatomic) _Atomic(_Bool) p; 52 _Atomic(_Bool) p; [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | atomics.c | 27 …uint32_t result = __c11_atomic_fetch_add((volatile _Atomic(uint32_t) *)&s->refCount,- 1, memory_or… in test_atomic_fetch_add() 40 …uint32_t result = __c11_atomic_load((volatile _Atomic(uint32_t) *)&s->refCount, memory_order_relax… in test_atomic_load() 52 __c11_atomic_store((volatile _Atomic(uint32_t) *)&s->refCount, 2, memory_order_relaxed); in test_atomic_store() 62 …uint32_t result = __c11_atomic_exchange((volatile _Atomic(uint32_t) *)&s->refCount, 2, memory_orde… in test_atomic_exchange() 77 …_Bool result = __c11_atomic_compare_exchange_strong((volatile _Atomic(uint32_t) *)&s->refCount, &e… in test_atomic_compare_exchange_strong() 89 …_Bool result = __c11_atomic_compare_exchange_weak((volatile _Atomic(uint32_t) *)&s->refCount, &exp… in test_atomic_compare_exchange_weak() 99 _Atomic(int) x = input; in test_atomic_compare()
|
| /llvm-project-15.0.7/compiler-rt/lib/builtins/ |
| H A D | atomic.c | 68 __c11_atomic_store((_Atomic(uint32_t) *)&l->_count, 1, __ATOMIC_RELEASE); in unlock() 75 while (!__c11_atomic_compare_exchange_weak((_Atomic(uint32_t) *)&l->_count, in lock() 97 typedef _Atomic(uintptr_t) Lock; 180 *((type *)dest) = __c11_atomic_load((_Atomic(type) *)src, model); \ in __atomic_load_c() 194 __c11_atomic_store((_Atomic(type) *)dest, *(type *)src, model); \ in __atomic_store_c() 213 (_Atomic(type) *)ptr, (type *)expected, *(type *)desired, success, \ in __atomic_compare_exchange_c() 234 __c11_atomic_exchange((_Atomic(type) *)ptr, *(type *)val, model); \ in __atomic_exchange_c() 267 return __c11_atomic_load((_Atomic(type) *)src, model); \ 280 __c11_atomic_store((_Atomic(type) *)dest, val, model); \ 295 return __c11_atomic_exchange((_Atomic(type) *)dest, val, model); \ [all …]
|
| /llvm-project-15.0.7/clang/test/SemaOpenCL/ |
| H A D | atomic-ops.cl | 27 …pected-error {{address argument to atomic operation must be a pointer to _Atomic type ('__generic … 28 …eration must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const __… 33 …pected-error {{address argument to atomic operation must be a pointer to _Atomic type ('__generic … 35 …eration 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 '__consta… 45 …operation must be a pointer to non-constant _Atomic type ('__constant atomic_int *' (aka '__consta… 52 …ork_group); // expected-error {{address argument to atomic operation must be a pointer to _Atomic}} 60 … a pointer to atomic integer ('__generic atomic_float *' (aka '__generic _Atomic(float) *') invali… 64 … a pointer to atomic integer ('__generic atomic_float *' (aka '__generic _Atomic(float) *') invali… 80 …eration must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const __… [all …]
|