Lines Matching refs:SchedModel

964   if (!SchedModel.hasInstrSchedModel())  in dumpScheduleTraceTopDown()
980 for (TargetSchedModel::ProcResIter PI = SchedModel.getWriteProcResBegin(SC), in dumpScheduleTraceTopDown()
981 PE = SchedModel.getWriteProcResEnd(SC); in dumpScheduleTraceTopDown()
1013 make_range(SchedModel.getWriteProcResBegin(SC), in dumpScheduleTraceTopDown()
1014 SchedModel.getWriteProcResEnd(SC))); in dumpScheduleTraceTopDown()
1027 SchedModel.getResourceName(PI.ProcResourceIdx); in dumpScheduleTraceTopDown()
1045 if (!SchedModel.hasInstrSchedModel()) in dumpScheduleTraceBottomUp()
1062 for (TargetSchedModel::ProcResIter PI = SchedModel.getWriteProcResBegin(SC), in dumpScheduleTraceBottomUp()
1063 PE = SchedModel.getWriteProcResEnd(SC); in dumpScheduleTraceBottomUp()
1094 make_range(SchedModel.getWriteProcResBegin(SC), in dumpScheduleTraceBottomUp()
1095 SchedModel.getWriteProcResEnd(SC))); in dumpScheduleTraceBottomUp()
1108 SchedModel.getResourceName(PI.ProcResourceIdx); in dumpScheduleTraceBottomUp()
1401 if (SchedModel.mustBeginGroup(SU.getInstr()) && in dump()
1402 SchedModel.mustEndGroup(SU.getInstr())) in dump()
2241 init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) { in init() argument
2243 if (!SchedModel->hasInstrSchedModel()) in init()
2245 RemainingCounts.resize(SchedModel->getNumProcResourceKinds()); in init()
2248 RemIssueCount += SchedModel->getNumMicroOps(SU.getInstr(), SC) in init()
2249 * SchedModel->getMicroOpFactor(); in init()
2251 PI = SchedModel->getWriteProcResBegin(SC), in init()
2252 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in init()
2254 unsigned Factor = SchedModel->getResourceFactor(PIdx); in init()
2266 SchedModel = smodel; in init()
2268 if (SchedModel->hasInstrSchedModel()) { in init()
2269 unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); in init()
2277 NumUnits += SchedModel->getProcResource(i)->NumUnits; in init()
2279 auto SubUnits = SchedModel->getProcResource(i)->SubUnitsIdxBegin; in init()
2280 for (unsigned U = 0, UE = SchedModel->getProcResource(i)->NumUnits; in init()
2312 if (SchedModel && SchedModel->enableIntervals()) { in getNextResourceCycleByInstance()
2346 unsigned NumberOfInstances = SchedModel->getProcResource(PIdx)->NumUnits; in getNextResourceCycle()
2363 make_range(SchedModel->getWriteProcResBegin(SC), in getNextResourceCycle()
2364 SchedModel->getWriteProcResEnd(SC))) in getNextResourceCycle()
2370 auto SubUnits = SchedModel->getProcResource(PIdx)->SubUnitsIdxBegin; in getNextResourceCycle()
2396 LLVM_DEBUG(dbgs() << " selecting " << SchedModel->getResourceName(PIdx) in getNextResourceCycle()
2422 unsigned uops = SchedModel->getNumMicroOps(SU->getInstr()); in checkHazard()
2423 if ((CurrMOps > 0) && (CurrMOps + uops > SchedModel->getIssueWidth())) { in checkHazard()
2425 << SchedModel->getNumMicroOps(SU->getInstr()) << '\n'); in checkHazard()
2430 ((isTop() && SchedModel->mustBeginGroup(SU->getInstr())) || in checkHazard()
2431 (!isTop() && SchedModel->mustEndGroup(SU->getInstr())))) { in checkHazard()
2437 if (SchedModel->hasInstrSchedModel() && SU->hasReservedResource) { in checkHazard()
2440 make_range(SchedModel->getWriteProcResBegin(SC), in checkHazard()
2441 SchedModel->getWriteProcResEnd(SC))) { in checkHazard()
2453 << SchedModel->getResourceName(ResIdx) in checkHazard()
2488 if (!SchedModel->hasInstrSchedModel()) in getOtherResourceCount()
2492 + (RetiredMOps * SchedModel->getMicroOpFactor()); in getOtherResourceCount()
2494 << OtherCritCount / SchedModel->getMicroOpFactor() << '\n'); in getOtherResourceCount()
2495 for (unsigned PIdx = 1, PEnd = SchedModel->getNumProcResourceKinds(); in getOtherResourceCount()
2506 << OtherCritCount / SchedModel->getResourceFactor(OtherCritIdx) in getOtherResourceCount()
2507 << " " << SchedModel->getResourceName(OtherCritIdx) << "\n"); in getOtherResourceCount()
2529 bool IsBuffered = SchedModel->getMicroOpBufferSize() != 0; in releaseNode()
2547 if (SchedModel->getMicroOpBufferSize() == 0) { in bumpCycle()
2554 unsigned DecMOps = SchedModel->getIssueWidth() * (NextCycle - CurrCycle); in bumpCycle()
2577 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpCycle()
2604 unsigned Factor = SchedModel->getResourceFactor(PIdx); in countResource()
2606 LLVM_DEBUG(dbgs() << " " << SchedModel->getResourceName(PIdx) << " +" in countResource()
2619 << SchedModel->getResourceName(PIdx) << ": " in countResource()
2620 << getResourceCount(PIdx) / SchedModel->getLatencyFactor() in countResource()
2629 << SchedModel->getResourceName(PIdx) in countResource()
2652 unsigned IncMOps = SchedModel->getNumMicroOps(SU->getInstr()); in bumpNode()
2654 (CurrMOps == 0 || (CurrMOps + IncMOps) <= SchedModel->getIssueWidth()) && in bumpNode()
2661 switch (SchedModel->getMicroOpBufferSize()) { in bumpNode()
2683 if (SchedModel->hasInstrSchedModel()) { in bumpNode()
2684 unsigned DecRemIssue = IncMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2690 RetiredMOps * SchedModel->getMicroOpFactor(); in bumpNode()
2695 >= (int)SchedModel->getLatencyFactor()) { in bumpNode()
2698 << ScaledMOps / SchedModel->getLatencyFactor() in bumpNode()
2703 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2704 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2717 PI = SchedModel->getWriteProcResBegin(SC), in bumpNode()
2718 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in bumpNode()
2720 if (SchedModel->getProcResource(PIdx)->BufferSize == 0) { in bumpNode()
2722 if (SchedModel && SchedModel->enableIntervals()) { in bumpNode()
2772 checkResourceLimit(SchedModel->getLatencyFactor(), getCriticalCount(), in bumpNode()
2785 if ((isTop() && SchedModel->mustEndGroup(SU->getInstr())) || in bumpNode()
2786 (!isTop() && SchedModel->mustBeginGroup(SU->getInstr()))) { in bumpNode()
2792 while (CurrMOps >= SchedModel->getIssueWidth()) { in bumpNode()
2877 if (!SchedModel->hasInstrSchedModel()) in dumpReservedCycles()
2880 unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); in dumpReservedCycles()
2884 const unsigned NumUnits = SchedModel->getProcResource(ResIdx)->NumUnits; in dumpReservedCycles()
2885 std::string ResName = SchedModel->getResourceName(ResIdx); in dumpReservedCycles()
2888 if (SchedModel && SchedModel->enableIntervals()) { in dumpReservedCycles()
2906 ResFactor = SchedModel->getResourceFactor(ZoneCritResIdx); in dumpScheduledState()
2909 ResFactor = SchedModel->getMicroOpFactor(); in dumpScheduledState()
2912 unsigned LFactor = SchedModel->getLatencyFactor(); in dumpScheduledState()
2918 << SchedModel->getResourceName(ZoneCritResIdx) in dumpScheduledState()
2933 const TargetSchedModel *SchedModel) { in initResourceDelta() argument
2939 PI = SchedModel->getWriteProcResBegin(SC), in initResourceDelta()
2940 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in initResourceDelta()
3011 if (SchedModel->hasInstrSchedModel() && OtherCount != 0) { in setPolicy()
3014 OtherResLimited = checkResourceLimit(SchedModel->getLatencyFactor(), in setPolicy()
3036 << SchedModel->getResourceName(CurrZone.getZoneCritResIdx()) << "\n"; in setPolicy()
3039 << SchedModel->getResourceName(OtherCritIdx) << "\n"; in setPolicy()
3117 dbgs() << " " << SchedModel->getProcResource(ResIdx)->Name << " "; in traceCandidate()
3211 SchedModel = DAG->getSchedModel(); in initialize()
3217 Rem.init(DAG, SchedModel); in initialize()
3218 Top.init(DAG, SchedModel, &Rem); in initialize()
3219 Bot.init(DAG, SchedModel, &Rem); in initialize()
3225 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3315 std::max(Rem.CyclicCritPath * SchedModel->getLatencyFactor(), in checkAcyclicLatency()
3318 unsigned AcyclicCount = Rem.CriticalPath * SchedModel->getLatencyFactor(); in checkAcyclicLatency()
3323 SchedModel->getMicroOpBufferSize() * SchedModel->getMicroOpFactor(); in checkAcyclicLatency()
3329 << Rem.RemIssueCount / SchedModel->getLatencyFactor() << "c " in checkAcyclicLatency()
3330 << "IterCycles=" << IterCount / SchedModel->getLatencyFactor() in checkAcyclicLatency()
3332 << " InFlight=" << InFlightCount / SchedModel->getMicroOpFactor() in checkAcyclicLatency()
3333 << "m BufferLim=" << SchedModel->getMicroOpBufferSize() << "m\n"; in checkAcyclicLatency()
3350 if (EnableCyclicPath && SchedModel->getMicroOpBufferSize() > 0) { in registerRoots()
3572 TryCand.initResourceDelta(DAG, SchedModel); in tryCandidate()
3620 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()
3824 SchedModel = DAG->getSchedModel(); in initialize()
3827 Rem.init(DAG, SchedModel); in initialize()
3828 Top.init(DAG, SchedModel, &Rem); in initialize()
3833 const InstrItineraryData *Itin = SchedModel->getInstrItineraries(); in initialize()
3908 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()