Lines Matching refs:SchedModel

1199     if (SchedModel.mustBeginGroup(SU.getInstr()) &&  in dump()
1200 SchedModel.mustEndGroup(SU.getInstr())) in dump()
2025 init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) { in init() argument
2027 if (!SchedModel->hasInstrSchedModel()) in init()
2029 RemainingCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
2032 RemIssueCount += SchedModel->getNumMicroOps(SU.getInstr(), SC) in init()
2033 * SchedModel->getMicroOpFactor(); in init()
2035 PI = SchedModel->getWriteProcResBegin(SC), in init()
2036 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in init()
2038 unsigned Factor = SchedModel->getResourceFactor(PIdx); in init()
2048 SchedModel = smodel; in init()
2050 if (SchedModel->hasInstrSchedModel()) { in init()
2051 unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); in init()
2059 NumUnits += SchedModel->getProcResource(i)->NumUnits; in init()
2061 auto SubUnits = SchedModel->getProcResource(i)->SubUnitsIdxBegin; in init()
2062 for (unsigned U = 0, UE = SchedModel->getProcResource(i)->NumUnits; in init()
2113 unsigned NumberOfInstances = SchedModel->getProcResource(PIdx)->NumUnits; in getNextResourceCycle()
2128 make_range(SchedModel->getWriteProcResBegin(SC), in getNextResourceCycle()
2129 SchedModel->getWriteProcResEnd(SC))) in getNextResourceCycle()
2133 auto SubUnits = SchedModel->getProcResource(PIdx)->SubUnitsIdxBegin; in getNextResourceCycle()
2176 unsigned uops = SchedModel->getNumMicroOps(SU->getInstr()); in checkHazard()
2177 if ((CurrMOps > 0) && (CurrMOps + uops > SchedModel->getIssueWidth())) { in checkHazard()
2179 << SchedModel->getNumMicroOps(SU->getInstr()) << '\n'); in checkHazard()
2184 ((isTop() && SchedModel->mustBeginGroup(SU->getInstr())) || in checkHazard()
2185 (!isTop() && SchedModel->mustEndGroup(SU->getInstr())))) { in checkHazard()
2191 if (SchedModel->hasInstrSchedModel() && SU->hasReservedResource) { in checkHazard()
2194 make_range(SchedModel->getWriteProcResBegin(SC), in checkHazard()
2195 SchedModel->getWriteProcResEnd(SC))) { in checkHazard()
2205 << SchedModel->getResourceName(ResIdx) in checkHazard()
2240 if (!SchedModel->hasInstrSchedModel()) in getOtherResourceCount()
2244 + (RetiredMOps * SchedModel->getMicroOpFactor()); in getOtherResourceCount()
2246 << OtherCritCount / SchedModel->getMicroOpFactor() << '\n'); in getOtherResourceCount()
2247 for (unsigned PIdx = 1, PEnd = SchedModel->getNumProcResourceKinds(); in getOtherResourceCount()
2258 << OtherCritCount / SchedModel->getResourceFactor(OtherCritIdx) in getOtherResourceCount()
2259 << " " << SchedModel->getResourceName(OtherCritIdx) << "\n"); in getOtherResourceCount()
2281 bool IsBuffered = SchedModel->getMicroOpBufferSize() != 0; in releaseNode()
2299 if (SchedModel->getMicroOpBufferSize() == 0) { in bumpCycle()
2306 unsigned DecMOps = SchedModel->getIssueWidth() * (NextCycle - CurrCycle); in bumpCycle()
2329 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpCycle()
2351 unsigned Factor = SchedModel->getResourceFactor(PIdx); in countResource()
2353 LLVM_DEBUG(dbgs() << " " << SchedModel->getResourceName(PIdx) << " +" in countResource()
2366 << SchedModel->getResourceName(PIdx) << ": " in countResource()
2367 << getResourceCount(PIdx) / SchedModel->getLatencyFactor() in countResource()
2375 << SchedModel->getResourceName(PIdx) in countResource()
2398 unsigned IncMOps = SchedModel->getNumMicroOps(SU->getInstr()); in bumpNode()
2400 (CurrMOps == 0 || (CurrMOps + IncMOps) <= SchedModel->getIssueWidth()) && in bumpNode()
2407 switch (SchedModel->getMicroOpBufferSize()) { in bumpNode()
2429 if (SchedModel->hasInstrSchedModel()) { in bumpNode()
2430 unsigned DecRemIssue = IncMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2436 RetiredMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2441 >= (int)SchedModel->getLatencyFactor()) { in bumpNode()
2444 << ScaledMOps / SchedModel->getLatencyFactor() in bumpNode()
2449 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2450 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2462 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2463 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2465 if (SchedModel->getProcResource(PIdx)->BufferSize == 0) { in bumpNode()
2498 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpNode()
2511 if ((isTop() && SchedModel->mustEndGroup(SU->getInstr())) || in bumpNode()
2512 (!isTop() && SchedModel->mustBeginGroup(SU->getInstr()))) { in bumpNode()
2518 while (CurrMOps >= SchedModel->getIssueWidth()) { in bumpNode()
2603 if (!SchedModel->hasInstrSchedModel()) in dumpReservedCycles()
2606 unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); in dumpReservedCycles()
2610 const unsigned NumUnits = SchedModel->getProcResource(ResIdx)->NumUnits; in dumpReservedCycles()
2611 std::string ResName = SchedModel->getResourceName(ResIdx); in dumpReservedCycles()
2626 ResFactor = SchedModel->getResourceFactor(ZoneCritResIdx); in dumpScheduledState()
2629 ResFactor = SchedModel->getMicroOpFactor(); in dumpScheduledState()
2632 unsigned LFactor = SchedModel->getLatencyFactor(); in dumpScheduledState()
2638 << SchedModel->getResourceName(ZoneCritResIdx) in dumpScheduledState()
2653 const TargetSchedModel *SchedModel) { in initResourceDelta() argument
2659 PI = SchedModel->getWriteProcResBegin(SC), in initResourceDelta()
2660 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in initResourceDelta()
2731 if (SchedModel->hasInstrSchedModel() && OtherCount != 0) { in setPolicy()
2734 OtherResLimited = checkResourceLimit(SchedModel->getLatencyFactor(), in setPolicy()
2756 << SchedModel->getResourceName(CurrZone.getZoneCritResIdx()) << "\n"; in setPolicy()
2759 << SchedModel->getResourceName(OtherCritIdx) << "\n"; in setPolicy()
2837 dbgs() << " " << SchedModel->getProcResource(ResIdx)->Name << " "; in traceCandidate()
2931 SchedModel = DAG->getSchedModel(); in initialize()
2937 Rem.init(DAG, SchedModel); in initialize()
2938 Top.init(DAG, SchedModel, &Rem); in initialize()
2939 Bot.init(DAG, SchedModel, &Rem); in initialize()
2945 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3035 std::max(Rem.CyclicCritPath * SchedModel->getLatencyFactor(), in checkAcyclicLatency()
3038 unsigned AcyclicCount = Rem.CriticalPath * SchedModel->getLatencyFactor(); in checkAcyclicLatency()
3043 SchedModel->getMicroOpBufferSize() * SchedModel->getMicroOpFactor(); in checkAcyclicLatency()
3049 << Rem.RemIssueCount / SchedModel->getLatencyFactor() << "c " in checkAcyclicLatency()
3050 << "IterCycles=" << IterCount / SchedModel->getLatencyFactor() in checkAcyclicLatency()
3052 << " InFlight=" << InFlightCount / SchedModel->getMicroOpFactor() in checkAcyclicLatency()
3053 << "m BufferLim=" << SchedModel->getMicroOpBufferSize() << "m\n"; in checkAcyclicLatency()
3070 if (EnableCyclicPath && SchedModel->getMicroOpBufferSize() > 0) { in registerRoots()
3292 TryCand.initResourceDelta(DAG, SchedModel); in tryCandidate()
3340 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()
3544 SchedModel = DAG->getSchedModel(); in initialize()
3547 Rem.init(DAG, SchedModel); in initialize()
3548 Top.init(DAG, SchedModel, &Rem); in initialize()
3553 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3628 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()