Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DLoopInfo.h690 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); } in getLoopFor() function
693 const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); }
698 const LoopT *L = getLoopFor(BB); in getLoopDepth()
704 const LoopT *L = getLoopFor(BB); in isLoopHeader()
844 Loop *ToLoop = getLoopFor(I->getParent()); in replacementPreservesLCSSAForm()
850 return ToLoop->contains(getLoopFor(From->getParent())); in replacementPreservesLCSSAForm()
870 auto *OldLoop = getLoopFor(OldBB); in movementPreservesLCSSAForm()
871 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm()
894 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm()
916 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
H A DCFG.h134 for (const auto *Lp = LI.getLoopFor(Src); Lp; Lp = Lp->getParentLoop()) { in containsIrreducibleCFG()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DMachineLoopInfo.h116 inline MachineLoop *getLoopFor(const MachineBasicBlock *BB) const { in getLoopFor() function
117 return LI.getLoopFor(BB); in getLoopFor()
122 return LI.getLoopFor(BB);
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp211 if (TheOnlySucc && LI.getLoopFor(BB) == &L) in analyze()
351 if (Loop *OuterLoop = LI.getLoopFor(Preheader)) { in handleDeadExits()
360 Loop *BBL = LI.getLoopFor(BB); in handleDeadExits()
401 assert(LI.getLoopFor(BB) != &L && "Attempt to remove current loop!"); in deleteDeadLoopBlocks()
402 LI.erase(LI.getLoopFor(BB)); in deleteDeadLoopBlocks()
416 assert(LI.getLoopFor(BB) == &L && "Should be a loop block!"); in foldTerminators()
577 if (!Pred || !Pred->getSingleSuccessor() || LI.getLoopFor(Pred) != &L) in mergeBlocksIntoPredecessors()
H A DSimpleLoopUnswitch.cpp281 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent()
422 if (Loop *ExitL = LI.getLoopFor(LoopExitBB)) in unswitchTrivialBranch()
614 Loop *ExitL = LI.getLoopFor(DefaultExitBB); in unswitchTrivialSwitch()
1122 if (LI.getLoopFor(BB) == &OrigL) in cloneLoopNest()
1282 if (LI.getLoopFor(BB) == &OrigL) { in buildClonedLoops()
1397 assert(LI.getLoopFor(BB) == OuterL && in buildClonedLoops()
1583 if (Loop *InnerL = LI.getLoopFor(BB)) in recomputeLoopBlockSet()
1740 Loop &ExitL = *LI.getLoopFor(ExitBB); in rebuildLoopAfterUnswitch()
1785 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch()
1799 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch()
[all …]
H A DSink.cpp126 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget()
127 Loop *cur = LI.getLoopFor(Inst->getParent()); in IsAcceptableTarget()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DShrinkWrap.cpp396 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
408 (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
419 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 …]
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DLoopInfo.cpp189 return isBlockInLCSSAForm(*LI.getLoopFor(BB), *BB, DT); in isRecursivelyLCSSAForm()
455 Loop *L = LI->getLoopFor(POI); in updateBlockParents()
483 Loop *L = LI->getLoopFor(*POI); in updateBlockParents()
501 Loop *OuterParent = LI->getLoopFor(*BI); in removeBlocksFromAncestors()
563 Loop *L = LI->getLoopFor(*I); in getNearestLoop()
624 if (getLoopFor(*I) != Unloop) in erase()
H A DDivergenceAnalysis.cpp144 for (const auto *Loop = LI.getLoopFor(Inst->getParent()); in isTemporalDivergent()
191 auto *DivLoop = LI.getLoopFor(&LoopHeader); in taintLoopLiveOuts()
305 const auto *BranchLoop = LI.getLoopFor(Term.getParent()); in propagateBranchDivergence()
H A DCFG.cpp115 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
204 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
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 DSyncDependenceAnalysis.cpp268 auto *BlockLoop = LI.getLoopFor(Block); in computeJoinPoints()
373 TermBlock, successors(Term.getParent()), LI.getLoopFor(&TermBlock)); in join_blocks()
H A DMustExecute.cpp337 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
350 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyCFGSort.cpp85 const auto *ML = MLI.getLoopFor(MBB); in getRegionFor()
240 if (MachineLoop *L = MLI.getLoopFor(&MBB)) in SortBlocks()
286 if (MachineLoop *SuccL = MLI.getLoopFor(Succ)) in SortBlocks()
H A DWebAssemblyFixIrreducibleControlFlow.cpp102 MachineLoop *InnerLoop = MLI.getLoopFor(MBB); in canonicalize()
169 MachineLoop *InnerLoop = MLI.getLoopFor(MBB); in run()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DLCSSA.cpp93 Loop *L = LI.getLoopFor(InstBB); in formLCSSAForInstructions()
176 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
223 if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent())) in formLCSSAForInstructions()
H A DBreakCriticalEdges.cpp231 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitCriticalEdge()
234 if (Loop *DestLoop = LI->getLoopFor(DestBB)) { in SplitCriticalEdge()
282 if (LI->getLoopFor(P) != TIL) { in SplitCriticalEdge()
H A DLoopUnroll.cpp169 if (LI->getLoopFor(BB) == L) in needToInsertPhisForLCSSA()
174 Loop *DefLoop = LI->getLoopFor(Def->getParent()); in needToInsertPhisForLCSSA()
194 const Loop *OldLoop = LI->getLoopFor(OriginalBB); in addClonedBlockToLoopInfo()
621 assert((*BB != Header || LI->getLoopFor(*BB) == L) && in UnrollLoop()
867 Loop *LatchLoop = LI->getLoopFor(Latches.back()); in UnrollLoop()
H A DBasicBlockUtils.cpp332 if (Loop *L = LI->getLoopFor(Old)) in SplitBlock()
379 Loop *L = LI->getLoopFor(OldBB); in UpdateAnalysisInformation()
395 if (Loop *PL = LI->getLoopFor(Pred)) in UpdateAnalysisInformation()
420 if (Loop *PredLoop = LI->getLoopFor(Pred)) { in UpdateAnalysisInformation()
754 if (Loop *L = LI->getLoopFor(Head)) { in SplitBlockAndInsertIfThen()
H A DSimplifyIndVar.cpp187 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in makeIVComparisonInvariant()
257 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
297 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
369 const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent()); in simplifyIVRemainder()
966 SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, DT, LI, Rewriter, in simplifyUsersOfIV()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZMachineScheduler.cpp88 LLVM_DEBUG(const MachineLoop *Loop = MLI->getLoopFor(MBB); in enterMBB()
95 getSingleSchedPred(MBB, MLI->getLoopFor(MBB)); in enterMBB()
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp235 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()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DSIFixWWMLiveness.cpp257 auto Loop = LoopInfo->getLoopFor(Defs[0]->getParent()); in processDef()
292 auto Loop = LoopInfo->getLoopFor(UseBlock); in processDef()
H A DSIAnnotateControlFlow.cpp257 llvm::Loop *L = LI->getLoopFor(BB); in handleLoop()
278 llvm::Loop *L = LI->getLoopFor(BB); in closeControlFlow()

1234