• Home
  • Raw
  • Download

Lines Matching refs:BasicBlock

37 BasicBlock *llvm::CloneBasicBlock(const BasicBlock *BB,  in CloneBasicBlock()
41 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); in CloneBasicBlock()
47 for (BasicBlock::const_iterator II = BB->begin(), IE = BB->end(); in CloneBasicBlock()
118 const BasicBlock &BB = *BI; in CloneFunctionInto()
121 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto()
134 const_cast<BasicBlock*>(&BB)); in CloneFunctionInto()
145 for (Function::iterator BB = cast<BasicBlock>(VMap[OldFunc->begin()]), in CloneFunctionInto()
148 for (BasicBlock::iterator II = BB->begin(); II != BB->end(); ++II) in CloneFunctionInto()
223 void CloneBlock(const BasicBlock *BB,
224 std::vector<const BasicBlock*> &ToClone);
230 void PruningFunctionCloner::CloneBlock(const BasicBlock *BB, in CloneBlock()
231 std::vector<const BasicBlock*> &ToClone){ in CloneBlock()
238 BasicBlock *NewBB; in CloneBlock()
239 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); in CloneBlock()
253 const_cast<BasicBlock*>(BB)); in CloneBlock()
262 for (BasicBlock::const_iterator II = BB->begin(), IE = --BB->end(); in CloneBlock()
315 BasicBlock *Dest = BI->getSuccessor(!Cond->getZExtValue()); in CloneBlock()
330 BasicBlock *Dest = const_cast<BasicBlock*>(Case.getCaseSuccessor()); in CloneBlock()
385 std::vector<const BasicBlock*> CloneWorklist; in CloneAndPruneFunctionInto()
388 const BasicBlock *BB = CloneWorklist.back(); in CloneAndPruneFunctionInto()
402 BasicBlock *NewBB = cast_or_null<BasicBlock>(V); in CloneAndPruneFunctionInto()
410 for (BasicBlock::const_iterator I = BI->begin(), E = BI->end(); I != E; ++I) in CloneAndPruneFunctionInto()
427 const BasicBlock *OldBB = OPN->getParent(); in CloneAndPruneFunctionInto()
428 BasicBlock *NewBB = cast<BasicBlock>(VMap[OldBB]); in CloneAndPruneFunctionInto()
438 if (BasicBlock *MappedBlock = cast_or_null<BasicBlock>(V)) { in CloneAndPruneFunctionInto()
462 std::map<BasicBlock*, unsigned> PredCount; in CloneAndPruneFunctionInto()
474 BasicBlock::iterator I = NewBB->begin(); in CloneAndPruneFunctionInto()
476 for (std::map<BasicBlock*, unsigned>::iterator PCI =PredCount.begin(), in CloneAndPruneFunctionInto()
478 BasicBlock *Pred = PCI->first; in CloneAndPruneFunctionInto()
490 BasicBlock::iterator I = NewBB->begin(); in CloneAndPruneFunctionInto()
491 BasicBlock::const_iterator OldI = OldBB->begin(); in CloneAndPruneFunctionInto()
518 Function::iterator Begin = cast<BasicBlock>(VMap[&OldFunc->getEntryBlock()]); in CloneAndPruneFunctionInto()
526 BasicBlock *DeadBB = I++; in CloneAndPruneFunctionInto()
541 BasicBlock *Dest = BI->getSuccessor(0); in CloneAndPruneFunctionInto()
569 for (Function::iterator I = cast<BasicBlock>(VMap[&OldFunc->getEntryBlock()]), in CloneAndPruneFunctionInto()