Home
last modified time | relevance | path

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

12345678910>>...15

/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 …]
DSimplifyCFG.cpp162 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/
DFlattenCFG.cpp152 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()
DLoopUnrollAndJam.cpp248 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 …]
DBasicBlockUtils.cpp418 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 …]
DLoopRotationUtils.cpp208 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/
DSIAnnotateControlFlow.cpp80 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 …]
DAMDGPUUnifyDivergentExitNodes.cpp150 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/
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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp163 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()
DJumpThreading.cpp204 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 …]
DLoopInterchange.cpp660 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 …]
DStructurizeCFG.cpp71 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/
DSimplifyCFG.cpp72 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/
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 …]
DJumpThreading.cpp217 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 …]
DLoopRotation.cpp195 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()
DStructurizeCFG.cpp38 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/
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()
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/
DInstructionsTest.cpp45 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/
DDeferredDominanceTest.cpp84 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/
DLocal.cpp30 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/
DLoopRotation.cpp157 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/
DExpandMemCmp.cpp231 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()

12345678910>>...15