[llvm] [llvm] Support multiple save/restore points in mir (PR #119357)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 7 13:19:58 PDT 2025
================
@@ -825,10 +825,21 @@ class MachineFrameInfo {
void setCalleeSavedInfoValid(bool v) { CSIValid = v; }
- MachineBasicBlock *getSavePoint() const { return Save; }
- void setSavePoint(MachineBasicBlock *NewSave) { Save = NewSave; }
- MachineBasicBlock *getRestorePoint() const { return Restore; }
- void setRestorePoint(MachineBasicBlock *NewRestore) { Restore = NewRestore; }
+ const std::vector<MachineBasicBlock *> &getSavePoints() const {
+ return SavePoints;
+ }
+ void setSavePoints(std::vector<MachineBasicBlock *> NewSavePoints) {
----------------
preames wrote:
Use an ArrayRef instead, construct the SmallVector from it.
https://github.com/llvm/llvm-project/pull/119357
More information about the llvm-commits
mailing list