/external/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 389 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 394 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes() 539 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument 545 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors() 549 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors() 550 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors() 551 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors() 555 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 564 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() 568 UpdateAnalysisInformation(OrigBB, NewBB1, Preds, DT, LI, PreserveLCSSA, in SplitLandingPadPredecessors() [all …]
|
D | InlineFunction.cpp | 938 BasicBlock *OrigBB = TheCall->getParent(); in InlineFunction() local 939 Function *Caller = OrigBB->getParent(); in InlineFunction() 1262 OrigBB->getInstList().splice(TheCall, FirstNewBlock->getInstList(), in InlineFunction() 1309 AfterCallBB = OrigBB->splitBasicBlock(CreatedBranchToNormalDest, in InlineFunction() 1316 AfterCallBB = OrigBB->splitBasicBlock(TheCall, in InlineFunction() 1323 TerminatorInst *Br = OrigBB->getTerminator(); in InlineFunction() 1424 CalleeEntry->replaceAllUsesWith(OrigBB); // Update PHI nodes in InlineFunction() 1425 OrigBB->getInstList().splice(Br, CalleeEntry->getInstList()); in InlineFunction() 1428 OrigBB->getInstList().erase(Br); in InlineFunction()
|
D | LowerSwitch.cpp | 160 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, in fixPhis() argument 170 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis() 180 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64BranchRelaxation.cpp | 214 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 218 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 219 MachineFunction::iterator MBBI = OrigBB; in splitBlockBeforeInstr() 224 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 230 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::B)).addMBB(NewBB); in splitBlockBeforeInstr() 240 computeBlockSize(*OrigBB); in splitBlockBeforeInstr() 247 adjustBlockOffsets(*OrigBB); in splitBlockBeforeInstr()
|
/external/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 877 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 881 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 882 MachineFunction::iterator MBBI = OrigBB; ++MBBI; in splitBlockBeforeInstr() 886 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 892 BuildMI(OrigBB, DebugLoc(), TII->get(Mips::Bimm16)).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() 921 WaterList.insert(IP, OrigBB); in splitBlockBeforeInstr() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 876 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 880 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 881 MachineFunction::iterator MBBI = OrigBB; ++MBBI; in splitBlockBeforeInstr() 885 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 893 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr() 895 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB) in splitBlockBeforeInstr() 900 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 903 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 919 std::lower_bound(WaterList.begin(), WaterList.end(), OrigBB, in splitBlockBeforeInstr() 922 if (WaterBB == OrigBB) in splitBlockBeforeInstr() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 241 void SplitLandingPadPredecessors(BasicBlock *OrigBB,
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1340 BasicBlock *OrigBB = CI->getParent(); in PerformHeapAllocSRoA() local 1341 BasicBlock *ContBB = OrigBB->splitBasicBlock(CI, "malloc_cont"); in PerformHeapAllocSRoA() 1345 BasicBlock *NullPtrBlock = BasicBlock::Create(OrigBB->getContext(), in PerformHeapAllocSRoA() 1347 OrigBB->getParent()); in PerformHeapAllocSRoA() 1351 OrigBB->getTerminator()->eraseFromParent(); in PerformHeapAllocSRoA() 1352 BranchInst::Create(NullPtrBlock, ContBB, RunningOr, OrigBB); in PerformHeapAllocSRoA() 1361 OrigBB->getParent()); in PerformHeapAllocSRoA() 1363 OrigBB->getParent()); in PerformHeapAllocSRoA()
|
/external/llvm/lib/Transforms/Scalar/ |
D | PlaceSafepoints.cpp | 771 BasicBlock *OrigBB = term->getParent(); in InsertSafepointPoll() local 798 start = OrigBB->begin(); in InsertSafepointPoll()
|
/external/clang/lib/CodeGen/ |
D | CGExprComplex.cpp | 668 llvm::BasicBlock *OrigBB = Branch->getParent(); in EmitBinMul() local 693 RealPHI->addIncoming(ResR, OrigBB); in EmitBinMul() 697 ImagPHI->addIncoming(ResI, OrigBB); in EmitBinMul()
|
/external/llvm/lib/CodeGen/ |
D | RegisterCoalescer.cpp | 2747 const MachineBasicBlock *OrigBB = Copy.getParent(); in applyTerminalRule() local 2756 if (&MI == &Copy || !MI.isCopyLike() || MI.getParent() != OrigBB) in applyTerminalRule()
|