Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/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.cpp205 if (auto ParentLoop = L->getParentLoop()) { in unifyLoopExits() local
207 ParentLoop->addBasicBlockToLoop(G, LI); in unifyLoopExits()
209 ParentLoop->verifyLoop(); in unifyLoopExits()
H A DLoopPeel.cpp703 Loop *ParentLoop = L->getParentLoop(); in cloneLoopBlocks() local
714 if (ParentLoop && LI->getLoopFor(*BB) == L) in cloneLoopBlocks()
715 ParentLoop->addBasicBlockToLoop(NewBB, *LI); in cloneLoopBlocks()
743 cloneLoop(ChildLoop, ParentLoop, VMap, LI, nullptr); in cloneLoopBlocks()
1023 if (Loop *ParentLoop = L->getParentLoop()) in peelLoop() local
1024 L = ParentLoop; in peelLoop()
H A DCloneFunction.cpp960 Loop *ParentLoop = OrigLoop->getParentLoop(); in cloneLoopWithPreheader() local
965 if (ParentLoop) in cloneLoopWithPreheader()
966 ParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader()
978 if (ParentLoop) in cloneLoopWithPreheader()
979 ParentLoop->addBasicBlockToLoop(NewPH, *LI); in cloneLoopWithPreheader()
H A DLoopUnrollRuntime.cpp327 Loop *ParentLoop = L->getParentLoop(); in CloneLoopBlocks() local
329 NewLoops[ParentLoop] = ParentLoop; in CloneLoopBlocks()
H A DLoopUtils.cpp673 if (Loop *ParentLoop = L->getParentLoop()) { in deleteDeadLoop() local
674 Loop::iterator I = find(*ParentLoop, L); in deleteDeadLoop()
675 assert(I != ParentLoop->end() && "Couldn't find loop"); in deleteDeadLoop()
676 ParentLoop->removeChildLoop(I); in deleteDeadLoop()
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/
H A DLoopInfo.h75 LoopT *ParentLoop; variable
101 CurLoop = CurLoop->ParentLoop) in getLoopDepth()
120 while (L->ParentLoop) in getOutermostLoop()
121 L = L->ParentLoop; in getOutermostLoop()
127 while (L->ParentLoop) in getOutermostLoop()
128 L = L->ParentLoop; in getOutermostLoop()
135 ParentLoop = L; in setParentLoop()
427 Child->ParentLoop = nullptr; in removeChildLoop()
532 ParentLoop = nullptr; in ~LoopBase()
1044 assert(!NewLoop->ParentLoop && !OldLoop->ParentLoop && in changeTopLevelLoop()
[all …]
H A DLoopInfoImpl.h291 assert(OldChild->ParentLoop == this && "This loop is already broken!"); in replaceChildLoopWith()
292 assert(!NewChild->ParentLoop && "NewChild already has a parent!"); in replaceChildLoopWith()
296 OldChild->ParentLoop = nullptr; in replaceChildLoopWith()
297 NewChild->ParentLoop = static_cast<LoopT *>(this); in replaceChildLoopWith()
373 if (ParentLoop) { in verifyLoop()
374 assert(is_contained(*ParentLoop, this) && in verifyLoop()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLoopPassManager.cpp106 while (auto *ParentLoop = OuterMostLoop->getParentLoop()) in runWithLoopNestPasses() local
107 OuterMostLoop = ParentLoop; in runWithLoopNestPasses()
H A DInductiveRangeCheckElimination.cpp1374 Loop *ParentLoop = OriginalLoop.getParentLoop(); in addToParentLoopIfNeeded() local
1375 if (!ParentLoop) in addToParentLoopIfNeeded()
1379 ParentLoop->addBasicBlockToLoop(BB, LI); in addToParentLoopIfNeeded()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DLoopInfo.cpp922 Loop *ParentLoop = Unloop->getParentLoop(); in erase() local
923 for (Loop::iterator I = ParentLoop->begin();; ++I) { in erase()
924 assert(I != ParentLoop->end() && "Couldn't find loop"); in erase()
926 ParentLoop->removeChildLoop(I); in erase()
H A DLoopCacheAnalysis.cpp66 Loop *ParentLoop = LastLoop->getParentLoop(); in getInnerMostLoop() local
68 if (ParentLoop == nullptr) { in getInnerMostLoop()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlan.cpp522 Loop *ParentLoop = State->LI->getLoopFor(VectorPH); in execute() local
526 if (ParentLoop) in execute()
527 ParentLoop->addChildLoop(State->CurrentVectorLoop); in execute()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp1976 MachineLoop *ParentLoop = L->getParentLoop(); in createPreheaderForLoop() local
1977 if (ParentLoop) in createPreheaderForLoop()
1978 ParentLoop->addBasicBlockToLoop(NewPH, MLI->getBase()); in createPreheaderForLoop()