Searched refs:OldTI (Results 1 - 5 of 5) sorted by relevance

/external/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp327 const TerminatorInst *OldTI = BB->getTerminator(); local
329 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) {
342 VMap[OldTI] = BranchInst::Create(Dest, NewBB);
347 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) {
357 VMap[OldTI] = BranchInst::Create(Dest, NewBB);
364 Instruction *NewInst = OldTI->clone();
365 if (OldTI->hasName())
366 NewInst->setName(OldTI->getName()+NameSuffix);
368 VMap[OldTI] = NewInst; // Add instruction map to value.
371 if (auto CS = ImmutableCallSite(OldTI))
[all...]
H A DSimplifyCFG.cpp2050 TerminatorInst *OldTI = DomBlock->getTerminator(); local
2051 Builder.SetInsertPoint(OldTI);
2053 OldTI->eraseFromParent();
3311 TerminatorInst *OldTI = BB->getTerminator(); local
3312 Builder.SetInsertPoint(OldTI);
3319 OldTI->eraseFromParent();
4033 auto *OldTI = NewDefault->getTerminator(); local
4034 new UnreachableInst(SI->getContext(), OldTI);
4035 EraseTerminatorInstAndDCECond(OldTI);
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
H A DCloneFunction.cpp256 const TerminatorInst *OldTI = BB->getTerminator(); local
258 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) {
271 VMap[OldTI] = BranchInst::Create(Dest, NewBB);
276 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) {
285 VMap[OldTI] = BranchInst::Create(Dest, NewBB);
292 Instruction *NewInst = OldTI->clone();
293 if (OldTI->hasName())
294 NewInst->setName(OldTI->getName()+NameSuffix);
296 VMap[OldTI] = NewInst; // Add instruction map to value.
306 CodeInfo->ContainsUnwinds |= isa<UnwindInst>(OldTI);
[all...]
H A DSimplifyCFG.cpp1369 TerminatorInst *OldTI = DomBlock->getTerminator(); local
1370 Builder.SetInsertPoint(OldTI);
1372 OldTI->eraseFromParent();
2089 TerminatorInst *OldTI = BB->getTerminator(); local
2090 Builder.SetInsertPoint(OldTI);
2097 OldTI->eraseFromParent();
/external/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp825 MachineBasicBlock::iterator OldTI = FP.SplitB->getFirstTerminator(); local
826 assert(OldTI != FP.SplitB->end());
827 DebugLoc DL = OldTI->getDebugLoc();
831 predicateBlockNB(FP.SplitB, OldTI, FP.TrueB, FP.PredR, true);
843 FP.SplitB->erase(OldTI, FP.SplitB->end());

Completed in 812 milliseconds