LLVM API Documentation
#include <MachineScheduler.h>
Public Member Functions | |
virtual | ~MachineSchedStrategy () |
virtual void | initPolicy (MachineBasicBlock::iterator Begin, MachineBasicBlock::iterator End, unsigned NumRegionInstrs) |
Optionally override the per-region scheduling policy. | |
virtual bool | shouldTrackPressure () const |
virtual void | initialize (ScheduleDAGMI *DAG)=0 |
Initialize the strategy after building the DAG for a new region. | |
virtual void | registerRoots () |
virtual SUnit * | pickNode (bool &IsTopNode)=0 |
virtual void | scheduleTree (unsigned SubtreeID) |
Scheduler callback to notify that a new subtree is scheduled. | |
virtual void | schedNode (SUnit *SU, bool IsTopNode)=0 |
virtual void | releaseTopNode (SUnit *SU)=0 |
virtual void | releaseBottomNode (SUnit *SU)=0 |
MachineSchedStrategy - Interface to the scheduling algorithm used by ScheduleDAGMI.
Initialization sequence: initPolicy -> shouldTrackPressure -> initialize(DAG) -> registerRoots
Definition at line 169 of file MachineScheduler.h.
virtual llvm::MachineSchedStrategy::~MachineSchedStrategy | ( | ) | [inline, virtual] |
Definition at line 172 of file MachineScheduler.h.
virtual void llvm::MachineSchedStrategy::initialize | ( | ScheduleDAGMI * | DAG | ) | [pure virtual] |
Initialize the strategy after building the DAG for a new region.
Implemented in llvm::PostGenericScheduler, llvm::GenericScheduler, llvm::ConvergingVLIWScheduler, and llvm::R600SchedStrategy.
virtual void llvm::MachineSchedStrategy::initPolicy | ( | MachineBasicBlock::iterator | Begin, |
MachineBasicBlock::iterator | End, | ||
unsigned | NumRegionInstrs | ||
) | [inline, virtual] |
Optionally override the per-region scheduling policy.
Reimplemented in llvm::PostGenericScheduler, and llvm::GenericScheduler.
Definition at line 175 of file MachineScheduler.h.
virtual SUnit* llvm::MachineSchedStrategy::pickNode | ( | bool & | IsTopNode | ) | [pure virtual] |
Pick the next node to schedule, or return NULL. Set IsTopNode to true to schedule the node at the top of the unscheduled region. Otherwise it will be scheduled at the bottom.
Implemented in llvm::PostGenericScheduler, llvm::GenericScheduler, llvm::ConvergingVLIWScheduler, and llvm::R600SchedStrategy.
virtual void llvm::MachineSchedStrategy::registerRoots | ( | ) | [inline, virtual] |
Notify this strategy that all roots have been released (including those that depend on EntrySU or ExitSU).
Reimplemented in llvm::PostGenericScheduler, and llvm::GenericScheduler.
Definition at line 188 of file MachineScheduler.h.
virtual void llvm::MachineSchedStrategy::releaseBottomNode | ( | SUnit * | SU | ) | [pure virtual] |
When all successor dependencies have been resolved, free this node for bottom-up scheduling.
Implemented in llvm::PostGenericScheduler, llvm::GenericScheduler, llvm::ConvergingVLIWScheduler, and llvm::R600SchedStrategy.
virtual void llvm::MachineSchedStrategy::releaseTopNode | ( | SUnit * | SU | ) | [pure virtual] |
When all predecessor dependencies have been resolved, free this node for top-down scheduling.
Implemented in llvm::PostGenericScheduler, llvm::GenericScheduler, llvm::ConvergingVLIWScheduler, and llvm::R600SchedStrategy.
virtual void llvm::MachineSchedStrategy::schedNode | ( | SUnit * | SU, |
bool | IsTopNode | ||
) | [pure virtual] |
Notify MachineSchedStrategy that ScheduleDAGMI has scheduled an instruction and updated scheduled/remaining flags in the DAG nodes.
Implemented in llvm::PostGenericScheduler, llvm::GenericScheduler, llvm::ConvergingVLIWScheduler, and llvm::R600SchedStrategy.
virtual void llvm::MachineSchedStrategy::scheduleTree | ( | unsigned | SubtreeID | ) | [inline, virtual] |
Scheduler callback to notify that a new subtree is scheduled.
Reimplemented in llvm::PostGenericScheduler.
Definition at line 196 of file MachineScheduler.h.
virtual bool llvm::MachineSchedStrategy::shouldTrackPressure | ( | ) | const [inline, virtual] |
Check if pressure tracking is needed before building the DAG and initializing this strategy. Called after initPolicy.
Reimplemented in llvm::PostGenericScheduler, and llvm::GenericScheduler.
Definition at line 181 of file MachineScheduler.h.