| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| D | LCSSA.cpp | 160 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()
|
| D | LowerMemIntrinsics.cpp | 414 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()
|
| D | CodeExtractor.cpp | 747 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()
|
| D | LoopUnrollRuntime.cpp | 974 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()
|
| D | LoopUtils.cpp | 719 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/ |
| D | SimpleLoopUnswitch.cpp | 212 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 …]
|
| D | LICM.cpp | 1541 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()
|
| D | LoopUnrollPass.cpp | 639 BasicBlock *ExitingBB, *ExitBB; in analyzeLoopUnrollCost() local 640 std::tie(ExitingBB, ExitBB) = ExitWorklist.pop_back_val(); in analyzeLoopUnrollCost() 642 for (Instruction &I : *ExitBB) { in analyzeLoopUnrollCost()
|
| D | LoopPredication.cpp | 1216 BasicBlock *ExitBB = BI->getSuccessor(ExitIfTrue ? 0 : 1); in predicateLoopExits() local 1217 if (!ExitBB->getPostdominatingDeoptimizeCall()) in predicateLoopExits()
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| D | CrossDSOCFI.cpp | 123 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()
|
| D | HotColdSplitting.cpp | 280 for (BasicBlock *ExitBB : SuccsOutsideRegion) { in getOutliningPenalty() 281 for (PHINode &PN : ExitBB->phis()) { in getOutliningPenalty()
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/ |
| D | AtomicExpandPass.cpp | 1151 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 …]
|
| D | Analysis.cpp | 524 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()
|
| D | MachineBlockPlacement.cpp | 526 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/ |
| D | OMPIRBuilder.cpp | 480 << " 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/ |
| D | CGAtomic.cpp | 1877 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 …]
|
| D | CGOpenMPRuntimeGPU.cpp | 1288 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 …]
|
| D | CGNonTrivialStruct.cpp | 386 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()
|
| D | CGOpenMPRuntime.cpp | 2544 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/ |
| D | VPlan.cpp | 287 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/ |
| D | ObjCARCOpts.cpp | 1691 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/ |
| D | GCOVProfiling.cpp | 1210 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/ |
| D | LoopInfo.cpp | 934 const BasicBlock *ExitBB) const { in wouldBeOutOfLoopUseRequiringLCSSA() 946 if (L->contains(ExitBB)) in wouldBeOutOfLoopUseRequiringLCSSA()
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/Frontend/OpenMP/ |
| D | OMPIRBuilder.h | 1062 BasicBlock *EntryBB, *ExitBB, *OuterAllocaBB; member 1584 BasicBlock *ExitBB,
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/ARM/ |
| D | ARMConstantIslandPass.cpp | 1996 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()
|