Lines Matching refs:SccNum
155 int SccNum = 0; in SccInfo() local
157 ++It, ++SccNum) { in SccInfo()
164 LLVM_DEBUG(dbgs() << "BPI: SCC " << SccNum << ":"); in SccInfo()
167 SccNums[BB] = SccNum; in SccInfo()
168 calculateSccBlockType(BB, SccNum); in SccInfo()
182 int SccNum, SmallVectorImpl<BasicBlock *> &Enters) const { in getSccEnterBlocks() argument
184 for (auto MapIt : SccBlocks[SccNum]) { in getSccEnterBlocks()
186 if (isSCCHeader(BB, SccNum)) in getSccEnterBlocks()
188 if (getSCCNum(Pred) != SccNum) in getSccEnterBlocks()
194 int SccNum, SmallVectorImpl<BasicBlock *> &Exits) const { in getSccExitBlocks() argument
195 for (auto MapIt : SccBlocks[SccNum]) { in getSccExitBlocks()
197 if (isSCCExitingBlock(BB, SccNum)) in getSccExitBlocks()
199 if (getSCCNum(Succ) != SccNum) in getSccExitBlocks()
205 int SccNum) const { in getSccBlockType()
206 assert(getSCCNum(BB) == SccNum); in getSccBlockType()
208 assert(SccBlocks.size() > static_cast<unsigned>(SccNum) && "Unknown SCC"); in getSccBlockType()
209 const auto &SccBlockTypes = SccBlocks[SccNum]; in getSccBlockType()
219 int SccNum) { in calculateSccBlockType() argument
220 assert(getSCCNum(BB) == SccNum); in calculateSccBlockType()
226 return getSCCNum(Pred) != SccNum; in calculateSccBlockType()
231 return getSCCNum(Succ) != SccNum; in calculateSccBlockType()
237 if (SccBlocks.size() <= static_cast<unsigned>(SccNum)) in calculateSccBlockType()
238 SccBlocks.resize(SccNum + 1); in calculateSccBlockType()
239 auto &SccBlockTypes = SccBlocks[SccNum]; in calculateSccBlockType()