LLVM: llvm::MachineSchedStrategy Class Reference (original) (raw)

MachineSchedStrategy - Interface to the scheduling algorithm used by ScheduleDAGMI. More...

#include "[llvm/CodeGen/MachineScheduler.h](MachineScheduler%5F8h%5Fsource.html)"

Public Member Functions
virtual ~MachineSchedStrategy ()=default
virtual void initPolicy (MachineBasicBlock::iterator Begin, MachineBasicBlock::iterator End, unsigned NumRegionInstrs)
Optionally override the per-region scheduling policy.
virtual MachineSchedPolicy getPolicy () const
virtual void dumpPolicy () const
virtual bool shouldTrackPressure () const
Check if pressure tracking is needed before building the DAG and initializing this strategy.
virtual bool shouldTrackLaneMasks () const
Returns true if lanemasks should be tracked.
virtual bool doMBBSchedRegionsTopDown () const
virtual void initialize (ScheduleDAGMI *DAG)=0
Initialize the strategy after building the DAG for a new region.
virtual void enterMBB (MachineBasicBlock *MBB)
Tell the strategy that MBB is about to be processed.
virtual void leaveMBB ()
Tell the strategy that current MBB is done.
virtual void registerRoots ()
Notify this strategy that all roots have been released (including those that depend on EntrySU or ExitSU).
virtual SUnit * pickNode (bool &IsTopNode)=0
Pick the next node to schedule, or return NULL.
virtual void scheduleTree (unsigned SubtreeID)
Scheduler callback to notify that a new subtree is scheduled.
virtual void schedNode (SUnit *SU, bool IsTopNode)=0
Notify MachineSchedStrategy that ScheduleDAGMI has scheduled an instruction and updated scheduled/remaining flags in the DAG nodes.
virtual void releaseTopNode (SUnit *SU)=0
When all predecessor dependencies have been resolved, free this node for top-down scheduling.
virtual void releaseBottomNode (SUnit *SU)=0
When all successor dependencies have been resolved, free this node for bottom-up scheduling.

MachineSchedStrategy - Interface to the scheduling algorithm used by ScheduleDAGMI.

Initialization sequence: initPolicy -> shouldTrackPressure -> initialize(DAG) -> registerRoots

Definition at line 242 of file MachineScheduler.h.

virtual llvm::MachineSchedStrategy::~MachineSchedStrategy ( ) virtualdefault

doMBBSchedRegionsTopDown()

virtual bool llvm::MachineSchedStrategy::doMBBSchedRegionsTopDown ( ) const inlinevirtual

dumpPolicy()

virtual void llvm::MachineSchedStrategy::dumpPolicy ( ) const inlinevirtual

enterMBB()

virtual void llvm::MachineSchedStrategy::enterMBB ( MachineBasicBlock * MBB) inlinevirtual

getPolicy()

initialize()

virtual void llvm::MachineSchedStrategy::initialize ( ScheduleDAGMI * DAG) pure virtual

initPolicy()

leaveMBB()

virtual void llvm::MachineSchedStrategy::leaveMBB ( ) inlinevirtual

pickNode()

virtual SUnit * llvm::MachineSchedStrategy::pickNode ( bool & IsTopNode) pure virtual

registerRoots()

virtual void llvm::MachineSchedStrategy::registerRoots ( ) inlinevirtual

releaseBottomNode()

virtual void llvm::MachineSchedStrategy::releaseBottomNode ( SUnit * SU) pure virtual

releaseTopNode()

virtual void llvm::MachineSchedStrategy::releaseTopNode ( SUnit * SU) pure virtual

schedNode()

virtual void llvm::MachineSchedStrategy::schedNode ( SUnit * SU, bool IsTopNode ) pure virtual

scheduleTree()

virtual void llvm::MachineSchedStrategy::scheduleTree ( unsigned SubtreeID) inlinevirtual

shouldTrackLaneMasks()

virtual bool llvm::MachineSchedStrategy::shouldTrackLaneMasks ( ) const inlinevirtual

Returns true if lanemasks should be tracked.

LaneMask tracking is necessary to reorder independent subregister defs for the same vreg. This has to be enabled in combination with shouldTrackPressure().

Reimplemented in llvm::GenericScheduler.

Definition at line 263 of file MachineScheduler.h.

shouldTrackPressure()

virtual bool llvm::MachineSchedStrategy::shouldTrackPressure ( ) const inlinevirtual

The documentation for this class was generated from the following files: