Home
last modified time | relevance | path

Searched refs:BranchInst (Results 1 – 25 of 484) sorted by relevance

12345678910>>...20

/external/llvm/lib/Transforms/Utils/
DFlattenCFG.cpp139 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()
DBasicBlockUtils.cpp351 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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DFlattenCFG.cpp151 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()
DLoopUnrollAndJam.cpp252 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 …]
DBasicBlockUtils.cpp194 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 …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DFlattenCFG.cpp151 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()
481 BranchInst *PBI = cast<BranchInst>(FirstEntryBlock->getTerminator()); in MergeIfRegion()
DLoopRotationUtils.cpp192 BranchInst *BI = dyn_cast<BranchInst>(Header->getTerminator()); in profitableToRotateLoopExitingLatch()
218 BranchInst *BI = dyn_cast<BranchInst>(Latch->getTerminator()); in canRotateDeoptimizingLatchExit()
276 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop()
518 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator()); in rotateLoop()
558 BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI); in rotateLoop()
688 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); in simplifyLoopLatch()
696 BranchInst *BI = dyn_cast<BranchInst>(LastExit->getTerminator()); in simplifyLoopLatch()
DBasicBlockUtils.cpp195 BranchInst *PredBB_BI; in MergeBlockIntoPredecessor()
199 if (!(PredBB_BI = dyn_cast<BranchInst>(PredBB->getTerminator()))) in MergeBlockIntoPredecessor()
201 BranchInst *BB_JmpI = dyn_cast<BranchInst>(BB->getTerminator()); in MergeBlockIntoPredecessor()
665 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes()
755 BranchInst *BI = BranchInst::Create(BB, NewBB); in SplitBlockPredecessors()
835 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors()
876 BranchInst *BI2 = BranchInst::Create(OrigBB, NewBB2); in SplitLandingPadPredecessors()
998 CheckTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThen()
1002 BranchInst *HeadNewTerm = in SplitBlockAndInsertIfThen()
1003 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/Tail, Cond); in SplitBlockAndInsertIfThen()
[all …]
DLoopUnrollAndJam.cpp304 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollAndJamLoop()
491 BranchInst *ForeTerm = in UnrollAndJamLoop()
492 cast<BranchInst>(ForeBlocksLast.back()->getTerminator()); in UnrollAndJamLoop()
509 BranchInst *ForeTerm = in UnrollAndJamLoop()
510 cast<BranchInst>(ForeBlocksLast[It - 1]->getTerminator()); in UnrollAndJamLoop()
516 BranchInst *SubTerm = in UnrollAndJamLoop()
517 cast<BranchInst>(SubLoopBlocksLast.back()->getTerminator()); in UnrollAndJamLoop()
528 BranchInst *SubTerm = in UnrollAndJamLoop()
529 cast<BranchInst>(SubLoopBlocksLast[It - 1]->getTerminator()); in UnrollAndJamLoop()
530 BranchInst::Create(SubLoopBlocksFirst[It], SubTerm); in UnrollAndJamLoop()
[all …]
DMatrixUtils.cpp36 BranchInst::Create(Body, Header); in CreateLoop()
37 BranchInst::Create(Latch, Body); in CreateLoop()
45 BranchInst::Create(Header, Exit, Cond, Latch); in CreateLoop()
48 BranchInst *PreheaderBr = cast<BranchInst>(Preheader->getTerminator()); in CreateLoop()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp82 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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp82 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 …]
DAMDGPUUnifyDivergentExitNodes.cpp185 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/
DSIAnnotateControlFlow.cpp72 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/llvm-project/llvm/examples/IRTransforms/
DSimplifyCFG.cpp145 BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator()); in eliminateCondBranches_v1()
163 BranchInst::Create(BI->getSuccessor(CI->isZero()), BI); in eliminateCondBranches_v1()
181 BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator()); in eliminateCondBranches_v2()
199 BranchInst *NewBranch = in eliminateCondBranches_v2()
200 BranchInst::Create(BI->getSuccessor(CI->isZero()), BI); in eliminateCondBranches_v2()
247 BranchInst *NewBranch = BranchInst::Create(TakenSucc, BB.getTerminator()); in eliminateCondBranches_v3()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp169 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()
DJumpThreading.cpp212 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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DGuardUtils.h17 class BranchInst; variable
35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
40 void setWidenableBranchCond(BranchInst *WidenableBR, Value *Cond);
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DGuardUtils.h17 class BranchInst; variable
35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
40 void setWidenableBranchCond(BranchInst *WidenableBR, Value *Cond);
/external/llvm-project/llvm/unittests/Analysis/
DLoopInfoTest.cpp264 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
323 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
382 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
441 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
500 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
560 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
619 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
675 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
734 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
793 BranchInst *Guard = dyn_cast<BranchInst>(Entry->getTerminator()); in TEST()
[all …]
DPhiValuesTest.cpp36 BranchInst::Create(If, Else, UndefValue::get(I1Ty), Entry); in TEST()
37 BranchInst::Create(Then, If); in TEST()
38 BranchInst::Create(Then, Else); in TEST()
106 BranchInst::Create(If1, Else1, UndefValue::get(I1Ty), Entry); in TEST()
107 BranchInst::Create(Then, If1); in TEST()
108 BranchInst::Create(Then, Else1); in TEST()
109 BranchInst::Create(If2, Else2, UndefValue::get(I1Ty), Then); in TEST()
110 BranchInst::Create(End, If2); in TEST()
111 BranchInst::Create(End, Else2); in TEST()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp187 auto GetDomConditional = [&](unsigned i) -> BranchInst * { in handlePhiDef()
189 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
195 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
217 BranchInst *BI = GetDomConditional(i); in handlePhiDef()
336 static bool handleBranchExpect(BranchInst &BI) { in handleBranchExpect()
340 return handleBrSelExpect<BranchInst>(BI); in handleBranchExpect()
348 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
DJumpThreading.cpp220 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in updatePredecessorProfileMetadata()
243 BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator()); in updatePredecessorProfileMetadata()
279 BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator()); in updatePredecessorProfileMetadata()
450 auto *BI = dyn_cast<BranchInst>(BB.getTerminator()); in runImpl()
1045 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) { in processBlock()
1097 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in processBlock()
1134 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in processBlock()
1150 BranchInst *UncondBr = in processBlock()
1151 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in processBlock()
1209 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in processBlock()
[all …]
DIndVarSimplify.cpp250 !isa<BranchInst>(Compare->user_back())) in handleFloatingPointIV()
253 BranchInst *TheBr = cast<BranchInst>(Compare->user_back()); in handleFloatingPointIV()
467 if (auto *BI = dyn_cast<BranchInst>(TermInst)) { in rewriteFirstIterationLoopExitValues()
700 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); in isLoopExitTestBasedOn()
719 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); in needsLFTR()
893 Value *Cond = cast<BranchInst>(ExitingBB->getTerminator())->getCondition(); in FindLoopCounter()
1008 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); in genLoopLimit()
1052 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); in genLoopLimit()
1120 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); in linearFunctionTestReplace()
1293 static void replaceExitCond(BranchInst *BI, Value *NewCond, in replaceExitCond()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLoopInterchange.cpp526 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 …]

12345678910>>...20