Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFixIrreducible.cpp132 static void reconnectChildLoops(LoopInfo &LI, Loop *ParentLoop, Loop *NewLoop, in INITIALIZE_PASS_DEPENDENCY()
134 auto &CandidateLoops = ParentLoop ? ParentLoop->getSubLoopsVector() in INITIALIZE_PASS_DEPENDENCY()
180 Loop *ParentLoop = LI.getLoopFor(CycleHeader); in updateLoopInfo() local
181 if (ParentLoop && ParentLoop->getHeader() == CycleHeader) in updateLoopInfo()
182 ParentLoop = ParentLoop->getParentLoop(); in updateLoopInfo()
186 if (ParentLoop) { in updateLoopInfo()
187 ParentLoop->addChildLoop(NewLoop); in updateLoopInfo()
204 if (LI.getLoopFor(BB) == ParentLoop) { in updateLoopInfo()
215 reconnectChildLoops(LI, ParentLoop, NewLoop, C.getHeader()); in updateLoopInfo()
219 if (ParentLoop) { in updateLoopInfo()
[all …]
H A DUnifyLoopExits.cpp190 if (auto ParentLoop = L->getParentLoop()) { in unifyLoopExits() local
192 ParentLoop->addBasicBlockToLoop(G, LI); in unifyLoopExits()
194 ParentLoop->verifyLoop(); in unifyLoopExits()
H A DLoopPeel.cpp849 Loop *ParentLoop = L->getParentLoop(); in cloneLoopBlocks() local
860 if (ParentLoop && LI->getLoopFor(*BB) == L) in cloneLoopBlocks()
861 ParentLoop->addBasicBlockToLoop(NewBB, *LI); in cloneLoopBlocks()
889 cloneLoop(ChildLoop, ParentLoop, VMap, LI, nullptr); in cloneLoopBlocks()
1298 if (Loop *ParentLoop = L->getParentLoop()) in peelLoop() local
1299 L = ParentLoop; in peelLoop()
H A DCloneFunction.cpp1041 Loop *ParentLoop = OrigLoop->getParentLoop(); in cloneLoopWithPreheader() local
1046 if (ParentLoop) in cloneLoopWithPreheader()
1047 ParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader()
1059 if (ParentLoop) in cloneLoopWithPreheader()
1060 ParentLoop->addBasicBlockToLoop(NewPH, *LI); in cloneLoopWithPreheader()
H A DLoopUnrollRuntime.cpp351 Loop *ParentLoop = L->getParentLoop(); in CloneLoopBlocks() local
353 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.cpp698 if (Loop *ParentLoop = L->getParentLoop()) { in deleteDeadLoop() local
699 Loop::iterator I = find(*ParentLoop, L); in deleteDeadLoop()
700 assert(I != ParentLoop->end() && "Couldn't find loop"); in deleteDeadLoop()
701 ParentLoop->removeChildLoop(I); in deleteDeadLoop()
/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()
393 assert(!NewChild->ParentLoop && "NewChild already has a parent!"); in addChildLoop()
[all …]
H A DGenericLoopInfoImpl.h315 assert(OldChild->ParentLoop == this && "This loop is already broken!"); in replaceChildLoopWith()
316 assert(!NewChild->ParentLoop && "NewChild already has a parent!"); in replaceChildLoopWith()
320 OldChild->ParentLoop = nullptr; in replaceChildLoopWith()
321 NewChild->ParentLoop = static_cast<LoopT *>(this); in replaceChildLoopWith()
393 if (ParentLoop) { in verifyLoop()
394 assert(is_contained(ParentLoop->getSubLoops(), this) && in verifyLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPassManager.cpp105 while (auto *ParentLoop = OuterMostLoop->getParentLoop()) in runWithLoopNestPasses() local
106 OuterMostLoop = ParentLoop; in runWithLoopNestPasses()
/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/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp1231 if (auto ParentLoop = CurLoop->getParentLoop()) { in expandFindFirstByte() local
1232 ParentLoop->addBasicBlockToLoop(BB0, *LI); in expandFindFirstByte()
1233 ParentLoop->addChildLoop(OuterLoop); in expandFindFirstByte()
1234 ParentLoop->addBasicBlockToLoop(BB3, *LI); in expandFindFirstByte()
H A DVPlan.cpp445 Loop *ParentLoop = State.CurrentParentLoop; in connectToPredecessors() local
452 ParentLoop = State.LI->getLoopFor( in connectToPredecessors()
456 if (ParentLoop && !State.LI->getLoopFor(NewBB)) in connectToPredecessors()
457 ParentLoop->addBasicBlockToLoop(NewBB, *State.LI); in connectToPredecessors()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600MachineCFGStructurizer.cpp1027 MachineLoop *ParentLoop = LoopRep->getParentLoop(); in mergeLoop() local
1028 if (ParentLoop) in mergeLoop()
1029 MLI->changeLoopFor(LoopHeader, ParentLoop); in mergeLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp2009 MachineLoop *ParentLoop = L->getParentLoop(); in createPreheaderForLoop() local
2010 if (ParentLoop) in createPreheaderForLoop()
2011 ParentLoop->addBasicBlockToLoop(NewPH, *MLI); in createPreheaderForLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp896 Loop *ParentLoop = LI.getLoopFor(BB); in promoteCounterLoadStores() local
897 if (!ParentLoop) in promoteCounterLoadStores()
899 LoopPromotionCandidates[ParentLoop].emplace_back(CounterLoad, CounterStore); in promoteCounterLoadStores()