/external/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 393 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 398 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes() 545 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument 551 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors() 555 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors() 556 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors() 557 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors() 561 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 562 BI1->setDebugLoc(OrigBB->getFirstNonPHI()->getDebugLoc()); in SplitLandingPadPredecessors() 571 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() [all …]
|
D | InlineFunction.cpp | 1055 BasicBlock *OrigBB = TheCall->getParent(); in InlineFunction() local 1056 Function *Caller = OrigBB->getParent(); in InlineFunction() 1529 OrigBB->getInstList().splice(TheCall->getIterator(), in InlineFunction() 1578 OrigBB->splitBasicBlock(CreatedBranchToNormalDest->getIterator(), in InlineFunction() 1585 AfterCallBB = OrigBB->splitBasicBlock(TheCall->getIterator(), in InlineFunction() 1592 TerminatorInst *Br = OrigBB->getTerminator(); in InlineFunction() 1692 CalleeEntry->replaceAllUsesWith(OrigBB); // Update PHI nodes in InlineFunction() 1693 OrigBB->getInstList().splice(Br->getIterator(), CalleeEntry->getInstList()); in InlineFunction() 1696 OrigBB->getInstList().erase(Br); in InlineFunction()
|
D | LowerSwitch.cpp | 168 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, in fixPhis() argument 179 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis() 189 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerAggrCopies.cpp | 66 BasicBlock *OrigBB = ConvertedInst->getParent(); in convertMemCpyToLoop() local 71 OrigBB->getTerminator()->setSuccessor(0, LoopBB); in convertMemCpyToLoop() 72 IRBuilder<> Builder(OrigBB->getTerminator()); in convertMemCpyToLoop() 85 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), OrigBB); in convertMemCpyToLoop() 136 BasicBlock *OrigBB = ConvertedInst->getParent(); in convertMemMoveToLoop() local 165 new ICmpInst(OrigBB->getTerminator(), ICmpInst::ICMP_EQ, CopyLen, in convertMemMoveToLoop() 211 BasicBlock *OrigBB = ConvertedInst->getParent(); in convertMemSetToLoop() local 216 OrigBB->getTerminator()->setSuccessor(0, LoopBB); in convertMemSetToLoop() 217 IRBuilder<> Builder(OrigBB->getTerminator()); in convertMemSetToLoop() 226 LoopIndex->addIncoming(ConstantInt::get(CopyLen->getType(), 0), OrigBB); in convertMemSetToLoop()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64BranchRelaxation.cpp | 225 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 229 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 230 MF->insert(++OrigBB->getIterator(), NewBB); in splitBlockBeforeInstr() 233 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 239 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::B)).addMBB(NewBB); in splitBlockBeforeInstr() 249 computeBlockSize(*OrigBB); in splitBlockBeforeInstr() 256 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->getIterator(); 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 | 976 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 980 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 981 MachineFunction::iterator MBBI = ++OrigBB->getIterator(); in splitBlockBeforeInstr() 985 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 993 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr() 995 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB) in splitBlockBeforeInstr() 1000 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 1003 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 1019 std::lower_bound(WaterList.begin(), WaterList.end(), OrigBB, in splitBlockBeforeInstr() 1022 if (WaterBB == OrigBB) in splitBlockBeforeInstr() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | PlaceSafepoints.cpp | 756 BasicBlock *OrigBB = InsertBefore->getParent(); in INITIALIZE_PASS_DEPENDENCY() local 774 if (before == OrigBB->begin()) { in INITIALIZE_PASS_DEPENDENCY() 780 assert(after != OrigBB->end() && "must have successor"); in INITIALIZE_PASS_DEPENDENCY() 797 start = OrigBB->begin(); in INITIALIZE_PASS_DEPENDENCY()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 226 void SplitLandingPadPredecessors(BasicBlock *OrigBB,
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1339 BasicBlock *OrigBB = CI->getParent(); in PerformHeapAllocSRoA() local 1341 OrigBB->splitBasicBlock(CI->getIterator(), "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/clang/lib/CodeGen/ |
D | CGExprComplex.cpp | 674 llvm::BasicBlock *OrigBB = Branch->getParent(); in EmitBinMul() local 699 RealPHI->addIncoming(ResR, OrigBB); in EmitBinMul() 703 ImagPHI->addIncoming(ResI, OrigBB); in EmitBinMul()
|
/external/llvm/lib/CodeGen/ |
D | RegisterCoalescer.cpp | 2775 const MachineBasicBlock *OrigBB = Copy.getParent(); in applyTerminalRule() local 2784 if (&MI == &Copy || !MI.isCopyLike() || MI.getParent() != OrigBB) in applyTerminalRule()
|