[PATCH] D130483: [RISCV] Add CodeGen support of RISCV Zca Extension

Xinlong Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 06:54:34 PDT 2022


VincentWu created this revision.
VincentWu added reviewers: kito-cheng, MaskRay, craig.topper, HsiangKai, jrtc27, Jim.
Herald added subscribers: sunshaoce, luke957, StephenFan, vkmr, frasercrmck, jdoerfert, evandro, luismarques, apazos, sameer.abuasal, s.egerton, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
VincentWu requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130483

Files:
  llvm/lib/Object/ELFObjectFile.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCObjectFileInfo.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoC.td
  llvm/lib/Target/RISCV/RISCVSubtarget.h
  llvm/test/CodeGen/RISCV/attributes.ll
  llvm/test/MC/RISCV/rv32zca-aliases-valid.s
  llvm/test/MC/RISCV/rv64zca-aliases-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130483.447310.patch
Type: text/x-patch
Size: 20026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220725/f64789b1/attachment.bin>


More information about the llvm-commits mailing list