Home
last modified time | relevance | path

Searched refs:OrigBB (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DBasicBlockUtils.cpp395 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument
400 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes()
507 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument
512 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors()
516 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors()
517 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors()
518 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors()
522 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors()
531 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors()
536 UpdateAnalysisInformation(OrigBB, NewBB1, Preds, P, HasLoopExit); in SplitLandingPadPredecessors()
[all …]
DInlineFunction.cpp512 BasicBlock *OrigBB = TheCall->getParent(); in InlineFunction() local
513 Function *Caller = OrigBB->getParent(); in InlineFunction()
725 OrigBB->getInstList().splice(TheCall, FirstNewBlock->getInstList(), in InlineFunction()
769 AfterCallBB = OrigBB->splitBasicBlock(NewBr, in InlineFunction()
776 AfterCallBB = OrigBB->splitBasicBlock(TheCall, in InlineFunction()
783 TerminatorInst *Br = OrigBB->getTerminator(); in InlineFunction()
867 CalleeEntry->replaceAllUsesWith(OrigBB); // Update PHI nodes in InlineFunction()
868 OrigBB->getInstList().splice(Br, CalleeEntry->getInstList()); in InlineFunction()
871 OrigBB->getInstList().erase(Br); in InlineFunction()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp872 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local
876 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr()
877 MachineFunction::iterator MBBI = OrigBB; ++MBBI; in splitBlockBeforeInstr()
881 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr()
889 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr()
891 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB) in splitBlockBeforeInstr()
896 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr()
899 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr()
915 std::lower_bound(WaterList.begin(), WaterList.end(), OrigBB, in splitBlockBeforeInstr()
918 if (WaterBB == OrigBB) in splitBlockBeforeInstr()
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DBasicBlockUtils.h194 void SplitLandingPadPredecessors(BasicBlock *OrigBB,ArrayRef<BasicBlock*> Preds,
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1534 BasicBlock *OrigBB = CI->getParent(); in PerformHeapAllocSRoA() local
1535 BasicBlock *ContBB = OrigBB->splitBasicBlock(CI, "malloc_cont"); in PerformHeapAllocSRoA()
1539 BasicBlock *NullPtrBlock = BasicBlock::Create(OrigBB->getContext(), in PerformHeapAllocSRoA()
1541 OrigBB->getParent()); in PerformHeapAllocSRoA()
1545 OrigBB->getTerminator()->eraseFromParent(); in PerformHeapAllocSRoA()
1546 BranchInst::Create(NullPtrBlock, ContBB, RunningOr, OrigBB); in PerformHeapAllocSRoA()
1555 OrigBB->getParent()); in PerformHeapAllocSRoA()
1557 OrigBB->getParent()); in PerformHeapAllocSRoA()