13 #ifndef LLVM_LIB_TARGET_AMDGPUHAZARDRECOGNIZERS_H 14 #define LLVM_LIB_TARGET_AMDGPUHAZARDRECOGNIZERS_H 24 class MachineFunction;
27 class MachineRegisterInfo;
39 bool IsHazardRecognizerMode;
45 std::list<MachineInstr*> EmittedInstrs;
69 int getWaitStatesSince(IsHazardFn IsHazard,
int Limit);
70 int getWaitStatesSinceDef(
unsigned Reg, IsHazardFn IsHazardDef,
int Limit);
71 int getWaitStatesSinceSetReg(IsHazardFn IsHazard,
int Limit);
117 #endif //LLVM_LIB_TARGET_AMDGPUHAZARDRECOGNIZERS_H This class represents lattice values for constants.
An efficient, type-erasing, non-owning reference to a callable.
function_ref< bool(MachineInstr *)> IsHazardFn
void EmitNoop() override
EmitNoop - This callback is invoked when a noop was added to the instruction stream.
Provide an instruction scheduling machine model to CodeGen passes.
unsigned PreEmitNoops(SUnit *SU) override
PreEmitNoops - This callback is invoked prior to emitting an instruction.
void RecedeCycle() override
RecedeCycle - This callback is invoked whenever the next bottom-up instruction to be scheduled cannot...
void EmitInstruction(SUnit *SU) override
EmitInstruction - This callback is invoked when an instruction is emitted, to advance the hazard stat...
unsigned const MachineRegisterInfo * MRI
HazardRecognizer - This determines whether or not an instruction can be issued this cycle...
HazardType getHazardType(SUnit *SU, int Stalls) override
getHazardType - Return the hazard type of emitting this node.
MachineOperand class - Representation of each machine instruction operand.
GCNHazardRecognizer(const MachineFunction &MF)
void AdvanceCycle() override
AdvanceCycle - This callback is invoked whenever the next top-down instruction to be scheduled cannot...
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
Representation of each machine instruction.
bool atIssueLimit() const override
atIssueLimit - Return true if no more instructions may be issued in this cycle.
Scheduling unit. This is a node in the scheduling DAG.
unsigned PreEmitNoopsCommon(MachineInstr *)