LLVM API Documentation
#include <ARMHazardRecognizer.h>
Public Member Functions | |
ARMHazardRecognizer (const InstrItineraryData *ItinData, const ScheduleDAG *DAG) | |
HazardType | getHazardType (SUnit *SU, int Stalls) override |
void | Reset () override |
void | EmitInstruction (SUnit *SU) override |
void | AdvanceCycle () override |
void | RecedeCycle () override |
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.
llvm::ARMHazardRecognizer::ARMHazardRecognizer | ( | const InstrItineraryData * | ItinData, |
const ScheduleDAG * | DAG | ||
) | [inline] |
Definition at line 35 of file ARMHazardRecognizer.h.
void ARMHazardRecognizer::AdvanceCycle | ( | ) | [override, 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.
void ARMHazardRecognizer::EmitInstruction | ( | SUnit * | ) | [override, 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::SUnit::getInstr(), llvm::MachineInstr::isDebugValue(), and llvm::AArch64CC::MI.
ScheduleHazardRecognizer::HazardType ARMHazardRecognizer::getHazardType | ( | SUnit * | m, |
int | Stalls | ||
) | [override, 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::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::SUnit::getInstr(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::ARMBaseInstrInfo::getRegisterInfo(), llvm::ARMBaseInstrInfo::getSubtarget(), llvm::TargetMachine::getSubtargetImpl(), 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::AArch64CC::MI, TII, llvm::SystemZISD::TM, and llvm::MCInstrDesc::TSFlags.
void ARMHazardRecognizer::RecedeCycle | ( | ) | [override, 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.
void ARMHazardRecognizer::Reset | ( | ) | [override, 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.