/external/llvm/lib/Transforms/Utils/ |
D | FlattenCFG.cpp | 139 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator()); in FlattenParallelAndOr() 211 BranchInst *BPS = dyn_cast<BranchInst>(PS->getTerminator()); in FlattenParallelAndOr() 225 BranchInst *PBI1 = dyn_cast<BranchInst>(PS1->getTerminator()); in FlattenParallelAndOr() 226 BranchInst *PBI2 = dyn_cast<BranchInst>(PS2->getTerminator()); in FlattenParallelAndOr() 242 BranchInst *BI = dyn_cast<BranchInst>(CurrBlock->getTerminator()); in FlattenParallelAndOr() 269 BranchInst *PBI = dyn_cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 280 PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 437 BranchInst *PBI = dyn_cast<BranchInst>(FirstEntryBlock->getTerminator()); in MergeIfRegion()
|
D | BasicBlockUtils.cpp | 351 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes() 440 BranchInst *BI = BranchInst::Create(BB, NewBB); in SplitBlockPredecessors() 490 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 531 BranchInst *BI2 = BranchInst::Create(OrigBB, NewBB2); in SplitLandingPadPredecessors() 628 CheckTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThen() 630 BranchInst *HeadNewTerm = in SplitBlockAndInsertIfThen() 631 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/Tail, Cond); in SplitBlockAndInsertIfThen() 667 *ThenTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThenElse() 669 *ElseTerm = BranchInst::Create(Tail, ElseBlock); in SplitBlockAndInsertIfThenElse() 671 BranchInst *HeadNewTerm = in SplitBlockAndInsertIfThenElse() [all …]
|
D | SimplifyCFG.cpp | 162 bool SimplifyUncondBranch(BranchInst *BI, IRBuilder<> &Builder); 163 bool SimplifyCondBranch(BranchInst *BI, IRBuilder<> &Builder); 204 isProfitableToFoldUnconditional(BranchInst *SI1, BranchInst *SI2, in isProfitableToFoldUnconditional() 313 BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator()); in DominatesMergePoint() 630 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in EraseTerminatorInstAndDCECond() 653 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) in isValueEqualityComparison() 684 BranchInst *BI = cast<BranchInst>(TI); in GetValueEqualityComparisonCases() 773 if (isa<BranchInst>(TI)) { in SimplifyEqualityComparisonWithOnlyPredecessor() 920 if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in GetBranchWeights() 1138 BranchInst::Create(InfLoopBlock, InfLoopBlock); in FoldValueComparisonIntoPredecessors() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | FlattenCFG.cpp | 152 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator()); in FlattenParallelAndOr() 224 BranchInst *BPS = dyn_cast<BranchInst>(PS->getTerminator()); in FlattenParallelAndOr() 238 BranchInst *PBI1 = dyn_cast<BranchInst>(PS1->getTerminator()); in FlattenParallelAndOr() 239 BranchInst *PBI2 = dyn_cast<BranchInst>(PS2->getTerminator()); in FlattenParallelAndOr() 255 BranchInst *BI = dyn_cast<BranchInst>(CurrBlock->getTerminator()); in FlattenParallelAndOr() 282 BranchInst *PBI = dyn_cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 293 PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 448 BranchInst *PBI = dyn_cast<BranchInst>(FirstEntryBlock->getTerminator()); in MergeIfRegion()
|
D | LoopUnrollAndJam.cpp | 248 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollAndJamLoop() 438 BranchInst *ForeTerm = in UnrollAndJamLoop() 439 cast<BranchInst>(ForeBlocksLast.back()->getTerminator()); in UnrollAndJamLoop() 456 BranchInst *ForeTerm = in UnrollAndJamLoop() 457 cast<BranchInst>(ForeBlocksLast[It - 1]->getTerminator()); in UnrollAndJamLoop() 463 BranchInst *SubTerm = in UnrollAndJamLoop() 464 cast<BranchInst>(SubLoopBlocksLast.back()->getTerminator()); in UnrollAndJamLoop() 475 BranchInst *SubTerm = in UnrollAndJamLoop() 476 cast<BranchInst>(SubLoopBlocksLast[It - 1]->getTerminator()); in UnrollAndJamLoop() 477 BranchInst::Create(SubLoopBlocksFirst[It], SubTerm); in UnrollAndJamLoop() [all …]
|
D | BasicBlockUtils.cpp | 418 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes() 507 BranchInst *BI = BranchInst::Create(BB, NewBB); in SplitBlockPredecessors() 559 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 600 BranchInst *BI2 = BranchInst::Create(OrigBB, NewBB2); in SplitLandingPadPredecessors() 697 CheckTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThen() 699 BranchInst *HeadNewTerm = in SplitBlockAndInsertIfThen() 700 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/Tail, Cond); in SplitBlockAndInsertIfThen() 737 *ThenTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThenElse() 739 *ElseTerm = BranchInst::Create(Tail, ElseBlock); in SplitBlockAndInsertIfThenElse() 741 BranchInst *HeadNewTerm = in SplitBlockAndInsertIfThenElse() [all …]
|
D | LoopRotationUtils.cpp | 208 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop() 423 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator()); in rotateLoop() 464 BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI); in rotateLoop() 569 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); in simplifyLoopLatch() 577 BranchInst *BI = dyn_cast<BranchInst>(LastExit->getTerminator()); in simplifyLoopLatch()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 80 bool isUniform(BranchInst *T); 92 void openIf(BranchInst *Term); 94 void insertElse(BranchInst *Term); 98 BranchInst *Term, 101 void handleLoop(BranchInst *Term); 162 bool SIAnnotateControlFlow::isUniform(BranchInst *T) { in isUniform() 209 void SIAnnotateControlFlow::openIf(BranchInst *Term) { in openIf() 219 void SIAnnotateControlFlow::insertElse(BranchInst *Term) { in insertElse() 230 Value *Cond, PHINode *Broken, llvm::Loop *L, BranchInst *Term, in handleLoopCondition() 326 void SIAnnotateControlFlow::handleLoop(BranchInst *Term) { in handleLoop() [all …]
|
D | AMDGPUUnifyDivergentExitNodes.cpp | 150 BranchInst::Create(NewRetBlock, BB); in unifyReturnBlockSet() 183 } else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) { in runOnFunction() 199 BranchInst::Create(LoopHeaderBB, DummyReturnBB, BoolTrue, BB); in runOnFunction() 210 BranchInst::Create(TransitionBB, DummyReturnBB, BoolTrue, BB); in runOnFunction() 228 BranchInst::Create(UnreachableBlock, BB); in runOnFunction()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 72 bool isUniform(BranchInst *T); 84 void openIf(BranchInst *Term); 86 void insertElse(BranchInst *Term); 89 llvm::Loop *L, BranchInst *Term); 91 void handleLoop(BranchInst *Term); 169 bool SIAnnotateControlFlow::isUniform(BranchInst *T) { in isUniform() 215 void SIAnnotateControlFlow::openIf(BranchInst *Term) { in openIf() 225 void SIAnnotateControlFlow::insertElse(BranchInst *Term) { in insertElse() 236 llvm::Loop *L, BranchInst *Term) { in handleLoopCondition() 327 void SIAnnotateControlFlow::handleLoop(BranchInst *Term) { in handleLoop() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 163 auto GetDomConditional = [&](unsigned i) -> BranchInst * { in handlePhiDef() 165 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() 171 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() 193 BranchInst *BI = GetDomConditional(i); in handlePhiDef() 300 static bool handleBranchExpect(BranchInst &BI) { in handleBranchExpect() 304 return handleBrSelExpect<BranchInst>(BI); in handleBranchExpect() 312 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
|
D | JumpThreading.cpp | 204 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in updatePredecessorProfileMetadata() 221 BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator()); in updatePredecessorProfileMetadata() 249 BranchInst *PredBr = cast<BranchInst>(PredBB->getTerminator()); in updatePredecessorProfileMetadata() 400 auto *BI = dyn_cast<BranchInst>(BB.getTerminator()); in runImpl() 1043 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) { in ProcessBlock() 1089 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock() 1122 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() 1142 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock() 1187 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() 1199 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() [all …]
|
D | LoopInterchange.cpp | 660 BranchInst *OuterLoopHeaderBI = in tightlyNested() 661 dyn_cast<BranchInst>(OuterLoopHeader->getTerminator()); in tightlyNested() 752 !isa<BranchInst>(InnerLoopLatch->getTerminator()) || in currentLimitations() 753 !isa<BranchInst>(OuterLoop->getLoopLatch()->getTerminator())) { in currentLimitations() 910 if (isa<BranchInst>(I) || isa<CmpInst>(I) || isa<TruncInst>(I) || in currentLimitations() 1336 static void updateSuccessor(BranchInst *BI, BasicBlock *OldBB, in updateSuccessor() 1372 BranchInst *OuterLoopLatchBI = in adjustLoopBranches() 1373 dyn_cast<BranchInst>(OuterLoopLatch->getTerminator()); in adjustLoopBranches() 1374 BranchInst *InnerLoopLatchBI = in adjustLoopBranches() 1375 dyn_cast<BranchInst>(InnerLoopLatch->getTerminator()); in adjustLoopBranches() [all …]
|
D | StructurizeCFG.cpp | 71 using BranchVector = SmallVector<BranchInst *, 8>; 214 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert); 389 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); in analyzeLoops() 431 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, in buildCondition() 458 BranchInst *Term = cast<BranchInst>(P->getTerminator()); in gatherPredicates() 536 for (BranchInst *Term : Conds) { in insertConditions() 691 BranchInst::Create(NewExit, BB); in changeExit() 800 Conditions.push_back(BranchInst::Create(Entry, Next, BoolUndef, Flow)); in wireFlow() 845 BranchInst::Create(LoopStart, NewEntry); in handleLoops() 852 LoopConds.push_back(BranchInst::Create(Next, LoopStart, in handleLoops() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 72 bool SimplifyUncondBranch(BranchInst *BI, IRBuilder <> &Builder); 73 bool SimplifyCondBranch(BranchInst *BI, IRBuilder <>&Builder); 141 BranchInst *Pred1Br = dyn_cast<BranchInst>(Pred1->getTerminator()); in GetIfCondition() 142 BranchInst *Pred2Br = dyn_cast<BranchInst>(Pred2->getTerminator()); in GetIfCondition() 194 BranchInst *BI = dyn_cast<BranchInst>(CommonPred->getTerminator()); in GetIfCondition() 246 BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator()); in DominatesMergePoint() 438 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in EraseTerminatorInstAndDCECond() 459 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) in isValueEqualityComparison() 487 BranchInst *BI = cast<BranchInst>(TI); in GetValueEqualityComparisonCases() 579 if (isa<BranchInst>(TI)) { in SimplifyEqualityComparisonWithOnlyPredecessor() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopInterchange.cpp | 526 BranchInst *OuterMostLoopLatchBI = in processLoopList() 527 dyn_cast<BranchInst>(OuterMostLoopLatch->getTerminator()); in processLoopList() 648 BranchInst *outerLoopHeaderBI = in tightlyNested() 649 dyn_cast<BranchInst>(OuterLoopHeader->getTerminator()); in tightlyNested() 738 if (BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator())) { in getLoopLatchExitBlock() 831 if (isa<BranchInst>(I) || isa<CmpInst>(I) || isa<TruncInst>(I)) in currentLimitations() 1144 BranchInst *OuterLoopLatchBI = in adjustLoopBranches() 1145 dyn_cast<BranchInst>(OuterLoopLatch->getTerminator()); in adjustLoopBranches() 1146 BranchInst *InnerLoopLatchBI = in adjustLoopBranches() 1147 dyn_cast<BranchInst>(InnerLoopLatch->getTerminator()); in adjustLoopBranches() [all …]
|
D | JumpThreading.cpp | 217 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in runImpl() 739 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) { in ProcessBlock() 780 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock() 812 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() 822 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock() 870 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() 876 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() 888 auto *BI = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessImpliedCondition() 900 auto *PBI = dyn_cast<BranchInst>(CurrentPred->getTerminator()); in ProcessImpliedCondition() 911 BranchInst::Create(BI->getSuccessor(*Implication ? 0 : 1), BI); in ProcessImpliedCondition() [all …]
|
D | LoopRotation.cpp | 195 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop() 361 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator()); in rotateLoop() 421 BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI); in rotateLoop() 558 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); in simplifyLoopLatch() 566 BranchInst *BI = dyn_cast<BranchInst>(LastExit->getTerminator()); in simplifyLoopLatch()
|
D | StructurizeCFG.cpp | 38 typedef SmallVector<BranchInst*, 8> BranchVector; 200 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert); 369 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); in analyzeLoops() 416 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, in buildCondition() 446 BranchInst *Term = cast<BranchInst>((*PI)->getTerminator()); in gatherPredicates() 528 for (BranchInst *Term : Conds) { in insertConditions() 693 BranchInst::Create(NewExit, BB); in changeExit() 807 Conditions.push_back(BranchInst::Create(Entry, Next, BoolUndef, Flow)); in wireFlow() 852 BranchInst::Create(LoopStart, NewEntry); in handleLoops() 858 LoopConds.push_back(BranchInst::Create(Next, LoopStart, in handleLoops() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | PhiValuesTest.cpp | 36 BranchInst::Create(If, Else, UndefValue::get(I1Ty), Entry); in TEST() 37 BranchInst::Create(Then, If); in TEST() 38 BranchInst::Create(Then, Else); in TEST() 105 BranchInst::Create(If1, Else1, UndefValue::get(I1Ty), Entry); in TEST() 106 BranchInst::Create(Then, If1); in TEST() 107 BranchInst::Create(Then, Else1); in TEST() 108 BranchInst::Create(If2, Else2, UndefValue::get(I1Ty), Then); in TEST() 109 BranchInst::Create(End, If2); in TEST() 110 BranchInst::Create(End, Else2); in TEST()
|
/external/swiftshader/third_party/LLVM/unittests/VMCore/ |
D | InstructionsTest.cpp | 45 TEST(InstructionsTest, BranchInst) { in TEST() argument 53 const BranchInst* b0 = BranchInst::Create(bb0); in TEST() 71 BranchInst* b1 = BranchInst::Create(bb0, bb1, One); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | DeferredDominanceTest.cpp | 84 BranchInst::Create(BB1, BB2, ConstantInt::getTrue(F->getContext()), BB0); in TEST() 141 BranchInst::Create(BB1, BB0); in TEST() 154 BranchInst::Create(BB1, BB2, ConstantInt::getTrue(F->getContext()), BB0); in TEST() 199 BranchInst::Create(BB0, NewEntry); in TEST() 215 BranchInst::Create(BB1, NewEntry); in TEST() 299 BranchInst::Create(BB1, BB3, ConstantInt::getTrue(F->getContext()), BB0); in TEST() 322 BranchInst::Create(BB3, BB0); in TEST()
|
/external/llvm/unittests/Transforms/Utils/ |
D | Local.cpp | 30 BranchInst *br0 = builder.CreateCondBr(builder.getTrue(), bb0, bb1); in TEST() 33 BranchInst *br1 = builder.CreateBr(bb0); in TEST() 71 BranchInst::Create(BB, Entry); in TEST() 91 BranchInst::Create(BB, BB); in TEST()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopRotation.cpp | 157 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop() 298 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator()); in rotateLoop() 329 BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI); in rotateLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | ExpandMemCmp.cpp | 231 BranchInst *CmpBr = in emitLoadCompareByteBlock() 232 BranchInst::Create(EndBlock, LoadCmpBlocks[BlockIndex + 1], Cmp); in emitLoadCompareByteBlock() 236 BranchInst *CmpBr = BranchInst::Create(EndBlock); in emitLoadCompareByteBlock() 355 BranchInst *CmpBr = BranchInst::Create(ResBlock.BB, NextBB, Cmp); in emitLoadCompareBlockMultipleLoads() 440 BranchInst *CmpBr = BranchInst::Create(NextBB, ResBlock.BB, Cmp); in emitLoadCompareBlock() 463 BranchInst *NewBr = BranchInst::Create(EndBlock); in emitMemCmpResultBlock() 477 BranchInst *NewBr = BranchInst::Create(EndBlock); in emitMemCmpResultBlock()
|