Lines Matching refs:SchedModel
1193 if (SchedModel.mustBeginGroup(SU.getInstr()) && in dump()
1194 SchedModel.mustEndGroup(SU.getInstr())) in dump()
2019 init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) { in init() argument
2021 if (!SchedModel->hasInstrSchedModel()) in init()
2023 RemainingCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
2026 RemIssueCount += SchedModel->getNumMicroOps(SU.getInstr(), SC) in init()
2027 * SchedModel->getMicroOpFactor(); in init()
2029 PI = SchedModel->getWriteProcResBegin(SC), in init()
2030 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in init()
2032 unsigned Factor = SchedModel->getResourceFactor(PIdx); in init()
2042 SchedModel = smodel; in init()
2044 if (SchedModel->hasInstrSchedModel()) { in init()
2045 unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); in init()
2053 NumUnits += SchedModel->getProcResource(i)->NumUnits; in init()
2055 auto SubUnits = SchedModel->getProcResource(i)->SubUnitsIdxBegin; in init()
2056 for (unsigned U = 0, UE = SchedModel->getProcResource(i)->NumUnits; in init()
2107 unsigned NumberOfInstances = SchedModel->getProcResource(PIdx)->NumUnits; in getNextResourceCycle()
2122 make_range(SchedModel->getWriteProcResBegin(SC), in getNextResourceCycle()
2123 SchedModel->getWriteProcResEnd(SC))) in getNextResourceCycle()
2127 auto SubUnits = SchedModel->getProcResource(PIdx)->SubUnitsIdxBegin; in getNextResourceCycle()
2170 unsigned uops = SchedModel->getNumMicroOps(SU->getInstr()); in checkHazard()
2171 if ((CurrMOps > 0) && (CurrMOps + uops > SchedModel->getIssueWidth())) { in checkHazard()
2173 << SchedModel->getNumMicroOps(SU->getInstr()) << '\n'); in checkHazard()
2178 ((isTop() && SchedModel->mustBeginGroup(SU->getInstr())) || in checkHazard()
2179 (!isTop() && SchedModel->mustEndGroup(SU->getInstr())))) { in checkHazard()
2185 if (SchedModel->hasInstrSchedModel() && SU->hasReservedResource) { in checkHazard()
2188 make_range(SchedModel->getWriteProcResBegin(SC), in checkHazard()
2189 SchedModel->getWriteProcResEnd(SC))) { in checkHazard()
2199 << SchedModel->getResourceName(ResIdx) in checkHazard()
2234 if (!SchedModel->hasInstrSchedModel()) in getOtherResourceCount()
2238 + (RetiredMOps * SchedModel->getMicroOpFactor()); in getOtherResourceCount()
2240 << OtherCritCount / SchedModel->getMicroOpFactor() << '\n'); in getOtherResourceCount()
2241 for (unsigned PIdx = 1, PEnd = SchedModel->getNumProcResourceKinds(); in getOtherResourceCount()
2252 << OtherCritCount / SchedModel->getResourceFactor(OtherCritIdx) in getOtherResourceCount()
2253 << " " << SchedModel->getResourceName(OtherCritIdx) << "\n"); in getOtherResourceCount()
2275 bool IsBuffered = SchedModel->getMicroOpBufferSize() != 0; in releaseNode()
2293 if (SchedModel->getMicroOpBufferSize() == 0) { in bumpCycle()
2300 unsigned DecMOps = SchedModel->getIssueWidth() * (NextCycle - CurrCycle); in bumpCycle()
2323 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpCycle()
2345 unsigned Factor = SchedModel->getResourceFactor(PIdx); in countResource()
2347 LLVM_DEBUG(dbgs() << " " << SchedModel->getResourceName(PIdx) << " +" in countResource()
2360 << SchedModel->getResourceName(PIdx) << ": " in countResource()
2361 << getResourceCount(PIdx) / SchedModel->getLatencyFactor() in countResource()
2369 << SchedModel->getResourceName(PIdx) in countResource()
2392 unsigned IncMOps = SchedModel->getNumMicroOps(SU->getInstr()); in bumpNode()
2394 (CurrMOps == 0 || (CurrMOps + IncMOps) <= SchedModel->getIssueWidth()) && in bumpNode()
2401 switch (SchedModel->getMicroOpBufferSize()) { in bumpNode()
2423 if (SchedModel->hasInstrSchedModel()) { in bumpNode()
2424 unsigned DecRemIssue = IncMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2430 RetiredMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2435 >= (int)SchedModel->getLatencyFactor()) { in bumpNode()
2438 << ScaledMOps / SchedModel->getLatencyFactor() in bumpNode()
2443 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2444 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2456 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2457 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2459 if (SchedModel->getProcResource(PIdx)->BufferSize == 0) { in bumpNode()
2492 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpNode()
2505 if ((isTop() && SchedModel->mustEndGroup(SU->getInstr())) || in bumpNode()
2506 (!isTop() && SchedModel->mustBeginGroup(SU->getInstr()))) { in bumpNode()
2512 while (CurrMOps >= SchedModel->getIssueWidth()) { in bumpNode()
2598 ResFactor = SchedModel->getResourceFactor(ZoneCritResIdx); in dumpScheduledState()
2601 ResFactor = SchedModel->getMicroOpFactor(); in dumpScheduledState()
2604 unsigned LFactor = SchedModel->getLatencyFactor(); in dumpScheduledState()
2610 << SchedModel->getResourceName(ZoneCritResIdx) in dumpScheduledState()
2623 const TargetSchedModel *SchedModel) { in initResourceDelta() argument
2629 PI = SchedModel->getWriteProcResBegin(SC), in initResourceDelta()
2630 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in initResourceDelta()
2701 if (SchedModel->hasInstrSchedModel() && OtherCount != 0) { in setPolicy()
2704 OtherResLimited = checkResourceLimit(SchedModel->getLatencyFactor(), in setPolicy()
2726 << SchedModel->getResourceName(CurrZone.getZoneCritResIdx()) << "\n"; in setPolicy()
2729 << SchedModel->getResourceName(OtherCritIdx) << "\n"; in setPolicy()
2807 dbgs() << " " << SchedModel->getProcResource(ResIdx)->Name << " "; in traceCandidate()
2901 SchedModel = DAG->getSchedModel(); in initialize()
2907 Rem.init(DAG, SchedModel); in initialize()
2908 Top.init(DAG, SchedModel, &Rem); in initialize()
2909 Bot.init(DAG, SchedModel, &Rem); in initialize()
2915 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3005 std::max(Rem.CyclicCritPath * SchedModel->getLatencyFactor(), in checkAcyclicLatency()
3008 unsigned AcyclicCount = Rem.CriticalPath * SchedModel->getLatencyFactor(); in checkAcyclicLatency()
3013 SchedModel->getMicroOpBufferSize() * SchedModel->getMicroOpFactor(); in checkAcyclicLatency()
3019 << Rem.RemIssueCount / SchedModel->getLatencyFactor() << "c " in checkAcyclicLatency()
3020 << "IterCycles=" << IterCount / SchedModel->getLatencyFactor() in checkAcyclicLatency()
3022 << " InFlight=" << InFlightCount / SchedModel->getMicroOpFactor() in checkAcyclicLatency()
3023 << "m BufferLim=" << SchedModel->getMicroOpBufferSize() << "m\n"; in checkAcyclicLatency()
3040 if (EnableCyclicPath && SchedModel->getMicroOpBufferSize() > 0) { in registerRoots()
3262 TryCand.initResourceDelta(DAG, SchedModel); in tryCandidate()
3310 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()
3514 SchedModel = DAG->getSchedModel(); in initialize()
3517 Rem.init(DAG, SchedModel); in initialize()
3518 Top.init(DAG, SchedModel, &Rem); in initialize()
3523 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3598 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()