[all-commits] [llvm/llvm-project] bdd7c5: [CSKY] Add compressed instruction mapping between ...

Zi Xuan Wu (Zeson) via All-commits all-commits at lists.llvm.org
Sun Dec 5 22:05:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdd7c53dc5e0fc3c3fde408df2fd187b11bb8330
      https://github.com/llvm/llvm-project/commit/bdd7c53dc5e0fc3c3fde408df2fd187b11bb8330
  Author: Zi Xuan Wu <zixuan.wu at linux.alibaba.com>
  Date:   2021-12-06 (Mon, 06 Dec 2021)

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

  Log Message:
  -----------
  [CSKY] Add compressed instruction mapping between 32-bit and 16-bit instruction

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.

Differential Revision: https://reviews.llvm.org/D115026




More information about the All-commits mailing list