LLVM  8.0.1
Classes | Public Member Functions | List of all members
llvm::SystemZPostRASchedStrategy Class Reference

A MachineSchedStrategy implementation for SystemZ post RA scheduling. More...

#include "Target/SystemZ/SystemZMachineScheduler.h"

Inheritance diagram for llvm::SystemZPostRASchedStrategy:
Inheritance graph
[legend]
Collaboration diagram for llvm::SystemZPostRASchedStrategy:
Collaboration graph
[legend]

Public Member Functions

 SystemZPostRASchedStrategy (const MachineSchedContext *C)
 
virtual ~SystemZPostRASchedStrategy ()
 
void initPolicy (MachineBasicBlock::iterator Begin, MachineBasicBlock::iterator End, unsigned NumRegionInstrs) override
 Called for a region before scheduling. More...
 
bool shouldTrackPressure () const override
 PostRA scheduling does not track pressure. More...
 
bool doMBBSchedRegionsTopDown () const override
 
void initialize (ScheduleDAGMI *dag) override
 Initialize the strategy after building the DAG for a new region. More...
 
void enterMBB (MachineBasicBlock *NextMBB) override
 Tell the strategy that MBB is about to be processed. More...
 
void leaveMBB () override
 Tell the strategy that current MBB is done. More...
 
SUnitpickNode (bool &IsTopNode) override
 Pick the next node to schedule, or return NULL. More...
 
void schedNode (SUnit *SU, bool IsTopNode) override
 ScheduleDAGMI has scheduled an instruction - tell HazardRec about it. More...
 
void releaseTopNode (SUnit *SU) override
 SU has had all predecessor dependencies resolved. More...
 
void releaseBottomNode (SUnit *SU) override
 Currently only scheduling top-down, so this method is empty. More...
 
- Public Member Functions inherited from llvm::MachineSchedStrategy
virtual ~MachineSchedStrategy ()=default
 
virtual void dumpPolicy () const
 
virtual bool shouldTrackLaneMasks () const
 Returns true if lanemasks should be tracked. More...
 
virtual void registerRoots ()
 Notify this strategy that all roots have been released (including those that depend on EntrySU or ExitSU). More...
 
virtual void scheduleTree (unsigned SubtreeID)
 Scheduler callback to notify that a new subtree is scheduled. More...
 

Detailed Description

A MachineSchedStrategy implementation for SystemZ post RA scheduling.

Definition at line 31 of file SystemZMachineScheduler.h.

Constructor & Destructor Documentation

◆ SystemZPostRASchedStrategy()

SystemZPostRASchedStrategy::SystemZPostRASchedStrategy ( const MachineSchedContext C)

◆ ~SystemZPostRASchedStrategy()

SystemZPostRASchedStrategy::~SystemZPostRASchedStrategy ( )
virtual

Definition at line 138 of file SystemZMachineScheduler.cpp.

References I.

Member Function Documentation

◆ doMBBSchedRegionsTopDown()

bool llvm::SystemZPostRASchedStrategy::doMBBSchedRegionsTopDown ( ) const
inlineoverridevirtual

◆ enterMBB()

void SystemZPostRASchedStrategy::enterMBB ( MachineBasicBlock NextMBB)
overridevirtual

◆ initialize()

void SystemZPostRASchedStrategy::initialize ( ScheduleDAGMI DAG)
overridevirtual

Initialize the strategy after building the DAG for a new region.

Implements llvm::MachineSchedStrategy.

Definition at line 74 of file SystemZMachineScheduler.cpp.

References llvm::SystemZHazardRecognizer::dumpState(), and LLVM_DEBUG.

Referenced by doMBBSchedRegionsTopDown().

◆ initPolicy()

void SystemZPostRASchedStrategy::initPolicy ( MachineBasicBlock::iterator  Begin,
MachineBasicBlock::iterator  End,
unsigned  NumRegionInstrs 
)
overridevirtual

Called for a region before scheduling.

Reimplemented from llvm::MachineSchedStrategy.

Definition at line 146 of file SystemZMachineScheduler.cpp.

◆ leaveMBB()

void SystemZPostRASchedStrategy::leaveMBB ( )
overridevirtual

Tell the strategy that current MBB is done.

Reimplemented from llvm::MachineSchedStrategy.

Definition at line 120 of file SystemZMachineScheduler.cpp.

References llvm::dbgs(), llvm::MachineBasicBlock::getFirstTerminator(), LLVM_DEBUG, llvm::printMBBReference(), and SystemZPostRASchedStrategy().

Referenced by doMBBSchedRegionsTopDown().

◆ pickNode()

SUnit * SystemZPostRASchedStrategy::pickNode ( bool IsTopNode)
overridevirtual

◆ releaseBottomNode()

void llvm::SystemZPostRASchedStrategy::releaseBottomNode ( SUnit SU)
inlineoverridevirtual

Currently only scheduling top-down, so this method is empty.

Implements llvm::MachineSchedStrategy.

Definition at line 151 of file SystemZMachineScheduler.h.

◆ releaseTopNode()

void SystemZPostRASchedStrategy::releaseTopNode ( SUnit SU)
overridevirtual

◆ schedNode()

void SystemZPostRASchedStrategy::schedNode ( SUnit SU,
bool  IsTopNode 
)
overridevirtual

ScheduleDAGMI has scheduled an instruction - tell HazardRec about it.

Implements llvm::MachineSchedStrategy.

Definition at line 241 of file SystemZMachineScheduler.cpp.

References llvm::dbgs(), llvm::SystemZHazardRecognizer::EmitInstruction(), if(), LLVM_DEBUG, and llvm::SUnit::NodeNum.

Referenced by doMBBSchedRegionsTopDown().

◆ shouldTrackPressure()

bool llvm::SystemZPostRASchedStrategy::shouldTrackPressure ( ) const
inlineoverridevirtual

PostRA scheduling does not track pressure.

Reimplemented from llvm::MachineSchedStrategy.

Definition at line 125 of file SystemZMachineScheduler.h.


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