LLVM 20.0.0git
|
Determines the latest safe point in a block in which we can insert a split, spill or other instruction related with CurLI. More...
#include "CodeGen/SplitKit.h"
Public Member Functions | |
InsertPointAnalysis (const LiveIntervals &lis, unsigned BBNum) | |
SlotIndex | getLastInsertPoint (const LiveInterval &CurLI, const MachineBasicBlock &MBB) |
Return the base index of the last valid insert point for \pCurLI in \pMBB. | |
MachineBasicBlock::iterator | getLastInsertPointIter (const LiveInterval &CurLI, MachineBasicBlock &MBB) |
Returns the last insert point as an iterator for \pCurLI in \pMBB. | |
SlotIndex | getFirstInsertPoint (MachineBasicBlock &MBB) |
Return the base index of the first insert point in \pMBB. | |
Determines the latest safe point in a block in which we can insert a split, spill or other instruction related with CurLI.
Definition at line 50 of file SplitKit.h.
InsertPointAnalysis::InsertPointAnalysis | ( | const LiveIntervals & | lis, |
unsigned | BBNum | ||
) |
Definition at line 61 of file SplitKit.cpp.
|
inline |
Return the base index of the first insert point in \pMBB.
Definition at line 82 of file SplitKit.h.
References llvm::LiveIntervals::getInstructionIndex(), llvm::LiveIntervals::getMBBStartIdx(), and MBB.
Referenced by llvm::SplitAnalysis::getFirstSplitPoint().
|
inline |
Return the base index of the last valid insert point for \pCurLI in \pMBB.
Definition at line 67 of file SplitKit.h.
References MBB.
Referenced by getLastInsertPointIter(), and llvm::SplitAnalysis::getLastSplitPoint().
MachineBasicBlock::iterator InsertPointAnalysis::getLastInsertPointIter | ( | const LiveInterval & | CurLI, |
MachineBasicBlock & | MBB | ||
) |
Returns the last insert point as an iterator for \pCurLI in \pMBB.
Definition at line 142 of file SplitKit.cpp.
References llvm::MachineBasicBlock::end(), llvm::LiveIntervals::getInstructionFromIndex(), getLastInsertPoint(), llvm::LiveIntervals::getMBBEndIdx(), and MBB.
Referenced by llvm::SplitAnalysis::getLastSplitPointIter().