[llvm] [GISel][RISCV]Implement indirect parameter passing for large scalars (PR #95429)

Gábor Spaits via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 01:36:33 PDT 2024


================
@@ -89,12 +89,13 @@ struct RISCVOutgoingValueHandler : public CallLowering::OutgoingValueHandler {
                             const MachinePointerInfo &MPO,
                             const CCValAssign &VA) override {
     MachineFunction &MF = MIRBuilder.getMF();
-    uint64_t LocMemOffset = VA.getLocMemOffset();
-
+    uint64_t Offset = 0;
----------------
spaits wrote:

I have done some debugging and I was able to find out, that it is a reg loc in case of indirect parameter passing.

```
assignValueToAddress info dump BEGIN
ValVT:i32
LocVTi32
regLoc: 1 memLoc: 0 pendingLoc: 0
assignValueToAddress info dump END
```

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


More information about the llvm-commits mailing list