• Home
  • Raw
  • Download

Lines Matching refs:BB

54 bool SSAUpdater::HasValueForBlock(BasicBlock *BB) const {  in HasValueForBlock()
55 return getAvailableVals(AV).count(BB); in HasValueForBlock()
58 void SSAUpdater::AddAvailableValue(BasicBlock *BB, Value *V) { in AddAvailableValue() argument
62 getAvailableVals(AV)[BB] = V; in AddAvailableValue()
81 Value *SSAUpdater::GetValueAtEndOfBlock(BasicBlock *BB) { in GetValueAtEndOfBlock() argument
82 Value *Res = GetValueAtEndOfBlockInternal(BB); in GetValueAtEndOfBlock()
86 Value *SSAUpdater::GetValueInMiddleOfBlock(BasicBlock *BB) { in GetValueInMiddleOfBlock() argument
89 if (!HasValueForBlock(BB)) in GetValueInMiddleOfBlock()
90 return GetValueAtEndOfBlock(BB); in GetValueInMiddleOfBlock()
100 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
114 for (pred_iterator PI = pred_begin(BB), E = pred_end(BB); PI != E; ++PI) { in GetValueInMiddleOfBlock()
138 if (isa<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
142 for (BasicBlock::iterator It = BB->begin(); in GetValueInMiddleOfBlock()
151 ProtoName, &BB->front()); in GetValueInMiddleOfBlock()
160 SimplifyInstruction(InsertedPHI, BB->getModule()->getDataLayout())) { in GetValueInMiddleOfBlock()
167 if (const Instruction *I = BB->getFirstNonPHI()) in GetValueInMiddleOfBlock()
216 static BlkSucc_iterator BlkSucc_begin(BlkT *BB) { return succ_begin(BB); } in BlkSucc_begin() argument
217 static BlkSucc_iterator BlkSucc_end(BlkT *BB) { return succ_end(BB); } in BlkSucc_end() argument
244 static void FindPredecessorBlocks(BasicBlock *BB, in FindPredecessorBlocks() argument
249 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in FindPredecessorBlocks()
252 for (pred_iterator PI = pred_begin(BB), E = pred_end(BB); PI != E; ++PI) in FindPredecessorBlocks()
259 static Value *GetUndefVal(BasicBlock *BB, SSAUpdater *Updater) { in GetUndefVal() argument
265 static Value *CreateEmptyPHI(BasicBlock *BB, unsigned NumPreds, in CreateEmptyPHI() argument
268 Updater->ProtoName, &BB->front()); in CreateEmptyPHI()
311 Value *SSAUpdater::GetValueAtEndOfBlockInternal(BasicBlock *BB) { in GetValueAtEndOfBlockInternal() argument
313 if (Value *V = AvailableVals[BB]) in GetValueAtEndOfBlockInternal()
317 return Impl.GetValue(BB); in GetValueAtEndOfBlockInternal()
359 BasicBlock *BB = User->getParent(); in run() local
360 TinyPtrVector<Instruction*> &BlockUses = UsesByBlock[BB]; in run()
371 SSA.AddAvailableValue(BB, SI->getOperand(0)); in run()
404 for (Instruction &I : *BB) { in run()
433 SSA.AddAvailableValue(BB, StoredValue); in run()