Home
last modified time | relevance | path

Searched refs:address_space (Results 1 – 25 of 140) sorted by relevance

123456

/external/llvm-project/clang/test/SemaTemplate/
Daddress_space-dependent.cpp5 …int __attribute__((address_space(I))) __attribute__((address_space(J))) * Y; // expected-error {{… in car()
6 …int *__attribute__((address_space(I))) __attribute__((address_space(J))) * Z; // expected-error {{… in car()
8 …__attribute__((address_space(I))) int local; // expected-error {{automatic variable qualifi… in car()
9 …__attribute__((address_space(J))) int array[5]; // expected-error {{automatic variable qualifi… in car()
10 …__attribute__((address_space(I))) int arrarr[5][5]; // expected-error {{automatic variable qualifi… in car()
12 …__attribute__((address_space(J))) * x; // expected-error {{C++ requires a type specifier for all d… in car()
14 __attribute__((address_space(I))) float *B; in car()
16 typedef __attribute__((address_space(J))) int AS2Int; in car()
23 } s __attribute((address_space(I))) = {1, 1}; in car()
28 …__attribute__((address_space(I))) int as_field; // expected-error {{field may not be qualified wit…
[all …]
Daddress-spaces.cpp13 typedef int __attribute__((address_space(1))) int_1;;
14 typedef int __attribute__((address_space(2))) int_2;;
15 typedef int __attribute__((address_space(1))) *int_1_ptr;
41 struct is_pointer_in_address_space_1<T __attribute__((address_space(1))) *> {
58 static __attribute__((address_space(3))) int array[17]; in test_accept_any_pointer()
66 identity<T> accept_arg_in_address_space_1(__attribute__((address_space(1))) T &ir1);
72 static int __attribute__((address_space(1))) int_1; in test_arg_in_address_space_1()
74 identity<int __attribute__((address_space(1)))> ii2 = accept_any_arg(int_1); in test_arg_in_address_space_1()
78 template<typename T> int &order1(__attribute__((address_space(1))) T&);
82 static __attribute__((address_space(1))) int i1; in test_order1()
/external/clang/test/SemaCXX/
Daddress-space-initialize.cpp3 __attribute__((address_space(42)))
6 __attribute__((address_space(42)))
9 __attribute__((address_space(42)))
12 __attribute__((address_space(42)))
15 __attribute__((address_space(42)))
19 __attribute__((address_space(9999)))
23 __attribute__((address_space(42))) int* __attribute__((address_space(42))) ptr_in_same_addr_space =…
24 __attribute__((address_space(42))) int* __attribute__((address_space(999))) ptr_in_different_addr_s…
Daddress-space-newdelete.cpp6 typedef int __attribute__((address_space(1))) int_1;
10 …(void)new __attribute__((address_space(1))) int; // expected-error{{'new' cannot allocate objects … in test_new()
12 …(void)new __attribute__((address_space(1))) int [5]; // expected-error{{'new' cannot allocate obje… in test_new()
16 …(void)new (p) __attribute__((address_space(1))) int; // expected-error{{'new' cannot allocate obje… in test_new()
18 …(void)new (p) __attribute__((address_space(1))) int [5]; // expected-error{{'new' cannot allocate … in test_new()
Daddress-space-conversion.cpp10 typedef void __attribute__((address_space(1))) *void_ptr_1;
11 typedef void __attribute__((address_space(2))) *void_ptr_2;
14 typedef int __attribute__((address_space(1))) *int_ptr_1;
15 typedef int __attribute__((address_space(2))) *int_ptr_2;
18 typedef A __attribute__((address_space(1))) *A_ptr_1;
19 typedef A __attribute__((address_space(2))) *A_ptr_2;
22 typedef B __attribute__((address_space(1))) *B_ptr_1;
23 typedef B __attribute__((address_space(2))) *B_ptr_2;
28 const int __attribute__((address_space(1))) *cip1) { in test_const_cast()
134 const void __attribute__((address_space(1))) *cvp1) { in test_reinterpret_cast()
[all …]
/external/llvm-project/clang/test/SemaCXX/
Daddress-space-initialize.cpp3 __attribute__((address_space(42)))
6 __attribute__((address_space(42)))
9 __attribute__((address_space(42)))
12 __attribute__((address_space(42)))
15 __attribute__((address_space(42)))
19 __attribute__((address_space(9999)))
23 __attribute__((address_space(42))) int* __attribute__((address_space(42))) ptr_in_same_addr_space =…
24 __attribute__((address_space(42))) int* __attribute__((address_space(999))) ptr_in_different_addr_s…
Daddress-space-newdelete.cpp6 typedef int __attribute__((address_space(1))) int_1;
10 …(void)new __attribute__((address_space(1))) int; // expected-error{{'new' cannot allocate objects … in test_new()
12 …(void)new __attribute__((address_space(1))) int [5]; // expected-error{{'new' cannot allocate obje… in test_new()
16 …(void)new (p) __attribute__((address_space(1))) int; // expected-error{{'new' cannot allocate obje… in test_new()
18 …(void)new (p) __attribute__((address_space(1))) int [5]; // expected-error{{'new' cannot allocate … in test_new()
Daddress-space-conversion.cpp10 typedef void __attribute__((address_space(1))) *void_ptr_1;
11 typedef void __attribute__((address_space(2))) *void_ptr_2;
14 typedef int __attribute__((address_space(1))) *int_ptr_1;
15 typedef int __attribute__((address_space(2))) *int_ptr_2;
18 typedef A __attribute__((address_space(1))) *A_ptr_1;
19 typedef A __attribute__((address_space(2))) *A_ptr_2;
22 typedef B __attribute__((address_space(1))) *B_ptr_1;
23 typedef B __attribute__((address_space(2))) *B_ptr_2;
28 const int __attribute__((address_space(1))) *cip1) { in test_const_cast()
134 const void __attribute__((address_space(1))) * cvp1) { in test_reinterpret_cast()
[all …]
Damdgpu-sizeof-alignof.cpp7 typedef __attribute__((address_space(1))) void *global_ptr_t;
8 typedef __attribute__((address_space(2))) void *constant_ptr_t;
9 typedef __attribute__((address_space(3))) void *local_ptr_t;
10 typedef __attribute__((address_space(5))) void *private_ptr_t;
/external/clang/test/Sema/
Daddress_spaces.c3 #define _AS1 __attribute__((address_space(1)))
4 #define _AS2 __attribute__((address_space(2)))
5 #define _AS3 __attribute__((address_space(3)))
22 __attribute__((address_space(-1))) int *_boundsA; // expected-error {{address space is negative}} in foo()
23 __attribute__((address_space(0x7FFFFF))) int *_boundsB; in foo()
24 …__attribute__((address_space(0x1000000))) int *_boundsC; // expected-error {{address space is larg… in foo()
26 …__attribute__((address_space(4294967500))) int *_boundsD; // expected-error {{address space is lar… in foo()
33 } s __attribute ((address_space(1))) = {1, 1};
37 __attribute__((address_space(256))) void * * const base = 0;
42 __attribute__((address_space(1))) char test3_array[10];
[all …]
/external/llvm-project/clang/test/Sema/
Daddress_spaces.c3 #define _AS1 __attribute__((address_space(1)))
4 #define _AS2 __attribute__((address_space(2)))
5 #define _AS3 __attribute__((address_space(3)))
23 __attribute__((address_space(-1))) int *_boundsA; // expected-error {{address space is negative}} in foo()
24 …__attribute__((address_space(0x7FFFFF))) int *_boundsB; // expected-error {{address space is large… in foo()
25 …__attribute__((address_space(0x1000000))) int *_boundsC; // expected-error {{address space is larg… in foo()
27 …__attribute__((address_space(4294967500))) int *_boundsD; // expected-error {{address space is lar… in foo()
34 } s __attribute ((address_space(1))) = {1, 1};
38 __attribute__((address_space(256))) void * * const base = 0;
43 __attribute__((address_space(1))) char test3_array[10];
[all …]
Daddress_space_print_macro.c3 #define AS1 __attribute__((address_space(1)))
4 #define AS2 __attribute__((address_space(2), annotate("foo")))
5 #define AS_ND __attribute__((address_space(2), noderef))
7 #define AS(i) address_space(i)
9 #define AS5 __attribute__((address_space(5))) char
13 …__attribute__((address_space(1))) int *q = p; // expected-error{{initializing '__attribute__((addr… in normal_case()
20 __attribute__((address_space(1))) char test_array[10];
43 …__attribute__((address_space(2))) int *y = x; // expected-warning{{casting to dereferenceable poin… in multiple_attrs()
49 #define ATTRS __attribute__((address_space(1))) // expected-warning{{'ATTRS' macro redefined}} in override_macro_name()
58 ATTRS2 __attribute__((address_space(1))) int *x; in partial_macro_declaration()
[all …]
Dexprs.c187 typedef int __attribute__((address_space(256))) int_AS256;
193 *(int __attribute__((address_space(256))) *)0 = 0; // Ok. in test19()
194 …*(int __attribute__((address_space(0))) *)0 = 0; // expected-warning {{indirection of non-volati… in test19()
202 …int x3 = *(int __attribute__((address_space(0))) *)0; // exp… in test19()
206 int_AS256 *p1 = &(*(int __attribute__((address_space(256))) *)0); // Ok. in test19()
207 int __attribute__((address_space(0))) *p2 = &(*(int __attribute__((address_space(0))) *)0); // Ok. in test19()
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dhsa-metadata-from-llvm-ir-full-v3.ll36 ; CHECK-NEXT: - .address_space: global
71 ; CHECK-NEXT: - .address_space: global
110 ; CHECK-NEXT: - .address_space: global
145 ; CHECK-NEXT: - .address_space: global
149 ; CHECK-NEXT: - .address_space: global
153 ; CHECK-NEXT: - .address_space: global
157 ; CHECK-NEXT: - .address_space: global
188 ; CHECK-NEXT: - .address_space: global
192 ; CHECK-NEXT: - .address_space: global
196 ; CHECK-NEXT: - .address_space: global
[all …]
Dhsa-metadata-hidden-args-v3.ll9 ; CHECK-NEXT: - .address_space: global
14 ; CHECK-NEXT: - .address_space: global
19 ; CHECK-NEXT: - .address_space: global
39 ; CHECK-NEXT: - .address_space: global
44 ; CHECK-NEXT: - .address_space: global
49 ; CHECK-NEXT: - .address_space: global
72 ; CHECK-NEXT: - .address_space: global
77 ; CHECK-NEXT: - .address_space: global
82 ; CHECK-NEXT: - .address_space: global
108 ; CHECK-NEXT: - .address_space: global
[all …]
Dhsa-metadata-images-v3.ll21 ; CHECK: - .address_space: global
27 ; CHECK: - .address_space: global
33 ; CHECK: - .address_space: global
39 ; CHECK: - .address_space: global
45 ; CHECK: - .address_space: global
51 ; CHECK: - .address_space: global
57 ; CHECK: - .address_space: global
63 ; CHECK: - .address_space: global
69 ; CHECK: - .address_space: global
75 ; CHECK: - .address_space: global
[all …]
/external/clang/test/SemaTemplate/
Daddress-spaces.cpp13 typedef int __attribute__((address_space(1))) int_1;;
14 typedef int __attribute__((address_space(2))) int_2;;
15 typedef int __attribute__((address_space(1))) *int_1_ptr;
41 struct is_pointer_in_address_space_1<T __attribute__((address_space(1))) *> {
58 static __attribute__((address_space(3))) int array[17]; in test_accept_any_pointer()
66 identity<T> accept_arg_in_address_space_1(__attribute__((address_space(1))) T &ir1);
72 static int __attribute__((address_space(1))) int_1; in test_arg_in_address_space_1()
74 identity<int __attribute__((address_space(1)))> ii2 = accept_any_arg(int_1); in test_arg_in_address_space_1()
78 template<typename T> int &order1(__attribute__((address_space(1))) T&);
82 static __attribute__((address_space(1))) int i1; in test_order1()
/external/llvm-project/clang/test/CodeGen/
Daddress-space.c5 int foo __attribute__((address_space(1)));
8 int ban[10] __attribute__((address_space(1)));
11 int a __attribute__((address_space(0)));
23 __attribute__((address_space(2))) int *A, *B;
44 void test4(MyStruct __attribute__((address_space(2))) *pPtr) { in test4()
58 void __attribute__((address_space(1)))*
59 void_ptr_arithmetic_test(void __attribute__((address_space(1))) *arg) { in void_ptr_arithmetic_test()
/external/llvm-project/clang/test/SemaOpenCL/
Dnumbered-address-space.cl4 void test_numeric_as_to_generic_implicit_cast(__attribute__((address_space(3))) int *as3_ptr, float…
8 void test_numeric_as_to_generic_explicit_cast(__attribute__((address_space(3))) int *as3_ptr, float…
14 …__attribute__((address_space(3))) int *as3_ptr = generic_ptr; // expected-error{{initializing '__a…
19 …__attribute__((address_space(3))) int *as3_ptr = (__attribute__((address_space(3))) int *)generic_…
22 void test_generic_as_to_builtin_parameter_explicit_cast_numeric(__attribute__((address_space(3))) i…
24 …f((__attribute__((address_space(3))) float*) generic_ptr, src, 0, 0, false); // expected-error {{p…
27 void test_generic_as_to_builtin_parameterimplicit_cast_numeric(__attribute__((address_space(3))) in…
/external/llvm-project/clang/test/CodeGenCXX/
Dmangle-address-space.cpp13 void f0(char __attribute__((address_space(1))) *p) { } in f0()
16 typedef OpaqueType __attribute__((address_space(100))) * OpaqueTypePtr;
24 void f1(char __attribute__((address_space(1))) const *p) {} in f1()
29 __attribute__((address_space(1))) float *f1(char __attribute__((address_space(2))) const *p) { retu… in f1()
36 __attribute__((address_space(1))) float f2(char __attribute__((address_space(2))) const * const p) … in f2()
/external/clang/test/CodeGen/
Daddress-space.c4 int foo __attribute__((address_space(1)));
7 int ban[10] __attribute__((address_space(1)));
19 __attribute__((address_space(2))) int *A, *B;
38 void test4(MyStruct __attribute__((address_space(2))) *pPtr) { in test4()
/external/llvm-project/clang/test/AST/
Daddress_space_attribute.cpp16 __attribute__((address_space(1))) int *x; in func()
22 __attribute__((address_space(I))) int *y; in func()
25 [[clang::address_space(3)]] int *z; in func()
/external/clang/test/CodeGenCXX/
Dmangle-address-space.cpp6 void f0(char __attribute__((address_space(1))) *p) { } in f0()
9 typedef OpaqueType __attribute__((address_space(100))) * OpaqueTypePtr;
15 void f1(char __attribute__((address_space(1))) const *p) {} in f1()
/external/clang/test/SemaObjCXX/
Dparameterized_classes_arc.mm74address_space(256))) id> *obj) { // expected-error {{type argument '__attribute__((address_space(2…
86 void test2f() { test2_temp<__attribute__((address_space(256))) id>(); }
118address_space(256))) id> // expected-error {{type bound '__attribute__((address_space(256))) id' f…
/external/llvm-project/clang/lib/Headers/
D__clang_hip_libdevice_declares.h55 __attribute__((address_space(5))) int *);
74 __attribute__((address_space(5))) float *);
87 __attribute__((address_space(5))) int *);
99 __attribute__((address_space(5))) float *);
101 __attribute__((address_space(5))) float *);
185 __attribute__((address_space(5))) int *);
201 __attribute__((address_space(5))) double *);
215 __attribute__((address_space(5))) int *);
228 __attribute__((address_space(5))) double *);
230 __ocml_sincospi_f64(double, __attribute__((address_space(5))) double *);

123456