14 #ifndef LLVM_LIB_TARGET_POWERPC_PPCHAZARDRECOGNIZERS_H 15 #define LLVM_LIB_TARGET_POWERPC_PPCHAZARDRECOGNIZERS_H 29 unsigned CurSlots, CurBranches;
31 bool isLoadAfterStore(
SUnit *SU);
32 bool isBCTRAfterSet(
SUnit *SU);
33 bool mustComeFirst(
const MCInstrDesc *MCID,
unsigned &NSlots);
38 CurSlots(0), CurBranches(0) {}
46 void Reset()
override;
72 const Value *StoreValue[4];
73 int64_t StoreOffset[4];
74 uint64_t StoreSize[4];
82 void Reset()
override;
87 void EndDispatchGroup();
92 bool &isFirst,
bool &isSingle,
bool &isCracked,
95 bool isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset,
96 const Value *LoadValue)
const;
This class represents lattice values for constants.
Describe properties that are true of each instruction in the target description file.
void RecedeCycle() override
RecedeCycle - This callback is invoked whenever the next bottom-up instruction to be scheduled cannot...
unsigned PreEmitNoops(SUnit *SU) override
PreEmitNoops - This callback is invoked prior to emitting an instruction.
PPCDispatchGroupSBHazardRecognizer - This class implements a scoreboard-based hazard recognizer for P...
static bool isLoad(int Opcode)
static bool isStore(int Opcode)
Itinerary data supplied by a subtarget to be used by a target.
void EmitNoop() override
EmitNoop - This callback is invoked when a noop was added to the instruction stream.
void Reset() override
Reset - This callback is invoked when a new block of instructions is about to be schedule.
HazardRecognizer - This determines whether or not an instruction can be issued this cycle...
PPCHazardRecognizer970 - This class defines a finite state automata that models the dispatch logic on...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
bool ShouldPreferAnother(SUnit *SU) override
ShouldPreferAnother - This callback may be invoked if getHazardType returns NoHazard.
void AdvanceCycle() override
AdvanceCycle - This callback is invoked whenever the next top-down instruction to be scheduled cannot...
LLVM Value Representation.
void EmitInstruction(SUnit *SU) override
EmitInstruction - This callback is invoked when an instruction is emitted, to advance the hazard stat...
PPCDispatchGroupSBHazardRecognizer(const InstrItineraryData *ItinData, const ScheduleDAG *DAG_)
HazardType getHazardType(SUnit *SU, int Stalls) override
getHazardType - Return the hazard type of emitting this node.
Scheduling unit. This is a node in the scheduling DAG.