/external/llvm/lib/Transforms/Utils/ |
D | BreakCriticalEdges.cpp | 159 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(), in SplitCriticalEdge() local 162 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitCriticalEdge() 166 TI->setSuccessor(SuccNum, NewBB); in SplitCriticalEdge() 171 F.getBasicBlockList().insert(++FBBI, NewBB); in SplitCriticalEdge() 190 PN->setIncomingBlock(BBIdx, NewBB); in SplitCriticalEdge() 205 TI->setSuccessor(i, NewBB); in SplitCriticalEdge() 212 if (P == 0) return NewBB; in SplitCriticalEdge() 220 return NewBB; in SplitCriticalEdge() 233 if (PN->getIncomingBlock(i) != NewBB) in SplitCriticalEdge() 239 if (P != NewBB) in SplitCriticalEdge() [all …]
|
D | CloneFunction.cpp | 41 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); in CloneBasicBlock() local 42 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); in CloneBasicBlock() 52 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock() 70 return NewBB; in CloneBasicBlock() 238 BasicBlock *NewBB; in CloneBlock() local 239 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); in CloneBlock() 240 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); in CloneBlock() 254 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock() 290 NewBB->getInstList().push_back(NewInst); in CloneBlock() 316 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock() [all …]
|
D | LoopUnrollRuntime.cpp | 155 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".unr", F); in CloneLoopBlocks() local 156 NewBlocks.push_back(NewBB); in CloneLoopBlocks() 159 ParentLoop->addBasicBlockToLoop(NewBB, LI->getBase()); in CloneLoopBlocks() 161 VMap[*BB] = NewBB; in CloneLoopBlocks() 165 InsertTop->getTerminator()->setSuccessor(0, NewBB); in CloneLoopBlocks() 174 NewBB->getInstList().erase(NewPHI); in CloneLoopBlocks() 190 NewBB->getTerminator()->eraseFromParent(); in CloneLoopBlocks() 191 BranchInst::Create(InsertBot, NewBB); in CloneLoopBlocks() 338 BasicBlock *NewBB = BasicBlock::Create(CompareBB->getContext(), "unr.cmp", in UnrollRuntimeLoopProlog() local 342 ParentLoop->addBasicBlockToLoop(NewBB, LI->getBase()); in UnrollRuntimeLoopProlog() [all …]
|
D | BasicBlockUtils.cpp | 304 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, in UpdateAnalysisInformation() argument 342 DT->splitBlock(NewBB); in UpdateAnalysisInformation() 370 InnermostPredLoop->addBasicBlockToLoop(NewBB, LI->getBase()); in UpdateAnalysisInformation() 372 L->addBasicBlockToLoop(NewBB, LI->getBase()); in UpdateAnalysisInformation() 374 L->moveToHeader(NewBB); in UpdateAnalysisInformation() 380 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 424 PN->addIncoming(InVal, NewBB); in UpdatePHINodes() 443 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), BB->getName()+Suffix, in SplitBlockPredecessors() local 447 BranchInst *BI = BranchInst::Create(BB, NewBB); in SplitBlockPredecessors() 456 Preds[i]->getTerminator()->replaceUsesOfWith(BB, NewBB); in SplitBlockPredecessors() [all …]
|
D | LoopSimplify.cpp | 110 static void PlaceSplitBlockCarefully(BasicBlock *NewBB, 495 void PlaceSplitBlockCarefully(BasicBlock *NewBB, in PlaceSplitBlockCarefully() argument 499 Function::iterator BBI = NewBB; --BBI; in PlaceSplitBlockCarefully() 514 if (++BBI != NewBB->getParent()->end() && in PlaceSplitBlockCarefully() 526 NewBB->moveAfter(FoundBB); in PlaceSplitBlockCarefully() 582 BasicBlock *NewBB = in SeparateNestedLoop() local 587 PlaceSplitBlockCarefully(NewBB, OuterLoopPreds, L); in SeparateNestedLoop()
|
D | CodeExtractor.cpp | 214 BasicBlock *NewBB = Header->splitBasicBlock(AfterPHIs, in severSplitPHINodes() local 221 Blocks.insert(NewBB); in severSplitPHINodes() 222 Header = NewBB; in severSplitPHINodes() 227 DT->splitBlock(NewBB); in severSplitPHINodes() 238 TI->replaceUsesOfWith(OldPred, NewBB); in severSplitPHINodes() 248 PN->getName()+".ce", NewBB->begin()); in severSplitPHINodes()
|
D | SimplifyCFG.cpp | 2677 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "switch.edge", in TryToSimplifyUncondBranchWithICmpInIt() local 2694 SI->addCase(Cst, NewBB); in TryToSimplifyUncondBranchWithICmpInIt() 2697 Builder.SetInsertPoint(NewBB); in TryToSimplifyUncondBranchWithICmpInIt() 2700 PHIUse->addIncoming(NewCst, NewBB); in TryToSimplifyUncondBranchWithICmpInIt() 2764 BasicBlock *NewBB = BB->splitBasicBlock(BI, "switch.early.test"); in SimplifyBranchOnICmpChain() local 2770 Builder.CreateCondBr(ExtraCase, EdgeBB, NewBB); in SimplifyBranchOnICmpChain() 2772 Builder.CreateCondBr(ExtraCase, NewBB, EdgeBB); in SimplifyBranchOnICmpChain() 2778 AddPredecessorToBlock(EdgeBB, BB, NewBB); in SimplifyBranchOnICmpChain() 2782 BB = NewBB; in SimplifyBranchOnICmpChain()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64BranchFixupPass.cpp | 364 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local 367 MF->insert(MBBI, NewBB); in splitBlockBeforeInstr() 370 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 376 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::Bimm)).addMBB(NewBB); in splitBlockBeforeInstr() 380 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 383 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 386 MF->RenumberBlocks(NewBB); in splitBlockBeforeInstr() 390 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in splitBlockBeforeInstr() 401 computeBlockSize(NewBB); in splitBlockBeforeInstr() 406 return NewBB; in splitBlockBeforeInstr()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 282 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 852 void ARMConstantIslands::updateForInsertedWaterBlock(MachineBasicBlock *NewBB) { in updateForInsertedWaterBlock() argument 854 NewBB->getParent()->RenumberBlocks(NewBB); in updateForInsertedWaterBlock() 858 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in updateForInsertedWaterBlock() 863 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, in updateForInsertedWaterBlock() 865 WaterList.insert(IP, NewBB); in updateForInsertedWaterBlock() 876 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local 879 MF->insert(MBBI, NewBB); in splitBlockBeforeInstr() 882 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 890 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | Dominators.h | 240 typename GraphT::NodeType* NewBB) { in Split() argument 241 assert(std::distance(GraphT::child_begin(NewBB), in Split() 242 GraphT::child_end(NewBB)) == 1 && in Split() 244 typename GraphT::NodeType* NewBBSucc = *GraphT::child_begin(NewBB); in Split() 249 InvTraits::child_begin(NewBB), in Split() 250 PE = InvTraits::child_end(NewBB); PI != PE; ++PI) in Split() 260 if (ND != NewBB && !DT.dominates(NewBBSucc, ND) && in Split() 289 DomTreeNodeBase<NodeT> *NewBBNode = DT.addNewBlock(NewBB, NewBBIDom); in Split() 500 void changeImmediateDominator(NodeT *BB, NodeT *NewBB) { in changeImmediateDominator() argument 501 changeImmediateDominator(getNode(BB), getNode(NewBB)); in changeImmediateDominator() [all …]
|
D | LoopInfoImpl.h | 200 addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LIB) { in addBasicBlockToLoop() argument 203 assert(NewBB && "Cannot add a null basic block to the loop!"); in addBasicBlockToLoop() 204 assert(LIB[NewBB] == 0 && "BasicBlock already in the loop!"); in addBasicBlockToLoop() 209 LIB.BBMap[NewBB] = L; in addBasicBlockToLoop() 213 L->Blocks.push_back(NewBB); in addBasicBlockToLoop()
|
D | ProfileInfo.h | 158 const BType *NewBB, bool MergeIdenticalEdges = false); 162 void splitBlock(const BType *BB, const BType* NewBB,
|
D | RegionInfo.h | 720 void splitBlock(BasicBlock* NewBB, BasicBlock *OldBB);
|
D | LoopInfo.h | 240 void addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LI);
|
/external/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 354 BasicBlock *NewBB = BB->splitBasicBlock(RI, "SP_return"); in InsertStackProtectors() local 357 DT->addNewBlock(NewBB, BB); in InsertStackProtectors() 366 NewBB->moveAfter(BB); in InsertStackProtectors() 372 BranchInst::Create(NewBB, FailBB, Cmp, BB); in InsertStackProtectors()
|
D | ShadowStackGC.cpp | 165 BasicBlock *NewBB = in Next() local 170 NewBB->getInstList().remove(CI); in Next() 178 NewBB, CleanupBB, in Next()
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineDominators.h | 159 inline void splitBlock(MachineBasicBlock* NewBB) { in splitBlock() argument 160 DT->splitBlock(NewBB); in splitBlock()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 1385 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), in ThreadEdge() local 1388 NewBB->moveAfter(PredBB); in ThreadEdge() 1399 NewBB->getInstList().push_back(New); in ThreadEdge() 1413 BranchInst *NewBI =BranchInst::Create(SuccBB, NewBB); in ThreadEdge() 1418 AddPHINodeEntriesForMappedBlock(SuccBB, BB, NewBB, ValueMapping); in ThreadEdge() 1452 SSAUpdate.AddAvailableValue(NewBB, ValueMapping[I]); in ThreadEdge() 1467 PredTerm->setSuccessor(i, NewBB); in ThreadEdge() 1473 SimplifyInstructionsInBlock(NewBB, TD, TLI); in ThreadEdge() 1679 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "select.unfold", in TryToUnfoldSelect() local 1683 NewBB->getInstList().insert(NewBB->end(), PredTerm); in TryToUnfoldSelect() [all …]
|
D | LoopUnswitch.cpp | 820 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition() local 822 NewBlocks.push_back(NewBB); in UnswitchNontrivialCondition() 823 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition() 824 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L); in UnswitchNontrivialCondition()
|
D | LoopStrengthReduce.cpp | 4545 BasicBlock *NewBB = 0; in RewriteForPHI() local 4547 NewBB = SplitCriticalEdge(BB, Parent, P, in RewriteForPHI() 4553 NewBB = NewBBs[0]; in RewriteForPHI() 4558 if (NewBB) { in RewriteForPHI() 4563 NewBB->moveBefore(PN->getParent()); in RewriteForPHI() 4567 BB = NewBB; in RewriteForPHI()
|
/external/llvm/lib/Analysis/ |
D | ProfileInfo.cpp | 368 const BasicBlock *NewBB, in splitEdge() argument 377 Edge n1 = getEdge(FirstBB, NewBB); in splitEdge() 378 Edge n2 = getEdge(NewBB, SecondBB); in splitEdge() 392 if (getExecutionCount(NewBB) == ProfileInfo::MissingValue) succ_count++; in splitEdge() 403 BlockInformation[F][NewBB] += neww; in splitEdge() 442 const BasicBlock* NewBB, in splitBlock() argument 451 << " to " << NewBB->getName() << "\n"); in splitBlock() 463 Edge newedge = getEdge(Pred, NewBB); in splitBlock() 472 Edge newedge = getEdge(NewBB,BB); in splitBlock() 474 setExecutionCount(NewBB, newweight); in splitBlock()
|
D | RegionInfo.cpp | 835 void RegionInfo::splitBlock(BasicBlock* NewBB, BasicBlock *OldBB) in splitBlock() argument 839 setRegionFor(NewBB, R); in splitBlock() 842 R->replaceEntry(NewBB); in splitBlock()
|
/external/llvm/lib/IR/ |
D | Constants.cpp | 1389 BasicBlock *NewBB = getBasicBlock(); in replaceUsesOfWithOnConstant() local 1394 NewBB = cast<BasicBlock>(To); in replaceUsesOfWithOnConstant() 1399 getContext().pImpl->BlockAddresses[std::make_pair(NewF, NewBB)]; in replaceUsesOfWithOnConstant() 1409 setOperand(1, NewBB); in replaceUsesOfWithOnConstant()
|