[all-commits] [llvm/llvm-project] 4fb282: [CSKY] Add CSKY 16-bit instruction format and enco...

Zi Xuan Wu (Zeson) via All-commits all-commits at lists.llvm.org
Sun Nov 7 18:03:49 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4fb282fec5ef34d807a88169e1f2a7b3f96bb0e3
      https://github.com/llvm/llvm-project/commit/4fb282fec5ef34d807a88169e1f2a7b3f96bb0e3
  Author: Zi Xuan Wu <zixuan.wu at linux.alibaba.com>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
    M llvm/lib/Target/CSKY/CSKY.td
    A llvm/lib/Target/CSKY/CSKYInstrFormats16Instr.td
    M llvm/lib/Target/CSKY/CSKYInstrInfo.td
    A llvm/lib/Target/CSKY/CSKYInstrInfo16Instr.td
    M llvm/lib/Target/CSKY/CSKYRegisterInfo.td
    M llvm/lib/Target/CSKY/CSKYSubtarget.cpp
    M llvm/lib/Target/CSKY/CSKYSubtarget.h
    M llvm/lib/Target/CSKY/CSKYTargetMachine.h
    A llvm/test/MC/CSKY/basic-16bit.s

  Log Message:
  -----------
  [CSKY] Add CSKY 16-bit instruction format and encoding

CSKY is a ARCH which supports mixture of 16-bit and 32-bit instructions natively,
and there is not an indivual predictor or feature to enable/disable 16-bit instruction.
So I think it's better to add 16-bit instruction early, and naturally to use 16-bit and 32-bit instructions.

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




More information about the All-commits mailing list