LLVM API Documentation
#include <ExactHazardRecognizer.h>
Public Member Functions | |
| ExactHazardRecognizer (const InstrItineraryData &ItinData) | |
| ~ExactHazardRecognizer () | |
| virtual HazardType | getHazardType (SUnit *SU) |
| virtual void | Reset () |
| virtual void | EmitInstruction (SUnit *SU) |
| virtual void | AdvanceCycle () |
Definition at line 24 of file ExactHazardRecognizer.h.
| llvm::ExactHazardRecognizer::ExactHazardRecognizer | ( | const InstrItineraryData & | ItinData | ) |
Definition at line 25 of file ExactHazardRecognizer.cpp.
References llvm::InstrItineraryData::beginStage(), DEBUG, E, llvm::InstrItineraryData::endStage(), llvm::errs(), llvm::InstrStage::getCycles(), llvm::InstrStage::getUnits(), and llvm::InstrItineraryData::isEmpty().
| llvm::ExactHazardRecognizer::~ExactHazardRecognizer | ( | ) |
Definition at line 56 of file ExactHazardRecognizer.cpp.
| ExactHazardRecognizer::HazardType llvm::ExactHazardRecognizer::getHazardType | ( | SUnit * | ) | [virtual] |
getHazardType - Return the hazard type of emitting this node. There are three possible results. Either: NoHazard: it is legal to issue this instruction on this cycle. Hazard: issuing this instruction would stall the machine. If some other instruction is available, issue it first. NoopHazard: issuing this instruction would break the program. If some other instruction can be issued, do so, otherwise issue a noop.
Reimplemented from llvm::ScheduleHazardRecognizer.
Definition at line 85 of file ExactHazardRecognizer.cpp.
References llvm::InstrItineraryData::beginStage(), DEBUG, llvm::MachineInstr::dump(), E, llvm::InstrItineraryData::endStage(), llvm::errs(), llvm::MachineInstr::getDesc(), llvm::SUnit::getInstr(), llvm::TargetInstrDesc::getSchedClass(), llvm::ScheduleHazardRecognizer::Hazard, index, llvm::SUnit::NodeNum, and llvm::ScheduleHazardRecognizer::NoHazard.
| void llvm::ExactHazardRecognizer::Reset | ( | ) | [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::ScheduleHazardRecognizer.
Definition at line 60 of file ExactHazardRecognizer.cpp.
References llvm::Intrinsic::memset.
| void llvm::ExactHazardRecognizer::EmitInstruction | ( | SUnit * | ) | [virtual] |
EmitInstruction - This callback is invoked when an instruction is emitted, to advance the hazard state.
Reimplemented from llvm::ScheduleHazardRecognizer.
Definition at line 117 of file ExactHazardRecognizer.cpp.
References llvm::InstrItineraryData::beginStage(), DEBUG, E, llvm::InstrItineraryData::endStage(), llvm::MachineInstr::getDesc(), llvm::SUnit::getInstr(), llvm::TargetInstrDesc::getSchedClass(), and index.
| void llvm::ExactHazardRecognizer::AdvanceCycle | ( | ) | [virtual] |
AdvanceCycle - This callback is invoked when no instructions can be issued on this cycle without a hazard. This should increment the internal state of the hazard recognizer so that previously "Hazard" instructions will now not be hazards.
Reimplemented from llvm::ScheduleHazardRecognizer.
Definition at line 153 of file ExactHazardRecognizer.cpp.