Lines Matching refs:BB
38 const BType *BB; member
57 void printDebugInfo(const BType *BB);
92 void ProfileVerifierPassT<FType, BType>::printDebugInfo(const BType *BB) { in printDebugInfo() argument
94 if (BBisPrinted.find(BB) != BBisPrinted.end()) return; in printDebugInfo()
96 double BBWeight = PI->getExecutionCount(BB); in printDebugInfo()
101 for (const_pred_iterator bbi = pred_begin(BB), bbe = pred_end(BB); in printDebugInfo()
104 typename ProfileInfoT<FType, BType>::Edge E = PI->getEdge(*bbi,BB); in printDebugInfo()
116 for ( succ_const_iterator bbi = succ_begin(BB), bbe = succ_end(BB); in printDebugInfo()
119 typename ProfileInfoT<FType, BType>::Edge E = PI->getEdge(BB,*bbi); in printDebugInfo()
128 dbgs() << "Block " << BB->getName() << " in " in printDebugInfo()
129 << BB->getParent()->getName() << ":" in printDebugInfo()
137 BBisPrinted.insert(BB); in printDebugInfo()
138 for ( succ_const_iterator bbi = succ_begin(BB), bbe = succ_end(BB); in printDebugInfo()
146 dbgs() << "TROUBLE: Block " << DI->BB->getName() << " in " in debugEntry()
147 << DI->BB->getParent()->getName() << ":" in debugEntry()
155 printDebugInfo(&(DI->BB->getParent()->getEntryBlock())); in debugEntry()
223 dbgs() << "Block " << DI->BB->getName() << " in Function " in CheckValue()
224 << DI->BB->getParent()->getName() << ": "; in CheckValue()
233 void ProfileVerifierPassT<FType, BType>::recurseBasicBlock(const BType *BB) { in recurseBasicBlock() argument
236 if (BBisVisited.find(BB) != BBisVisited.end()) return; in recurseBasicBlock()
241 DI.BB = BB; in recurseBasicBlock()
247 const_pred_iterator bpi = pred_begin(BB), bpe = pred_end(BB); in recurseBasicBlock()
250 DI.inWeight += ReadOrAssert(PI->getEdge(0,BB)); in recurseBasicBlock()
255 DI.inWeight += ReadOrAssert(PI->getEdge(*bpi,BB)); in recurseBasicBlock()
262 succ_const_iterator bbi = succ_begin(BB), bbe = succ_end(BB); in recurseBasicBlock()
266 double w = PI->getEdgeWeight(PI->getEdge(BB,0)); in recurseBasicBlock()
273 DI.outWeight += ReadOrAssert(PI->getEdge(BB,*bbi)); in recurseBasicBlock()
279 DI.BBWeight = PI->getExecutionCount(BB); in recurseBasicBlock()
288 for (typename BType::const_iterator i = BB->begin(), ie = BB->end(); in recurseBasicBlock()
301 for (typename BType::const_iterator i = BB->begin(), ie = BB->end(); in recurseBasicBlock()
340 BBisVisited.insert(BB); in recurseBasicBlock()
341 for ( succ_const_iterator bbi = succ_begin(BB), bbe = succ_end(BB); in recurseBasicBlock()