[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
+    return CSR_Xtensa_SaveList;
 }
 
 const uint32_t *
 XtensaRegisterInfo::getCallPreservedMask(const MachineFunction &MF,
                                          CallingConv::ID) const {
-  return CSR_Xtensa_RegMask;
+  if (Subtarget.isWinABI())
----------------
arsenm wrote:

Ditto

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


More information about the llvm-commits mailing list