[PATCH] D105800: [AMDGPU] Tidy SReg/SGPR definitions using template class

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 12 01:42:00 PDT 2021


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

Use a multiclass to consistently define SReg/SGPR/TTMP register
classes.  When there is no TTMP class defined, then mark the
SReg class as allocatable.

Always marking SReg as allocatable fixes register allocation
failures seen with 192b types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105800

Files:
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/lib/Target/AMDGPU/SIRegisterInfo.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105800.357861.patch
Type: text/x-patch
Size: 7598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210712/2bf5fec0/attachment.bin>


More information about the llvm-commits mailing list