diff options
author | Egor Churaev <egor.churaev@gmail.com> | 2016-12-23 16:11:25 +0000 |
---|---|---|
committer | Egor Churaev <egor.churaev@gmail.com> | 2016-12-23 16:11:25 +0000 |
commit | 28f00aab73730b8f74894fce1e82b8545c729ffb (patch) | |
tree | 045cfd5ebb73689af4b0767849c3933f73028d8f /clang/test/CodeGenOpenCL/const-str-array-decay.cl | |
parent | 206a510e5406fcab172b15a11cea64b65c953823 (diff) | |
download | bcm5719-llvm-28f00aab73730b8f74894fce1e82b8545c729ffb.tar.gz bcm5719-llvm-28f00aab73730b8f74894fce1e82b8545c729ffb.zip |
[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
Diffstat (limited to 'clang/test/CodeGenOpenCL/const-str-array-decay.cl')
-rw-r--r-- | clang/test/CodeGenOpenCL/const-str-array-decay.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenOpenCL/const-str-array-decay.cl b/clang/test/CodeGenOpenCL/const-str-array-decay.cl index af8c35542f3..353aa3a9a08 100644 --- a/clang/test/CodeGenOpenCL/const-str-array-decay.cl +++ b/clang/test/CodeGenOpenCL/const-str-array-decay.cl @@ -6,6 +6,6 @@ kernel void str_array_decy() { test_func("Test string literal"); } -// CHECK: i8 addrspace(3)* getelementptr inbounds ([20 x i8], [20 x i8] addrspace(3)* +// CHECK: i8 addrspace(2)* getelementptr inbounds ([20 x i8], [20 x i8] addrspace(2)* // CHECK-NOT: addrspacecast |