[llvm] [RISCV][GISel] Add FP calling convention support using FPR and GPR registers. (PR #69138)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 10:52:01 PDT 2023


================
@@ -98,6 +98,36 @@ struct RISCVOutgoingValueHandler : public CallLowering::OutgoingValueHandler {
     MIB.addUse(PhysReg, RegState::Implicit);
   }
 
+  unsigned assignCustomValue(CallLowering::ArgInfo &Arg,
+                             ArrayRef<CCValAssign> VAs,
+                             std::function<void()> *Thunk) override {
+    const CCValAssign &VALo = VAs[0];
----------------
preames wrote:

Add an assert on VAs.size() being 2.

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


More information about the llvm-commits mailing list