[PATCH] D130947: TableGen: Introduce generated getSubRegisterClass function

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 15:45:26 PDT 2022


arsenm created this revision.
arsenm added reviewers: qcolombet, MatzeB, AMDGPU.
Herald added subscribers: kosarev, foad, kerbowa, hiraditya, tpr, nhaehnle, jvesely.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Currently there isn't a generic way to get a smaller register class
that can be produced from a subregister of a larger class. Replaces a
manually implemented version for AMDGPU. This will be used to improve
subregister support in the allocator.


https://reviews.llvm.org/D130947

Files:
  llvm/include/llvm/CodeGen/TargetRegisterInfo.h
  llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
  llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
  llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
  llvm/lib/Target/AMDGPU/SIRegisterInfo.h
  llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
  llvm/utils/TableGen/RegisterInfoEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130947.449146.patch
Type: text/x-patch
Size: 13256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220801/9211b0dd/attachment.bin>


More information about the llvm-commits mailing list