LLVM API Documentation
#include <ARMHazardRecognizer.h>
Public Member Functions | |
ARMHazardRecognizer (const InstrItineraryData *ItinData, const ScheduleDAG *DAG) | |
virtual HazardType | getHazardType (SUnit *SU, int Stalls) |
virtual void | Reset () |
virtual void | EmitInstruction (SUnit *SU) |
virtual void | AdvanceCycle () |
virtual void | RecedeCycle () |
![]() | |
ScoreboardHazardRecognizer (const InstrItineraryData *ItinData, const ScheduleDAG *DAG, const char *ParentDebugType="") | |
virtual bool | atIssueLimit () const |
![]() | |
ScheduleHazardRecognizer () | |
virtual | ~ScheduleHazardRecognizer () |
unsigned | getMaxLookAhead () const |
bool | isEnabled () const |
virtual void | EmitNoop () |
Additional Inherited Members | |
![]() | |
enum | HazardType { NoHazard, Hazard, NoopHazard } |
![]() | |
unsigned | MaxLookAhead |
ARMHazardRecognizer handles special constraints that are not expressed in the scheduling itinerary. This is only used during postRA scheduling. The ARM preRA scheduler uses an unspecialized instance of the ScoreboardHazardRecognizer.
Definition at line 30 of file ARMHazardRecognizer.h.
|
inline |
Definition at line 35 of file ARMHazardRecognizer.h.
|
virtual |
AdvanceCycle - This callback is invoked whenever the next top-down instruction to be scheduled cannot issue in the current cycle, either because of latency or resource conflicts. This should increment the internal state of the hazard recognizer so that previously "Hazard" instructions will now not be hazards.
Reimplemented from llvm::ScoreboardHazardRecognizer.
Definition at line 95 of file ARMHazardRecognizer.cpp.
References llvm::ScoreboardHazardRecognizer::AdvanceCycle().
|
virtual |
EmitInstruction - This callback is invoked when an instruction is emitted, to advance the hazard state.
Reimplemented from llvm::ScoreboardHazardRecognizer.
Definition at line 85 of file ARMHazardRecognizer.cpp.
References llvm::ScoreboardHazardRecognizer::EmitInstruction(), llvm::SUnit::getInstr(), llvm::MachineInstr::isDebugValue(), and llvm::A64CC::MI.
|
virtual |
getHazardType - Return the hazard type of emitting this node. There are three possible results. Either:
Reimplemented from llvm::ScoreboardHazardRecognizer.
Definition at line 35 of file ARMHazardRecognizer.cpp.
References llvm::MachineBasicBlock::begin(), llvm::ARMBaseInstrInfo::canCauseFpMLxStall(), llvm::ARMII::DomainGeneral, llvm::ARMII::DomainMask, llvm::MachineInstr::getDesc(), llvm::ScoreboardHazardRecognizer::getHazardType(), llvm::SUnit::getInstr(), llvm::TargetMachine::getInstrInfo(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::ARMBaseInstrInfo::getRegisterInfo(), llvm::ARMBaseInstrInfo::getSubtarget(), llvm::MachineFunction::getTarget(), hasRAWHazard(), llvm::ScheduleHazardRecognizer::Hazard, I, llvm::MachineInstr::isBarrier(), llvm::MachineInstr::isDebugValue(), llvm::ARMBaseInstrInfo::isFpMLxInstruction(), llvm::ARMSubtarget::isLikeA9(), llvm::MachineInstr::mayLoad(), llvm::MachineInstr::mayStore(), llvm::A64CC::MI, llvm::prior(), TII, llvm::SystemZISD::TM, and llvm::MCInstrDesc::TSFlags.
|
virtual |
RecedeCycle - This callback is invoked whenever the next bottom-up instruction to be scheduled cannot issue in the current cycle, either because of latency or resource conflicts.
Reimplemented from llvm::ScoreboardHazardRecognizer.
Definition at line 102 of file ARMHazardRecognizer.cpp.
References llvm_unreachable.
|
virtual |
Reset - This callback is invoked when a new block of instructions is about to be schedule. The hazard state should be set to an initialized state.
Reimplemented from llvm::ScoreboardHazardRecognizer.
Definition at line 79 of file ARMHazardRecognizer.cpp.
References llvm::ScoreboardHazardRecognizer::Reset().