[PATCH] D78311: [AMDGPU] New helper functions to get a register class of a given width

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 11:08:57 PDT 2020


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

Introduce new helper functions getVGPRClassForBitWidth,
getAGPRClassForBitWidth, getSGPRClassForBitWidth and use them to
refactor various other functions that all contained their own lists of
valid register class widths. NFC.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78311

Files:
  llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78311.258094.patch
Type: text/x-patch
Size: 11661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200416/1e7dc81f/attachment.bin>


More information about the llvm-commits mailing list