[PATCH] D138352: [RISCV] Support .variant_cc directive for the assembler.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 19 06:51:10 PST 2022


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

The patch is split from D103435 <https://reviews.llvm.org/D103435>. The patch supported a new directive .variant_cc
that annotates function with STO_RISCV_VARIANT_CC. Symbols marked with
STO_RISCV_VARIANT_CC do not use standard calling conversion or use parameter not
passed in GPR/FPR.

Related: https://github.com/riscv/riscv-elf-psabi-doc/pull/190

Initial authored by: HsiangKai


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138352

Files:
  llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.h
  llvm/test/MC/RISCV/directive-variant_cc-err.s
  llvm/test/MC/RISCV/directive-variant_cc.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138352.476676.patch
Type: text/x-patch
Size: 5265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221119/70b087ab/attachment.bin>


More information about the llvm-commits mailing list