Home
last modified time | relevance | path

Searched refs:ExitBB (Results 1 – 25 of 37) sorted by relevance

12

/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DLCSSA.cpp160 for (BasicBlock *ExitBB : ExitBlocks) { in formLCSSAForInstructions()
161 if (!DT.dominates(DomNode, DT.getNode(ExitBB))) in formLCSSAForInstructions()
165 if (SSAUpdate.HasValueForBlock(ExitBB)) in formLCSSAForInstructions()
167 Builder.SetInsertPoint(&ExitBB->front()); in formLCSSAForInstructions()
168 PHINode *PN = Builder.CreatePHI(I->getType(), PredCache.size(ExitBB), in formLCSSAForInstructions()
178 for (BasicBlock *Pred : PredCache.get(ExitBB)) { in formLCSSAForInstructions()
193 SSAUpdate.AddAvailableValue(ExitBB, PN); in formLCSSAForInstructions()
203 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
DLowerMemIntrinsics.cpp414 BasicBlock *ExitBB = InsertBefore->getParent(); in createMemMoveLoop() local
415 ExitBB->setName("memmove_done"); in createMemMoveLoop()
442 ExitBB, LoopBB); in createMemMoveLoop()
445 BranchInst::Create(ExitBB, LoopBB, CompareN, ThenTerm); in createMemMoveLoop()
450 BasicBlock::Create(F->getContext(), "copy_forward_loop", F, ExitBB); in createMemMoveLoop()
461 ExitBB, FwdLoopBB); in createMemMoveLoop()
465 BranchInst::Create(ExitBB, FwdLoopBB, CompareN, ElseTerm); in createMemMoveLoop()
DCodeExtractor.cpp747 for (BasicBlock *ExitBB : Exits) { in severSplitPHINodesOfExits()
750 for (PHINode &PN : ExitBB->phis()) { in severSplitPHINodesOfExits()
766 NewBB = BasicBlock::Create(ExitBB->getContext(), in severSplitPHINodesOfExits()
767 ExitBB->getName() + ".split", in severSplitPHINodesOfExits()
768 ExitBB->getParent(), ExitBB); in severSplitPHINodesOfExits()
769 SmallVector<BasicBlock *, 4> Preds(predecessors(ExitBB)); in severSplitPHINodesOfExits()
772 PredBB->getTerminator()->replaceUsesOfWith(ExitBB, NewBB); in severSplitPHINodesOfExits()
773 BranchInst::Create(ExitBB, NewBB); in severSplitPHINodesOfExits()
1822 for (BasicBlock *ExitBB : ExitBlocks) in extractCodeRegion()
1823 for (PHINode &PN : ExitBB->phis()) { in extractCodeRegion()
DLoopUnrollRuntime.cpp974 auto *ExitBB = RemainderLatch->getSingleSuccessor(); in UnrollRuntimeLoopRemainder() local
975 assert(ExitBB && "required after breaking cond br backedge"); in UnrollRuntimeLoopRemainder()
977 MergeBlockIntoPredecessor(ExitBB, &DTU, LI); in UnrollRuntimeLoopRemainder()
DLoopUtils.cpp719 BasicBlock *ExitBB = BI->getSuccessor(ExitIdx); in breakLoopBackedge() local
725 auto *NewBI = Builder.CreateBr(ExitBB); in breakLoopBackedge()
1276 for (BasicBlock *ExitBB : ExitBlocks) { in rewriteLoopExitValues()
1279 PHINode *PN = dyn_cast<PHINode>(ExitBB->begin()); in rewriteLoopExitValues()
1285 BasicBlock::iterator BBI = ExitBB->begin(); in rewriteLoopExitValues()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DSimpleLoopUnswitch.cpp212 const BasicBlock &ExitBB) { in areLoopExitPHIsLoopInvariant() argument
213 for (const Instruction &I : ExitBB) { in areLoopExitPHIsLoopInvariant()
321 static void rewritePHINodesForExitAndUnswitchedBlocks(BasicBlock &ExitBB, in rewritePHINodesForExitAndUnswitchedBlocks() argument
326 assert(&ExitBB != &UnswitchedBB && in rewritePHINodesForExitAndUnswitchedBlocks()
329 for (PHINode &PN : ExitBB.phis()) { in rewritePHINodesForExitAndUnswitchedBlocks()
357 NewPN->addIncoming(&PN, &ExitBB); in rewritePHINodesForExitAndUnswitchedBlocks()
377 for (auto *ExitBB : Exits) in hoistLoopToNewParent() local
378 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent()
437 static const Loop *getTopMostExitingLoop(const BasicBlock *ExitBB, in getTopMostExitingLoop() argument
439 const Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop()
[all …]
DLICM.cpp1541 BasicBlock *ExitBB = PN->getParent(); in splitPredecessorsOfLoopExit() local
1542 assert(ExitBlockSet.count(ExitBB) && "Expect the PHI is in an exit block."); in splitPredecessorsOfLoopExit()
1577 SmallSetVector<BasicBlock *, 8> PredBBs(pred_begin(ExitBB), pred_end(ExitBB)); in splitPredecessorsOfLoopExit()
1584 ExitBB, PredBB, ".split.loop.exit", DT, LI, MSSAU, true); in splitPredecessorsOfLoopExit()
DLoopUnrollPass.cpp639 BasicBlock *ExitingBB, *ExitBB; in analyzeLoopUnrollCost() local
640 std::tie(ExitingBB, ExitBB) = ExitWorklist.pop_back_val(); in analyzeLoopUnrollCost()
642 for (Instruction &I : *ExitBB) { in analyzeLoopUnrollCost()
DLoopPredication.cpp1216 BasicBlock *ExitBB = BI->getSuccessor(ExitIfTrue ? 0 : 1); in predicateLoopExits() local
1217 if (!ExitBB->getPostdominatingDeoptimizeCall()) in predicateLoopExits()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp123 BasicBlock *ExitBB = BasicBlock::Create(Ctx, "exit", F); in buildCFICheck() local
131 IRBFail.CreateBr(ExitBB); in buildCFICheck()
133 IRBuilder<> IRBExit(ExitBB); in buildCFICheck()
147 BranchInst *BI = IRBTest.CreateCondBr(Test, ExitBB, TrapBB); in buildCFICheck()
DHotColdSplitting.cpp280 for (BasicBlock *ExitBB : SuccsOutsideRegion) { in getOutliningPenalty()
281 for (PHINode &PN : ExitBB->phis()) { in getOutliningPenalty()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/
DAtomicExpandPass.cpp1151 BasicBlock *ExitBB = in insertRMWLLSCLoop() local
1153 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in insertRMWLLSCLoop()
1171 Builder.CreateCondBr(TryAgain, LoopBB, ExitBB); in insertRMWLLSCLoop()
1173 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in insertRMWLLSCLoop()
1300 BasicBlock *ExitBB = BB->splitBasicBlock(CI->getIterator(), "cmpxchg.end"); in expandAtomicCmpXchg() local
1301 auto FailureBB = BasicBlock::Create(Ctx, "cmpxchg.failure", F, ExitBB); in expandAtomicCmpXchg()
1382 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg()
1405 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg()
1411 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in expandAtomicCmpXchg()
1424 Builder.SetInsertPoint(ExitBB, std::next(Success->getIterator())); in expandAtomicCmpXchg()
[all …]
DAnalysis.cpp524 const BasicBlock *ExitBB = Call.getParent(); in isInTailCallPosition() local
525 const Instruction *Term = ExitBB->getTerminator(); in isInTailCallPosition()
545 for (BasicBlock::const_iterator BBI = std::prev(ExitBB->end(), 2);; --BBI) { in isInTailCallPosition()
564 const Function *F = ExitBB->getParent(); in isInTailCallPosition()
DMachineBlockPlacement.cpp526 const MachineBasicBlock *ExitBB,
1987 const MachineBasicBlock *ExitBB, in FallThroughGains() argument
1991 if (ExitBB) in FallThroughGains()
1993 MBPI->getEdgeProbability(NewTop, ExitBB); in FallThroughGains()
/openbsd/src/gnu/llvm/llvm/lib/Frontend/OpenMP/
DOMPIRBuilder.cpp480 << " Exit: " << OI.ExitBB->getName() << "\n"); in finalize()
1099 OI.ExitBB = PRegExitBB; in createParallel()
1317 OI.ExitBB = TaskExitBB; in createTask()
1602 auto *ExitBB = CondBB->getTerminator()->getSuccessor(1); in createSections() local
1603 Instruction *I = Builder.CreateBr(ExitBB); in createSections()
1694 auto *ExitBB = CondBB->getTerminator()->getSuccessor(1); in createSection() local
1695 Instruction *I = Builder.CreateBr(ExitBB); in createSection()
2783 BasicBlock *ExitBB = Nested->getHeader(); in tileLoops() local
2784 InbetweenCode.emplace_back(EnterBB, ExitBB); in tileLoops()
2884 BasicBlock *ExitBB = P.second; in tileLoops() local
[all …]
/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DCGAtomic.cpp1877 auto *ExitBB = CGF.createBasicBlock("atomic_exit"); in EmitAtomicUpdateLibcall() local
1893 CGF.Builder.CreateCondBr(Res, ExitBB, ContBB); in EmitAtomicUpdateLibcall()
1894 CGF.EmitBlock(ExitBB, /*IsFinished=*/true); in EmitAtomicUpdateLibcall()
1906 auto *ExitBB = CGF.createBasicBlock("atomic_exit"); in EmitAtomicUpdateOp() local
1925 CGF.Builder.CreateCondBr(Res.second, ExitBB, ContBB); in EmitAtomicUpdateOp()
1926 CGF.EmitBlock(ExitBB, /*IsFinished=*/true); in EmitAtomicUpdateOp()
1963 auto *ExitBB = CGF.createBasicBlock("atomic_exit"); in EmitAtomicUpdateLibcall() local
1976 CGF.Builder.CreateCondBr(Res, ExitBB, ContBB); in EmitAtomicUpdateLibcall()
1977 CGF.EmitBlock(ExitBB, /*IsFinished=*/true); in EmitAtomicUpdateLibcall()
1988 auto *ExitBB = CGF.createBasicBlock("atomic_exit"); in EmitAtomicUpdateOp() local
[all …]
DCGOpenMPRuntimeGPU.cpp1288 llvm::BasicBlock *ExitBB = CGF.createBasicBlock("omp.critical.exit"); in emitCriticalRegion() local
1313 CGF.Builder.CreateCondBr(CmpLoopBound, TestBB, ExitBB); in emitCriticalRegion()
1346 CGF.EmitBlock(ExitBB, /*IsFinished=*/true); in emitCriticalRegion()
1447 llvm::BasicBlock *ExitBB = CGF.createBasicBlock(".shuffle.exit"); in shuffleAndStore() local
1464 ThenBB, ExitBB); in shuffleAndStore()
1480 CGF.EmitBlock(ExitBB); in shuffleAndStore()
1834 llvm::BasicBlock *ExitBB = nullptr; in emitInterWarpCopyFunction() local
1840 ExitBB = CGF.createBasicBlock("exit"); in emitInterWarpCopyFunction()
1848 Bld.CreateCondBr(Cmp, BodyBB, ExitBB); in emitInterWarpCopyFunction()
1966 CGF.EmitBlock(ExitBB); in emitInterWarpCopyFunction()
[all …]
DCGNonTrivialStruct.cpp386 llvm::BasicBlock *ExitBB = CGF.createBasicBlock("loop.exit"); in visitArray() local
393 CGF.Builder.CreateCondBr(Done, ExitBB, LoopBB); in visitArray()
421 CGF.EmitBlock(ExitBB); in visitArray()
DCGOpenMPRuntime.cpp2544 llvm::BasicBlock *ExitBB = CGF.createBasicBlock(".cancel.exit"); in emitBarrierCall() local
2547 CGF.Builder.CreateCondBr(Cmp, ExitBB, ContBB); in emitBarrierCall()
2548 CGF.EmitBlock(ExitBB); in emitBarrierCall()
5931 llvm::BasicBlock *ExitBB = CGF.createBasicBlock(".cancel.exit"); in emitCancellationPointCall() local
5934 CGF.Builder.CreateCondBr(Cmp, ExitBB, ContBB); in emitCancellationPointCall()
5935 CGF.EmitBlock(ExitBB); in emitCancellationPointCall()
5970 llvm::BasicBlock *ExitBB = CGF.createBasicBlock(".cancel.exit"); in emitCancelCall() local
5973 CGF.Builder.CreateCondBr(Cmp, ExitBB, ContBB); in emitCancelCall()
5974 CGF.EmitBlock(ExitBB); in emitCancelCall()
9688 llvm::BasicBlock *ExitBB = MapperCGF.createBasicBlock("omp.arraymap.exit"); in emitUserDefinedMapper() local
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Vectorize/
DVPlan.cpp287 PrevBB->getParent(), CFG.ExitBB); in createEmptyBasicBlock()
336 NewBB = State->CFG.ExitBB; in execute()
669 State->CFG.ExitBB = State->CFG.PrevBB->getSingleSuccessor(); in execute()
737 State->CFG.ExitBB); in execute()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp1691 for (BasicBlock &ExitBB : F) { in ComputePostOrders()
1692 BBState &MyStates = BBStates[&ExitBB]; in ComputePostOrders()
1698 PredStack.push_back(std::make_pair(&ExitBB, MyStates.pred_begin())); in ComputePostOrders()
1699 Visited.insert(&ExitBB); in ComputePostOrders()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp1210 auto *ExitBB = BasicBlock::Create(*Ctx, "exit", WriteoutF); in insertCounterWriteout() local
1304 Builder.CreateCondBr(FileLoopCond, FileLoopHeader, ExitBB); in insertCounterWriteout()
1307 Builder.SetInsertPoint(ExitBB); in insertCounterWriteout()
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DLoopInfo.cpp934 const BasicBlock *ExitBB) const { in wouldBeOutOfLoopUseRequiringLCSSA()
946 if (L->contains(ExitBB)) in wouldBeOutOfLoopUseRequiringLCSSA()
/openbsd/src/gnu/llvm/llvm/include/llvm/Frontend/OpenMP/
DOMPIRBuilder.h1062 BasicBlock *EntryBB, *ExitBB, *OuterAllocaBB; member
1584 BasicBlock *ExitBB,
/openbsd/src/gnu/llvm/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp1996 MachineBasicBlock *ExitBB = &MBB->back() == Br.MI ? in optimizeThumb2Branches() local
2001 if (FindCmpForCBZ(Br, Cmp, ExitBB) && TryConvertToLE(Br, Cmp)) { in optimizeThumb2Branches()
2002 DestBB = ExitBB; in optimizeThumb2Branches()

12