Lines Matching refs:SchedModel

1194     if (SchedModel.mustBeginGroup(SU.getInstr()) &&  in dump()
1195 SchedModel.mustEndGroup(SU.getInstr())) in dump()
2020 init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) { in init() argument
2022 if (!SchedModel->hasInstrSchedModel()) in init()
2024 RemainingCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
2027 RemIssueCount += SchedModel->getNumMicroOps(SU.getInstr(), SC) in init()
2028 * SchedModel->getMicroOpFactor(); in init()
2030 PI = SchedModel->getWriteProcResBegin(SC), in init()
2031 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in init()
2033 unsigned Factor = SchedModel->getResourceFactor(PIdx); in init()
2043 SchedModel = smodel; in init()
2045 if (SchedModel->hasInstrSchedModel()) { in init()
2046 unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); in init()
2054 NumUnits += SchedModel->getProcResource(i)->NumUnits; in init()
2056 auto SubUnits = SchedModel->getProcResource(i)->SubUnitsIdxBegin; in init()
2057 for (unsigned U = 0, UE = SchedModel->getProcResource(i)->NumUnits; in init()
2108 unsigned NumberOfInstances = SchedModel->getProcResource(PIdx)->NumUnits; in getNextResourceCycle()
2123 make_range(SchedModel->getWriteProcResBegin(SC), in getNextResourceCycle()
2124 SchedModel->getWriteProcResEnd(SC))) in getNextResourceCycle()
2128 auto SubUnits = SchedModel->getProcResource(PIdx)->SubUnitsIdxBegin; in getNextResourceCycle()
2171 unsigned uops = SchedModel->getNumMicroOps(SU->getInstr()); in checkHazard()
2172 if ((CurrMOps > 0) && (CurrMOps + uops > SchedModel->getIssueWidth())) { in checkHazard()
2174 << SchedModel->getNumMicroOps(SU->getInstr()) << '\n'); in checkHazard()
2179 ((isTop() && SchedModel->mustBeginGroup(SU->getInstr())) || in checkHazard()
2180 (!isTop() && SchedModel->mustEndGroup(SU->getInstr())))) { in checkHazard()
2186 if (SchedModel->hasInstrSchedModel() && SU->hasReservedResource) { in checkHazard()
2189 make_range(SchedModel->getWriteProcResBegin(SC), in checkHazard()
2190 SchedModel->getWriteProcResEnd(SC))) { in checkHazard()
2200 << SchedModel->getResourceName(ResIdx) in checkHazard()
2235 if (!SchedModel->hasInstrSchedModel()) in getOtherResourceCount()
2239 + (RetiredMOps * SchedModel->getMicroOpFactor()); in getOtherResourceCount()
2241 << OtherCritCount / SchedModel->getMicroOpFactor() << '\n'); in getOtherResourceCount()
2242 for (unsigned PIdx = 1, PEnd = SchedModel->getNumProcResourceKinds(); in getOtherResourceCount()
2253 << OtherCritCount / SchedModel->getResourceFactor(OtherCritIdx) in getOtherResourceCount()
2254 << " " << SchedModel->getResourceName(OtherCritIdx) << "\n"); in getOtherResourceCount()
2276 bool IsBuffered = SchedModel->getMicroOpBufferSize() != 0; in releaseNode()
2294 if (SchedModel->getMicroOpBufferSize() == 0) { in bumpCycle()
2301 unsigned DecMOps = SchedModel->getIssueWidth() * (NextCycle - CurrCycle); in bumpCycle()
2324 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpCycle()
2346 unsigned Factor = SchedModel->getResourceFactor(PIdx); in countResource()
2348 LLVM_DEBUG(dbgs() << " " << SchedModel->getResourceName(PIdx) << " +" in countResource()
2361 << SchedModel->getResourceName(PIdx) << ": " in countResource()
2362 << getResourceCount(PIdx) / SchedModel->getLatencyFactor() in countResource()
2370 << SchedModel->getResourceName(PIdx) in countResource()
2393 unsigned IncMOps = SchedModel->getNumMicroOps(SU->getInstr()); in bumpNode()
2395 (CurrMOps == 0 || (CurrMOps + IncMOps) <= SchedModel->getIssueWidth()) && in bumpNode()
2402 switch (SchedModel->getMicroOpBufferSize()) { in bumpNode()
2424 if (SchedModel->hasInstrSchedModel()) { in bumpNode()
2425 unsigned DecRemIssue = IncMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2431 RetiredMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2436 >= (int)SchedModel->getLatencyFactor()) { in bumpNode()
2439 << ScaledMOps / SchedModel->getLatencyFactor() in bumpNode()
2444 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2445 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2457 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2458 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2460 if (SchedModel->getProcResource(PIdx)->BufferSize == 0) { in bumpNode()
2493 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpNode()
2506 if ((isTop() && SchedModel->mustEndGroup(SU->getInstr())) || in bumpNode()
2507 (!isTop() && SchedModel->mustBeginGroup(SU->getInstr()))) { in bumpNode()
2513 while (CurrMOps >= SchedModel->getIssueWidth()) { in bumpNode()
2599 ResFactor = SchedModel->getResourceFactor(ZoneCritResIdx); in dumpScheduledState()
2602 ResFactor = SchedModel->getMicroOpFactor(); in dumpScheduledState()
2605 unsigned LFactor = SchedModel->getLatencyFactor(); in dumpScheduledState()
2611 << SchedModel->getResourceName(ZoneCritResIdx) in dumpScheduledState()
2624 const TargetSchedModel *SchedModel) { in initResourceDelta() argument
2630 PI = SchedModel->getWriteProcResBegin(SC), in initResourceDelta()
2631 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in initResourceDelta()
2702 if (SchedModel->hasInstrSchedModel() && OtherCount != 0) { in setPolicy()
2705 OtherResLimited = checkResourceLimit(SchedModel->getLatencyFactor(), in setPolicy()
2727 << SchedModel->getResourceName(CurrZone.getZoneCritResIdx()) << "\n"; in setPolicy()
2730 << SchedModel->getResourceName(OtherCritIdx) << "\n"; in setPolicy()
2808 dbgs() << " " << SchedModel->getProcResource(ResIdx)->Name << " "; in traceCandidate()
2902 SchedModel = DAG->getSchedModel(); in initialize()
2908 Rem.init(DAG, SchedModel); in initialize()
2909 Top.init(DAG, SchedModel, &Rem); in initialize()
2910 Bot.init(DAG, SchedModel, &Rem); in initialize()
2916 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3006 std::max(Rem.CyclicCritPath * SchedModel->getLatencyFactor(), in checkAcyclicLatency()
3009 unsigned AcyclicCount = Rem.CriticalPath * SchedModel->getLatencyFactor(); in checkAcyclicLatency()
3014 SchedModel->getMicroOpBufferSize() * SchedModel->getMicroOpFactor(); in checkAcyclicLatency()
3020 << Rem.RemIssueCount / SchedModel->getLatencyFactor() << "c " in checkAcyclicLatency()
3021 << "IterCycles=" << IterCount / SchedModel->getLatencyFactor() in checkAcyclicLatency()
3023 << " InFlight=" << InFlightCount / SchedModel->getMicroOpFactor() in checkAcyclicLatency()
3024 << "m BufferLim=" << SchedModel->getMicroOpBufferSize() << "m\n"; in checkAcyclicLatency()
3041 if (EnableCyclicPath && SchedModel->getMicroOpBufferSize() > 0) { in registerRoots()
3263 TryCand.initResourceDelta(DAG, SchedModel); in tryCandidate()
3311 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()
3515 SchedModel = DAG->getSchedModel(); in initialize()
3518 Rem.init(DAG, SchedModel); in initialize()
3519 Top.init(DAG, SchedModel, &Rem); in initialize()
3524 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3599 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()