Lines Matching refs:SchedModel

1619 init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) {  in init()  argument
1621 if (!SchedModel->hasInstrSchedModel()) in init()
1623 RemainingCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
1627 RemIssueCount += SchedModel->getNumMicroOps(I->getInstr(), SC) in init()
1628 * SchedModel->getMicroOpFactor(); in init()
1630 PI = SchedModel->getWriteProcResBegin(SC), in init()
1631 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in init()
1633 unsigned Factor = SchedModel->getResourceFactor(PIdx); in init()
1643 SchedModel = smodel; in init()
1645 if (SchedModel->hasInstrSchedModel()) { in init()
1646 ExecutedResCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
1647 ReservedCycles.resize(SchedModel->getNumProcResourceKinds(), InvalidCycle); in init()
1700 unsigned uops = SchedModel->getNumMicroOps(SU->getInstr()); in checkHazard()
1701 if ((CurrMOps > 0) && (CurrMOps + uops > SchedModel->getIssueWidth())) { in checkHazard()
1703 << SchedModel->getNumMicroOps(SU->getInstr()) << '\n'); in checkHazard()
1706 if (SchedModel->hasInstrSchedModel() && SU->hasReservedResource) { in checkHazard()
1709 PI = SchedModel->getWriteProcResBegin(SC), in checkHazard()
1710 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in checkHazard()
1717 << SchedModel->getResourceName(PI->ProcResourceIdx) in checkHazard()
1752 if (!SchedModel->hasInstrSchedModel()) in getOtherResourceCount()
1756 + (RetiredMOps * SchedModel->getMicroOpFactor()); in getOtherResourceCount()
1758 << OtherCritCount / SchedModel->getMicroOpFactor() << '\n'); in getOtherResourceCount()
1759 for (unsigned PIdx = 1, PEnd = SchedModel->getNumProcResourceKinds(); in getOtherResourceCount()
1769 << OtherCritCount / SchedModel->getResourceFactor(OtherCritIdx) in getOtherResourceCount()
1770 << " " << SchedModel->getResourceName(OtherCritIdx) << "\n"); in getOtherResourceCount()
1791 bool IsBuffered = SchedModel->getMicroOpBufferSize() != 0; in releaseNode()
1817 if (SchedModel->getMicroOpBufferSize() == 0) { in bumpCycle()
1823 unsigned DecMOps = SchedModel->getIssueWidth() * (NextCycle - CurrCycle); in bumpCycle()
1846 unsigned LFactor = SchedModel->getLatencyFactor(); in bumpCycle()
1869 unsigned Factor = SchedModel->getResourceFactor(PIdx); in countResource()
1871 DEBUG(dbgs() << " " << SchedModel->getResourceName(PIdx) in countResource()
1884 << SchedModel->getResourceName(PIdx) << ": " in countResource()
1885 << getResourceCount(PIdx) / SchedModel->getLatencyFactor() << "c\n"); in countResource()
1891 << SchedModel->getProcResource(PIdx)->Name << " reserved until @" in countResource()
1911 unsigned IncMOps = SchedModel->getNumMicroOps(SU->getInstr()); in bumpNode()
1913 (CurrMOps == 0 || (CurrMOps + IncMOps) <= SchedModel->getIssueWidth()) && in bumpNode()
1920 switch (SchedModel->getMicroOpBufferSize()) { in bumpNode()
1942 if (SchedModel->hasInstrSchedModel()) { in bumpNode()
1943 unsigned DecRemIssue = IncMOps * SchedModel->getMicroOpFactor(); in bumpNode()
1949 RetiredMOps * SchedModel->getMicroOpFactor(); in bumpNode()
1954 >= (int)SchedModel->getLatencyFactor()) { in bumpNode()
1957 << ScaledMOps / SchedModel->getLatencyFactor() << "c\n"); in bumpNode()
1961 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
1962 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
1974 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
1975 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
1977 if (SchedModel->getProcResource(PIdx)->BufferSize == 0) { in bumpNode()
2008 unsigned LFactor = SchedModel->getLatencyFactor(); in bumpNode()
2018 while (CurrMOps >= SchedModel->getIssueWidth()) { in bumpNode()
2035 bool IsBuffered = SchedModel->getMicroOpBufferSize() != 0; in releasePending()
2105 ResFactor = SchedModel->getResourceFactor(ZoneCritResIdx); in dumpScheduledState()
2109 ResFactor = SchedModel->getMicroOpFactor(); in dumpScheduledState()
2110 ResCount = RetiredMOps * SchedModel->getMicroOpFactor(); in dumpScheduledState()
2112 unsigned LFactor = SchedModel->getLatencyFactor(); in dumpScheduledState()
2118 << SchedModel->getResourceName(ZoneCritResIdx) in dumpScheduledState()
2131 const TargetSchedModel *SchedModel) { in initResourceDelta() argument
2137 PI = SchedModel->getWriteProcResBegin(SC), in initResourceDelta()
2138 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in initResourceDelta()
2181 if (SchedModel->hasInstrSchedModel()) { in setPolicy()
2182 unsigned LFactor = SchedModel->getLatencyFactor(); in setPolicy()
2204 << SchedModel->getResourceName(CurrZone.getZoneCritResIdx()) in setPolicy()
2209 << SchedModel->getResourceName(OtherCritIdx) << "\n"; in setPolicy()
2286 dbgs() << " " << SchedModel->getProcResource(ResIdx)->Name << " "; in traceCandidate()
2368 SchedModel = DAG->getSchedModel(); in initialize()
2371 Rem.init(DAG, SchedModel); in initialize()
2372 Top.init(DAG, SchedModel, &Rem); in initialize()
2373 Bot.init(DAG, SchedModel, &Rem); in initialize()
2379 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
2455 std::max(Rem.CyclicCritPath * SchedModel->getLatencyFactor(), in checkAcyclicLatency()
2458 unsigned AcyclicCount = Rem.CriticalPath * SchedModel->getLatencyFactor(); in checkAcyclicLatency()
2463 SchedModel->getMicroOpBufferSize() * SchedModel->getMicroOpFactor(); in checkAcyclicLatency()
2468 << Rem.RemIssueCount / SchedModel->getLatencyFactor() << "c " in checkAcyclicLatency()
2469 << "IterCycles=" << IterCount / SchedModel->getLatencyFactor() in checkAcyclicLatency()
2471 << " InFlight=" << InFlightCount / SchedModel->getMicroOpFactor() in checkAcyclicLatency()
2472 << "m BufferLim=" << SchedModel->getMicroOpBufferSize() << "m\n"; in checkAcyclicLatency()
2664 TryCand.initResourceDelta(DAG, SchedModel); in tryCandidate()
2717 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()
2904 SchedModel = DAG->getSchedModel(); in initialize()
2907 Rem.init(DAG, SchedModel); in initialize()
2908 Top.init(DAG, SchedModel, &Rem); in initialize()
2913 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
2982 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()