[llvm] Xtensa] Implement windowed call ABI. (PR #130001)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 6 00:33:40 PST 2025


================
@@ -34,13 +34,19 @@ XtensaRegisterInfo::XtensaRegisterInfo(const XtensaSubtarget &STI)
 
 const uint16_t *
 XtensaRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
-  return CSR_Xtensa_SaveList;
+  if (Subtarget.isWinABI())
+    return CSRW8_Xtensa_SaveList;
+  else
----------------
arsenm wrote:

No else after return. Return ternary operator? 

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


More information about the llvm-commits mailing list