OSDN Git Service

[AMDGPU] Temporarily change constant address space from 4 to 2
authorYaxun Liu <Yaxun.Liu@amd.com>
Thu, 6 Apr 2017 19:17:32 +0000 (19:17 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Thu, 6 Apr 2017 19:17:32 +0000 (19:17 +0000)
commite4f931e960a32b85f15a74ff478580ddddc29af2
tree2547c69e0728c5229399d857b3be02232bc957f2
parentdc9458d5a747a02a9a8f198b84c2b92a6939a8dd
[AMDGPU] Temporarily change constant address space from 4 to 2

Our final address space mapping is to let constant address space to be 4 to match nvptx.
However for now we will make it 2 to avoid unnecessary work in FE/BE/devlib
about intrinsics returning constant pointers.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299690 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPU.h
lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp