hanchenye-llvm-project/clang/test/SemaOpenCL
Egor Churaev 28f00aab73 [OpenCL] Align fake address space map with the SPIR target maps.
Summary:
We compile user opencl kernel code with spir triple. But built-ins are written in OpenCL and we compile it with triple x86_64 to be able to use x86 intrinsics. And we need address spaces to match in both cases. So, we change fake address space map in OpenCL for matching with spir.

On CPU address spaces are not really important but we'd like to preserve address space information in order to perform optimizations relying on this info like enhanced alias analysis.

Reviewers: pekka.jaaskelainen, Anastasia

Subscribers: pekka.jaaskelainen, yaxunl, bader, cfe-commits

Differential Revision: https://reviews.llvm.org/D28048

llvm-svn: 290436
2016-12-23 16:11:25 +00:00
..
access-qualifier.cl [OpenCL] Introduce ReadPipeType and WritePipeType. 2016-11-18 14:10:54 +00:00
address-spaces-conversions-cl2.0.cl PR19957: [OpenCL] Incorrectly accepts implicit address space conversion with ternary operator. 2016-04-12 19:43:36 +00:00
address-spaces.cl
amdgpu-attrs.cl [AMDGPU] Expose flat work group size, register and wave control attributes 2016-09-26 01:02:57 +00:00
array-parameters.cl
as_type.cl [OpenCL] Fix __builtin_astype for vec3 types. 2016-06-08 15:11:21 +00:00
bool-vectors.cl [Sema] Make extended vectors of `bool` an error. 2016-01-28 01:38:18 +00:00
builtin.cl [OpenCL] Diagnose variadic arguments 2016-10-28 12:59:39 +00:00
builtins-amdgcn-error-f16.cl [AMDGPU] Add f16 builtin functions (VI+) 2016-11-13 02:37:05 +00:00
builtins-amdgcn-error.cl [AMDGPU] Add f16 builtin functions (VI+) 2016-11-13 02:37:05 +00:00
cl20-device-side-enqueue.cl Fix OpenCL test for buildbot by removing extra (erroneous) RUN line 2016-11-14 18:11:09 +00:00
clang-builtin-version.cl [OpenCL] Make OpenCL Builtins added according to the right version. 2016-07-04 16:07:18 +00:00
cond.cl [OpenCL] Disallow taking an address of a function. 2016-01-05 14:39:27 +00:00
convergent.cl [OpenCL] Mark group functions as convergent in opencl-c.h 2016-11-01 18:45:32 +00:00
endian-attr.cl
event_t.cl [OpenCL] Prohibit using reserve_id_t in program scope. 2016-11-29 10:21:40 +00:00
event_t_overload.cl [Sema] Relax overloading restrictions in C. 2016-09-02 22:59:57 +00:00
ext_vectors.cl Add .rgba syntax extension to ext_vector_type types 2016-07-22 18:49:43 +00:00
extension-begin.cl Recommit r289979 [OpenCL] Allow disabling types and declarations associated with extensions 2016-12-18 05:18:55 +00:00
extension-version.cl [OpenCL] AMDGPU: add support of cl_khr_subgroups 2016-08-17 20:39:49 +00:00
extensions.cl Recommit r289979 [OpenCL] Allow disabling types and declarations associated with extensions 2016-12-18 05:18:55 +00:00
extern.cl [OpenCL] Align fake address space map with the SPIR target maps. 2016-12-23 16:11:25 +00:00
func.cl [OpenCL] Diagnose variadic arguments 2016-10-28 12:59:39 +00:00
half.cl [OpenCL] Allow half type kernel argument when cl_khr_fp16 is enabled 2016-09-19 17:11:22 +00:00
images.cl [OpenCL] Complete image types support. 2016-04-08 13:40:33 +00:00
init.cl
invalid-block.cl [OpenCL] Diagnose variadic arguments 2016-10-28 12:59:39 +00:00
invalid-clk-events-cl2.0.cl [OpenCL] Prohibit using reserve_id_t in program scope. 2016-11-29 10:21:40 +00:00
invalid-constant.cl
invalid-image.cl [OpenCL] Use the semantic spelling of the Access attribute, rather than a string. 2016-11-16 11:34:09 +00:00
invalid-kernel-attrs.cl [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr 2016-02-26 03:13:03 +00:00
invalid-kernel-parameters.cl [OpenCL] Allow half type kernel argument when cl_khr_fp16 is enabled 2016-09-19 17:11:22 +00:00
invalid-kernel.cl [OpenCL] Improve address space diagnostics. 2016-12-13 14:07:23 +00:00
invalid-logical-ops-1.1.cl
invalid-logical-ops-1.2.cl Disable warning about core features by default 2016-06-01 18:04:53 +00:00
invalid-pipe-builtin-cl2.0.cl [OpenCL] Fix pipe builtin bugs 2016-03-30 04:46:32 +00:00
invalid-pipes-cl2.0.cl [OpenCL] Refactor read_only/write_only pipes. 2016-12-01 11:30:49 +00:00
lit.local.cfg
nosvm.cl [OpenCL] Added nosvm attribute for OpenCL v2.0. 2016-03-31 11:07:22 +00:00
null_literal.cl [OpenCL 2.0] In OpenCL v2.0 s6.5 all pointers are implicitly in generic 2015-12-11 17:41:19 +00:00
null_queue.cl Fix problems in "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand." 2016-12-23 14:55:49 +00:00
pipes-1.2-negative.cl [OpenCL] Pipe type support 2016-01-09 12:53:17 +00:00
queue_t_overload.cl Fix problems in "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand." 2016-12-23 14:55:49 +00:00
sampler_t.cl [OpenCL] Generate opaque type for sampler_t and function call for the initializer 2016-07-28 19:26:30 +00:00
sampler_t_overload.cl
shifts.cl
sizeof.cl
storageclass-cl20.cl [OpenCL] Improve diagnostics of address spaces for variables in function 2016-03-03 18:38:40 +00:00
storageclass.cl [OpenCL] Output OpenCL version in diagnostics. 2016-05-12 16:28:25 +00:00
str_literals.cl
to_addr_builtin.cl [OpenCL] Make OpenCL Builtins added according to the right version. 2016-07-04 16:07:18 +00:00
unroll-hint.cl [OpenCL] Enable unroll hint for OpenCL 1.x. 2016-12-13 14:02:35 +00:00
unsupported.cl Fix the spelling of 'bitfield' in diagnostics to be consistently 'bit-field'. 2016-12-20 02:43:58 +00:00
vec_compare.cl
vec_step.cl
vector_conv_invalid.cl
vector_inc_dec_ops.cl
vector_literals_const.cl
vector_literals_invalid.cl
warn-missing-prototypes.cl