]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Legalize s16 add/sub/mul
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 18:18:55 +0000 (18:18 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 18:18:55 +0000 (18:18 +0000)
commitdb3759c68a871002f4455d30f21527676789003b
tree3b9cb22f87a0553ec217fbd36efd9462f305e344
parent93f326816893e728d550003d45606a8c65ec50f5
AMDGPU/GlobalISel: Legalize s16 add/sub/mul

If this is scalar, promote to s32. Use a new observer class to assign
the register bank of newly created registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/legalize-add.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-mul.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-sub.mir