[all-commits] [llvm/llvm-project] 515ece: [RISCV] Add MC support of RISCV Zca Extension

VincentWu via All-commits all-commits at lists.llvm.org
Wed Aug 17 21:13:51 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 515ece1a9005b29747e5e19bccb17f2ae3d78fb9
  Author: WuXinlong <821408745 at qq.com>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

  Changed paths:
    M llvm/lib/Support/RISCVISAInfo.cpp
    M llvm/lib/Target/RISCV/RISCV.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoC.td
    M llvm/lib/Target/RISCV/RISCVSubtarget.h
    M llvm/test/MC/RISCV/attribute-arch.s
    M llvm/test/MC/RISCV/rv32c-invalid.s
    M llvm/test/MC/RISCV/rv32c-only-valid.s
    M llvm/test/MC/RISCV/rv32c-valid.s
    M llvm/test/MC/RISCV/rv64c-hints-valid.s
    M llvm/test/MC/RISCV/rv64c-invalid.s
    M llvm/test/MC/RISCV/rv64c-valid.s

  Log Message:
  [RISCV] Add MC support of RISCV Zca Extension

This patch adds support for part of Zc extension which will be frozen soon.

This extension is designed to continue reducing the binary size of RISC-V programs.
In this patch:
`Zca` is a subset of C extension instructions that are compatible with the Zc extension.

The spec of Zc ext is [[ https://github.com/riscv/riscv-code-size-reduction/releases | Here ]]

Reviewed By: craig.topper

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

More information about the All-commits mailing list