[RISCV] Emit .variant_cc directives for vector function calls.
authorYeting Kuo <yeting.kuo@sifive.com>
Tue, 6 Dec 2022 12:12:11 +0000 (20:12 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Fri, 16 Dec 2022 05:51:39 +0000 (13:51 +0800)
commit982a586ab481d5470a732c8eec898cb72d789b0e
tree25d8863fd70c7b24ed67905bd9808e6f04fe924e
parent12c55eb66de0e12243ebe6e66e5b5bf787d30ca3
[RISCV] Emit .variant_cc directives for vector function calls.

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

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D139414
llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.h
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 [new file with mode: 0644]