[llvm] [Xtensa] Implement vararg support. (PR #117126)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 17:07:39 PST 2024


================
@@ -304,13 +318,14 @@ SDValue XtensaTargetLowering::LowerFormalArguments(
     SelectionDAG &DAG, SmallVectorImpl<SDValue> &InVals) const {
   MachineFunction &MF = DAG.getMachineFunction();
   MachineFrameInfo &MFI = MF.getFrameInfo();
+  XtensaMachineFunctionInfo *XtensaFI = MF.getInfo<XtensaMachineFunctionInfo>();
+  EVT PtrVT = getPointerTy(MF.getDataLayout());
+
+  XtensaFI->setVarArgsFrameIndex(0);
----------------
s-barannikov wrote:

It is already initialized by `XtensaMachineFunctionInfo` constructor.


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


More information about the llvm-commits mailing list