22 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMACHINESCHEDULER_H
23 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMACHINESCHEDULER_H
41 int ResourcesCost = 0;
43 Candidate() =
default;
51 return (GroupingCost <= 0 && !ResourcesCost);
58 bool operator() (
SUnit *lhs,
SUnit *rhs)
const {
73 struct SUSet : std::set<SUnit*, SUSorter> {
112 #endif // LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMACHINESCHEDULER_H
void releaseTopNode(SUnit *SU) override
SU has had all predecessor dependencies resolved.
SUnit * pickNode(bool &IsTopNode) override
Pick the next node to schedule, or return NULL.
ScheduleDAGMI is an implementation of ScheduleDAGInstrs that simply schedules machine instructions ac...
unsigned getHeight() const
Returns the height of this node, which is the length of the maximum path down to any node which has n...
void initialize(ScheduleDAGMI *dag) override
Initialize the strategy after building the DAG for a new region.
SystemZHazardRecognizer maintains the state during scheduling.
void schedNode(SUnit *SU, bool IsTopNode) override
ScheduleDAGMI has scheduled an instruction - tell HazardRec about it.
A MachineSchedStrategy implementation for SystemZ post RA scheduling.
void dump(const SparseBitVector< ElementSize > &LHS, raw_ostream &out)
bool isScheduleHigh
True if preferable to schedule high.
SystemZPostRASchedStrategy(const MachineSchedContext *C)
bool shouldTrackPressure() const override
PostRA scheduling does not track pressure.
MachineSchedContext provides enough context from the MachineScheduler pass for the target to instanti...
MachineSchedStrategy - Interface to the scheduling algorithm used by ScheduleDAGMI.
void releaseBottomNode(SUnit *SU) override
Currently only scheduling top-down, so this method is empty.
unsigned NodeNum
Entry # of node in the node vector.
bool operator<(int64_t V1, const APSInt &V2)
Scheduling unit. This is a node in the scheduling DAG.