[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
Thu Apr 8 15:50:59 PDT 2021


bcahoon created this revision.
bcahoon added a reviewer: arsenm.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
bcahoon requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Adds legalizer, register bank select, and instruction
select support for G_SBFX and G_UBFX. These opcodes generate
the scalar or vector ALU bitfield extract instructions. The
instructions allow both constant or register values for the
offset and width operands.


Repository:
  rG LLVM Github Monorepo

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/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.336248.patch
Type: text/x-patch
Size: 46605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210408/65cf6bed/attachment-0001.bin>


More information about the llvm-commits mailing list