]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Handle more G_INSERT cases
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 7 Oct 2019 19:16:26 +0000 (19:16 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 7 Oct 2019 19:16:26 +0000 (19:16 +0000)
commitee3a634ba6fd69a2281e4dae23b0bdea3c97cf96
tree628294d14bbd10091630dfb899f349f6ded09703
parent0401164ba787b3ae2f79c9031ba488466a2ef3fb
AMDGPU/GlobalISel: Handle more G_INSERT cases

Start manually writing a table to get the subreg index. TableGen
should probably generate this, but I'm not sure what it looks like in
the arbitrary case where subregisters are allowed to not fully cover
the super-registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373947 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
lib/Target/AMDGPU/AMDGPURegisterInfo.cpp
lib/Target/AMDGPU/AMDGPURegisterInfo.h
test/CodeGen/AMDGPU/GlobalISel/inst-select-insert.mir