[llvm] [ARM] Refactor ARMFrameLowering (NFC) (PR #110283)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 13:28:21 PDT 2024


================
@@ -90,13 +90,12 @@ class ARMFrameLowering : public TargetFrameLowering {
 private:
   void emitPushInst(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
                     ArrayRef<CalleeSavedInfo> CSI, unsigned StmOpc,
-                    unsigned StrOpc, bool NoGap, bool (*Func)(unsigned, bool),
-                    unsigned NumAlignedDPRCS2Regs, unsigned MIFlags = 0) const;
+                    unsigned StrOpc, bool NoGap,
+                    std::function<bool(unsigned)> Func) const;
   void emitPopInst(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
                    MutableArrayRef<CalleeSavedInfo> CSI, unsigned LdmOpc,
                    unsigned LdrOpc, bool isVarArg, bool NoGap,
-                   bool (*Func)(unsigned, bool),
-                   unsigned NumAlignedDPRCS2Regs) const;
+                   std::function<bool(unsigned)> Func) const;
----------------
efriedma-quic wrote:

llvm::function_ref

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


More information about the llvm-commits mailing list