15 #ifndef LLVM_CODEGEN_SCHEDULEHAZARDRECOGNIZER_H 16 #define LLVM_CODEGEN_SCHEDULEHAZARDRECOGNIZER_H 46 bool isEnabled()
const {
return MaxLookAhead != 0; }
122 #endif // LLVM_CODEGEN_SCHEDULEHAZARDRECOGNIZER_H virtual void EmitInstruction(MachineInstr *)
This overload will be used when the hazard recognizer is being used by a non-scheduling pass...
This class represents lattice values for constants.
virtual ~ScheduleHazardRecognizer()
virtual void AdvanceCycle()
AdvanceCycle - This callback is invoked whenever the next top-down instruction to be scheduled cannot...
virtual void RecedeCycle()
RecedeCycle - This callback is invoked whenever the next bottom-up instruction to be scheduled cannot...
unsigned MaxLookAhead
MaxLookAhead - Indicate the number of cycles in the scoreboard state.
unsigned getMaxLookAhead() const
HazardRecognizer - This determines whether or not an instruction can be issued this cycle...
virtual unsigned PreEmitNoops(MachineInstr *)
This overload will be used when the hazard recognizer is being used by a non-scheduling pass...
virtual bool ShouldPreferAnother(SUnit *)
ShouldPreferAnother - This callback may be invoked if getHazardType returns NoHazard.
virtual void EmitNoop()
EmitNoop - This callback is invoked when a noop was added to the instruction stream.
virtual void EmitInstruction(SUnit *)
EmitInstruction - This callback is invoked when an instruction is emitted, to advance the hazard stat...
ScheduleHazardRecognizer()=default
virtual void Reset()
Reset - This callback is invoked when a new block of instructions is about to be schedule.
virtual unsigned PreEmitNoops(SUnit *)
PreEmitNoops - This callback is invoked prior to emitting an instruction.
Representation of each machine instruction.
virtual HazardType getHazardType(SUnit *m, int Stalls=0)
getHazardType - Return the hazard type of emitting this node.
Scheduling unit. This is a node in the scheduling DAG.
virtual bool atIssueLimit() const
atIssueLimit - Return true if no more instructions may be issued in this cycle.