Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DFixIrreducible.cpp117 static void reconnectChildLoops(LoopInfo &LI, Loop *ParentLoop, Loop *NewLoop, in INITIALIZE_PASS_DEPENDENCY()
120 auto &CandidateLoops = ParentLoop ? ParentLoop->getSubLoopsVector() in INITIALIZE_PASS_DEPENDENCY()
159 Loop *ParentLoop, in createNaturalLoopInternal() argument
197 if (ParentLoop) { in createNaturalLoopInternal()
198 ParentLoop->addChildLoop(NewLoop); in createNaturalLoopInternal()
216 if (LI.getLoopFor(BB) == ParentLoop) { in createNaturalLoopInternal()
227 reconnectChildLoops(LI, ParentLoop, NewLoop, Blocks, Headers); in createNaturalLoopInternal()
230 if (ParentLoop) { in createNaturalLoopInternal()
231 ParentLoop->verifyLoop(); in createNaturalLoopInternal()
H A DUnifyLoopExits.cpp196 if (auto ParentLoop = L->getParentLoop()) { in unifyLoopExits() local
198 ParentLoop->addBasicBlockToLoop(G, LI); in unifyLoopExits()
200 ParentLoop->verifyLoop(); in unifyLoopExits()
H A DLoopPeel.cpp518 Loop *ParentLoop = L->getParentLoop(); in cloneLoopBlocks() local
529 if (ParentLoop && LI->getLoopFor(*BB) == L) in cloneLoopBlocks()
530 ParentLoop->addBasicBlockToLoop(NewBB, *LI); in cloneLoopBlocks()
558 cloneLoop(ChildLoop, ParentLoop, VMap, LI, nullptr); in cloneLoopBlocks()
845 if (Loop *ParentLoop = L->getParentLoop()) in peelLoop() local
846 L = ParentLoop; in peelLoop()
H A DLoopUnrollRuntime.cpp315 Loop *ParentLoop = L->getParentLoop(); in CloneLoopBlocks() local
317 NewLoops[ParentLoop] = ParentLoop; in CloneLoopBlocks()
319 NewLoops[L] = ParentLoop; in CloneLoopBlocks()
330 if (CreateRemainderLoop || LI->getLoopFor(*BB) != L || ParentLoop) in CloneLoopBlocks()
H A DCloneFunction.cpp804 Loop *ParentLoop = OrigLoop->getParentLoop(); in cloneLoopWithPreheader() local
809 if (ParentLoop) in cloneLoopWithPreheader()
810 ParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader()
822 if (ParentLoop) in cloneLoopWithPreheader()
823 ParentLoop->addBasicBlockToLoop(NewPH, *LI); in cloneLoopWithPreheader()
H A DLoopUtils.cpp746 if (Loop *ParentLoop = L->getParentLoop()) { in deleteDeadLoop() local
747 Loop::iterator I = find(*ParentLoop, L); in deleteDeadLoop()
748 assert(I != ParentLoop->end() && "Couldn't find loop"); in deleteDeadLoop()
749 ParentLoop->removeChildLoop(I); in deleteDeadLoop()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DLoopInfo.h74 LoopT *ParentLoop; variable
99 for (const LoopT *CurLoop = ParentLoop; CurLoop; in getLoopDepth()
100 CurLoop = CurLoop->ParentLoop) in getLoopDepth()
113 LoopT *getParentLoop() const { return ParentLoop; } in getParentLoop()
118 ParentLoop = L; in setParentLoop()
397 assert(!NewChild->ParentLoop && "NewChild already has a parent!"); in addChildLoop()
398 NewChild->ParentLoop = static_cast<LoopT *>(this); in addChildLoop()
408 assert(Child->ParentLoop == this && "Child is not a child of this loop!"); in removeChildLoop()
410 Child->ParentLoop = nullptr; in removeChildLoop()
489 LoopBase() : ParentLoop(nullptr) {} in LoopBase()
[all …]
H A DLoopInfoImpl.h275 assert(OldChild->ParentLoop == this && "This loop is already broken!"); in replaceChildLoopWith()
276 assert(!NewChild->ParentLoop && "NewChild already has a parent!"); in replaceChildLoopWith()
280 OldChild->ParentLoop = nullptr; in replaceChildLoopWith()
281 NewChild->ParentLoop = static_cast<LoopT *>(this); in replaceChildLoopWith()
363 if (ParentLoop) { in verifyLoop()
364 assert(is_contained(*ParentLoop, this) && in verifyLoop()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DLoopInfo.cpp924 Loop *ParentLoop = Unloop->getParentLoop(); in erase() local
925 for (Loop::iterator I = ParentLoop->begin();; ++I) { in erase()
926 assert(I != ParentLoop->end() && "Couldn't find loop"); in erase()
928 ParentLoop->removeChildLoop(I); in erase()
H A DLoopCacheAnalysis.cpp65 Loop *ParentLoop = LastLoop->getParentLoop(); in getInnerMostLoop() local
67 if (ParentLoop == nullptr) { in getInnerMostLoop()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp502 Loop *ParentLoop = LI.getLoopFor(BB); in promoteCounterLoadStores() local
503 if (!ParentLoop) in promoteCounterLoadStores()
505 LoopPromotionCandidates[ParentLoop].emplace_back(CounterLoad, CounterStore); in promoteCounterLoadStores()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopUnswitch.cpp1396 Loop *ParentLoop = L->getParentLoop(); in unswitchNontrivialCondition() local
1397 if (ParentLoop) { in unswitchNontrivialCondition()
1400 ParentLoop->addBasicBlockToLoop(NewBlocks[0], *LI); in unswitchNontrivialCondition()
H A DInductiveRangeCheckElimination.cpp1372 Loop *ParentLoop = OriginalLoop.getParentLoop(); in addToParentLoopIfNeeded() local
1373 if (!ParentLoop) in addToParentLoopIfNeeded()
1377 ParentLoop->addBasicBlockToLoop(BB, LI); in addToParentLoopIfNeeded()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDILCFGStructurizer.cpp1046 MachineLoop *ParentLoop = LoopRep->getParentLoop(); in mergeLoop() local
1047 if (ParentLoop) in mergeLoop()
1048 MLI->changeLoopFor(LoopHeader, ParentLoop); in mergeLoop()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp1990 MachineLoop *ParentLoop = L->getParentLoop(); in createPreheaderForLoop() local
1991 if (ParentLoop) in createPreheaderForLoop()
1992 ParentLoop->addBasicBlockToLoop(NewPH, MLI->getBase()); in createPreheaderForLoop()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp3468 Loop *ParentLoop = OrigLoop->getParentLoop(); in createVectorLoopSkeleton() local
3472 if (ParentLoop) { in createVectorLoopSkeleton()
3473 ParentLoop->addChildLoop(Lp); in createVectorLoopSkeleton()