/external/llvm/lib/Transforms/Utils/ |
D | FlattenCFG.cpp | 141 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator()); in FlattenParallelAndOr() 212 BranchInst *BPS = dyn_cast<BranchInst>(PS->getTerminator()); in FlattenParallelAndOr() 226 BranchInst *PBI1 = dyn_cast<BranchInst>(PS1->getTerminator()); in FlattenParallelAndOr() 227 BranchInst *PBI2 = dyn_cast<BranchInst>(PS2->getTerminator()); in FlattenParallelAndOr() 243 BranchInst *BI = dyn_cast<BranchInst>(CurrBlock->getTerminator()); in FlattenParallelAndOr() 270 BranchInst *PBI = dyn_cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 281 PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 439 BranchInst *PBI = dyn_cast<BranchInst>(FirstEntryBlock->getTerminator()); in MergeIfRegion()
|
D | BasicBlockUtils.cpp | 390 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes() 493 BranchInst *BI = BranchInst::Create(BB, NewBB); in SplitBlockPredecessors() 555 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 595 BranchInst *BI2 = BranchInst::Create(OrigBB, NewBB2); in SplitLandingPadPredecessors() 712 CheckTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThen() 714 BranchInst *HeadNewTerm = in SplitBlockAndInsertIfThen() 715 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/Tail, Cond); in SplitBlockAndInsertIfThen() 760 *ThenTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThenElse() 762 *ElseTerm = BranchInst::Create(Tail, ElseBlock); in SplitBlockAndInsertIfThenElse() 764 BranchInst *HeadNewTerm = in SplitBlockAndInsertIfThenElse() [all …]
|
D | LoopUnrollRuntime.cpp | 133 BranchInst::Create(Exit, NewPH, BrLoopExit, InsertPt); in ConnectProlog() 186 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() 189 BranchInst::Create(InsertBot, NewBB); in CloneLoopBlocks() 199 BranchInst::Create(FirstLoopBB, InsertBot, IdxCmp, NewBB); in CloneLoopBlocks() 347 BranchInst *PreHeaderBR = cast<BranchInst>(PH->getTerminator()); in UnrollRuntimeLoopProlog() 373 BranchInst::Create(PEnd, PEnd, BranchVal, PreHeaderBR); in UnrollRuntimeLoopProlog()
|
D | SimplifyCFG.cpp | 130 bool SimplifyUncondBranch(BranchInst *BI, IRBuilder <> &Builder); 131 bool SimplifyCondBranch(BranchInst *BI, IRBuilder <>&Builder); 172 static bool isProfitableToFoldUnconditional(BranchInst *SI1, in isProfitableToFoldUnconditional() 173 BranchInst *SI2, in isProfitableToFoldUnconditional() 271 BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator()); in DominatesMergePoint() 511 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in EraseTerminatorInstAndDCECond() 532 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) in isValueEqualityComparison() 564 BranchInst *BI = cast<BranchInst>(TI); in GetValueEqualityComparisonCases() 656 if (isa<BranchInst>(TI)) { in SimplifyEqualityComparisonWithOnlyPredecessor() 802 if (BranchInst* BI = dyn_cast<BranchInst>(TI)) { in GetBranchWeights() [all …]
|
D | LoopUnroll.cpp | 186 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollLoop() 422 BranchInst *Term = cast<BranchInst>(Latches[i]->getTerminator()); in UnrollLoop() 465 BranchInst::Create(Dest, Term); in UnrollLoop() 473 BranchInst *Term = cast<BranchInst>(Latches[i]->getTerminator()); in UnrollLoop()
|
D | UnifyFunctionExitNodes.cpp | 73 BranchInst::Create(UnreachableBlock, BB); in runOnFunction() 117 BranchInst::Create(NewRetBlock, BB); in runOnFunction()
|
D | LowerSwitch.cpp | 285 BranchInst::Create(LBranch, RBranch, Comp, NewNode); in switchConvert() 334 BranchInst::Create(Succ, Default, Comp, NewLeaf); in newLeafBlock() 406 BranchInst::Create(Default, CurBlock); in processSwitchInst() 488 BranchInst::Create(Default, CurBlock); in processSwitchInst() 498 BranchInst::Create(Default, NewDefault); in processSwitchInst() 514 BranchInst::Create(SwitchBlock, OrigBlock); in processSwitchInst()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopInterchange.cpp | 505 BranchInst *OuterMostLoopLatchBI = in processLoopList() 506 dyn_cast<BranchInst>(OuterMostLoopLatch->getTerminator()); in processLoopList() 608 BranchInst *outerLoopHeaderBI = in tightlyNested() 609 dyn_cast<BranchInst>(OuterLoopHeader->getTerminator()); in tightlyNested() 737 if (isa<BranchInst>(*I) || isa<CmpInst>(*I) || isa<TruncInst>(*I)) in currentLimitations() 1034 BranchInst *OuterLoopLatchBI = in adjustLoopBranches() 1035 dyn_cast<BranchInst>(OuterLoopLatch->getTerminator()); in adjustLoopBranches() 1036 BranchInst *InnerLoopLatchBI = in adjustLoopBranches() 1037 dyn_cast<BranchInst>(InnerLoopLatch->getTerminator()); in adjustLoopBranches() 1038 BranchInst *OuterLoopHeaderBI = in adjustLoopBranches() [all …]
|
D | LoopRotation.cpp | 281 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); in simplifyLoopLatch() 289 BranchInst *BI = dyn_cast<BranchInst>(LastExit->getTerminator()); in simplifyLoopLatch() 338 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop() 494 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator()); in rotateLoop() 555 BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI); in rotateLoop()
|
D | JumpThreading.cpp | 199 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in runOnFunction() 692 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) { in ProcessBlock() 733 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock() 764 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() 792 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock() 809 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock() 846 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() 852 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() 1166 else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) in ProcessThreadableEdges() 1242 if (BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator())) in ProcessBranchOnPHI() [all …]
|
D | StructurizeCFG.cpp | 37 typedef SmallVector<BranchInst*, 8> BranchVector; 196 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert); 359 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); in analyzeLoops() 410 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, in buildCondition() 440 BranchInst *Term = cast<BranchInst>((*PI)->getTerminator()); in gatherPredicates() 522 for (BranchInst *Term : Conds) { in insertConditions() 691 BranchInst::Create(NewExit, BB); in changeExit() 805 Conditions.push_back(BranchInst::Create(Entry, Next, BoolUndef, Flow)); in wireFlow() 850 BranchInst::Create(LoopStart, NewEntry); in handleLoops() 856 LoopConds.push_back(BranchInst::Create(Next, LoopStart, in handleLoops()
|
D | LowerExpectIntrinsic.cpp | 74 static bool handleBranchExpect(BranchInst &BI) { in handleBranchExpect() 134 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
|
D | MergedLoadStoreMotion.cpp | 198 BranchInst *BI = (BranchInst *)(BB->getTerminator()); in getDiamondTail() 210 if (!isa<BranchInst>(BB->getTerminator())) in isDiamondHead() 215 BranchInst *BI = (BranchInst *)(BB->getTerminator()); in isDiamondHead() 363 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in mergeLoads()
|
D | InductiveRangeCheckElimination.cpp | 122 BranchInst *Branch; 164 BranchInst *getBranch() const { return Branch; } in getBranch() 198 static InductiveRangeCheck *create(AllocatorTy &Alloc, BranchInst *BI, 384 InductiveRangeCheck::create(InductiveRangeCheck::AllocatorTy &A, BranchInst *BI, in create() 440 BranchInst *LatchBr; 459 Result.LatchBr = cast<BranchInst>(Map(LatchBr)); in map() 662 BranchInst *LatchBr = dyn_cast<BranchInst>(&*Latch->rbegin()); in parseLoopStructure() 1051 BranchInst *PreheaderJump = cast<BranchInst>(&*Preheader->rbegin()); in changeIterationSpaceEnd() 1085 BranchInst *BranchToContinuation = in changeIterationSpaceEnd() 1086 BranchInst::Create(ContinuationBlock, RRI.PseudoExit); in changeIterationSpaceEnd() [all …]
|
D | TailRecursionElimination.cpp | 687 BranchInst::Create(OldEntry, NewEntry); in EliminateRecursiveTailCall() 784 BranchInst *NewBI = BranchInst::Create(OldEntry, Ret); in EliminateRecursiveTailCall() 804 SmallVector<BranchInst*, 8> UncondBranchPreds; in FoldReturnAndProcessPred() 808 if (BranchInst *BI = dyn_cast<BranchInst>(PTI)) in FoldReturnAndProcessPred() 814 BranchInst *BI = UncondBranchPreds.pop_back_val(); in FoldReturnAndProcessPred()
|
D | LoopUnswitch.cpp | 448 if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in processCurrentLoop() 579 if (BranchInst *BI = dyn_cast<BranchInst>(HeaderTerm)) { in IsTrivialUnswitchCondition() 706 BranchInst *BI = BranchInst::Create(TrueDest, FalseDest, BranchVal, InsertPt); in EmitPreheaderBranchOnCondition() 895 BranchInst *OldBR = cast<BranchInst>(loopPreheader->getTerminator()); in UnswitchNontrivialCondition() 1058 BranchInst::Create(Abort, OldSISucc, in RewriteLoopBodyWithConditionConstant() 1116 if (BranchInst *BI = dyn_cast<BranchInst>(I)) { in SimplifyCode()
|
D | LoopIdiomRecognize.cpp | 79 static BranchInst *getBranch(BasicBlock *BB) { in getBranch() 80 return dyn_cast<BranchInst>(BB->getTerminator()); in getBranch() 115 Value *matchCondition(BranchInst *Br, BasicBlock *NonZeroTarget) const; 255 if (BranchInst *Br = getBranch(BB)) { in isAlmostEmpty() 263 BranchInst *Br = getBranch(BB); in getPrecondBb() 313 Value *NclPopcountRecognize::matchCondition(BranchInst *Br, in matchCondition() 448 BranchInst *PreCondBr = LIRUtil::getBranch(PreCondBB); in detectIdiom() 467 BranchInst *PreCondBr = LIRUtil::getBranch(PreCondBB); in transform() 538 BranchInst *LbBr = LIRUtil::getBranch(Body); in transform()
|
/external/llvm/lib/Target/R600/ |
D | SIAnnotateControlFlow.cpp | 82 void openIf(BranchInst *Term); 84 void insertElse(BranchInst *Term); 88 void handleLoop(BranchInst *Term); 196 void SIAnnotateControlFlow::openIf(BranchInst *Term) { in openIf() 203 void SIAnnotateControlFlow::insertElse(BranchInst *Term) { in insertElse() 273 void SIAnnotateControlFlow::handleLoop(BranchInst *Term) { in handleLoop() 323 BranchInst *Term = dyn_cast<BranchInst>((*I)->getTerminator()); in runOnFunction()
|
/external/llvm/tools/llvm-diff/ |
D | DifferenceEngine.cpp | 288 } else if (isa<BranchInst>(L)) { in diff() 289 BranchInst *LI = cast<BranchInst>(L); in diff() 290 BranchInst *RI = cast<BranchInst>(R); in diff() 600 if (isa<BranchInst>(LTerm) && isa<InvokeInst>(RTerm)) { in runBlockDiff() 601 if (cast<BranchInst>(LTerm)->isConditional()) return; in runBlockDiff() 613 } else if (isa<InvokeInst>(LTerm) && isa<BranchInst>(RTerm)) { in runBlockDiff() 614 if (cast<BranchInst>(RTerm)->isConditional()) return; in runBlockDiff()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXImageOptimizer.cpp | 152 if (BranchInst *BI = dyn_cast<BranchInst>(*UI)) { in replaceWith() 161 BranchInst::Create(Dest, BI); in replaceWith()
|
/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()
|
/external/llvm/unittests/IR/ |
D | VerifierTest.cpp | 37 BranchInst *BI = BranchInst::Create(Exit, Exit, False, Entry); in TEST()
|
/external/llvm/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 181 if (!isa<BranchInst>(TI) && !isa<SwitchInst>(TI)) in calcMetadataWeights() 278 BranchInst * BI = dyn_cast<BranchInst>(BB->getTerminator()); in calcPointerHeuristics() 368 BranchInst * BI = dyn_cast<BranchInst>(BB->getTerminator()); in calcZeroHeuristics() 450 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in calcFloatingPointHeuristics()
|
/external/clang/lib/CodeGen/ |
D | CGCleanup.cpp | 325 if (llvm::BranchInst *Br = dyn_cast<llvm::BranchInst>(Term)) { in TransitionToCleanupSwitch() 441 llvm::BranchInst *Br = dyn_cast<llvm::BranchInst>(Pred->getTerminator()); in SimplifyCleanupEntry() 515 if (llvm::BranchInst *Br = dyn_cast<llvm::BranchInst>(Term)) { in ForwardPrebranchedFallthrough() 550 llvm::BranchInst::Create(si->case_begin().getCaseSuccessor(), si); in destroyOptimisticNormalEntry() 753 InstsToAppend.push_back(llvm::BranchInst::Create(BranchAfter)); in PopCleanupBlock() 797 InstsToAppend.push_back(llvm::BranchInst::Create(BranchThroughDest)); in PopCleanupBlock() 929 llvm::BranchInst *BI = Builder.CreateBr(Dest.getBlock()); in EmitBranchThroughCleanup()
|
/external/llvm/include/llvm/Analysis/ |
D | CFGPrinter.h | 102 if (const BranchInst *BI = dyn_cast<BranchInst>(Node->getTerminator()))
|