/external/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 112 for (BasicBlock *ExitBB : ExitBlocks) { in processInstruction() 113 if (!DT.dominates(DomNode, DT.getNode(ExitBB))) in processInstruction() 117 if (SSAUpdate.HasValueForBlock(ExitBB)) in processInstruction() 120 PHINode *PN = PHINode::Create(Inst.getType(), PredCache.size(ExitBB), in processInstruction() 121 Inst.getName() + ".lcssa", &ExitBB->front()); in processInstruction() 124 for (BasicBlock *Pred : PredCache.get(ExitBB)) { in processInstruction() 139 SSAUpdate.AddAvailableValue(ExitBB, PN); in processInstruction() 149 if (auto *OtherLoop = LI->getLoopFor(ExitBB)) in processInstruction() 212 for (BasicBlock *ExitBB : ExitBlocks) in blockDominatesAnExit() 213 if (DT.dominates(DomNode, DT.getNode(ExitBB))) in blockDominatesAnExit()
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 418 BasicBlock *ExitBB = BB->splitBasicBlock(I->getIterator(), "atomicrmw.end"); in expandAtomicOpToLLSC() local 419 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in expandAtomicOpToLLSC() 441 Builder.CreateCondBr(TryAgain, LoopBB, ExitBB); in expandAtomicOpToLLSC() 443 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in expandAtomicOpToLLSC() 493 BasicBlock *ExitBB = BB->splitBasicBlock(CI->getIterator(), "cmpxchg.end"); in expandAtomicCmpXchg() local 494 auto FailureBB = BasicBlock::Create(Ctx, "cmpxchg.failure", F, ExitBB); in expandAtomicCmpXchg() 534 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg() 546 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg() 553 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in expandAtomicCmpXchg() 649 BasicBlock *ExitBB = BB->splitBasicBlock(AI->getIterator(), "atomicrmw.end"); in expandAtomicRMWToCmpXchg() local [all …]
|
D | Analysis.cpp | 493 const BasicBlock *ExitBB = I->getParent(); in isInTailCallPosition() local 494 const TerminatorInst *Term = ExitBB->getTerminator(); in isInTailCallPosition() 513 for (BasicBlock::const_iterator BBI = std::prev(ExitBB->end(), 2);; --BBI) { in isInTailCallPosition() 524 const Function *F = ExitBB->getParent(); in isInTailCallPosition()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerAggrCopies.cpp | 159 BasicBlock *ExitBB = ConvertedInst->getParent(); in convertMemMoveToLoop() local 160 ExitBB->setName("memmove_done"); in convertMemMoveToLoop() 181 ExitBB, LoopBB); in convertMemMoveToLoop() 184 BranchInst::Create(ExitBB, LoopBB, CompareN, ThenTerm); in convertMemMoveToLoop() 189 BasicBlock::Create(Context, "copy_forward_loop", &F, ExitBB); in convertMemMoveToLoop() 199 ExitBB, FwdLoopBB); in convertMemMoveToLoop() 203 BranchInst::Create(ExitBB, FwdLoopBB, CompareN, ElseTerm); in convertMemMoveToLoop()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 169 BasicBlock *ExitBB = SubLoopExitBlocks[i]; in runOnLoop() local 170 if (LI->getLoopFor(ExitBB) == L && Visited.insert(ExitBB).second) in runOnLoop() 171 VisitStack.push_back(WorklistItem(ExitBB, false)); in runOnLoop()
|
D | LoopUnswitch.cpp | 607 BasicBlock *&ExitBB, in isTrivialLoopExitBlockHelper() argument 617 if (ExitBB) return false; in isTrivialLoopExitBlockHelper() 618 ExitBB = BB; in isTrivialLoopExitBlockHelper() 625 if (!isTrivialLoopExitBlockHelper(L, *SI, ExitBB, Visited)) in isTrivialLoopExitBlockHelper() 644 BasicBlock *ExitBB = nullptr; in isTrivialLoopExitBlock() local 645 if (isTrivialLoopExitBlockHelper(L, BB, ExitBB, Visited)) in isTrivialLoopExitBlock() 646 return ExitBB; in isTrivialLoopExitBlock()
|
D | IndVarSimplify.cpp | 554 BasicBlock *ExitBB = ExitBlocks[i]; in rewriteLoopExitValues() local 558 PHINode *PN = dyn_cast<PHINode>(ExitBB->begin()); in rewriteLoopExitValues() 576 (!L->getParentLoop() || L->getParentLoop() == LI->getLoopFor(ExitBB)); in rewriteLoopExitValues() 579 BasicBlock::iterator BBI = ExitBB->begin(); in rewriteLoopExitValues()
|
/external/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 137 BasicBlock *ExitBB = BasicBlock::Create(Ctx, "exit", F); in buildCFICheck() local 138 IRBuilder<> IRBExit(ExitBB); in buildCFICheck() 153 BranchInst *BI = IRBTest.CreateCondBr(Test, ExitBB, TrapBB); in buildCFICheck()
|
/external/llvm/unittests/IR/ |
D | UserTest.cpp | 71 BasicBlock &ExitBB = F->back(); in TEST() local 72 PHINode &P = cast<PHINode>(ExitBB.front()); in TEST()
|
/external/llvm/unittests/Linker/ |
D | LinkModulesTest.cpp | 39 ExitBB = BasicBlock::Create(Ctx, "exit", F); in SetUp() 72 BasicBlock *ExitBB; member in __anon1e609b690111::LinkModuleTest 92 Builder.CreateBr(ExitBB); in TEST_F() 95 Builder.CreateBr(ExitBB); in TEST_F() 97 Builder.SetInsertPoint(ExitBB); in TEST_F()
|
/external/clang/lib/CodeGen/ |
D | CGAtomic.cpp | 1573 auto *ExitBB = CGF.createBasicBlock("atomic_exit"); in EmitAtomicUpdateLibcall() local 1589 CGF.Builder.CreateCondBr(Res, ExitBB, ContBB); in EmitAtomicUpdateLibcall() 1590 CGF.EmitBlock(ExitBB, /*IsFinished=*/true); in EmitAtomicUpdateLibcall() 1602 auto *ExitBB = CGF.createBasicBlock("atomic_exit"); in EmitAtomicUpdateOp() local 1621 CGF.Builder.CreateCondBr(Res.second, ExitBB, ContBB); in EmitAtomicUpdateOp() 1622 CGF.EmitBlock(ExitBB, /*IsFinished=*/true); in EmitAtomicUpdateOp() 1660 auto *ExitBB = CGF.createBasicBlock("atomic_exit"); in EmitAtomicUpdateLibcall() local 1673 CGF.Builder.CreateCondBr(Res, ExitBB, ContBB); in EmitAtomicUpdateLibcall() 1674 CGF.EmitBlock(ExitBB, /*IsFinished=*/true); in EmitAtomicUpdateLibcall() 1685 auto *ExitBB = CGF.createBasicBlock("atomic_exit"); in EmitAtomicUpdateOp() local [all …]
|
D | CGOpenMPRuntime.cpp | 1704 auto *ExitBB = CGF.createBasicBlock(".cancel.exit"); in emitBarrierCall() local 1707 CGF.Builder.CreateCondBr(Cmp, ExitBB, ContBB); in emitBarrierCall() 1708 CGF.EmitBlock(ExitBB); in emitBarrierCall() 3181 auto *ExitBB = CGF.createBasicBlock(".cancel.exit"); in emitCancellationPointCall() local 3184 CGF.Builder.CreateCondBr(Cmp, ExitBB, ContBB); in emitCancellationPointCall() 3185 CGF.EmitBlock(ExitBB); in emitCancellationPointCall() 3220 auto *ExitBB = CGF.createBasicBlock(".cancel.exit"); in emitCancelCall() local 3223 CGF.Builder.CreateCondBr(Cmp, ExitBB, ContBB); in emitCancelCall() 3224 CGF.EmitBlock(ExitBB); in emitCancelCall()
|
D | CGStmtOpenMP.cpp | 1675 auto *ExitBB = CGF.createBasicBlock(".omp.sections.exit"); in EmitSections() local 1677 CGF.EmitLoadOfLValue(IV, S.getLocStart()).getScalarVal(), ExitBB, in EmitSections() 1685 CGF.EmitBranch(ExitBB); in EmitSections() 1688 CGF.EmitBlock(ExitBB, /*IsFinished=*/true); in EmitSections()
|
D | ItaniumCXXABI.cpp | 2283 llvm::BasicBlock *ExitBB = llvm::BasicBlock::Create(Context, "", Wrapper); in EmitThreadLocalInitFuncs() local 2284 Builder.CreateCondBr(Have, InitBB, ExitBB); in EmitThreadLocalInitFuncs() 2288 Builder.CreateBr(ExitBB); in EmitThreadLocalInitFuncs() 2290 Builder.SetInsertPoint(ExitBB); in EmitThreadLocalInitFuncs()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 1419 for (BasicBlock &ExitBB : F) { in ComputePostOrders() 1420 BBState &MyStates = BBStates[&ExitBB]; in ComputePostOrders() 1426 PredStack.push_back(std::make_pair(&ExitBB, MyStates.pred_begin())); in ComputePostOrders() 1427 Visited.insert(&ExitBB); in ComputePostOrders()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 5200 BasicBlock *ExitBB = ExitingBlocks[i]; in computeBackedgeTakenCount() local 5201 ExitLimit EL = computeExitLimit(L, ExitBB); in computeBackedgeTakenCount() 5210 ExitCounts.push_back(std::make_pair(ExitBB, EL.Exact)); in computeBackedgeTakenCount() 5222 DT.dominates(ExitBB, Latch)) { in computeBackedgeTakenCount()
|