Lines Matching refs:SUnit
70 ResourcePriorityQueue::numberRCValPredInSU(SUnit *SU, unsigned RCId) { in numberRCValPredInSU()
72 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in numberRCValPredInSU()
77 SUnit *PredSU = I->getSUnit(); in numberRCValPredInSU()
107 unsigned ResourcePriorityQueue::numberRCValSuccInSU(SUnit *SU, in numberRCValSuccInSU()
110 for (SUnit::const_succ_iterator I = SU->Succs.begin(), E = SU->Succs.end(); in numberRCValSuccInSU()
115 SUnit *SuccSU = I->getSUnit(); in numberRCValSuccInSU()
145 static unsigned numberCtrlDepsInSU(SUnit *SU) { in numberCtrlDepsInSU()
147 for (SUnit::const_succ_iterator I = SU->Succs.begin(), E = SU->Succs.end(); in numberCtrlDepsInSU()
155 static unsigned numberCtrlPredInSU(SUnit *SU) { in numberCtrlPredInSU()
157 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in numberCtrlPredInSU()
168 void ResourcePriorityQueue::initNodes(std::vector<SUnit> &sunits) { in initNodes()
173 SUnit *SU = &(*SUnits)[i]; in initNodes()
181 bool resource_sort::operator()(const SUnit *LHS, const SUnit *RHS) const { in operator ()()
215 SUnit *ResourcePriorityQueue::getSingleUnscheduledPred(SUnit *SU) { in getSingleUnscheduledPred()
216 SUnit *OnlyAvailablePred = nullptr; in getSingleUnscheduledPred()
217 for (SUnit::const_pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in getSingleUnscheduledPred()
219 SUnit &Pred = *I->getSUnit(); in getSingleUnscheduledPred()
231 void ResourcePriorityQueue::push(SUnit *SU) { in push()
235 for (SUnit::const_succ_iterator I = SU->Succs.begin(), E = SU->Succs.end(); in push()
246 bool ResourcePriorityQueue::isResourceAvailable(SUnit *SU) { in isResourceAvailable()
274 for (SUnit::const_succ_iterator I = Packet[i]->Succs.begin(), in isResourceAvailable()
289 void ResourcePriorityQueue::reserveResources(SUnit *SU) { in reserveResources()
326 int ResourcePriorityQueue::rawRegPressureDelta(SUnit *SU, unsigned RCId) { in rawRegPressureDelta()
360 int ResourcePriorityQueue::regPressureDelta(SUnit *SU, bool RawPressure) { in regPressureDelta()
401 int ResourcePriorityQueue::SUSchedulingCost(SUnit *SU) { in SUSchedulingCost()
471 void ResourcePriorityQueue::scheduledNode(SUnit *SU) { in scheduledNode()
509 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in scheduledNode()
525 for (SUnit::const_succ_iterator I = SU->Succs.begin(), E = SU->Succs.end(); in scheduledNode()
547 void ResourcePriorityQueue::initNumRegDefsLeft(SUnit *SU) { in initNumRegDefsLeft()
579 void ResourcePriorityQueue::adjustPriorityOfUnscheduledPreds(SUnit *SU) { in adjustPriorityOfUnscheduledPreds()
582 SUnit *OnlyAvailablePred = getSingleUnscheduledPred(SU); in adjustPriorityOfUnscheduledPreds()
598 SUnit *ResourcePriorityQueue::pop() { in pop()
602 std::vector<SUnit *>::iterator Best = Queue.begin(); in pop()
605 for (std::vector<SUnit *>::iterator I = std::next(Queue.begin()), in pop()
616 for (std::vector<SUnit *>::iterator I = std::next(Queue.begin()), in pop()
622 SUnit *V = *Best; in pop()
632 void ResourcePriorityQueue::remove(SUnit *SU) { in remove()
634 std::vector<SUnit *>::iterator I = std::find(Queue.begin(), Queue.end(), SU); in remove()