Lines Matching refs:SCIdx
516 unsigned SCIdx = addSchedClass(ItinDef, Writes, Reads, ProcIndices); in collectSchedClasses() local
517 InstrClassMap[Inst->TheDef] = SCIdx; in collectSchedClasses()
534 unsigned SCIdx = InstrClassMap.lookup(Inst->TheDef); in collectSchedClasses() local
535 if (!SCIdx) { in collectSchedClasses()
540 CodeGenSchedClass &SC = getSchedClass(SCIdx); in collectSchedClasses()
560 const RecVec &RWDefs = SchedClasses[SCIdx].InstRWs; in collectSchedClasses()
687 unsigned SCIdx = Pos->second; in createInstRWClass() local
690 if (ClassInstrs[CIdx].first == SCIdx) in createInstRWClass()
695 ClassInstrs[CIdx].first = SCIdx; in createInstRWClass()
728 unsigned SCIdx = SchedClasses.size(); in createInstRWClass() local
729 SchedClasses.resize(SCIdx+1); in createInstRWClass()
731 SC.Index = SCIdx; in createInstRWClass()
733 DEBUG(dbgs() << "InstRW: New SC " << SCIdx << ":" << SC.Name << " on " in createInstRWClass()
760 InstrClassMap[*II] = SCIdx; in createInstRWClass()
893 void CodeGenSchedModels::inferFromInstRWs(unsigned SCIdx) { in inferFromInstRWs() argument
894 for (unsigned I = 0, E = SchedClasses[SCIdx].InstRWs.size(); I != E; ++I) { in inferFromInstRWs()
895 assert(SchedClasses[SCIdx].InstRWs.size() == E && "InstrRWs was mutated!"); in inferFromInstRWs()
896 Record *Rec = SchedClasses[SCIdx].InstRWs[I]; in inferFromInstRWs()
900 if (InstrClassMap[*II] == SCIdx) in inferFromInstRWs()
911 inferFromRW(Writes, Reads, SCIdx, ProcIndices); // May mutate SchedClasses. in inferFromInstRWs()
1558 unsigned SCIdx = getSchedClassIdx(*Inst); in checkCompleteness() local
1559 if (!SCIdx) { in checkCompleteness()
1568 const CodeGenSchedClass &SC = getSchedClass(SCIdx); in checkCompleteness()