[PATCH] D113475: [llvm-tblgen][RISCV] Make llvm-tblgen RISCVCompressInstEmitter to be common infra across different targets

Zixuan Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 9 02:28:02 PST 2021


zixuan-wu created this revision.
zixuan-wu added reviewers: sabuasal, asb, efriedma, apazos.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, frasercrmck, evandro, luismarques, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, simoncook, johnrusso, rbar, hiraditya, mgorny.
zixuan-wu requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

Not only RISCV but also other target such as CSKY, there are compressed instructions mixed with normal instructions. To reuse the basic infra to compress/uncompress and predict instruction, we need reconstruct the RISCVCompressInstEmitter and make it more general and suitable for other target.

This patch contains CSKY related part to show the whole picture after the tblgen tool changes, which make review better. It will be removed when it is landed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113475

Files:
  llvm/include/llvm/Target/Target.td
  llvm/lib/Target/CSKY/CMakeLists.txt
  llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp
  llvm/lib/Target/CSKY/CSKYAsmPrinter.h
  llvm/lib/Target/CSKY/CSKYInstrFormats.td
  llvm/lib/Target/CSKY/CSKYInstrInfo16Instr.td
  llvm/lib/Target/RISCV/RISCVInstrFormats.td
  llvm/lib/Target/RISCV/RISCVInstrFormatsC.td
  llvm/lib/Target/RISCV/RISCVInstrInfoC.td
  llvm/test/TableGen/AsmPredicateCombiningRISCV.td
  llvm/utils/TableGen/CMakeLists.txt
  llvm/utils/TableGen/CompressInstEmitter.cpp
  llvm/utils/TableGen/RISCVCompressInstEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113475.385747.patch
Type: text/x-patch
Size: 89000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211109/4e69fc7f/attachment.bin>


More information about the llvm-commits mailing list