[PATCH] D89217: [AMDGPU] Base getSubRegFromChannel on TableGen data

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 22:14:24 PDT 2020


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

Generate (at runtime) the table used to drive getSubRegFromChannel,
base on AMDGPUSubRegIdxRanges from TableGen data.
The is a step closer to it being staticly generated by TableGen and
allows getSubRegFromChannel handle all bitwidths in the mean time.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89217

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89217.297497.patch
Type: text/x-patch
Size: 6869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201012/69468c8d/attachment.bin>


More information about the llvm-commits mailing list