[PATCH] D159333: [RISCV] Replace RISCVVInversePseudosTable with a SearchIndex

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 21:05:19 PDT 2023


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

The contents of `RISCVVInversePseudosTable` and `RISCVVPseudosTable`
are reduplicative. We can only generate one table with all info
we need and search it by a `SearchIndex`.

I was hoping that this change can reduce generated file but the diff
seems to be little(only about 10 lines are reduced), because reversed
search table will be generated for `SearchIndex`.

This patch also puts `RISCVVPseudosTable` back to `RISCVBaseInfo` so
that MCA part won't depend on `RISCVCodeGen` component.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159333

Files:
  llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.h
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159333.555245.patch
Type: text/x-patch
Size: 5057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230901/896d97ac/attachment.bin>


More information about the llvm-commits mailing list