OSDN Git Service

AMDGPU/GlobalISel: Add support for llvm.amdgcn.kernarg.segment.ptr
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 25 Jun 2018 16:17:48 +0000 (16:17 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 25 Jun 2018 16:17:48 +0000 (16:17 +0000)
commit529b26551c9dd0420eb19801464708de507c6133
treec4d91c56c4f477c06b13215334b8379075c159ad
parenta26c784064a6e32b1873f5f25a1ea7bb99e4287b
AMDGPU/GlobalISel: Add support for llvm.amdgcn.kernarg.segment.ptr

Note a normal select test is not currently possible because this
relies on input registers tracked in SIMachineFunctionInfo which
are not currently serializable in MIR, but this does work end-to-end
from the IR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335490 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
lib/Target/AMDGPU/AMDGPUInstructionSelector.h
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/inst-select-amdgcn.kernarg.segment.ptr.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.kernarg.segment.ptr.mir [new file with mode: 0644]