The patch is splitted from D103435. The patch emits .variant_cc [0] for those
function calls that have vector arguments or vector return values.
[0]: https://github.com/riscv/riscv-elf-psabi-doc/pull/190
Initial authored by: HsiangKai
Paths
| Differential D139414
[RISCV] Emit .variant_cc directives for vector function calls. ClosedPublic Authored by fakepaper56 on Dec 6 2022, 4:19 AM.
Details Summary The patch is splitted from D103435. The patch emits .variant_cc [0] for those [0]: https://github.com/riscv/riscv-elf-psabi-doc/pull/190 Initial authored by: HsiangKai
Diff Detail
Event TimelineComment Actions LGTM from the psABI perspective, but I would like to wait another week to make sure other review is happy :)
smd added inline comments.
Comment Actions There's missing context in the review description which is important. Please add something along the lines of the following. The currently ratified calling convention in psABI does not support passing vector arguments or return values in registers. LLVM implements a non-standard calling convention for vector arguments and returns. psABI requires that such non-standard calling conventions be tagged w/ .variant_cc. With that additional context, LGTM. This revision is now accepted and ready to land.Dec 15 2022, 3:03 PM Comment Actions Refine commit message. Almost add all reame's description into the the commit message. This revision was landed with ongoing or failed builds.Dec 15 2022, 9:51 PM Closed by commit rG982a586ab481: [RISCV] Emit .variant_cc directives for vector function calls. (authored by fakepaper56). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 483431 llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
llvm/test/CodeGen/RISCV/rvv/variant-cc.ll
|
Hi,
Could this label printing be extended not only for vector calls, but also for functions that has variant_cc flag set?
I guess this is what I need for D132994 to go further.
Thanks