Home
last modified time | relevance | path

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

123456

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DLoopInfoTest.cpp85 Loop *L = LI.getLoopFor(Header); in TEST()
135 Loop *L = LI.getLoopFor(Header); in TEST()
194 Loop &L_0 = *LI.getLoopFor(&*I++); in TEST()
196 Loop &L_0_0 = *LI.getLoopFor(&*I++); in TEST()
198 Loop &L_0_1 = *LI.getLoopFor(&*I++); in TEST()
200 Loop &L_0_2 = *LI.getLoopFor(&*I++); in TEST()
202 Loop &L_1 = *LI.getLoopFor(&*I++); in TEST()
204 Loop &L_1_0 = *LI.getLoopFor(&*I++); in TEST()
206 Loop &L_1_1 = *LI.getLoopFor(&*I++); in TEST()
208 Loop &L_1_2 = *LI.getLoopFor(&*I++); in TEST()
[all …]
H A DIVDescriptorsTest.cpp79 Loop *L = LI.getLoopFor(Header); in TEST()
130 Loop *L = LI.getLoopFor(Header); in TEST()
196 Loop *L = LI.getLoopFor(Header); in TEST()
H A DLoopNestTest.cpp90 Loop *L = LI.getLoopFor(Header); in TEST()
186 Loop *L = LI.getLoopFor(Header); in TEST()
272 Loop *L = LI.getLoopFor(Header); in TEST()
/llvm-project-15.0.7/llvm/unittests/Transforms/Vectorize/
H A DVPlanSlpTest.cpp98 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F()
179 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F()
242 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F()
306 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F()
454 getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan)); in TEST_F()
526 getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan)); in TEST_F()
596 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F()
674 getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan)); in TEST_F()
724 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F()
787 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F()
[all …]
H A DVPlanTestBase.h68 VPlanHCFGBuilder HCFGBuilder(LI->getLoopFor(LoopHeader), LI.get(), *Plan); in buildHCFG()
78 VPlanHCFGBuilder HCFGBuilder(LI->getLoopFor(LoopHeader), LI.get(), *Plan); in buildPlainCFG()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineLoopInfo.h126 inline MachineLoop *getLoopFor(const MachineBasicBlock *BB) const { in getLoopFor() function
127 return LI.getLoopFor(BB); in getLoopFor()
132 return LI.getLoopFor(BB);
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp95 Loop *BBL = LI.getLoopFor(BB); in getInnermostLoopFor()
238 bool TakeFoldCandidate = TheOnlySucc && LI.getLoopFor(BB) == &L; in analyze()
276 return !TheOnlySucc || TheOnlySucc == To || LI.getLoopFor(From) != &L; in analyze()
385 if (Loop *OuterLoop = LI.getLoopFor(Preheader)) { in handleDeadExits()
448 assert(LI.getLoopFor(BB) != &L && "Attempt to remove current loop!"); in deleteDeadLoopBlocks()
449 Loop *DL = LI.getLoopFor(BB); in deleteDeadLoopBlocks()
481 assert(LI.getLoopFor(BB) == &L && "Should be a loop block!"); in foldTerminators()
673 if (!Pred || !Pred->getSingleSuccessor() || LI.getLoopFor(Pred) != &L) in mergeBlocksIntoPredecessors()
H A DSimpleLoopUnswitch.cpp362 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent()
422 Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop()
740 Loop *ExitL = LI.getLoopFor(DefaultExitBB); in unswitchTrivialSwitch()
1286 if (LI.getLoopFor(BB) == &OrigL) in cloneLoopNest()
1446 if (LI.getLoopFor(BB) == &OrigL) { in buildClonedLoops()
1561 assert(LI.getLoopFor(BB) == OuterL && in buildClonedLoops()
1755 if (Loop *InnerL = LI.getLoopFor(BB)) in recomputeLoopBlockSet()
1911 Loop &ExitL = *LI.getLoopFor(ExitBB); in rebuildLoopAfterUnswitch()
1956 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch()
1970 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch()
[all …]
H A DSink.cpp91 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget()
92 Loop *cur = LI.getLoopFor(Inst->getParent()); in IsAcceptableTarget()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DLoopInfo.h989 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); } in getLoopFor() function
992 const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); }
997 const LoopT *L = getLoopFor(BB); in getLoopDepth()
1003 const LoopT *L = getLoopFor(BB); in isLoopHeader()
1149 Loop *ToLoop = getLoopFor(I->getParent()); in replacementPreservesLCSSAForm()
1155 return ToLoop->contains(getLoopFor(From->getParent())); in replacementPreservesLCSSAForm()
1175 auto *OldLoop = getLoopFor(OldBB); in movementPreservesLCSSAForm()
1176 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm()
1199 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm()
1221 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DShrinkWrap.cpp408 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
419 if (Restore && (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
430 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 …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DSyncDependenceAnalysis.cpp165 auto *NestedLoop = LI.getLoopFor(NextBB); in computeStackPO()
352 const auto *DivBlockLoop = LI.getLoopFor(&DivTermBlock); in computeJoinPoints()
373 const auto *BlockLoop = LI.getLoopFor(SuccBlock); in computeJoinPoints()
394 auto *BlockLoop = LI.getLoopFor(Block); in computeJoinPoints()
H A DDivergenceAnalysis.cpp117 for (const auto *Loop = LI.getLoopFor(Inst->getParent()); in isTemporalDivergent()
251 const Loop *ExitLevelLoop = LI.getLoopFor(&DivExit); in propagateLoopExitDivergence()
297 const auto *BranchLoop = LI.getLoopFor(Term.getParent()); in analyzeControlDivergence()
H A DLoopInfo.cpp471 return isBlockInLCSSAForm(*LI.getLoopFor(BB), *BB, DT, IgnoreTokens); in isRecursivelyLCSSAForm()
716 Loop *L = LI->getLoopFor(POI); in updateBlockParents()
745 Loop *L = LI->getLoopFor(*POI); in updateBlockParents()
762 Loop *OuterParent = LI->getLoopFor(BB); in removeBlocksFromAncestors()
824 Loop *L = LI->getLoopFor(*I); in getNearestLoop()
882 if (getLoopFor(BB) != Unloop) in erase()
939 const Loop *L = getLoopFor(I->getParent()); in wouldBeOutOfLoopUseRequiringLCSSA()
H A DMustExecute.cpp417 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
430 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
508 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findForwardJoinPoint()
613 const Loop *L = LI->getLoopFor(ToBB); in findForwardJoinPoint()
650 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findBackwardJoinPoint()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLCSSA.cpp100 Loop *L = LI.getLoopFor(InstBB); in formLCSSAForInstructions()
197 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
254 if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent())) in formLCSSAForInstructions()
368 if (LI->getLoopFor(BB) != &L) in formLCSSA()
H A DBreakCriticalEdges.cpp134 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge()
148 if (LI->getLoopFor(P) != TIL) { in SplitKnownCriticalEdge()
258 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge()
261 if (Loop *DestLoop = LI->getLoopFor(DestBB)) { in SplitKnownCriticalEdge()
H A DBasicBlockUtils.cpp604 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
618 if (LI->getLoopFor(P) != BBLoop) { in ehAwareSplitEdge()
687 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
690 if (Loop *SuccLoop = LI->getLoopFor(Succ)) { in ehAwareSplitEdge()
803 if (Loop *L = LI->getLoopFor(Old)) in SplitBlockImpl()
868 if (Loop *L = LI->getLoopFor(Old)) in splitBlockBefore()
946 Loop *L = LI->getLoopFor(OldBB); in UpdateAnalysisInformation()
962 if (Loop *PL = LI->getLoopFor(Pred)) in UpdateAnalysisInformation()
1115 L = LI->getLoopFor(BB); in SplitBlockPredecessorsImpl()
1165 Loop *IL = LI->getLoopFor(OldLatch); in SplitBlockPredecessorsImpl()
[all …]
H A DLoopUnroll.cpp126 if (LI->getLoopFor(BB) == L) in needToInsertPhisForLCSSA()
131 Loop *DefLoop = LI->getLoopFor(Def->getParent()); in needToInsertPhisForLCSSA()
151 const Loop *OldLoop = LI->getLoopFor(OriginalBB); in addClonedBlockToLoopInfo()
542 assert((*BB != Header || LI->getLoopFor(*BB) == L) && in UnrollLoop()
820 Loop *LatchLoop = LI->getLoopFor(Latches.back()); in UnrollLoop()
/llvm-project-15.0.7/polly/lib/Analysis/
H A DScopDetection.cpp461 Loop *L = LI.getLoopFor(BB); in addOverApproximatedRegion()
553 Loop *L = LI.getLoopFor(&BB); in isValidSwitch()
619 Loop *L = LI.getLoopFor(&BB); in isValidBranch()
769 Loop *L = LI.getLoopFor(II.getParent()); in isValidIntrinsicInst()
1002 auto *Scope = LI.getLoopFor(Insn->getParent()); in computeAccessFunctions()
1125 auto *Scope = LI.getLoopFor(Inst->getParent()); in isValidAccess()
1205 Loop *L = LI.getLoopFor(Inst->getParent()); in isValidMemoryAccess()
1386 auto L = LI.getLoopFor(R->getEntry()); in countBeneficialLoops()
1538 if (R.contains(LI.getLoopFor(BB))) in regionWithoutLoops()
1619 Loop *L = LI.getLoopFor(BB); in allBlocksValid()
[all …]
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DScalarEvolutionExpanderTest.cpp190 LI->getLoopFor(L), SCEV::FlagNUW); in TEST_F()
272 EXPECT_TRUE(LI->getLoopFor(L)->isLCSSAForm(*DT)); in TEST_F()
274 EXPECT_TRUE(LI->getLoopFor(L)->isLCSSAForm(*DT)); in TEST_F()
512 auto *Loop = LI.getLoopFor(I.getParent()); in TEST_F()
559 auto *Loop = LI.getLoopFor(LoopHeaderBB); in TEST_F()
643 auto *Loop = LI.getLoopFor(LoopHeaderBB); in TEST_F()
756 auto *Loop = LI.getLoopFor(I.getParent()); in TEST_F()
799 auto *Loop = LI.getLoopFor(LoopHeaderBB); in TEST_F()
856 auto *Loop = LI.getLoopFor(LoopHeaderBB); in TEST_F()
/llvm-project-15.0.7/polly/lib/Support/
H A DScopHelper.cpp437 Loop *L = LI.getLoopFor(S.getEntry()); in getLoopSurroundingScop()
473 Loop *L = LI.getLoopFor(BB); in getRegionNodeLoop()
494 L = LI.getLoopFor(BB->getPrevNode()); in getRegionNodeLoop()
499 Loop *L = LI.getLoopFor(NonAffineSubRegion->getEntry()); in getRegionNodeLoop()
519 Loop *L = LI.getLoopFor(LInst->getParent()); in isHoistableLoad()
638 Loop *L = LI.getLoopFor(BB); in getFirstNonBoxedLoopFor()
/llvm-project-15.0.7/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()

123456