Lines Matching refs:SchedModel

1000   if (!SchedModel.hasInstrSchedModel())  in dumpScheduleTraceTopDown()
1016 for (TargetSchedModel::ProcResIter PI = SchedModel.getWriteProcResBegin(SC), in dumpScheduleTraceTopDown()
1017 PE = SchedModel.getWriteProcResEnd(SC); in dumpScheduleTraceTopDown()
1049 make_range(SchedModel.getWriteProcResBegin(SC), in dumpScheduleTraceTopDown()
1050 SchedModel.getWriteProcResEnd(SC))); in dumpScheduleTraceTopDown()
1063 SchedModel.getResourceName(PI.ProcResourceIdx); in dumpScheduleTraceTopDown()
1081 if (!SchedModel.hasInstrSchedModel()) in dumpScheduleTraceBottomUp()
1098 for (TargetSchedModel::ProcResIter PI = SchedModel.getWriteProcResBegin(SC), in dumpScheduleTraceBottomUp()
1099 PE = SchedModel.getWriteProcResEnd(SC); in dumpScheduleTraceBottomUp()
1130 make_range(SchedModel.getWriteProcResBegin(SC), in dumpScheduleTraceBottomUp()
1131 SchedModel.getWriteProcResEnd(SC))); in dumpScheduleTraceBottomUp()
1144 SchedModel.getResourceName(PI.ProcResourceIdx); in dumpScheduleTraceBottomUp()
1439 if (SchedModel.mustBeginGroup(SU.getInstr()) && in dump()
1440 SchedModel.mustEndGroup(SU.getInstr())) in dump()
2282 init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) { in init() argument
2284 if (!SchedModel->hasInstrSchedModel()) in init()
2286 RemainingCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
2289 RemIssueCount += SchedModel->getNumMicroOps(SU.getInstr(), SC) in init()
2290 * SchedModel->getMicroOpFactor(); in init()
2292 PI = SchedModel->getWriteProcResBegin(SC), in init()
2293 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in init()
2295 unsigned Factor = SchedModel->getResourceFactor(PIdx); in init()
2307 SchedModel = smodel; in init()
2309 if (SchedModel->hasInstrSchedModel()) { in init()
2310 unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); in init()
2318 NumUnits += SchedModel->getProcResource(i)->NumUnits; in init()
2320 auto SubUnits = SchedModel->getProcResource(i)->SubUnitsIdxBegin; in init()
2321 for (unsigned U = 0, UE = SchedModel->getProcResource(i)->NumUnits; in init()
2353 if (SchedModel && SchedModel->enableIntervals()) { in getNextResourceCycleByInstance()
2387 unsigned NumberOfInstances = SchedModel->getProcResource(PIdx)->NumUnits; in getNextResourceCycle()
2404 make_range(SchedModel->getWriteProcResBegin(SC), in getNextResourceCycle()
2405 SchedModel->getWriteProcResEnd(SC))) in getNextResourceCycle()
2411 auto SubUnits = SchedModel->getProcResource(PIdx)->SubUnitsIdxBegin; in getNextResourceCycle()
2437 LLVM_DEBUG(dbgs() << " selecting " << SchedModel->getResourceName(PIdx) in getNextResourceCycle()
2463 unsigned uops = SchedModel->getNumMicroOps(SU->getInstr()); in checkHazard()
2464 if ((CurrMOps > 0) && (CurrMOps + uops > SchedModel->getIssueWidth())) { in checkHazard()
2466 << SchedModel->getNumMicroOps(SU->getInstr()) << '\n'); in checkHazard()
2471 ((isTop() && SchedModel->mustBeginGroup(SU->getInstr())) || in checkHazard()
2472 (!isTop() && SchedModel->mustEndGroup(SU->getInstr())))) { in checkHazard()
2478 if (SchedModel->hasInstrSchedModel() && SU->hasReservedResource) { in checkHazard()
2481 make_range(SchedModel->getWriteProcResBegin(SC), in checkHazard()
2482 SchedModel->getWriteProcResEnd(SC))) { in checkHazard()
2494 << SchedModel->getResourceName(ResIdx) in checkHazard()
2529 if (!SchedModel->hasInstrSchedModel()) in getOtherResourceCount()
2533 + (RetiredMOps * SchedModel->getMicroOpFactor()); in getOtherResourceCount()
2535 << OtherCritCount / SchedModel->getMicroOpFactor() << '\n'); in getOtherResourceCount()
2536 for (unsigned PIdx = 1, PEnd = SchedModel->getNumProcResourceKinds(); in getOtherResourceCount()
2547 << OtherCritCount / SchedModel->getResourceFactor(OtherCritIdx) in getOtherResourceCount()
2548 << " " << SchedModel->getResourceName(OtherCritIdx) << "\n"); in getOtherResourceCount()
2570 bool IsBuffered = SchedModel->getMicroOpBufferSize() != 0; in releaseNode()
2588 if (SchedModel->getMicroOpBufferSize() == 0) { in bumpCycle()
2595 unsigned DecMOps = SchedModel->getIssueWidth() * (NextCycle - CurrCycle); in bumpCycle()
2618 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpCycle()
2645 unsigned Factor = SchedModel->getResourceFactor(PIdx); in countResource()
2647 LLVM_DEBUG(dbgs() << " " << SchedModel->getResourceName(PIdx) << " +" in countResource()
2660 << SchedModel->getResourceName(PIdx) << ": " in countResource()
2661 << getResourceCount(PIdx) / SchedModel->getLatencyFactor() in countResource()
2670 << SchedModel->getResourceName(PIdx) in countResource()
2693 unsigned IncMOps = SchedModel->getNumMicroOps(SU->getInstr()); in bumpNode()
2695 (CurrMOps == 0 || (CurrMOps + IncMOps) <= SchedModel->getIssueWidth()) && in bumpNode()
2702 switch (SchedModel->getMicroOpBufferSize()) { in bumpNode()
2724 if (SchedModel->hasInstrSchedModel()) { in bumpNode()
2725 unsigned DecRemIssue = IncMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2731 RetiredMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2736 >= (int)SchedModel->getLatencyFactor()) { in bumpNode()
2739 << ScaledMOps / SchedModel->getLatencyFactor() in bumpNode()
2744 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2745 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2758 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2759 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2761 if (SchedModel->getProcResource(PIdx)->BufferSize == 0) { in bumpNode()
2763 if (SchedModel && SchedModel->enableIntervals()) { in bumpNode()
2813 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpNode()
2826 if ((isTop() && SchedModel->mustEndGroup(SU->getInstr())) || in bumpNode()
2827 (!isTop() && SchedModel->mustBeginGroup(SU->getInstr()))) { in bumpNode()
2833 while (CurrMOps >= SchedModel->getIssueWidth()) { in bumpNode()
2918 if (!SchedModel->hasInstrSchedModel()) in dumpReservedCycles()
2921 unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); in dumpReservedCycles()
2925 const unsigned NumUnits = SchedModel->getProcResource(ResIdx)->NumUnits; in dumpReservedCycles()
2926 std::string ResName = SchedModel->getResourceName(ResIdx); in dumpReservedCycles()
2929 if (SchedModel && SchedModel->enableIntervals()) { in dumpReservedCycles()
2947 ResFactor = SchedModel->getResourceFactor(ZoneCritResIdx); in dumpScheduledState()
2950 ResFactor = SchedModel->getMicroOpFactor(); in dumpScheduledState()
2953 unsigned LFactor = SchedModel->getLatencyFactor(); in dumpScheduledState()
2959 << SchedModel->getResourceName(ZoneCritResIdx) in dumpScheduledState()
2974 const TargetSchedModel *SchedModel) { in initResourceDelta() argument
2980 PI = SchedModel->getWriteProcResBegin(SC), in initResourceDelta()
2981 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in initResourceDelta()
3052 if (SchedModel->hasInstrSchedModel() && OtherCount != 0) { in setPolicy()
3055 OtherResLimited = checkResourceLimit(SchedModel->getLatencyFactor(), in setPolicy()
3077 << SchedModel->getResourceName(CurrZone.getZoneCritResIdx()) << "\n"; in setPolicy()
3080 << SchedModel->getResourceName(OtherCritIdx) << "\n"; in setPolicy()
3158 dbgs() << " " << SchedModel->getProcResource(ResIdx)->Name << " "; in traceCandidate()
3252 SchedModel = DAG->getSchedModel(); in initialize()
3258 Rem.init(DAG, SchedModel); in initialize()
3259 Top.init(DAG, SchedModel, &Rem); in initialize()
3260 Bot.init(DAG, SchedModel, &Rem); in initialize()
3266 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3354 std::max(Rem.CyclicCritPath * SchedModel->getLatencyFactor(), in checkAcyclicLatency()
3357 unsigned AcyclicCount = Rem.CriticalPath * SchedModel->getLatencyFactor(); in checkAcyclicLatency()
3362 SchedModel->getMicroOpBufferSize() * SchedModel->getMicroOpFactor(); in checkAcyclicLatency()
3368 << Rem.RemIssueCount / SchedModel->getLatencyFactor() << "c " in checkAcyclicLatency()
3369 << "IterCycles=" << IterCount / SchedModel->getLatencyFactor() in checkAcyclicLatency()
3371 << " InFlight=" << InFlightCount / SchedModel->getMicroOpFactor() in checkAcyclicLatency()
3372 << "m BufferLim=" << SchedModel->getMicroOpBufferSize() << "m\n"; in checkAcyclicLatency()
3389 if (EnableCyclicPath && SchedModel->getMicroOpBufferSize() > 0) { in registerRoots()
3611 TryCand.initResourceDelta(DAG, SchedModel); in tryCandidate()
3659 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()
3884 SchedModel = DAG->getSchedModel(); in initialize()
3887 Rem.init(DAG, SchedModel); in initialize()
3888 Top.init(DAG, SchedModel, &Rem); in initialize()
3889 Bot.init(DAG, SchedModel, &Rem); in initialize()
3893 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3985 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()