Lines Matching full:address

1 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DCONSTANT -cl-std=C…
2 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGLOBAL -cl-std=CL2…
3 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGENERIC -cl-std=CL…
4 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DCONSTANT -cl-std=c…
5 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGLOBAL -cl-std=clc…
6 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGENERIC -cl-std=cl…
7 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DCONSTANT -cl-std=C…
8 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGLOBAL -cl-std=CL3…
9 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGENERIC -cl-std=CL…
10 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DCONSTANT -cl-std=c…
11 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGLOBAL -cl-std=clc…
12 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGENERIC -cl-std=cl…
15 * different address spaces, mainly described in Sections 6.5.5 and 6.5.6.
17 * It adds notion of overlapping address spaces. The main differention is that
18 * an unnamed address space is added, called '__generic'. Pointers to the
19 * generic address space can be interchangabley used with pointers to any
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
27 * OpenCLC v3.0 supports generic address if __opencl_c_generic_address_space feature is supported
53 … function not viable: cannot pass pointer to address space '__{{generic|constant}}' as a pointer t…
61 …nction not viable: cannot pass pointer to address space '__{{global|generic|constant}}' as a point…
69 …e function not viable: cannot pass pointer to address space '__{{global|generic}}' as a pointer to…
77 …nction not viable: cannot pass pointer to address space '__{{global|generic|constant}}' as a point…
85 …didate function not viable: cannot pass pointer to address space '__constant' as a pointer to addr…
96 …*__private' with an expression of type '__global int *__private' changes address space of pointer}}
105 … *__private' with an expression of type '__local int *__private' changes address space of pointer}}
114 …_private' with an expression of type '__constant int *__private' changes address space of pointer}}
123 …__private' with an expression of type '__private int *__private' changes address space of pointer}}
132 …__private' with an expression of type '__generic int *__private' changes address space of pointer}}
141 // expected-error@-3{{casting '__global int *' to type '__constant int *' changes address space of …
143 …tyle cast from '__global int *' to '__constant int *' converts between mismatching address spaces}}
150 …3{{casting '__local int *' to type '__{{global|constant}} int *' changes address space of pointer}}
152 …from '__local int *' to '__{{global|constant}} int *' converts between mismatching address spaces}}
159 …{casting '__constant int *' to type '__{{global|generic}} int *' changes address space of pointer}}
161 …om '__constant int *' to '__{{global|generic}} int *' converts between mismatching address spaces}}
168 …{casting '__private int *' to type '__{{global|constant}} int *' changes address space of pointer}}
170 …om '__private int *' to '__{{global|constant}} int *' converts between mismatching address spaces}}
177 // expected-error@-3{{casting '__generic int *' to type '__constant int *' changes address space of…
179 …yle cast from '__generic int *' to '__constant int *' converts between mismatching address spaces}}
187 …signing '__global int *__private' to '__constant int *__private' changes address space of pointer}}
189 // expected-error@-5{{assigning '__global int *__private' to '__constant int *' changes address spa…
196 …_local int *__private' to '__{{global|constant}} int *__private' changes address space of pointer}}
198 …igning '__local int *__private' to '__{{global|constant}} int *' changes address space of pointer}}
205 …onstant int *__private' to '__{{global|generic}} int *__private' changes address space of pointer}}
207 …ning '__constant int *__private' to '__{{global|generic}} int *' changes address space of pointer}}
214 …rivate int *__private' to '__{{global|constant}} int *__private' changes address space of pointer}}
216 …ning '__private int *__private' to '__{{global|constant}} int *' changes address space of pointer}}
223 …eneric int *__private' to '__{{global|constant}} int *__private' changes address space of pointer}}
225 …ning '__generic int *__private' to '__{{global|constant}} int *' changes address space of pointer}}
232 // expected-error@-3{{casting '__global int *' to type '__constant int *' changes address space of …
234 …tyle cast from '__global int *' to '__constant int *' converts between mismatching address spaces}}
241 …3{{casting '__local int *' to type '__{{global|constant}} int *' changes address space of pointer}}
243 …from '__local int *' to '__{{global|constant}} int *' converts between mismatching address spaces}}
250 …{casting '__constant int *' to type '__{{global|generic}} int *' changes address space of pointer}}
252 …om '__constant int *' to '__{{global|generic}} int *' converts between mismatching address spaces}}
259 …{casting '__private int *' to type '__{{global|constant}} int *' changes address space of pointer}}
261 …om '__private int *' to '__{{global|constant}} int *' converts between mismatching address spaces}}
268 // expected-error@-3{{casting '__generic int *' to type '__constant int *' changes address space of…
270 …yle cast from '__generic int *' to '__constant int *' converts between mismatching address spaces}}
278 …n ('__constant int *' and '__global int *') which are pointers to non-overlapping address spaces}}
287 …lobal|constant}} int *' and '__local int *') which are pointers to non-overlapping address spaces}}
296 …bal|generic}} int *' and '__constant int *') which are pointers to non-overlapping address spaces}}
305 …bal|constant}} int *' and '__private int *') which are pointers to non-overlapping address spaces}}
314 … ('__constant int *' and '__generic int *') which are pointers to non-overlapping address spaces}}
323 …e ('__constant int *' and '__global int *') which are pointers to non-overlapping address spaces}}
328 …lobal|constant}} int *' and '__local int *') which are pointers to non-overlapping address spaces}}
333 …bal|generic}} int *' and '__constant int *') which are pointers to non-overlapping address spaces}}
338 …bal|constant}} int *' and '__private int *') which are pointers to non-overlapping address spaces}}
343 … ('__constant int *' and '__generic int *') which are pointers to non-overlapping address spaces}}
349 …|generic}} int *__private' to parameter of type '__global int *' changes address space of pointer}}
357 …t|generic}} int *__private' to parameter of type '__local int *' changes address space of pointer}}
365 …eneric}} int *__private' to parameter of type '__constant int *' changes address space of pointer}}
373 …generic}} int *__private' to parameter of type '__private int *' changes address space of pointer}}
381 …_constant int *__private' to parameter of type '__generic int *' changes address space of pointer}}
395 …e ('__constant int *' and '__global int *') which are pointers to non-overlapping address spaces}}
405 …lobal|constant}} int *' and '__local int *') which are pointers to non-overlapping address spaces}}
415 …bal|generic}} int *' and '__constant int *') which are pointers to non-overlapping address spaces}}
425 …bal|constant}} int *' and '__private int *') which are pointers to non-overlapping address spaces}}
434 … ('__constant int *' and '__generic int *') which are pointers to non-overlapping address spaces}}
447 … ('__constant int *' and '__global char *') which are pointers to non-overlapping address spaces}}
459 …obal|constant}} int *' and '__local char *') which are pointers to non-overlapping address spaces}}
472 …al|generic}} int *' and '__constant char *') which are pointers to non-overlapping address spaces}}
484 …al|constant}} int *' and '__private char *') which are pointers to non-overlapping address spaces}}
496 … ('__constant int *' and '__generic char *') which are pointers to non-overlapping address spaces}}
510 // * address spaces of corresponded most outer pointees overlaps, their canonical types are equal
511 // * CVR, address spaces and canonical types of the rest of pointees are equivalent.
515 // Case 2: Corresponded inner pointees has non-overlapping address spaces.
523 // Case 3: Corresponded inner pointees has overlapping but not equivalent address spaces.
527 …nt *__local *__private' to '__generic int *__generic *__private' changes address space of nested p…
529 …__local int *__local *__private' to '__generic int *__generic *' changes address space of nested p…
538 …st from '__local int *__local *' to '__generic int *__generic *' changes address space of nested p…
546 …{global|constant|generic}} int *__{{global|constant|generic}} *' changes address space of nested p…