Home
last modified time | relevance | path

Searched refs:getLoopFor (Results 1 – 25 of 93) sorted by relevance

1234

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp102 Loop *BBL = LI.getLoopFor(BB); in getInnermostLoopFor()
245 bool TakeFoldCandidate = TheOnlySucc && LI.getLoopFor(BB) == &L; in analyze()
279 return !TheOnlySucc || TheOnlySucc == To || LI.getLoopFor(From) != &L; in analyze()
389 if (Loop *OuterLoop = LI.getLoopFor(Preheader)) { in handleDeadExits()
452 assert(LI.getLoopFor(BB) != &L && "Attempt to remove current loop!"); in deleteDeadLoopBlocks()
453 Loop *DL = LI.getLoopFor(BB); in deleteDeadLoopBlocks()
485 assert(LI.getLoopFor(BB) == &L && "Should be a loop block!"); in foldTerminators()
665 if (!Pred || !Pred->getSingleSuccessor() || LI.getLoopFor(Pred) != &L) in mergeBlocksIntoPredecessors()
H A DSimpleLoopUnswitch.cpp291 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent()
305 assert(OldParentL == LI.getLoopFor(&Preheader) && in hoistLoopToNewParent()
351 Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop()
662 Loop *ExitL = LI.getLoopFor(DefaultExitBB); in unswitchTrivialSwitch()
679 Loop *ExitL = LI.getLoopFor(CaseI->getCaseSuccessor()); in unswitchTrivialSwitch()
1207 if (LI.getLoopFor(BB) == &OrigL) in cloneLoopNest()
1279 if (Loop *ExitL = LI.getLoopFor(ExitBB)) { in buildClonedLoops()
1367 if (LI.getLoopFor(BB) == &OrigL) { in buildClonedLoops()
1482 assert(LI.getLoopFor(BB) == OuterL && in buildClonedLoops()
1673 if (Loop *InnerL = LI.getLoopFor(BB)) in recomputeLoopBlockSet()
[all …]
H A DSink.cpp96 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget()
97 Loop *cur = LI.getLoopFor(Inst->getParent()); in IsAcceptableTarget()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DLoopInfo.h964 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); } in getLoopFor() function
967 const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); }
972 const LoopT *L = getLoopFor(BB); in getLoopDepth()
978 const LoopT *L = getLoopFor(BB); in isLoopHeader()
1124 Loop *ToLoop = getLoopFor(I->getParent()); in replacementPreservesLCSSAForm()
1130 return ToLoop->contains(getLoopFor(From->getParent())); in replacementPreservesLCSSAForm()
1150 auto *OldLoop = getLoopFor(OldBB); in movementPreservesLCSSAForm()
1151 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm()
1174 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm()
1196 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
H A DCFG.h153 for (const auto *Lp = LI.getLoopFor(Src); Lp; Lp = Lp->getParentLoop()) { in containsIrreducibleCFG()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineLoopInfo.h124 inline MachineLoop *getLoopFor(const MachineBasicBlock *BB) const { in getLoopFor() function
125 return LI.getLoopFor(BB); in getLoopFor()
130 return LI.getLoopFor(BB);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DShrinkWrap.cpp400 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
411 if (Restore && (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
422 MLI->getLoopFor(Restore)->getExitingBlocks(ExitBlocks); in updateSaveRestorePoints()
H A DMachineTraceMetrics.cpp169 MachineTraceMetrics::Ensemble::getLoopFor(const MachineBasicBlock *MBB) const { in getLoopFor() function in MachineTraceMetrics::Ensemble
170 return MTM.Loops->getLoopFor(MBB); in getLoopFor()
329 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTracePred()
357 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTraceSucc()
365 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc()
460 if (const MachineLoop *FromLoop = LB.Loops->getLoopFor(*From)) { in insertEdge()
465 if (isExitingLoop(FromLoop, LB.Loops->getLoopFor(To))) in insertEdge()
597 const MachineLoop *Loop = getLoopFor(MBB); in verify()
605 const MachineLoop *Loop = getLoopFor(MBB); in verify()
606 const MachineLoop *SuccLoop = getLoopFor(TBI.Succ); in verify()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DSyncDependenceAnalysis.cpp148 auto *NestedLoop = LI.getLoopFor(NextBB); in computeStackPO()
335 const auto *DivBlockLoop = LI.getLoopFor(&DivTermBlock); in computeJoinPoints()
356 const auto *BlockLoop = LI.getLoopFor(SuccBlock); in computeJoinPoints()
377 auto *BlockLoop = LI.getLoopFor(Block); in computeJoinPoints()
H A DDivergenceAnalysis.cpp118 for (const auto *Loop = LI.getLoopFor(Inst->getParent()); in isTemporalDivergent()
252 const Loop *ExitLevelLoop = LI.getLoopFor(&DivExit); in propagateLoopExitDivergence()
298 const auto *BranchLoop = LI.getLoopFor(Term.getParent()); in analyzeControlDivergence()
H A DLoopInfo.cpp474 return isBlockInLCSSAForm(*LI.getLoopFor(BB), *BB, DT); in isRecursivelyLCSSAForm()
723 Loop *L = LI->getLoopFor(POI); in updateBlockParents()
751 Loop *L = LI->getLoopFor(*POI); in updateBlockParents()
768 Loop *OuterParent = LI->getLoopFor(BB); in removeBlocksFromAncestors()
830 Loop *L = LI->getLoopFor(*I); in getNearestLoop()
888 if (getLoopFor(BB) != Unloop) in erase()
945 const Loop *L = getLoopFor(I->getParent()); in wouldBeOutOfLoopUseRequiringLCSSA()
H A DMustExecute.cpp420 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
433 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
511 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findForwardJoinPoint()
616 const Loop *L = LI->getLoopFor(ToBB); in findForwardJoinPoint()
653 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findBackwardJoinPoint()
H A DIVUsers.cpp69 SE->getSCEVAtScope(AR, LI->getLoopFor(I->getParent())) != AR); in isInteresting()
102 Loop *DomLoop = LI->getLoopFor(DomBB); in isSimplifiedLoopNest()
235 if (LI->getLoopFor(User->getParent()) != L) { in AddUsersImpl()
H A DCFG.cpp129 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
253 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
H A DDependenceAnalysis.cpp750 const Loop *SrcLoop = LI->getLoopFor(SrcBlock); in establishNestingLevels()
751 const Loop *DstLoop = LI->getLoopFor(DstBlock); in establishNestingLevels()
3258 Loop *SrcLoop = LI->getLoopFor(Src->getParent()); in tryDelinearize()
3259 Loop *DstLoop = LI->getLoopFor(Dst->getParent()); in tryDelinearize()
3572 classifyPair(Pair[P].Src, LI->getLoopFor(Src->getParent()), in depends()
3573 Pair[P].Dst, LI->getLoopFor(Dst->getParent()), in depends()
3650 LI->getLoopFor(Src->getParent()), in depends()
3653 LI->getLoopFor(Dst->getParent()), in depends()
3786 classifyPair(Pair[SJ].Src, LI->getLoopFor(Src->getParent()), in depends()
3787 Pair[SJ].Dst, LI->getLoopFor(Dst->getParent()), in depends()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblySortRegion.cpp18 const auto *ML = MLI.getLoopFor(MBB); in getRegionFor()
47 return getBottom(MLI.getLoopFor(R->getHeader())); in getBottom()
H A DWebAssemblyCFGSort.cpp199 if (MachineLoop *L = MLI.getLoopFor(&MBB)) in sortBlocks()
246 if (MachineLoop *SuccL = MLI.getLoopFor(Succ)) in sortBlocks()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DLCSSA.cpp101 Loop *L = LI.getLoopFor(InstBB); in formLCSSAForInstructions()
198 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
255 if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent())) in formLCSSAForInstructions()
367 if (LI->getLoopFor(BB) != &L) in formLCSSA()
H A DBreakCriticalEdges.cpp137 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge()
151 if (LI->getLoopFor(P) != TIL) { in SplitKnownCriticalEdge()
264 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge()
267 if (Loop *DestLoop = LI->getLoopFor(DestBB)) { in SplitKnownCriticalEdge()
H A DBasicBlockUtils.cpp582 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
596 if (LI->getLoopFor(P) != BBLoop) { in ehAwareSplitEdge()
665 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
668 if (Loop *SuccLoop = LI->getLoopFor(Succ)) { in ehAwareSplitEdge()
780 if (Loop *L = LI->getLoopFor(Old)) in SplitBlockImpl()
845 if (Loop *L = LI->getLoopFor(Old)) in splitBlockBefore()
922 Loop *L = LI->getLoopFor(OldBB); in UpdateAnalysisInformation()
938 if (Loop *PL = LI->getLoopFor(Pred)) in UpdateAnalysisInformation()
963 if (Loop *PredLoop = LI->getLoopFor(Pred)) { in UpdateAnalysisInformation()
1091 L = LI->getLoopFor(BB); in SplitBlockPredecessorsImpl()
[all …]
H A DLoopUnroll.cpp116 if (LI->getLoopFor(BB) == L) in needToInsertPhisForLCSSA()
121 Loop *DefLoop = LI->getLoopFor(Def->getParent()); in needToInsertPhisForLCSSA()
141 const Loop *OldLoop = LI->getLoopFor(OriginalBB); in addClonedBlockToLoopInfo()
608 assert((*BB != Header || LI->getLoopFor(*BB) == L) && in UnrollLoop()
928 Loop *LatchLoop = LI->getLoopFor(Latches.back()); in UnrollLoop()
H A DSimplifyIndVar.cpp208 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in makeIVComparisonInvariant()
278 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
318 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
390 const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent()); in simplifyIVRemainder()
965 SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, DT, LI, TTI, in simplifyUsersOfIV()
1163 auto *L = LI->getLoopFor(DefI->getParent()); in getInsertPointForUses()
1164 assert(!L || L->contains(LI->getLoopFor(InsertPt->getParent()))); in getInsertPointForUses()
1167 if (LI->getLoopFor(DTN->getBlock()) == L) in getInsertPointForUses()
1177 L(LI->getLoopFor(OrigPhi->getParent())), SE(SEv), DT(DTree), in WidenIV()
1189 for (const Loop *L = LI->getLoopFor(Use->getParent()); in createExtendInst()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZMachineScheduler.cpp89 LLVM_DEBUG(const MachineLoop *Loop = MLI->getLoopFor(MBB); in enterMBB()
96 getSingleSchedPred(MBB, MLI->getLoopFor(MBB)); in enterMBB()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp234 MachineLoop *L = MLI->getLoopFor(SB); in isPreheader()
294 bool TOk = (TNP == 1 && TNS == 1 && MLI->getLoopFor(TB) == L); in matchFlowPattern()
295 bool FOk = (FNP == 1 && FNS == 1 && MLI->getLoopFor(FB) == L); in matchFlowPattern()
299 if (SkipExitBranches && MLI->getLoopFor(TB) != MLI->getLoopFor(FB)) in matchFlowPattern()
623 if (MLI->getLoopFor(B) != L) in visitBlock()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DSIAnnotateControlFlow.cpp256 llvm::Loop *L = LI->getLoopFor(BB); in handleLoop()
286 llvm::Loop *L = LI->getLoopFor(BB); in closeControlFlow()

1234