[PATCH] D156590: [RISCV] Add a common base class for RVInstR variations. NFC

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 28 23:58:32 PDT 2023


craig.topper created this revision.
craig.topper added reviewers: asb, jrtc27, melonedo.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: wangpc, eopXD, MaskRay.
Herald added a project: LLVM.

We have multiple variations of InstrFormatR that pack different
fields into the upper 7 bits. The other 25 bits are all the same.

Add base class to capture this commonality and allow subclasses to
explicitly define Inst{31-25}.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156590

Files:
  llvm/lib/Target/RISCV/RISCVInstrFormats.td
  llvm/lib/Target/RISCV/RISCVInstrInfoXCV.td
  llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156590.545341.patch
Type: text/x-patch
Size: 10247 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230729/b2fc0251/attachment.bin>


More information about the llvm-commits mailing list