[PATCH] D115026: [CSKY] Add compressed instruction mapping between 32-bit and 16-bit instruction

Zixuan Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 3 00:43:04 PST 2021


zixuan-wu created this revision.
zixuan-wu added reviewers: rengolin, myhsu.
Herald added subscribers: hiraditya, mgorny.
zixuan-wu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add all CompressPat to map instructions between 16-bit and 32-bit with using the CompressInstEmitter infra.
Although it's only used in asm printer, also enable it in asm parser to debug mapping when -enable-csky-asm-compressed-inst is on.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115026

Files:
  llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
  llvm/lib/Target/CSKY/CMakeLists.txt
  llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp
  llvm/lib/Target/CSKY/CSKYAsmPrinter.h
  llvm/lib/Target/CSKY/CSKYInstrFormats16Instr.td
  llvm/lib/Target/CSKY/CSKYInstrInfo.td
  llvm/lib/Target/CSKY/CSKYInstrInfo16Instr.td
  llvm/lib/Target/CSKY/CSKYRegisterInfo.td
  llvm/test/CodeGen/CSKY/base-i.ll
  llvm/test/MC/CSKY/basic-16bit.s
  llvm/test/MC/CSKY/compressed-inst.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115026.391568.patch
Type: text/x-patch
Size: 29520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211203/9f3aa10d/attachment.bin>


More information about the llvm-commits mailing list