LLVM API Documentation

Public Member Functions
llvm::MachineSchedStrategy Class Reference

#include <MachineScheduler.h>

Inheritance diagram for llvm::MachineSchedStrategy:
Inheritance graph
[legend]

List of all members.

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 SUnitpickNode (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

Detailed Description

MachineSchedStrategy - Interface to the scheduling algorithm used by ScheduleDAGMI.

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

Definition at line 169 of file MachineScheduler.h.


Constructor & Destructor Documentation

Definition at line 172 of file MachineScheduler.h.


Member Function Documentation

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.


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