[llvm] [CodeGen][Hexagon] Pass the shared RegisterClassInfo object to Hexagon frame lowering (PR #216752)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 19 13:48:13 PDT 2026
================
@@ -400,6 +401,14 @@ class LLVM_ABI TargetFrameLowering {
virtual void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
RegScavenger *RS = nullptr) const;
+ /// Called immediately before determineCalleeSaves with the shared
+ /// RegisterClassInfo from the pass manager. Default is a no-op.
+ /// Required since adding to determineCalleeSaves would require modifying
+ /// every target override.
+ virtual void processFunctionBeforeCalleeSaves(
+ MachineFunction &MF, RegScavenger *RS = nullptr,
+ const RegisterClassInfo *RCI = nullptr) const {}
----------------
arsenm wrote:
Make it not optional? You make the analysis required on the single use pass
https://github.com/llvm/llvm-project/pull/216752
More information about the llvm-commits
mailing list