[all-commits] [llvm/llvm-project] 219417: [RISCV] Add CodeGen support and MC testcase of RIS...

VincentWu via All-commits all-commits at lists.llvm.org
Tue Nov 22 01:22:39 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 219417b2c638e22e3baaad53680a811cc9db4dff
      https://github.com/llvm/llvm-project/commit/219417b2c638e22e3baaad53680a811cc9db4dff
  Author: WuXinlong <821408745 at qq.com>
  Date:   2022-11-22 (Tue, 22 Nov 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCObjectFileInfo.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoC.td
    M llvm/lib/Target/RISCV/RISCVSubtarget.h
    M llvm/test/CodeGen/RISCV/attributes.ll
    M llvm/test/MC/RISCV/align.s
    M llvm/test/MC/RISCV/rv32c-aliases-valid.s
    M llvm/test/MC/RISCV/rv64c-aliases-valid.s

  Log Message:
  -----------
  [RISCV] Add CodeGen support and MC testcase of RISCV Zca Extension

This patch add the support of RISCV Zca ext

`Zca` is a subset of C extension instructions that are compatible with the Zc extension.

So this patch implements Zca code generation with reference to the C extension and sets the 2-byte alignment for the Zca extension, just like C extension does.

Reviewed By: craig.topper

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




More information about the All-commits mailing list