/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-10.0/llvm/lib/Transforms/Utils/ |
D | FlattenCFG.cpp | 151 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator()); in FlattenParallelAndOr() 223 BranchInst *BPS = dyn_cast<BranchInst>(PS->getTerminator()); in FlattenParallelAndOr() 237 BranchInst *PBI1 = dyn_cast<BranchInst>(PS1->getTerminator()); in FlattenParallelAndOr() 238 BranchInst *PBI2 = dyn_cast<BranchInst>(PS2->getTerminator()); in FlattenParallelAndOr() 254 auto *BI = cast<BranchInst>(CurrBlock->getTerminator()); in FlattenParallelAndOr() 281 BranchInst *PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 292 PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 447 BranchInst *PBI = cast<BranchInst>(FirstEntryBlock->getTerminator()); in MergeIfRegion()
|
D | LoopUnrollAndJam.cpp | 252 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollAndJamLoop() 448 BranchInst *ForeTerm = in UnrollAndJamLoop() 449 cast<BranchInst>(ForeBlocksLast.back()->getTerminator()); in UnrollAndJamLoop() 466 BranchInst *ForeTerm = in UnrollAndJamLoop() 467 cast<BranchInst>(ForeBlocksLast[It - 1]->getTerminator()); in UnrollAndJamLoop() 473 BranchInst *SubTerm = in UnrollAndJamLoop() 474 cast<BranchInst>(SubLoopBlocksLast.back()->getTerminator()); in UnrollAndJamLoop() 485 BranchInst *SubTerm = in UnrollAndJamLoop() 486 cast<BranchInst>(SubLoopBlocksLast[It - 1]->getTerminator()); in UnrollAndJamLoop() 487 BranchInst::Create(SubLoopBlocksFirst[It], SubTerm); in UnrollAndJamLoop() [all …]
|
D | BasicBlockUtils.cpp | 194 BranchInst *PredBB_BI; in MergeBlockIntoPredecessor() 198 if (!(PredBB_BI = dyn_cast<BranchInst>(PredBB->getTerminator()))) in MergeBlockIntoPredecessor() 200 BranchInst *BB_JmpI = dyn_cast<BranchInst>(BB->getTerminator()); in MergeBlockIntoPredecessor() 644 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes() 734 BranchInst *BI = BranchInst::Create(BB, NewBB); in SplitBlockPredecessors() 795 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 836 BranchInst *BI2 = BranchInst::Create(OrigBB, NewBB2); in SplitLandingPadPredecessors() 942 CheckTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThen() 946 BranchInst *HeadNewTerm = in SplitBlockAndInsertIfThen() 947 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/Tail, Cond); in SplitBlockAndInsertIfThen() [all …]
|
D | LoopRotationUtils.cpp | 219 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop() 453 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator()); in rotateLoop() 493 BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI); in rotateLoop() 609 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); in simplifyLoopLatch() 617 BranchInst *BI = dyn_cast<BranchInst>(LastExit->getTerminator()); in simplifyLoopLatch()
|
D | LoopUnrollPeel.cpp | 90 const BranchInst *T = dyn_cast<BranchInst>(Latch->getTerminator()); in canPeel() 178 auto *BI = dyn_cast<BranchInst>(BB->getTerminator()); in countToEliminateCompares() 422 static void updateBranchWeights(BasicBlock *Header, BranchInst *LatchBR, in updateBranchWeights() 446 static void initBranchWeights(BasicBlock *Header, BranchInst *LatchBR, in initBranchWeights() 463 static void fixupBranchWeights(BasicBlock *Header, BranchInst *LatchBR, in fixupBranchWeights() 540 BranchInst *LatchBR = cast<BranchInst>(NewLatch->getTerminator()); in cloneLoopBlocks() 707 BranchInst *LatchBR = in peelLoop() 708 cast<BranchInst>(cast<BasicBlock>(Latch)->getTerminator()); in peelLoop() 737 auto *LatchBRCopy = cast<BranchInst>(VMap[LatchBR]); in peelLoop()
|
D | SimplifyCFG.cpp | 203 bool SimplifyUncondBranch(BranchInst *BI, IRBuilder<> &Builder); 204 bool SimplifyCondBranch(BranchInst *BI, IRBuilder<> &Builder); 262 isProfitableToFoldUnconditional(BranchInst *SI1, BranchInst *SI2, in isProfitableToFoldUnconditional() 371 BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator()); in DominatesMergePoint() 686 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in EraseTerminatorAndDCECond() 707 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) in isValueEqualityComparison() 737 BranchInst *BI = cast<BranchInst>(TI); in GetValueEqualityComparisonCases() 802 assert(isa<BranchInst>(I) || isa<SelectInst>(I)); in setBranchWeights() 851 if (isa<BranchInst>(TI)) { in SimplifyEqualityComparisonWithOnlyPredecessor() 981 if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in GetBranchWeights() [all …]
|
D | LoopUnroll.cpp | 306 BranchInst *HeaderBI = dyn_cast<BranchInst>(Header->getTerminator()); in UnrollLoop() 307 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollLoop() 558 auto *Term = cast<BranchInst>(Header->getTerminator()); in UnrollLoop() 717 auto *Term = cast<BranchInst>(Src->getTerminator()); in UnrollLoop() 736 BranchInst::Create(Dest, Term); in UnrollLoop() 808 BranchInst *Term = cast<BranchInst>(Latches[i]->getTerminator()); in UnrollLoop() 819 BranchInst::Create(Dest, Term); in UnrollLoop() 854 if (isa<BranchInst>(Term) && cast<BranchInst>(Term)->isConditional()) { in UnrollLoop() 877 BranchInst *Term = dyn_cast<BranchInst>(Latch->getTerminator()); in UnrollLoop()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 82 bool isUniform(BranchInst *T); 94 void openIf(BranchInst *Term); 96 void insertElse(BranchInst *Term); 100 BranchInst *Term); 102 void handleLoop(BranchInst *Term); 163 bool SIAnnotateControlFlow::isUniform(BranchInst *T) { in isUniform() 210 void SIAnnotateControlFlow::openIf(BranchInst *Term) { in openIf() 220 void SIAnnotateControlFlow::insertElse(BranchInst *Term) { in insertElse() 231 Value *Cond, PHINode *Broken, llvm::Loop *L, BranchInst *Term) { in handleLoopCondition() 258 void SIAnnotateControlFlow::handleLoop(BranchInst *Term) { in handleLoop() [all …]
|
D | AMDGPUUnifyDivergentExitNodes.cpp | 185 BranchInst::Create(NewRetBlock, BB); in unifyReturnBlockSet() 220 } else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) { in runOnFunction() 266 BranchInst::Create(LoopHeaderBB, DummyReturnBB, BoolTrue, BB); in runOnFunction() 274 BranchInst::Create(TransitionBB, DummyReturnBB, BoolTrue, BB); in runOnFunction() 292 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-10.0/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 169 auto GetDomConditional = [&](unsigned i) -> BranchInst * { in handlePhiDef() 171 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() 177 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() 199 BranchInst *BI = GetDomConditional(i); in handlePhiDef() 315 static bool handleBranchExpect(BranchInst &BI) { in handleBranchExpect() 319 return handleBrSelExpect<BranchInst>(BI); in handleBranchExpect() 327 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
|
D | JumpThreading.cpp | 212 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in updatePredecessorProfileMetadata() 230 BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator()); in updatePredecessorProfileMetadata() 265 BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator()); in updatePredecessorProfileMetadata() 420 auto *BI = dyn_cast<BranchInst>(BB.getTerminator()); in runImpl() 1022 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) { in ProcessBlock() 1068 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock() 1101 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() 1121 BranchInst *UncondBr = in ProcessBlock() 1122 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock() 1173 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() [all …]
|
D | LoopInterchange.cpp | 605 BranchInst *OuterLoopHeaderBI = in tightlyNested() 606 dyn_cast<BranchInst>(OuterLoopHeader->getTerminator()); in tightlyNested() 730 !isa<BranchInst>(InnerLoopLatch->getTerminator()) || in currentLimitations() 731 !isa<BranchInst>(OuterLoop->getLoopLatch()->getTerminator())) { in currentLimitations() 856 if (isa<BranchInst>(I) || isa<CmpInst>(I) || isa<TruncInst>(I) || in currentLimitations() 1289 cast<BranchInst>(InnerLoop->getLoopLatch()->getTerminator()) in transform() 1325 static void updateSuccessor(BranchInst *BI, BasicBlock *OldBB, in updateSuccessor() 1469 BranchInst *OuterLoopLatchBI = in adjustLoopBranches() 1470 dyn_cast<BranchInst>(OuterLoopLatch->getTerminator()); in adjustLoopBranches() 1471 BranchInst *InnerLoopLatchBI = in adjustLoopBranches() [all …]
|
D | StructurizeCFG.cpp | 78 using BranchVector = SmallVector<BranchInst *, 8>; 221 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert); 396 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); in analyzeLoops() 438 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, in buildCondition() 465 BranchInst *Term = cast<BranchInst>(P->getTerminator()); in gatherPredicates() 543 for (BranchInst *Term : Conds) { in insertConditions() 716 BranchInst::Create(NewExit, BB); in changeExit() 825 Conditions.push_back(BranchInst::Create(Entry, Next, BoolUndef, Flow)); in wireFlow() 870 BranchInst::Create(LoopStart, NewEntry); in handleLoops() 877 LoopConds.push_back(BranchInst::Create(Next, LoopStart, in handleLoops() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | GuardUtils.h | 17 class BranchInst; variable 35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond); 40 void setWidenableBranchCond(BranchInst *WidenableBR, Value *Cond);
|
/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/AFLplusplus/instrumentation/ |
D | split-compares-pass.so.cc | 337 BranchInst::Create(end_bb, middle_bb); in simplifyFPCompares() 342 BranchInst::Create(end_bb, middle_bb, fcmp_np, bb); in simplifyFPCompares() 423 BranchInst::Create(end_bb, middle_bb); in simplifyOrEqualsCompare() 428 BranchInst::Create(end_bb, middle_bb, icmp_np, bb); in simplifyOrEqualsCompare() 522 BranchInst::Create(end_bb, sign_bb); in simplifySignedCompare() 532 BranchInst::Create(end_bb, middle_bb); in simplifySignedCompare() 537 BranchInst::Create(middle_bb, sign_bb, icmp_sign_bit, bb); in simplifySignedCompare() 639 BranchInst::Create(end_bb, cmp_low_bb); in splitCompare() 647 BranchInst::Create(cmp_low_bb, end_bb, icmp_high, bb); in splitCompare() 652 BranchInst::Create(end_bb, cmp_low_bb, icmp_high, bb); in splitCompare() [all …]
|
/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-10.0/llvm/lib/CodeGen/ |
D | ExpandMemCmp.cpp | 305 BranchInst *CmpBr = in emitLoadCompareByteBlock() 306 BranchInst::Create(EndBlock, LoadCmpBlocks[BlockIndex + 1], Cmp); in emitLoadCompareByteBlock() 310 BranchInst *CmpBr = BranchInst::Create(EndBlock); in emitLoadCompareByteBlock() 417 BranchInst *CmpBr = BranchInst::Create(ResBlock.BB, NextBB, Cmp); in emitLoadCompareBlockMultipleLoads() 488 BranchInst *CmpBr = BranchInst::Create(NextBB, ResBlock.BB, Cmp); in emitLoadCompareBlock() 511 BranchInst *NewBr = BranchInst::Create(EndBlock); in emitMemCmpResultBlock() 525 BranchInst *NewBr = BranchInst::Create(EndBlock); in emitMemCmpResultBlock()
|