[llvm] [PATCH] [Xtensa] Implement FrameLowering methods and stack operation lowering. (PR #92960)

Andrei Safronov via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 01:21:40 PDT 2024


================
@@ -33,6 +33,70 @@ bool XtensaFrameLowering::hasFP(const MachineFunction &MF) const {
          MFI.hasVarSizedObjects();
 }
 
+#ifndef NDEBUG
+/* Check whether instruction I stores some callee-saved register from CSI
+ */
+static bool checkStoreInstruction(MachineBasicBlock::iterator I,
+                                  const std::vector<CalleeSavedInfo> &CSI) {
----------------
andreisfr wrote:

I implemented  isStoreToStackSlot /isLoadFromStackSlot functions and simplified callee-saved instructions checking.

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


More information about the llvm-commits mailing list