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

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 08:36:23 PDT 2024


=?utf-8?q?Gábor?= Spaits <gaborspaits1 at gmail.com>,Gabor Spaits
 <Gabor.Spaits at hightec-rt.com>,Gabor Spaits <Gabor.Spaits at hightec-rt.com>,Gabor
 Spaits <Gabor.Spaits at hightec-rt.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/95429 at github.com>


================
@@ -845,30 +908,44 @@ bool CallLowering::handleAssignments(ValueHandler &Handler,
                                      DstMPO, DstAlign, SrcMPO, SrcAlign,
                                      MemSize, VA);
         }
-        continue;
-      }
-
-      assert(!VA.needsCustom() && "custom loc should have been handled already");
-
-      if (i == 0 && !ThisReturnRegs.empty() &&
-          Handler.isIncomingArgumentHandler() &&
-          isTypeIsValidForThisReturn(ValVT)) {
+      } else if (i == 0 && !ThisReturnRegs.empty() &&
+                 Handler.isIncomingArgumentHandler() &&
+                 isTypeIsValidForThisReturn(ValVT))
----------------
s-barannikov wrote:

Missing braces here and below (if one of the if blocks has braces, all in the chain must have).


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


More information about the llvm-commits mailing list