/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | BranchProbabilityInfoTest.cpp | 64 auto *ExitBB = &F->back(); in TEST_F() local 65 auto *EntryBB = BasicBlock::Create(C, "entry", F, /*insertBefore=*/ExitBB); in TEST_F() 68 BasicBlock::Create(C, "preexit", F, /*insertBefore=*/ExitBB); in TEST_F() 74 auto *Switch = SwitchInst::Create(Undef, ExitBB, NumCases, EntryBB); in TEST_F() 84 EXPECT_TRUE(BPI.isEdgeHot(EntryBB, ExitBB)); in TEST_F()
|
D | ScalarEvolutionTest.cpp | 119 BasicBlock *ExitBB = BasicBlock::Create(Context, "exit", F); in TEST_F() local 121 BranchInst::Create(LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), in TEST_F() 123 ReturnInst::Create(Context, nullptr, ExitBB); in TEST_F() 153 BasicBlock *ExitBB = BasicBlock::Create(Context, "exit", F); in TEST_F() local 155 ReturnInst::Create(Context, nullptr, ExitBB); in TEST_F() 170 LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), LoopBB); in TEST_F() 378 BasicBlock *ExitBB = BasicBlock::Create(Context, "bb2", F); in TEST_F() local 379 BranchInst::Create(LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), in TEST_F() 382 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB); in TEST_F() 383 Acc[1] = BinaryOperator::CreateAdd(Acc[2], Acc[3], "", ExitBB); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SimpleLoopUnswitch.cpp | 138 BasicBlock &ExitBB) { in areLoopExitPHIsLoopInvariant() argument 139 for (Instruction &I : ExitBB) { in areLoopExitPHIsLoopInvariant() 202 static void rewritePHINodesForExitAndUnswitchedBlocks(BasicBlock &ExitBB, in rewritePHINodesForExitAndUnswitchedBlocks() argument 207 assert(&ExitBB != &UnswitchedBB && in rewritePHINodesForExitAndUnswitchedBlocks() 210 for (PHINode &PN : ExitBB.phis()) { in rewritePHINodesForExitAndUnswitchedBlocks() 238 NewPN->addIncoming(&PN, &ExitBB); in rewritePHINodesForExitAndUnswitchedBlocks() 257 for (auto *ExitBB : Exits) in hoistLoopToNewParent() local 258 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent() 639 BasicBlock *ExitBB = CasePair.second; in unswitchTrivialSwitch() local 643 if (pred_empty(ExitBB)) { in unswitchTrivialSwitch() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 111 for (BasicBlock *ExitBB : ExitBlocks) { in processInstruction() 112 if (!DT.dominates(DomNode, DT.getNode(ExitBB))) in processInstruction() 116 if (SSAUpdate.HasValueForBlock(ExitBB)) in processInstruction() 119 PHINode *PN = PHINode::Create(Inst.getType(), PredCache.size(ExitBB), in processInstruction() 120 Inst.getName() + ".lcssa", &ExitBB->front()); in processInstruction() 123 for (BasicBlock *Pred : PredCache.get(ExitBB)) { in processInstruction() 138 SSAUpdate.AddAvailableValue(ExitBB, PN); in processInstruction() 148 if (auto *OtherLoop = LI->getLoopFor(ExitBB)) in processInstruction()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LCSSA.cpp | 219 BasicBlock *ExitBB = *BBI; in ProcessInstruction() local 220 if (!DT->dominates(DomNode, DT->getNode(ExitBB))) continue; in ProcessInstruction() 223 if (SSAUpdate.HasValueForBlock(ExitBB)) continue; in ProcessInstruction() 226 PredCache.GetNumPreds(ExitBB), in ProcessInstruction() 228 ExitBB->begin()); in ProcessInstruction() 231 for (BasicBlock **PI = PredCache.GetPreds(ExitBB); *PI; ++PI) { in ProcessInstruction() 246 SSAUpdate.AddAvailableValue(ExitBB, PN); in ProcessInstruction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 138 for (BasicBlock *ExitBB : ExitBlocks) { in formLCSSAForInstructions() 139 if (!DT.dominates(DomNode, DT.getNode(ExitBB))) in formLCSSAForInstructions() 143 if (SSAUpdate.HasValueForBlock(ExitBB)) in formLCSSAForInstructions() 146 PHINode *PN = PHINode::Create(I->getType(), PredCache.size(ExitBB), in formLCSSAForInstructions() 147 I->getName() + ".lcssa", &ExitBB->front()); in formLCSSAForInstructions() 151 for (BasicBlock *Pred : PredCache.get(ExitBB)) { in formLCSSAForInstructions() 166 SSAUpdate.AddAvailableValue(ExitBB, PN); in formLCSSAForInstructions() 176 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
|
D | LowerMemIntrinsics.cpp | 317 BasicBlock *ExitBB = InsertBefore->getParent(); in createMemMoveLoop() local 318 ExitBB->setName("memmove_done"); in createMemMoveLoop() 339 ExitBB, LoopBB); in createMemMoveLoop() 342 BranchInst::Create(ExitBB, LoopBB, CompareN, ThenTerm); in createMemMoveLoop() 347 BasicBlock::Create(F->getContext(), "copy_forward_loop", F, ExitBB); in createMemMoveLoop() 357 ExitBB, FwdLoopBB); in createMemMoveLoop() 361 BranchInst::Create(ExitBB, FwdLoopBB, CompareN, ElseTerm); in createMemMoveLoop()
|
/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/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 144 BasicBlock *ExitBB = SubLoopExitBlocks[i]; in runOnLoop() local 145 if (LI->getLoopFor(ExitBB) == L && Visited.insert(ExitBB)) in runOnLoop() 146 VisitStack.push_back(WorklistItem(ExitBB, false)); in runOnLoop()
|
D | LoopUnswitch.cpp | 297 BasicBlock *&ExitBB, in isTrivialLoopExitBlockHelper() argument 305 if (ExitBB != 0) return false; in isTrivialLoopExitBlockHelper() 306 ExitBB = BB; in isTrivialLoopExitBlockHelper() 313 if (!isTrivialLoopExitBlockHelper(L, *SI, ExitBB, Visited)) in isTrivialLoopExitBlockHelper() 332 BasicBlock *ExitBB = 0; in isTrivialLoopExitBlock() local 333 if (isTrivialLoopExitBlockHelper(L, BB, ExitBB, Visited)) in isTrivialLoopExitBlock() 334 return ExitBB; in isTrivialLoopExitBlock()
|
/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntimeNVPTX.cpp | 160 llvm::BasicBlock *ExitBB = CGF.createBasicBlock(".exit"); in emitWorkerLoop() local 173 Bld.CreateCondBr(ShouldTerminate, ExitBB, SelectWorkersBB); in emitWorkerLoop() 199 CGF.EmitBlock(ExitBB); in emitWorkerLoop() 217 EST.ExitBB = CGF.createBasicBlock(".exit"); in emitEntryHeader() 223 Bld.CreateCondBr(ShouldDie, EST.ExitBB, WorkerCheckBB); in emitEntryHeader() 233 CGF.EmitBranch(EST.ExitBB); in emitEntryHeader() 259 CGF.EmitBranch(EST.ExitBB); in emitEntryFooter() 261 CGF.EmitBlock(EST.ExitBB); in emitEntryFooter()
|
D | CGOpenMPRuntimeNVPTX.h | 30 llvm::BasicBlock *ExitBB; 32 EntryFunctionState() : ExitBB(nullptr){}; in EntryFunctionState()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 162 BasicBlock *ExitBB = SubLoopExitBlocks[i]; in runOnLoop() local 163 if (LI->getLoopFor(ExitBB) == L && Visited.insert(ExitBB).second) in runOnLoop() 164 VisitStack.push_back(WorklistItem(ExitBB, false)); in runOnLoop()
|
D | LoopUnswitch.cpp | 664 BasicBlock *&ExitBB, in isTrivialLoopExitBlockHelper() argument 674 if (ExitBB) return false; in isTrivialLoopExitBlockHelper() 675 ExitBB = BB; in isTrivialLoopExitBlockHelper() 682 if (!isTrivialLoopExitBlockHelper(L, *SI, ExitBB, Visited)) in isTrivialLoopExitBlockHelper() 701 BasicBlock *ExitBB = nullptr; in isTrivialLoopExitBlock() local 702 if (isTrivialLoopExitBlockHelper(L, BB, ExitBB, Visited)) in isTrivialLoopExitBlock() 703 return ExitBB; in isTrivialLoopExitBlock()
|
/external/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 114 BasicBlock *ExitBB = BasicBlock::Create(Ctx, "exit", F); in buildCFICheck() local 122 IRBFail.CreateBr(ExitBB); in buildCFICheck() 124 IRBuilder<> IRBExit(ExitBB); in buildCFICheck() 138 BranchInst *BI = IRBTest.CreateCondBr(Test, ExitBB, TrapBB); in buildCFICheck()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 132 BasicBlock *ExitBB = BasicBlock::Create(Ctx, "exit", F); in buildCFICheck() local 140 IRBFail.CreateBr(ExitBB); in buildCFICheck() 142 IRBuilder<> IRBExit(ExitBB); in buildCFICheck() 156 BranchInst *BI = IRBTest.CreateCondBr(Test, ExitBB, TrapBB); in buildCFICheck()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 893 BasicBlock *ExitBB = in insertRMWLLSCLoop() local 895 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in insertRMWLLSCLoop() 913 Builder.CreateCondBr(TryAgain, LoopBB, ExitBB); in insertRMWLLSCLoop() 915 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in insertRMWLLSCLoop() 1038 BasicBlock *ExitBB = BB->splitBasicBlock(CI->getIterator(), "cmpxchg.end"); in expandAtomicCmpXchg() local 1039 auto FailureBB = BasicBlock::Create(Ctx, "cmpxchg.failure", F, ExitBB); in expandAtomicCmpXchg() 1104 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg() 1116 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg() 1122 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in expandAtomicCmpXchg() 1142 Builder.SetInsertPoint(ExitBB, ++ExitBB->begin()); in expandAtomicCmpXchg() [all …]
|
D | Analysis.cpp | 473 const BasicBlock *ExitBB = I->getParent(); in isInTailCallPosition() local 474 const TerminatorInst *Term = ExitBB->getTerminator(); in isInTailCallPosition() 493 for (BasicBlock::const_iterator BBI = std::prev(ExitBB->end(), 2);; --BBI) { in isInTailCallPosition() 504 const Function *F = ExitBB->getParent(); in isInTailCallPosition()
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 884 BasicBlock *ExitBB = in insertRMWLLSCLoop() local 886 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in insertRMWLLSCLoop() 904 Builder.CreateCondBr(TryAgain, LoopBB, ExitBB); in insertRMWLLSCLoop() 906 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in insertRMWLLSCLoop() 1030 BasicBlock *ExitBB = BB->splitBasicBlock(CI->getIterator(), "cmpxchg.end"); in expandAtomicCmpXchg() local 1031 auto FailureBB = BasicBlock::Create(Ctx, "cmpxchg.failure", F, ExitBB); in expandAtomicCmpXchg() 1099 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg() 1112 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg() 1118 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in expandAtomicCmpXchg() 1138 Builder.SetInsertPoint(ExitBB, ++ExitBB->begin()); in expandAtomicCmpXchg() [all …]
|
D | Analysis.cpp | 492 const BasicBlock *ExitBB = I->getParent(); in isInTailCallPosition() local 493 const TerminatorInst *Term = ExitBB->getTerminator(); in isInTailCallPosition() 512 for (BasicBlock::const_iterator BBI = std::prev(ExitBB->end(), 2);; --BBI) { in isInTailCallPosition() 523 const Function *F = ExitBB->getParent(); in isInTailCallPosition()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | Analysis.cpp | 211 const BasicBlock *ExitBB = I->getParent(); in isInTailCallPosition() local 212 const TerminatorInst *Term = ExitBB->getTerminator(); in isInTailCallPosition() 230 for (BasicBlock::const_iterator BBI = prior(prior(ExitBB->end())); ; in isInTailCallPosition() 252 const Function *F = ExitBB->getParent(); in isInTailCallPosition()
|
/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/swiftshader/third_party/llvm-7.0/llvm/unittests/Linker/ |
D | LinkModulesTest.cpp | 39 ExitBB = BasicBlock::Create(Ctx, "exit", F); in SetUp() 72 BasicBlock *ExitBB; member in __anon9690f5a10111::LinkModuleTest 92 Builder.CreateBr(ExitBB); in TEST_F() 95 Builder.CreateBr(ExitBB); in TEST_F() 97 Builder.SetInsertPoint(ExitBB); in TEST_F()
|
/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/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | UserTest.cpp | 71 BasicBlock &ExitBB = F->back(); in TEST() local 72 PHINode &P = cast<PHINode>(ExitBB.front()); in TEST()
|