Searched refs:OldTI (Results 1 – 8 of 8) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 256 const TerminatorInst *OldTI = BB->getTerminator(); in CloneBlock() local 258 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) { in CloneBlock() 271 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock() 276 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) { in CloneBlock() 285 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock() 292 Instruction *NewInst = OldTI->clone(); in CloneBlock() 293 if (OldTI->hasName()) in CloneBlock() 294 NewInst->setName(OldTI->getName()+NameSuffix); in CloneBlock() 296 VMap[OldTI] = NewInst; // Add instruction map to value. in CloneBlock() 306 CodeInfo->ContainsUnwinds |= isa<UnwindInst>(OldTI); in CloneBlock()
|
D | SimplifyCFG.cpp | 1369 TerminatorInst *OldTI = DomBlock->getTerminator(); in FoldTwoEntryPHINode() local 1370 Builder.SetInsertPoint(OldTI); in FoldTwoEntryPHINode() 1372 OldTI->eraseFromParent(); in FoldTwoEntryPHINode() 2089 TerminatorInst *OldTI = BB->getTerminator(); in SimplifyBranchOnICmpChain() local 2090 Builder.SetInsertPoint(OldTI); in SimplifyBranchOnICmpChain() 2097 OldTI->eraseFromParent(); in SimplifyBranchOnICmpChain()
|
/external/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 327 const TerminatorInst *OldTI = BB->getTerminator(); in CloneBlock() local 329 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) { in CloneBlock() 342 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock() 347 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) { in CloneBlock() 357 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock() 364 Instruction *NewInst = OldTI->clone(); in CloneBlock() 365 if (OldTI->hasName()) in CloneBlock() 366 NewInst->setName(OldTI->getName()+NameSuffix); in CloneBlock() 368 VMap[OldTI] = NewInst; // Add instruction map to value. in CloneBlock() 371 if (auto CS = ImmutableCallSite(OldTI)) in CloneBlock()
|
D | SimplifyCFG.cpp | 2050 TerminatorInst *OldTI = DomBlock->getTerminator(); in FoldTwoEntryPHINode() local 2051 Builder.SetInsertPoint(OldTI); in FoldTwoEntryPHINode() 2053 OldTI->eraseFromParent(); in FoldTwoEntryPHINode() 3311 TerminatorInst *OldTI = BB->getTerminator(); in SimplifyBranchOnICmpChain() local 3312 Builder.SetInsertPoint(OldTI); in SimplifyBranchOnICmpChain() 3319 OldTI->eraseFromParent(); in SimplifyBranchOnICmpChain() 4033 auto *OldTI = NewDefault->getTerminator(); in EliminateDeadSwitchCases() local 4034 new UnreachableInst(SI->getContext(), OldTI); in EliminateDeadSwitchCases() 4035 EraseTerminatorInstAndDCECond(OldTI); in EliminateDeadSwitchCases()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 368 const TerminatorInst *OldTI = BB->getTerminator(); in CloneBlock() local 370 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) { in CloneBlock() 383 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock() 388 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) { in CloneBlock() 398 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock() 405 Instruction *NewInst = OldTI->clone(); in CloneBlock() 406 if (OldTI->hasName()) in CloneBlock() 407 NewInst->setName(OldTI->getName()+NameSuffix); in CloneBlock() 409 VMap[OldTI] = NewInst; // Add instruction map to value. in CloneBlock() 412 if (auto CS = ImmutableCallSite(OldTI)) in CloneBlock()
|
D | SimplifyCFG.cpp | 2403 TerminatorInst *OldTI = DomBlock->getTerminator(); in FoldTwoEntryPHINode() local 2404 Builder.SetInsertPoint(OldTI); in FoldTwoEntryPHINode() 2406 OldTI->eraseFromParent(); in FoldTwoEntryPHINode() 3704 TerminatorInst *OldTI = BB->getTerminator(); in SimplifyBranchOnICmpChain() local 3705 Builder.SetInsertPoint(OldTI); in SimplifyBranchOnICmpChain() 3712 OldTI->eraseFromParent(); in SimplifyBranchOnICmpChain() 4425 auto *OldTI = NewDefault->getTerminator(); in eliminateDeadSwitchCases() local 4426 new UnreachableInst(SI->getContext(), OldTI); in eliminateDeadSwitchCases() 4427 EraseTerminatorInstAndDCECond(OldTI); in eliminateDeadSwitchCases()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonEarlyIfConv.cpp | 825 MachineBasicBlock::iterator OldTI = FP.SplitB->getFirstTerminator(); in convert() local 826 assert(OldTI != FP.SplitB->end()); in convert() 827 DebugLoc DL = OldTI->getDebugLoc(); in convert() 831 predicateBlockNB(FP.SplitB, OldTI, FP.TrueB, FP.PredR, true); in convert() 843 FP.SplitB->erase(OldTI, FP.SplitB->end()); in convert()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonEarlyIfConv.cpp | 863 MachineBasicBlock::iterator OldTI = FP.SplitB->getFirstTerminator(); in convert() local 864 assert(OldTI != FP.SplitB->end()); in convert() 865 DebugLoc DL = OldTI->getDebugLoc(); in convert() 869 predicateBlockNB(FP.SplitB, OldTI, FP.TrueB, FP.PredR, true); in convert() 881 FP.SplitB->erase(OldTI, FP.SplitB->end()); in convert()
|