Lines Matching refs:SchedModel
988 const TargetSchedModel *SchedModel);
1012 void init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel);
1014 unsigned getMaxRemainingCount(const TargetSchedModel *SchedModel) const { in getMaxRemainingCount()
1015 if (!SchedModel->hasInstrSchedModel()) in getMaxRemainingCount()
1019 RemainingMicroOps * SchedModel->getMicroOpFactor(), in getMaxRemainingCount()
1029 const TargetSchedModel *SchedModel; member
1095 DAG(0), SchedModel(0), Rem(0), Available(ID, Name+".A"), in SchedBoundary()
1141 const TargetSchedModel *SchedModel; member in __anon029210900411::ConvergingScheduler
1158 DAG(0), SchedModel(0), TRI(0), Top(TopQID, "TopQ"), Bot(BotQID, "BotQ") {} in ConvergingScheduler()
1201 init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) { in init() argument
1203 if (!SchedModel->hasInstrSchedModel()) in init()
1205 RemainingCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
1209 RemainingMicroOps += SchedModel->getNumMicroOps(I->getInstr(), SC); in init()
1211 PI = SchedModel->getWriteProcResBegin(SC), in init()
1212 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in init()
1214 unsigned Factor = SchedModel->getResourceFactor(PIdx); in init()
1218 for (unsigned PIdx = 0, PEnd = SchedModel->getNumProcResourceKinds(); in init()
1221 >= (int)SchedModel->getLatencyFactor()) { in init()
1231 SchedModel = smodel; in init()
1233 if (SchedModel->hasInstrSchedModel()) in init()
1234 ResourceCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
1239 SchedModel = DAG->getSchedModel(); in initialize()
1242 Rem.init(DAG, SchedModel); in initialize()
1243 Top.init(DAG, SchedModel, &Rem); in initialize()
1244 Bot.init(DAG, SchedModel, &Rem); in initialize()
1252 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
1327 unsigned uops = SchedModel->getNumMicroOps(SU->getInstr()); in checkHazard()
1328 if ((IssueCount > 0) && (IssueCount + uops > SchedModel->getIssueWidth())) { in checkHazard()
1330 << SchedModel->getNumMicroOps(SU->getInstr()) << '\n'); in checkHazard()
1353 unsigned CriticalPathLimit = Rem->CriticalPath + SchedModel->getILPWindow(); in setLatencyPolicy()
1355 && RemLatency > Rem->getMaxRemainingCount(SchedModel)) { in setLatencyPolicy()
1380 unsigned Width = SchedModel->getIssueWidth(); in bumpCycle()
1413 unsigned Factor = SchedModel->getResourceFactor(PIdx); in countResource()
1414 DEBUG(dbgs() << " " << SchedModel->getProcResource(PIdx)->Name in countResource()
1416 << ") / " << SchedModel->getLatencyFactor() << '\n'); in countResource()
1426 >= (int)SchedModel->getLatencyFactor()) { in countResource()
1429 << SchedModel->getProcResource(PIdx)->Name << " x" in countResource()
1446 if (SchedModel->hasInstrSchedModel()) { in bumpNode()
1448 Rem->RemainingMicroOps -= SchedModel->getNumMicroOps(SU->getInstr(), SC); in bumpNode()
1450 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
1451 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
1468 IssueCount += SchedModel->getNumMicroOps(SU->getInstr()); in bumpNode()
1475 if (IssueCount >= SchedModel->getIssueWidth()) { in bumpNode()
1563 assert(SchedModel->hasInstrSchedModel() && "required schedmodel"); in balanceZones()
1571 if ((int)(Rem->getMaxRemainingCount(SchedModel) - RemainingCritCount) in balanceZones()
1572 > (int)SchedModel->getLatencyFactor()) { in balanceZones()
1575 << SchedModel->getProcResource(CriticalZone.CritResIdx)->Name in balanceZones()
1583 > (int)SchedModel->getLatencyFactor()) { in balanceZones()
1586 << SchedModel->getProcResource(OppositeZone.CritResIdx)->Name in balanceZones()
1610 << SchedModel->getProcResource(Top.CritResIdx)->Name << '\n'); in checkResourceLimits()
1637 Top.ExpectedCount * SchedModel->getLatencyFactor()); in checkResourceLimits()
1641 Bot.ExpectedCount * SchedModel->getLatencyFactor()); in checkResourceLimits()
1649 const TargetSchedModel *SchedModel) { in initResourceDelta() argument
1655 PI = SchedModel->getWriteProcResBegin(SC), in initResourceDelta()
1656 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in initResourceDelta()
1764 TryCand.initResourceDelta(DAG, SchedModel); in tryCandidate()
1776 if (Cand.SU->getDepth() * SchedModel->getLatencyFactor() in tryCandidate()
1787 if (Cand.SU->getHeight() * SchedModel->getLatencyFactor() in tryCandidate()
1917 dbgs() << SchedModel->getProcResource(ResIdx)->Name << " "; in traceCandidate()
1951 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()