A new target feature new-addr is added. When it is on, AMDGPU uses new address space mapping where generic address space is 0 and private address space is 5.For target environment amdnas and amdnascl, The data layout is also changed correspondinglyAMDGPU will use new address space mapping where generic address space is 0 and private address space is 5. By default this feature is offThe data layout is also changed correspondingly.
This is the beginning of an upstreaming effort for changing address space mapping of AMDGPU target. Sema/CodeGen changes to make OpenCL/C++ working with the new address space mapping will follow.
The depending LLVM change: https://reviews.llvm.org/D31211