/external/clang/test/Parser/ |
D | atomic.c | 3 typedef _Atomic(int) atomic_int; 4 typedef _Atomic int atomic_int; 5 typedef _Atomic _Atomic _Atomic(int) atomic_int; // expected-warning {{duplicate '_Atomic' declarat… 10 typedef _Atomic const int const_atomic_int; 11 typedef const _Atomic int const_atomic_int; 12 typedef const _Atomic(int) const_atomic_int; 13 typedef const _Atomic(_Atomic int) const_atomic_int; // expected-error {{_Atomic cannot be applied … 14 typedef _Atomic const_int const_atomic_int; 15 typedef _Atomic(const_int) const_atomic_int; // expected-error {{_Atomic cannot be applied to quali… 17 typedef int *_Atomic atomic_int_ptr; [all …]
|
D | opencl-atomics-cl20.cl | 24 // OpenCL v2.0 s6.13.11.8, _Atomic type specifier and _Atomic type qualifier 26 _Atomic int i; // expected-error {{use of undeclared identifier '_Atomic'}} 41 // expected-error@-26 {{use of type 'atomic_long' (aka '_Atomic(long)') requires cl_khr_int64_base_… 42 // expected-error@-27 {{use of type 'atomic_long' (aka '_Atomic(long)') requires cl_khr_int64_exten… 43 // expected-error@-27 {{use of type 'atomic_ulong' (aka '_Atomic(unsigned long)') requires cl_khr_i… 44 // expected-error@-28 {{use of type 'atomic_ulong' (aka '_Atomic(unsigned long)') requires cl_khr_i… 45 // expected-error@-27 {{use of type 'atomic_double' (aka '_Atomic(double)') requires cl_khr_int64_b… 46 // expected-error@-28 {{use of type 'atomic_double' (aka '_Atomic(double)') requires cl_khr_int64_e… 47 // expected-error@-29 {{use of type 'atomic_double' (aka '_Atomic(double)') requires cl_khr_fp64 ex… 48 // expected-error-re@-28 {{use of type 'atomic_intptr_t' (aka '_Atomic({{.+}})') requires cl_khr_in… [all …]
|
D | asm.c | 16 asm _Atomic (""); // expected-warning {{ignored _Atomic qualifier on asm}} in f2()
|
/external/clang/test/SemaCXX/ |
D | atomic-type.cpp | 5 _Atomic(T) value; 7 void f() _Atomic; // expected-error {{expected ';' at end of declaration list}} 20 int &ovl1(_Atomic(int)); 21 int &ovl1(_Atomic int); // ok, redeclaration 22 long &ovl1(_Atomic(long)); 23 float &ovl1(_Atomic(float)); 24 double &ovl1(_Atomic(A const *const *)); 25 double &ovl1(A const *const *_Atomic); 26 short &ovl1(_Atomic(A **)); 28 void test_overloading(int i, float f, _Atomic(int) ai, _Atomic(float) af, in test_overloading() [all …]
|
D | MicrosoftCompatibility.cpp | 12 _Atomic(int) z; 14 struct _Atomic { struct 15 _Atomic() {} in _Atomic() argument 16 ~_Atomic() {} in ~_Atomic() argument 19 struct atomic : _Atomic<T> { 20 typedef _Atomic<T> TheBase; 23 _Atomic(int) alpha;
|
D | return.cpp | 58 _Atomic(int) atomic(); 60 _Atomic // expected-warning {{'_Atomic' type qualifier on return type has no effect}}
|
/external/clang/lib/Headers/ |
D | stdatomic.h | 88 typedef _Atomic(bool) atomic_bool; 90 typedef _Atomic(_Bool) atomic_bool; 92 typedef _Atomic(char) atomic_char; 93 typedef _Atomic(signed char) atomic_schar; 94 typedef _Atomic(unsigned char) atomic_uchar; 95 typedef _Atomic(short) atomic_short; 96 typedef _Atomic(unsigned short) atomic_ushort; 97 typedef _Atomic(int) atomic_int; 98 typedef _Atomic(unsigned int) atomic_uint; 99 typedef _Atomic(long) atomic_long; [all …]
|
/external/clang/test/Sema/ |
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()) error1; // expected-error {{_Atomic cannot be applied to function type}} 19 _Atomic(struct ErrorS) error2; // expected-error {{_Atomic cannot be applied to incomplete type}} e… 20 _Atomic(int[10]) error3; // expected-error {{_Atomic cannot be applied to array type}} [all …]
|
D | atomic-compare.c | 3 void f(_Atomic(int) a, _Atomic(int) b) { in f() 23 typedef _Atomic(int) Ty;
|
D | atomic-expr.c | 4 _Atomic(unsigned int) data1; 5 int _Atomic data2;
|
D | types.c | 88 int &*_Atomic null_type_0; // expected-error {{expected identifier or '('}} 90 int ^_Atomic null_type_2; // expected-error {{block pointer to non-function type is invalid}}
|
D | atomic-ops.c | 45 _Static_assert(atomic_is_lock_free((_Atomic(__int128)*)0), ""); // expected-error {{not an integral… 88 void f(_Atomic(int) *i, const _Atomic(int) *ci, in f() 89 _Atomic(int*) *p, _Atomic(float) *d, in f() 262 _Atomic(int*) PR12527_a; 266 typedef struct { _Atomic(_Bool) flag; } flag; in PR16931() 271 void memory_checks(_Atomic(int) *Ap, int *p, int val) { in memory_checks() 297 (struct Incomplete * _Atomic *)0, // expected-error {{incomplete type 'struct Incomplete'}} in memory_checks()
|
/external/clang/test/CodeGen/ |
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; 158 void testFloat(_Atomic(float) *fp) { in testFloat() 171 _Atomic(float) x = 2.0f; in testFloat() [all …]
|
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 …]
|
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()
|
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() 151 _Complex float fc(_Atomic(_Complex float) *c) { in fc() [all …]
|
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() 158 float ff1(_Atomic(float) *d) { in ff1() 164 void ff2(_Atomic(float) *d) { in ff2() 170 float ff3(_Atomic(float) *d) { in ff3() 251 int* fp1(_Atomic(int*) *p) { in fp1() 257 int* fp2(_Atomic(int*) *p) { in fp2() 272 _Complex float fc(_Atomic(_Complex float) *c) { in fc() [all …]
|
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;
|
D | atomic_ops.c | 8 _Atomic(int) i = 0; in foo() 9 _Atomic(short) j = 0; in foo() 23 extern _Atomic _Bool b; 33 extern _Atomic(_Complex int) x;
|
D | atomic-ops-libcall.c | 8 int *test_c11_atomic_fetch_add_int_ptr(_Atomic(int *) *p) { in test_c11_atomic_fetch_add_int_ptr() 14 int *test_c11_atomic_fetch_sub_int_ptr(_Atomic(int *) *p) { in test_c11_atomic_fetch_sub_int_ptr() 20 int test_c11_atomic_fetch_add_int(_Atomic(int) *p) { in test_c11_atomic_fetch_add_int() 26 int test_c11_atomic_fetch_sub_int(_Atomic(int) *p) { in test_c11_atomic_fetch_sub_int()
|
D | x86_64-atomic-128.c | 13 __int128 test_c11_call(_Atomic __int128 *addr, __int128 val) { in test_c11_call() 25 __int128 test_expression(_Atomic __int128 *addr) { in test_expression()
|
/external/clang/test/CodeGenCXX/ |
D | atomicinit.cpp | 4 typedef _Atomic(int) AtomicInt; 13 _Atomic(int) i; 29 _Atomic(B) b; 40 void atomic_init_bool(_Atomic(bool) *ab, bool b) { in atomic_init_bool() 49 _Atomic(bool) ab; 69 _Atomic(X) a = X(1); 73 _Atomic(X) b(X(2)); 77 _Atomic(X) c{X(3)}; in _Atomic() function 80 _Atomic(X) a; 81 _Atomic(int) b; [all …]
|
/external/boringssl/src/crypto/ |
D | refcount_c11.c | 29 static_assert(alignof(CRYPTO_refcount_t) == alignof(_Atomic CRYPTO_refcount_t), 31 static_assert(sizeof(CRYPTO_refcount_t) == sizeof(_Atomic CRYPTO_refcount_t), 38 _Atomic CRYPTO_refcount_t *count = (_Atomic CRYPTO_refcount_t *) in_count; in CRYPTO_refcount_inc() 50 _Atomic CRYPTO_refcount_t *count = (_Atomic CRYPTO_refcount_t *)in_count; in CRYPTO_refcount_dec_and_test_zero()
|
/external/compiler-rt/lib/builtins/ |
D | atomic.c | 60 __c11_atomic_store((_Atomic(uint32_t)*)&l->_count, 1, __ATOMIC_RELEASE); in unlock() 67 while (!__c11_atomic_compare_exchange_weak((_Atomic(uint32_t)*)&l->_count, &old, in lock() 90 typedef _Atomic(uintptr_t) Lock; 164 *((type*)dest) = __c11_atomic_load((_Atomic(type)*)src, model);\ in __atomic_load_c() 178 __c11_atomic_store((_Atomic(type)*)dest, *(type*)dest, model);\ in __atomic_store_c() 196 return __c11_atomic_compare_exchange_strong((_Atomic(type)*)ptr, (type*)expected,\ in __atomic_compare_exchange_c() 216 *(type*)old = __c11_atomic_exchange((_Atomic(type)*)ptr, *(type*)val,\ in __atomic_exchange_c() 243 return __c11_atomic_load((_Atomic(type)*)src, model);\ 256 __c11_atomic_store((_Atomic(type)*)dest, val, model);\ 271 return __c11_atomic_exchange((_Atomic(type)*)dest, val, model);\ [all …]
|
/external/libcxx/include/ |
D | atomic | 561 #define _Atomic(x) __gcc_atomic::__gcc_atomic_t<x> 602 __gcc_atomic::__can_assign<volatile _Atomic(_Tp)*, _Tp>::value>::type 603 __c11_atomic_init(volatile _Atomic(_Tp)* __a, _Tp __val) { 610 !__gcc_atomic::__can_assign<volatile _Atomic(_Tp)*, _Tp>::value && 611 __gcc_atomic::__can_assign< _Atomic(_Tp)*, _Tp>::value>::type 612 __c11_atomic_init(volatile _Atomic(_Tp)* __a, _Tp __val) { 625 static inline void __c11_atomic_init(_Atomic(_Tp)* __a, _Tp __val) { 638 static inline void __c11_atomic_store(volatile _Atomic(_Tp)* __a, _Tp __val, 645 static inline void __c11_atomic_store(_Atomic(_Tp)* __a, _Tp __val, 652 static inline _Tp __c11_atomic_load(volatile _Atomic(_Tp)* __a, [all …]
|