[PATCH] D156589: [RISCV] Add a common base class for RVInstI variations. NFC

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


craig.topper created this revision.
craig.topper added reviewers: asb, melonedo, jrtc27.
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 InstrFormatI that pack different
fields into the upper 12 bits. The other 20 bits are all the same.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156589

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

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


More information about the llvm-commits mailing list