]> granicus.if.org Git - clang/commit
[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)
commitd939951427685cf36cc711369f0fa32c31c0680e
tree48e4ccd8dcc334451d069a1bef7ccc71560b2794
parent9950a2ccb2a10425c0393c89aaa40d802762c720
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298767 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGenOpenCL/amdgpu-env-amdgiz.cl [new file with mode: 0644]