[llvm] [RISCV] RISCV vector calling convention (2/2) (PR #79096)

Brandon Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 6 23:34:41 PST 2024


================
@@ -20543,6 +20531,121 @@ unsigned RISCVTargetLowering::getMinimumJumpTableEntries() const {
   return Subtarget.getMinimumJumpTableEntries();
 }
 
+void RVVArgDispatcher::constructArgInfos(Type *Ty) {
----------------
4vtomat wrote:

It's a bit different since `splitToValueTypes` uses `ComputeValueVTs` to get value type(s) and it can't handle **vector tuple type**. Same situation in `SelectionDAGISel::LowerArguments`, they both use `ComputeValueVTs` for getting value types, that's why `RVVArgDispatcher` comes to help.

https://github.com/llvm/llvm-project/pull/79096


More information about the llvm-commits mailing list