52 #define DEBUG_TYPE "machine-scheduler"
72 const SUnit &Inst1,
const SUnit &Inst2)
const {
85 SUnit* LastSequentialCall =
nullptr;
86 unsigned VRegHoldingRet = 0;
88 SUnit* LastUseOfRet =
nullptr;
94 for (
unsigned su = 0, e = DAG->
SUnits.size(); su != e; ++su) {
96 if (DAG->
SUnits[su].getInstr()->isCall())
97 LastSequentialCall = &DAG->
SUnits[su];
99 else if (DAG->
SUnits[su].getInstr()->isCompare() && LastSequentialCall)
103 shouldTFRICallBind(HII, DAG->
SUnits[su], DAG->
SUnits[su+1]))
123 LastUseOfRet =
nullptr;
126 LastUseOfRet = &DAG->
SUnits[su];
155 case TargetOpcode::EXTRACT_SUBREG:
156 case TargetOpcode::INSERT_SUBREG:
157 case TargetOpcode::SUBREG_TO_REG:
158 case TargetOpcode::REG_SEQUENCE:
159 case TargetOpcode::IMPLICIT_DEF:
160 case TargetOpcode::COPY:
170 for (
unsigned i = 0, e = Packet.size(); i != e; ++i) {
171 if (Packet[i]->Succs.size() == 0)
175 if (QII.mayBeCurLoad(*Packet[i]->getInstr()))
179 E = Packet[i]->Succs.end();
I !=
E; ++
I) {
185 if (
I->getSUnit() == SU)
194 bool startNewCycle =
false;
210 startNewCycle =
true;
217 case TargetOpcode::EXTRACT_SUBREG:
218 case TargetOpcode::INSERT_SUBREG:
219 case TargetOpcode::SUBREG_TO_REG:
220 case TargetOpcode::REG_SEQUENCE:
221 case TargetOpcode::IMPLICIT_DEF:
223 case TargetOpcode::CFI_INSTRUCTION:
225 case TargetOpcode::COPY:
229 Packet.push_back(SU);
232 DEBUG(
dbgs() <<
"Packet[" << TotalPackets <<
"]:\n");
233 for (
unsigned i = 0, e = Packet.size(); i != e; ++i) {
235 DEBUG(
dbgs() << Packet[i]->NodeNum <<
")\t");
247 startNewCycle =
true;
250 return startNewCycle;
258 <<
"********** MI Converging Scheduling VLIW BB#" <<
BB->
getNumber()
272 DEBUG(
unsigned maxH = 0;
273 for (
unsigned su = 0, e =
SUnits.size(); su != e; ++su)
274 if (
SUnits[su].getHeight() > maxH)
275 maxH =
SUnits[su].getHeight();
276 dbgs() <<
"Max Height " << maxH <<
"\n";);
277 DEBUG(
unsigned maxD = 0;
278 for (
unsigned su = 0, e =
SUnits.size(); su != e; ++su)
279 if (
SUnits[su].getDepth() > maxD)
280 maxD =
SUnits[su].getDepth();
281 dbgs() <<
"Max Depth " << maxD <<
"\n";);
282 DEBUG(
for (
unsigned su = 0, e =
SUnits.size(); su != e; ++su)
283 SUnits[su].dumpAll(
this));
287 bool IsTopNode =
false;
289 DEBUG(
dbgs() <<
"** VLIWMachineScheduler::schedule picking next node\n");
308 unsigned BBNum =
begin()->getParent()->getNumber();
309 dbgs() <<
"*** Final schedule for BB#" << BBNum <<
" ***\n";
319 Top.init(DAG, SchedModel);
320 Bot.init(DAG, SchedModel);
327 delete Top.HazardRec;
328 delete Bot.HazardRec;
332 delete Top.ResourceModel;
333 delete Bot.ResourceModel;
338 "-misched-topdown incompatible with -misched-bottomup");
340 DAG->addMutation(make_unique<HexagonSubtarget::HexagonDAGMutation>());
341 DAG->addMutation(make_unique<HexagonCallMutation>());
352 Top.MaxMinLatency =
std::max(MinLatency, Top.MaxMinLatency);
368 unsigned SuccReadyCycle =
I->getSUnit()->BotReadyCycle;
369 unsigned MinLatency =
I->getLatency();
371 Bot.MaxMinLatency =
std::max(MinLatency, Bot.MaxMinLatency);
392 bool ConvergingVLIWScheduler::VLIWSchedBoundary::checkHazard(
SUnit *SU) {
393 if (HazardRec->isEnabled())
396 unsigned uops = SchedModel->getNumMicroOps(SU->
getInstr());
397 if (IssueCount + uops > SchedModel->getIssueWidth())
403 void ConvergingVLIWScheduler::VLIWSchedBoundary::releaseNode(
SUnit *SU,
404 unsigned ReadyCycle) {
405 if (ReadyCycle < MinReadyCycle)
406 MinReadyCycle = ReadyCycle;
410 if (ReadyCycle > CurrCycle || checkHazard(SU))
418 void ConvergingVLIWScheduler::VLIWSchedBoundary::bumpCycle() {
419 unsigned Width = SchedModel->getIssueWidth();
420 IssueCount = (IssueCount <= Width) ? 0 : IssueCount - Width;
422 assert(MinReadyCycle < UINT_MAX &&
"MinReadyCycle uninitialized");
423 unsigned NextCycle =
std::max(CurrCycle + 1, MinReadyCycle);
425 if (!HazardRec->isEnabled()) {
427 CurrCycle = NextCycle;
430 for (; CurrCycle != NextCycle; ++CurrCycle) {
432 HazardRec->AdvanceCycle();
434 HazardRec->RecedeCycle();
439 DEBUG(
dbgs() <<
"*** Next cycle " << Available.getName() <<
" cycle "
440 << CurrCycle <<
'\n');
444 void ConvergingVLIWScheduler::VLIWSchedBoundary::bumpNode(
SUnit *SU) {
445 bool startNewCycle =
false;
448 if (HazardRec->isEnabled()) {
449 if (!isTop() && SU->
isCall) {
454 HazardRec->EmitInstruction(SU);
458 startNewCycle = ResourceModel->reserveResources(SU);
462 IssueCount += SchedModel->getNumMicroOps(SU->
getInstr());
464 DEBUG(
dbgs() <<
"*** Max instrs at cycle " << CurrCycle <<
'\n');
468 DEBUG(
dbgs() <<
"*** IssueCount " << IssueCount
469 <<
" at cycle " << CurrCycle <<
'\n');
474 void ConvergingVLIWScheduler::VLIWSchedBoundary::releasePending() {
476 if (Available.empty())
477 MinReadyCycle = UINT_MAX;
481 for (
unsigned i = 0, e = Pending.size(); i != e; ++i) {
482 SUnit *SU = *(Pending.begin()+i);
485 if (ReadyCycle < MinReadyCycle)
486 MinReadyCycle = ReadyCycle;
488 if (ReadyCycle > CurrCycle)
495 Pending.remove(Pending.begin()+i);
498 CheckPending =
false;
502 void ConvergingVLIWScheduler::VLIWSchedBoundary::removeReady(
SUnit *SU) {
503 if (Available.isInQueue(SU))
504 Available.remove(Available.find(SU));
506 assert(Pending.isInQueue(SU) &&
"bad ready count");
507 Pending.remove(Pending.find(SU));
514 SUnit *ConvergingVLIWScheduler::VLIWSchedBoundary::pickOnlyChoice() {
518 for (
unsigned i = 0; Available.empty(); ++i) {
519 assert(i <= (HazardRec->getMaxLookAhead() + MaxMinLatency) &&
520 "permanent hazard"); (void)i;
521 ResourceModel->reserveResources(
nullptr);
525 if (Available.size() == 1)
526 return *Available.begin();
539 dbgs() <<
"cost(" << Cost <<
")\t";
553 DAG->getRegionCriticalPSets(),
554 DAG->getRegPressure().MaxSetPressure);
555 std::stringstream dbgstr;
556 dbgstr <<
"SU(" << std::setw(3) << (*I)->NodeNum <<
")";
557 dbgs() << dbgstr.str();
560 (*I)->getInstr()->dump();
572 for (
auto &Pred : SU->
Preds) {
574 if (!Pred.getSUnit()->isScheduled && (Pred.getSUnit() != SU2))
587 for (
auto &Succ : SU->
Succs) {
589 if (!Succ.getSUnit()->isScheduled && (Succ.getSUnit() != SU2))
606 SchedCandidate &Candidate,
630 std::stringstream dbgstr;
631 dbgstr <<
"h" << std::setw(3) << SU->
getHeight() <<
"|";
632 dbgs() << dbgstr.str();
637 if (Top.ResourceModel->isResourceAvailable(SU)) {
647 std::stringstream dbgstr;
648 dbgstr <<
"d" << std::setw(3) << SU->
getDepth() <<
"|";
649 dbgs() << dbgstr.str();
654 if (Bot.ResourceModel->isResourceAvailable(SU)) {
662 unsigned NumNodesBlocking = 0;
677 ResCount += (NumNodesBlocking *
ScaleTwo);
680 std::stringstream dbgstr;
681 dbgstr <<
"blk " << std::setw(2) << NumNodesBlocking <<
")|";
682 dbgs() << dbgstr.str();
706 if (Q.
getID() ==
TopQID && Top.ResourceModel->isResourceAvailable(SU)) {
710 Bot.ResourceModel->isResourceAvailable(SU)) {
722 Top.ResourceModel->isInPacket(PI.
getSUnit())) {
731 Bot.ResourceModel->isInPacket(SI.
getSUnit())) {
740 if (QII.isHVXVec(Instr)) {
743 for (
auto J : Top.ResourceModel->OldPacket)
744 if (QII.producesStall(*J->getInstr(), Instr))
747 for (
auto J : Bot.ResourceModel->OldPacket)
748 if (QII.producesStall(Instr, *J->getInstr()))
760 for (
const auto &PI : SU->
Preds) {
761 if (PI.getLatency() > 0 &&
762 Top.ResourceModel->isInPacket(PI.getSUnit())) {
768 for (
const auto &
SI : SU->
Succs) {
769 if (
SI.getLatency() > 0 &&
770 Bot.ResourceModel->isInPacket(
SI.getSUnit())) {
779 std::stringstream dbgstr;
780 dbgstr <<
"Total " << std::setw(4) << ResCount <<
")";
781 dbgs() << dbgstr.str();
794 SchedCandidate &Candidate) {
803 CandResult FoundCandidate = NoCand;
806 TempTracker.getMaxPressureDelta((*I)->getInstr(), RPDelta,
807 DAG->getRegionCriticalPSets(),
808 DAG->getRegPressure().MaxSetPressure);
816 Candidate.RPDelta = RPDelta;
817 Candidate.SCost = CurrentCost;
818 FoundCandidate = NodeOrder;
823 if (CurrentCost > Candidate.SCost) {
826 Candidate.RPDelta = RPDelta;
827 Candidate.SCost = CurrentCost;
828 FoundCandidate = BestCost;
841 unsigned InstrLatency = QII.getInstrTimingClassLatency(InstrItins, *MI);
842 unsigned CandLatency = QII.getInstrTimingClassLatency(InstrItins, *CandI);
844 << CandLatency <<
" Instr:" << InstrLatency <<
"\n"
845 << *MI << *CandI <<
"\n");
846 if (Q.
getID() ==
TopQID && CurrentCost == Candidate.SCost) {
849 Candidate.RPDelta = RPDelta;
850 Candidate.SCost = CurrentCost;
851 FoundCandidate = BestCost;
852 DEBUG(
dbgs() <<
"Used top shorter tie breaker\n");
856 Candidate.RPDelta = RPDelta;
857 Candidate.SCost = CurrentCost;
858 FoundCandidate = BestCost;
859 DEBUG(
dbgs() <<
"Used top longer tie breaker\n");
862 }
else if (Q.
getID() ==
BotQID && CurrentCost == Candidate.SCost) {
865 Candidate.RPDelta = RPDelta;
866 Candidate.SCost = CurrentCost;
867 FoundCandidate = BestCost;
868 DEBUG(
dbgs() <<
"Used Bot shorter tie breaker\n");
872 Candidate.RPDelta = RPDelta;
873 Candidate.SCost = CurrentCost;
874 FoundCandidate = BestCost;
875 DEBUG(
dbgs() <<
"Used Bot longer tie breaker\n");
881 if (CurrentCost == Candidate.SCost) {
883 (*I)->Succs.size() > Candidate.SU->Succs.size()) ||
885 (*I)->Preds.size() < Candidate.SU->Preds.size())) {
888 Candidate.RPDelta = RPDelta;
889 Candidate.SCost = CurrentCost;
890 FoundCandidate = BestCost;
897 if (FoundCandidate == NoCand)
900 return FoundCandidate;
907 if (
SUnit *SU = Bot.pickOnlyChoice()) {
912 if (
SUnit *SU = Top.pickOnlyChoice()) {
917 SchedCandidate BotCand;
920 DAG->getBotRPTracker(), BotCand);
921 assert(BotResult != NoCand &&
"failed to find the first candidate");
930 if (BotResult == SingleExcess || BotResult == SingleCritical) {
931 DEBUG(
dbgs() <<
"Prefered Bottom Node\n");
936 SchedCandidate TopCand;
938 DAG->getTopRPTracker(), TopCand);
939 assert(TopResult != NoCand &&
"failed to find the first candidate");
941 if (TopResult == SingleExcess || TopResult == SingleCritical) {
948 if (BotResult == SingleMax) {
949 DEBUG(
dbgs() <<
"Prefered Bottom Node SingleMax\n");
953 if (TopResult == SingleMax) {
954 DEBUG(
dbgs() <<
"Prefered Top Node SingleMax\n");
958 if (TopCand.SCost > BotCand.SCost) {
959 DEBUG(
dbgs() <<
"Prefered Top Node Cost\n");
964 DEBUG(
dbgs() <<
"Prefered Bottom in Node order\n");
971 if (DAG->top() == DAG->bottom()) {
972 assert(Top.Available.empty() && Top.Pending.empty() &&
973 Bot.Available.empty() && Bot.Pending.empty() &&
"ReadyQ garbage");
978 SU = Top.pickOnlyChoice();
980 SchedCandidate TopCand;
981 CandResult TopResult =
983 assert(TopResult != NoCand &&
"failed to find the first candidate");
989 SU = Bot.pickOnlyChoice();
991 SchedCandidate BotCand;
992 CandResult BotResult =
994 assert(BotResult != NoCand &&
"failed to find the first candidate");
1003 Top.removeReady(SU);
1005 Bot.removeReady(SU);
1007 DEBUG(
dbgs() <<
"*** " << (IsTopNode ?
"Top" :
"Bottom")
1008 <<
" Scheduling Instruction in cycle "
1009 << (IsTopNode ? Top.CurrCycle : Bot.CurrCycle) <<
'\n';
virtual ScheduleHazardRecognizer * CreateTargetMIHazardRecognizer(const InstrItineraryData *, const ScheduleDAG *DAG) const
Allocate and return a hazard recognizer to use for this target when scheduling the machine instructio...
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
void schedule() override
Schedule - This is called back from ScheduleDAGInstrs::Run() when it's time to do some work...
static bool isSingleUnscheduledPred(SUnit *SU, SUnit *SU2)
isSingleUnscheduledPred - If SU2 is the only unscheduled predecessor of SU, return true (we may have ...
void dumpSchedule() const
dump the scheduled Sequence.
Extend the standard ScheduleDAGMI to provide more context and override the top-level schedule() drive...
static cl::opt< unsigned > SchedDebugVerboseLevel("misched-verbose-level", cl::Hidden, cl::ZeroOrMore, cl::init(1))
int getNumber() const
MachineBasicBlocks are uniquely numbered at the function level, unless they're not in a MachineFuncti...
void readyQueueVerboseDump(const RegPressureTracker &RPTracker, SchedCandidate &Candidate, ReadyQueue &Q)
int SchedulingCost(ReadyQueue &Q, SUnit *SU, SchedCandidate &Candidate, RegPressureDelta &Delta, bool verbose)
Single point to compute overall scheduling cost.
MachineBasicBlock::iterator CurrentTop
The top of the unscheduled zone.
bool isPseudo(QueryType Type=IgnoreBundle) const
Return true if this is a pseudo instruction that doesn't correspond to a real machine instruction...
MachineInstr * getInstr() const
Returns the representative MachineInstr for this SUnit.
CandResult pickNodeFromQueue(ReadyQueue &Q, const RegPressureTracker &RPTracker, SchedCandidate &Candidate)
Pick the best candidate from the top queue.
static cl::opt< bool > TopUseShorterTie("top-use-shorter-tie", cl::Hidden, cl::ZeroOrMore, cl::init(false))
bool readsVirtualRegister(unsigned Reg) const
Return true if the MachineInstr reads the specified virtual register.
MachineBasicBlock::iterator begin() const
Returns an iterator to the top of the current scheduling region.
void savePacket()
Save the last formed packet.
bool isInstr() const
Returns true if this SUnit refers to a machine instruction as opposed to an SDNode.
Mutate the DAG as a postpass after normal DAG building.
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
ScheduleDAGMI is an implementation of ScheduleDAGInstrs that simply schedules machine instructions ac...
bool isAssignedRegDep() const
Tests if this is a Data dependence that is associated with a register.
std::unique_ptr< MachineSchedStrategy > SchedImpl
unsigned BotReadyCycle
Cycle relative to end when node is ready.
SmallVectorImpl< SDep >::iterator succ_iterator
void updateQueues(SUnit *SU, bool IsTopNode)
Update scheduler DAG and queues after scheduling an instruction.
SmallVector< SDep, 4 > Preds
All sunit predecessors.
StringRef getName() const
Return a constant reference to the value's name.
MachineFunction & MF
Machine function.
const TargetSchedModel * getSchedModel() const
Gets the machine model for instruction scheduling.
bool isScheduled
True once scheduled.
unsigned getHeight() const
Returns the height of this node, which is the length of the maximum path down to any node which has n...
SUnit * pickNodeBidrectional(bool &IsTopNode)
Pick the best candidate node from either the top or bottom queue.
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
static const unsigned ScaleTwo
unsigned NumSuccsLeft
of succs not scheduled.
const HexagonInstrInfo * TII
virtual const char * getRegPressureSetName(unsigned Idx) const =0
Get the name of this register unit pressure set.
static cl::opt< bool > IgnoreBBRegPressure("ignore-bb-reg-pressure", cl::Hidden, cl::ZeroOrMore, cl::init(false))
SUnit * pickNode(bool &IsTopNode) override
Pick the best node to balance the schedule. Implements MachineSchedStrategy.
INLINEASM - Represents an inline asm block.
unsigned TopReadyCycle
Cycle relative to start when node is ready.
static cl::opt< bool > BotUseShorterTie("bot-use-shorter-tie", cl::Hidden, cl::ZeroOrMore, cl::init(false))
void scheduleMI(SUnit *SU, bool IsTopNode)
Move an instruction and update register pressure.
void releaseTopNode(SUnit *SU) override
When all predecessor dependencies have been resolved, free this node for top-down scheduling...
void buildDAGWithRegPressure()
Call ScheduleDAGInstrs::buildSchedGraph with register pressure tracking enabled.
void dump(const ScheduleDAG *G) const
Itinerary data supplied by a subtarget to be used by a target.
unsigned NumPredsLeft
of preds not scheduled.
std::vector< SUnit * >::iterator iterator
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
const MachineBasicBlock * getParent() const
TargetInstrInfo - Interface to description of machine instruction set.
initializer< Ty > init(const Ty &Val)
bool isCall
Is a function call.
void initQueues(ArrayRef< SUnit * > TopRoots, ArrayRef< SUnit * > BotRoots)
Release ExitSU predecessors and setup scheduler queues.
void dump(const SparseBitVector< ElementSize > &LHS, raw_ostream &out)
Helpers for implementing custom MachineSchedStrategy classes.
* if(!EatIfPresent(lltok::kw_thread_local)) return false
ParseOptionalThreadLocal := /*empty.
PressureChange CurrentMax
The instances of the Type class are immutable: once they are created, they are never changed...
const InstrItineraryData * getInstrItineraries() const
const MachineOperand & getOperand(unsigned i) const
unsigned getLatency() const
Returns the latency value for this edge, which roughly means the minimum number of cycles that must e...
Track the current register pressure at some position in the instruction stream, and remember the high...
void findRootsAndBiasEdges(SmallVectorImpl< SUnit * > &TopRoots, SmallVectorImpl< SUnit * > &BotRoots)
bool isResourceAvailable(SUnit *SU)
Check if scheduling of this SU is possible in the current packet.
static cl::opt< bool > SchedPredsCloser("sched-preds-closer", cl::Hidden, cl::ZeroOrMore, cl::init(true))
void apply(Opt *O, const Mod &M, const Mods &...Ms)
static const unsigned FactorOne
bool definesRegister(unsigned Reg, const TargetRegisterInfo *TRI=nullptr) const
Return true if the MachineInstr fully defines the specified register.
EH_LABEL - Represents a label in mid basic block used to track locations needed for debug and excepti...
static bool isSingleUnscheduledSucc(SUnit *SU, SUnit *SU2)
isSingleUnscheduledSucc - If SU2 is the only unscheduled successor of SU, return true (we may have du...
An unknown scheduling barrier.
bool readsRegister(unsigned Reg, const TargetRegisterInfo *TRI=nullptr) const
Return true if the MachineInstr reads the specified register.
bool isScheduleHigh
True if preferable to schedule high.
void schedNode(SUnit *SU, bool IsTopNode) override
Update the scheduler's state after scheduling a node.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
const MachineLoopInfo * MLI
bool canReserveResources(const MCInstrDesc *MID)
void getMaxPressureDelta(const MachineInstr *MI, RegPressureDelta &Delta, ArrayRef< PressureChange > CriticalPSets, ArrayRef< unsigned > MaxPressureLimit)
Find the pressure set with the most change beyond its pressure limit after traversing this instructio...
void traceCandidate(const char *Label, const ReadyQueue &Q, SUnit *SU, int Cost, PressureChange P=PressureChange())
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
StringRef getName() const
Return the name of the corresponding LLVM basic block, or an empty string.
PressureChange CriticalMax
SmallVectorImpl< SDep >::const_iterator const_succ_iterator
unsigned getDepth() const
Returns the depth of this node, which is the length of the maximum path up to any node which has no p...
TargetSubtargetInfo - Generic base class for all target subtargets.
A ScheduleDAG for scheduling lists of MachineInstr.
Representation of each machine instruction.
const TargetRegisterInfo * TRI
Target processor register info.
static const unsigned PriorityOne
cl::opt< bool > ForceBottomUp
static cl::opt< bool > SchedRetvalOptimization("sched-retval-optimization", cl::Hidden, cl::ZeroOrMore, cl::init(true))
Capture a change in pressure for a single pressure set.
void placeDebugValues()
Reinsert debug_values recorded in ScheduleDAGInstrs::DbgValues.
bool reserveResources(SUnit *SU)
Keep track of available resources.
static const unsigned PriorityThree
void releaseBottomNode(SUnit *SU) override
When all successor dependencies have been resolved, free this node for bottom-up scheduling.
unsigned getLoopDepth(const MachineBasicBlock *BB) const
Return the loop nesting level of the specified block.
unsigned getReg() const
getReg - Returns the register number.
MachineBasicBlock::iterator CurrentBottom
The bottom of the unscheduled zone.
Store the effects of a change in pressure on things that MI scheduler cares about.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
std::vector< SUnit * > OldPacket
Save the last formed packet.
virtual const TargetInstrInfo * getInstrInfo() const
static cl::opt< bool > CheckEarlyAvail("check-early-avail", cl::Hidden, cl::ZeroOrMore, cl::init(true))
static const unsigned PriorityTwo
const HexagonInstrInfo * getInstrInfo() const override
SmallVector< SDep, 4 > Succs
All sunit successors.
unsigned getIssueWidth() const
Maximum number of micro-ops that may be scheduled per cycle.
bool isBottomReady() const
static cl::opt< bool > DisableTCTie("disable-tc-tie", cl::Hidden, cl::ZeroOrMore, cl::init(false))
StringRef getName() const
MachineBasicBlock * BB
The block in which to insert instructions.
virtual const TargetRegisterInfo * getRegisterInfo() const
getRegisterInfo - If register information is available, return it.
std::vector< SUnit > SUnits
The scheduling units.
uint64_t getType(const MachineInstr &MI) const
Scheduling unit. This is a node in the scheduling DAG.
cl::opt< bool > ForceTopDown
void reserveResources(const MCInstrDesc *MID)
void initialize(ScheduleDAGMI *dag) override
Initialize the strategy after building the DAG for a new region.