| /llvm-project-15.0.7/clang/test/SemaOpenCLCXX/ |
| H A D | addrspace-constructors.clcpp | 3 __constant int g1; // expected-error {{variable in constant address space must be initialized}} 4 __constant int g2 = 0; 16 constexpr X() __constant : x(0) {} 17 constexpr X(int x) __constant : x(x) {} 30 __constant X cx1; 31 __constant X cx2(1); 38 __constant Y cy1; // expected-error{{variable in constant address space must be initialized}} 39 …__constant Y cy2(1); // expected-error{{no matching constructor for initialization of '__constant … 52 constexpr Z() __constant : z(0) {} 57 …constexpr W() __constant = default; // expected-error {{defaulted definition of default constructo…
|
| H A D | address-space-lambda.clcpp | 16 …__constant auto err = [&]() {}; //expected-note{{candidate function not viable: 'this' object is i… 17 … //expected-error-re{{no matching function for call to object of type '__constant (lambda at {{.*}… 24 …(*(__constant decltype(llambda) *)nullptr)(); //expected-error{{multiple address spaces specified … 43 …__constant auto const1 = []() __private{}; //expected-note{{candidate function not viable: 'this' … 49 …const1(); //expected-error{{no matching function for call to object of type '__constant (lambda at… 50 …__constant auto const2 = []() __generic{}; //expected-note{{candidate function not viable: 'this' … 56 …const2(); //expected-error{{no matching function for call to object of type '__constant (lambda at… 57 //CHECK: |-CXXMethodDecl {{.*}} constexpr operator() 'void () {{.*}}const __constant' 58 __constant auto const3 = []() __constant{};
|
| H A D | addrspace-auto.clcpp | 3 __constant int i = 1; 13 //CHECK: VarDecl {{.*}} used cai '__constant int':'__constant int' 14 __constant auto cai = c; 22 //CHECK: VarDecl {{.*}} ref_c '__constant int &__private'
|
| H A D | address-space-cond.clcpp | 5 void f(__global int *__constant *a, const __global int *__constant *b) { 7 using T = const __global int *const __constant *;
|
| H A D | address-space-castoperators.clcpp | 13 …gengen = const_cast<int**>(congen); //expected-error{{const_cast from '__constant int *__generic *… 14 …gengen = static_cast<int**>(congen); //expected-error{{static_cast from '__constant int *__generic… 16 …gengen = reinterpret_cast<int**>(congen); //expected-warning{{reinterpret_cast from '__constant in…
|
| H A D | restricted.clcpp | 13 __constant std::type_info int_ti = typeid(int); 32 __constant _Thread_local int a = 1; 36 __constant __thread int b = 2;
|
| H A D | remove-address-space.clcpp | 36 static_assert(is_same<__remove_address_space<__constant int3>::type, int3>::value, 37 "__constant address space not removed by __remove_address_space");
|
| H A D | address-space-references.clcpp | 32 …{{candidate function not viable: cannot pass pointer to address space '__constant' as a pointer to… 33 int test_nestptr(__global int *glob, __constant int *cons, int* gen) {
|
| /llvm-project-15.0.7/clang/test/SemaOpenCL/ |
| H A D | address-spaces-conversions-cl2.0.cl | 20 * other address space except for __constant address space (Section 6.5.5). 23 * case), and __constant, that should cover all program paths for CL address 33 #define AS_INCOMP __constant 43 #define AS __constant 44 #define AS_COMP __constant 64 void f_const(__constant int *arg_const) {} 90 __constant int *arg_const, __private int *arg_priv, 411 __constant int *var_const; 465 __constant void *var_void_const; 466 __constant char *var_const_ch; [all …]
|
| H A D | address-spaces.cl | 7 __constant int ci = 1; 9 // __constant ints are allowed in constant expressions. 32 // expected-error@-4 {{assigning '__constant int *' to '__generic int *' changes address space of p… 37 …id explicit_cast(__global int *g, __local int *l, __constant int *c, __private int *p, const __con… 46 // expected-error@-2 {{casting '__constant int *' to type '__global int *' changes address space of… 70 // expected-error@-2 {{casting '__constant int *' to type '__local int *' changes address space of … 86 c = (__constant int *)g; 88 // expected-error@-2 {{casting '__global int *' to type '__constant int *' changes address space of… 92 c = (__constant int *)l; 94 // expected-error@-2 {{casting '__local int *' to type '__constant int *' changes address space of … [all …]
|
| H A D | predefined-expr.cl | 5 …generic|__private}} char *__private' with an expression of type 'const __constant char *' changes … 6 …nc__; //expected-warning{{initializing '__constant char *__private' with an expression of type 'co…
|
| H A D | str_literals.cl | 4 constant char * __constant x = "hello world"; 6 void foo(__constant char * a) {
|
| H A D | usm-address-spaces-conversions.cl | 19 #define AS_INCOMP __constant 46 …// expected-error@+15{{initializing '__constant int *__private' with an expression of type '__glob… 47 …// expected-error@+15{{initializing '__constant int *__private' with an expression of type '__glob… 48 …// expected-error@+15{{initializing '__constant int *__private' with an expression of type '__glob… 49 …// expected-error@+16{{initializing '__constant int *__private' with an expression of type '__glob…
|
| H A D | printf-format-string-warnings.cl | 5 kernel void format_string_warnings(__constant char* arg) { 7 …; // expected-warning {{format specifies type 'int' but the argument has type '__constant char *'}}
|
| H A D | invalid-kernel-parameters.cl | 17 // expected-error@+1{{pointer arguments to kernel functions must reside in '__global', '__constant'… 20 // expected-error@+1{{pointer arguments to kernel functions must reside in '__global', '__constant'… 23 // expected-error@+1{{pointer arguments to kernel functions must reside in '__global', '__constant'… 26 // expected-error@+1{{pointer arguments to kernel functions must reside in '__global', '__constant'… 31 // expected-error@-1{{pointer arguments to kernel functions must reside in '__global', '__constant'… 33 // expected-error@-1{{pointer arguments to kernel functions must reside in '__global', '__constant'… 35 // expected-error@-1{{pointer arguments to kernel functions must reside in '__global', '__constant'… 37 // expected-error@-1{{pointer arguments to kernel functions must reside in '__global', '__constant'…
|
| H A D | null_literal.cl | 19 // expected-error@+4{{cannot initialize a variable of type '__constant int *__private' with an rval… 21 // expected-error@+2{{initializing '__constant int *__private' with an expression of type '__global…
|
| /llvm-project-15.0.7/clang/test/CodeGenOpenCLCXX/ |
| H A D | addrspace-constructors.clcpp | 9 __constant int ci = 0; 21 constexpr X() __constant : x(0) {} 22 constexpr X(int x) __constant : x(x) {} 28 __constant X cx1; 29 __constant X cx2(1); 41 __constant X cx1; 42 __constant X cx2(1);
|
| H A D | addrspace-with-class.clcpp | 11 MyType(int i) __constant : i(i) {} 13 ~MyType() __constant {} 15 int bar() __constant { return i + 1; } 20 __constant MyType const1 = 1; 22 __constant MyType const2(2);
|
| /llvm-project-15.0.7/clang/test/CodeGenOpenCL/ |
| H A D | str_literals.cl | 3 __constant char *__constant x = "hello world"; 4 __constant char *__constant y = "hello world";
|
| H A D | address-space-constant-initializers.cl | 9 __constant ArrayStruct constant_array_struct = { 0, 0.0f }; 12 __constant float* constant_float_ptr; 20 __constant ConstantArrayPointerStruct constant_array_pointer_struct = {
|
| /llvm-project-15.0.7/libclc/generic/include/clc/shared/ |
| H A D | vload.h | 14 _CLC_VECTOR_VLOAD_DECL(SUFFIX, MEM_TYPE, PRIM_TYPE, __constant) \ 44 _CLC_VLOAD_DECL(_half, half, float, , __constant) 50 _CLC_VLOAD_DECL(a_half, half, float, , __constant)
|
| /llvm-project-15.0.7/libclc/generic/lib/shared/ |
| H A D | vload_half.inc | 14 FUNC(__CLC_VECSIZE, __CLC_VECSIZE, __CLC_OFFSET, __CLC_GENTYPE, __constant); 21 FUNC(, 1, 1, __CLC_GENTYPE, __constant);
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | mangle-address-space.cpp | 57 void ocl_f1(char __constant const *p) {} in ocl_f1() 62 __constant float *ocl_f1(char __generic const *p) { return 0;} in ocl_f1()
|
| /llvm-project-15.0.7/libcxx/src/ |
| H A D | strstream.cpp | 64 : __strmode_(__constant), in strstreambuf() 82 : __strmode_(__constant), in strstreambuf() 100 : __strmode_(__constant), in strstreambuf() 209 if (__strmode_ & __constant) in pbackfail()
|
| /llvm-project-15.0.7/libclc/amdgcn/lib/workitem/ |
| H A D | get_work_dim.cl | 4 #define CONST_AS __constant
|