[PATCH] D100149: [AMDGPU][GlobalISel] Legalize and select G_SBFX and G_UBFX

Brendon Cahoon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 13 09:44:08 PDT 2021


bcahoon updated this revision to Diff 337189.
bcahoon added a comment.

Updates based upon initial review. The code that expands G_SBFX/G_UBFX
instructions is moved to regbankselect.  This version also expands the 64-bit
vector version of the bitfield extract opcodes. For this, the expansion uses
shifts and masks to perform the 64-bit vector bitfield extract.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100149/new/

https://reviews.llvm.org/D100149

Files:
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-sbfx.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ubfx.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sbfx.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ubfx.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-sbfx.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-ubfx.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100149.337189.patch
Type: text/x-patch
Size: 48689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210413/406268bf/attachment.bin>


More information about the llvm-commits mailing list