Home
last modified time | relevance | path

Searched refs:ParentLoop (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DGenericLoopInfo.h60 LoopT *ParentLoop; variable
85 for (const LoopT *CurLoop = ParentLoop; CurLoop; in getLoopDepth()
86 CurLoop = CurLoop->ParentLoop) in getLoopDepth()
99 LoopT *getParentLoop() const { return ParentLoop; } in getParentLoop()
105 while (L->ParentLoop) in getOutermostLoop()
106 L = L->ParentLoop; in getOutermostLoop()
112 while (L->ParentLoop) in getOutermostLoop()
113 L = L->ParentLoop; in getOutermostLoop()
120 ParentLoop = L; in setParentLoop()
389 assert(!NewChild->ParentLoop
690 isNotAlreadyContainedIn(const LoopT * SubLoop,const LoopT * ParentLoop) isNotAlreadyContainedIn() argument
[all...]
H A DGenericLoopInfoImpl.h304 assert(OldChild->ParentLoop == this && "This loop is already broken!"); in replaceChildLoopWith()
305 assert(!NewChild->ParentLoop && "NewChild already has a parent!"); in replaceChildLoopWith()
309 OldChild->ParentLoop = nullptr; in replaceChildLoopWith()
310 NewChild->ParentLoop = static_cast<LoopT *>(this); in replaceChildLoopWith()
382 if (ParentLoop) { in verifyLoop()
383 assert(is_contained(ParentLoop->getSubLoops(), this) && in verifyLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFixIrreducible.cpp115 static void reconnectChildLoops(LoopInfo &LI, Loop *ParentLoop, Loop *NewLoop, in INITIALIZE_PASS_DEPENDENCY()
118 auto &CandidateLoops = ParentLoop ? ParentLoop->getSubLoopsVector() in INITIALIZE_PASS_DEPENDENCY()
165 Loop *ParentLoop,
203 if (ParentLoop) { in createNaturalLoopInternal()
204 ParentLoop->addChildLoop(NewLoop); in createNaturalLoopInternal()
222 if (LI.getLoopFor(BB) == ParentLoop) { in createNaturalLoopInternal()
233 reconnectChildLoops(LI, ParentLoop, NewLoop, Blocks, Headers); in createNaturalLoopInternal()
236 if (ParentLoop) { in createNaturalLoopInternal()
237 ParentLoop in createNaturalLoopInternal()
168 createNaturalLoopInternal(LoopInfo & LI,DominatorTree & DT,Loop * ParentLoop,SetVector<BasicBlock * > & Blocks,SetVector<BasicBlock * > & Headers) createNaturalLoopInternal() argument
[all...]
H A DUnifyLoopExits.cpp202 if (auto ParentLoop = L->getParentLoop()) { in unifyLoopExits() local
204 ParentLoop->addBasicBlockToLoop(G, LI); in unifyLoopExits()
206 ParentLoop->verifyLoop(); in unifyLoopExits()
H A DLoopPeel.cpp764 Loop *ParentLoop = L->getParentLoop(); in cloneLoopBlocks() local
775 if (ParentLoop && LI->getLoopFor(*BB) == L) in cloneLoopBlocks()
776 ParentLoop->addBasicBlockToLoop(NewBB, *LI); in cloneLoopBlocks()
804 cloneLoop(ChildLoop, ParentLoop, VMap, LI, nullptr); in cloneLoopBlocks()
1085 if (Loop *ParentLoop = L->getParentLoop()) in peelLoop() local
1086 L = ParentLoop; in peelLoop()
H A DCloneFunction.cpp984 Loop *ParentLoop = OrigLoop->getParentLoop(); in cloneLoopWithPreheader() local
989 if (ParentLoop) in cloneLoopWithPreheader()
990 ParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader()
1002 if (ParentLoop) in cloneLoopWithPreheader()
1003 ParentLoop->addBasicBlockToLoop(NewPH, *LI); in cloneLoopWithPreheader()
H A DLoopUnrollRuntime.cpp352 Loop *ParentLoop = L->getParentLoop(); in CloneLoopBlocks() local
354 NewLoops[ParentLoop] = ParentLoop; in CloneLoopBlocks()
H A DLoopConstrainer.cpp696 Loop *ParentLoop = OriginalLoop.getParentLoop(); in addToParentLoopIfNeeded() local
697 if (!ParentLoop) in addToParentLoopIfNeeded()
701 ParentLoop->addBasicBlockToLoop(BB, LI); in addToParentLoopIfNeeded()
H A DLoopUtils.cpp711 if (Loop *ParentLoop = L->getParentLoop()) { in deleteDeadLoop() local
712 Loop::iterator I = find(*ParentLoop, L); in deleteDeadLoop()
713 assert(I != ParentLoop->end() && "Couldn't find loop"); in deleteDeadLoop()
714 ParentLoop->removeChildLoop(I); in deleteDeadLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPassManager.cpp106 while (auto *ParentLoop = OuterMostLoop->getParentLoop()) in runWithLoopNestPasses() local
107 OuterMostLoop = ParentLoop; in runWithLoopNestPasses()
H A DInductiveRangeCheckElimination.cpp1515 Loop *ParentLoop = OriginalLoop.getParentLoop(); addToParentLoopIfNeeded() local
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopInfo.cpp933 Loop *ParentLoop = Unloop->getParentLoop(); in erase() local
934 for (Loop::iterator I = ParentLoop->begin();; ++I) { in erase()
935 assert(I != ParentLoop->end() && "Couldn't find loop"); in erase()
937 ParentLoop->removeChildLoop(I); in erase()
H A DLoopCacheAnalysis.cpp66 Loop *ParentLoop = LastLoop->getParentLoop(); in getInnerMostLoop() local
68 if (ParentLoop == nullptr) { in getInnerMostLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600MachineCFGStructurizer.cpp1038 MachineLoop *ParentLoop = LoopRep->getParentLoop(); in mergeLoop() local
1039 if (ParentLoop) in mergeLoop()
1040 MLI->changeLoopFor(LoopHeader, ParentLoop); in mergeLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp1972 MachineLoop *ParentLoop = L->getParentLoop(); in createPreheaderForLoop() local
1973 if (ParentLoop) in createPreheaderForLoop()
1974 ParentLoop->addBasicBlockToLoop(NewPH, *MLI); in createPreheaderForLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.cpp738 Loop *ParentLoop = State->LI->getLoopFor(VectorPH); in execute() local
742 if (ParentLoop) in execute()
743 ParentLoop->addChildLoop(State->CurrentVectorLoop); in execute()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp885 Loop *ParentLoop = LI.getLoopFor(BB); in promoteCounterLoadStores() local
886 if (!ParentLoop) in promoteCounterLoadStores()
888 LoopPromotionCandidates[ParentLoop].emplace_back(CounterLoad, CounterStore); in promoteCounterLoadStores()