Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DFixIrreducible.cpp118 static void reconnectChildLoops(LoopInfo &LI, Loop *ParentLoop, Loop *NewLoop, in INITIALIZE_PASS_DEPENDENCY()
121 auto &CandidateLoops = ParentLoop ? ParentLoop->getSubLoopsVector() in INITIALIZE_PASS_DEPENDENCY()
168 Loop *ParentLoop, in createNaturalLoopInternal() argument
206 if (ParentLoop) { in createNaturalLoopInternal()
207 ParentLoop->addChildLoop(NewLoop); in createNaturalLoopInternal()
225 if (LI.getLoopFor(BB) == ParentLoop) { in createNaturalLoopInternal()
236 reconnectChildLoops(LI, ParentLoop, NewLoop, Blocks, Headers); in createNaturalLoopInternal()
239 if (ParentLoop) { in createNaturalLoopInternal()
240 ParentLoop->verifyLoop(); in createNaturalLoopInternal()
H A DUnifyLoopExits.cpp198 if (auto ParentLoop = L->getParentLoop()) { in unifyLoopExits() local
200 ParentLoop->addBasicBlockToLoop(G, LI); in unifyLoopExits()
202 ParentLoop->verifyLoop(); in unifyLoopExits()
H A DLoopPeel.cpp589 Loop *ParentLoop = L->getParentLoop(); in cloneLoopBlocks() local
600 if (ParentLoop && LI->getLoopFor(*BB) == L) in cloneLoopBlocks()
601 ParentLoop->addBasicBlockToLoop(NewBB, *LI); in cloneLoopBlocks()
629 cloneLoop(ChildLoop, ParentLoop, VMap, LI, nullptr); in cloneLoopBlocks()
904 if (Loop *ParentLoop = L->getParentLoop()) in peelLoop() local
905 L = ParentLoop; in peelLoop()
H A DCloneFunction.cpp913 Loop *ParentLoop = OrigLoop->getParentLoop(); in cloneLoopWithPreheader() local
918 if (ParentLoop) in cloneLoopWithPreheader()
919 ParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader()
931 if (ParentLoop) in cloneLoopWithPreheader()
932 ParentLoop->addBasicBlockToLoop(NewPH, *LI); in cloneLoopWithPreheader()
H A DLoopUnrollRuntime.cpp326 Loop *ParentLoop = L->getParentLoop(); in CloneLoopBlocks() local
328 NewLoops[ParentLoop] = ParentLoop; in CloneLoopBlocks()
H A DLoopUtils.cpp675 if (Loop *ParentLoop = L->getParentLoop()) { in deleteDeadLoop() local
676 Loop::iterator I = find(*ParentLoop, L); in deleteDeadLoop()
677 assert(I != ParentLoop->end() && "Couldn't find loop"); in deleteDeadLoop()
678 ParentLoop->removeChildLoop(I); in deleteDeadLoop()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DLoopInfo.h74 LoopT *ParentLoop; variable
100 CurLoop = CurLoop->ParentLoop) in getLoopDepth()
119 while (L->ParentLoop) in getOutermostLoop()
120 L = L->ParentLoop; in getOutermostLoop()
126 while (L->ParentLoop) in getOutermostLoop()
127 L = L->ParentLoop; in getOutermostLoop()
134 ParentLoop = L; in setParentLoop()
426 Child->ParentLoop = nullptr; in removeChildLoop()
531 ParentLoop = nullptr; in ~LoopBase()
1041 assert(!NewLoop->ParentLoop && !OldLoop->ParentLoop && in changeTopLevelLoop()
[all …]
H A DLoopInfoImpl.h274 assert(OldChild->ParentLoop == this && "This loop is already broken!"); in replaceChildLoopWith()
275 assert(!NewChild->ParentLoop && "NewChild already has a parent!"); in replaceChildLoopWith()
279 OldChild->ParentLoop = nullptr; in replaceChildLoopWith()
280 NewChild->ParentLoop = static_cast<LoopT *>(this); in replaceChildLoopWith()
361 if (ParentLoop) { in verifyLoop()
362 assert(is_contained(*ParentLoop, this) && in verifyLoop()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoopInfo.cpp918 Loop *ParentLoop = Unloop->getParentLoop(); in erase() local
919 for (Loop::iterator I = ParentLoop->begin();; ++I) { in erase()
920 assert(I != ParentLoop->end() && "Couldn't find loop"); in erase()
922 ParentLoop->removeChildLoop(I); in erase()
H A DLoopCacheAnalysis.cpp66 Loop *ParentLoop = LastLoop->getParentLoop(); in getInnerMostLoop() local
68 if (ParentLoop == nullptr) { in getInnerMostLoop()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp479 Loop *ParentLoop = LI.getLoopFor(BB); in promoteCounterLoadStores() local
480 if (!ParentLoop) in promoteCounterLoadStores()
482 LoopPromotionCandidates[ParentLoop].emplace_back(CounterLoad, CounterStore); in promoteCounterLoadStores()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlan.cpp514 Loop *ParentLoop = State->LI->getLoopFor(VectorPH); in execute() local
518 if (ParentLoop) in execute()
519 ParentLoop->addChildLoop(State->CurrentVectorLoop); in execute()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp1973 MachineLoop *ParentLoop = L->getParentLoop(); in createPreheaderForLoop() local
1974 if (ParentLoop) in createPreheaderForLoop()
1975 ParentLoop->addBasicBlockToLoop(NewPH, MLI->getBase()); in createPreheaderForLoop()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp1370 Loop *ParentLoop = OriginalLoop.getParentLoop(); in addToParentLoopIfNeeded() local
1371 if (!ParentLoop) in addToParentLoopIfNeeded()
1375 ParentLoop->addBasicBlockToLoop(BB, LI); in addToParentLoopIfNeeded()