[AMDGPU] Switch address space mapping by triple environment amdgiz
authorYaxun Liu <Yaxun.Liu@amd.com>
Sat, 25 Mar 2017 03:46:25 +0000 (03:46 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Sat, 25 Mar 2017 03:46:25 +0000 (03:46 +0000)
commit3464f92e2366e04c0abc26077c1c1aaa6388f957
treeb4933b1217b4a0d4b2afee01df57f15e25c3c2f5
parentf88923d9bfbd7e91c74541eed82bee029e13cae7
[AMDGPU] Switch address space mapping by triple environment amdgiz

For target environment amdgiz and amdgizcl (giz means Generic Is Zero), AMDGPU will use new address space mapping where generic address space is 0 and private address space is 5. The data layout is also changed correspondingly.

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

llvm-svn: 298767
clang/lib/Basic/Targets.cpp
clang/test/CodeGenOpenCL/amdgpu-env-amdgiz.cl [new file with mode: 0644]