Lines Matching refs:Unloop

678   Loop &Unloop;  member in __anon90567d990511::UnloopUpdater
694 UnloopUpdater(Loop *UL, LoopInfo *LInfo) : Unloop(*UL), LI(LInfo), DFS(UL) {} in UnloopUpdater()
710 if (Unloop.getNumBlocks()) { in updateBlockParents()
721 assert((NL != &Unloop && (!NL || NL->contains(&Unloop))) && in updateBlockParents()
727 assert((FoundIB || Unloop.contains(L)) && "uninitialized successor"); in updateBlockParents()
735 assert(NIters < Unloop.getNumBlocks() && "runaway iterative algorithm"); in updateBlockParents()
748 assert(NL != &Unloop && (!NL || NL->contains(&Unloop)) && in updateBlockParents()
761 for (BasicBlock *BB : Unloop.blocks()) { in removeBlocksFromAncestors()
763 if (Unloop.contains(OuterParent)) { in removeBlocksFromAncestors()
764 while (OuterParent->getParentLoop() != &Unloop) in removeBlocksFromAncestors()
770 for (Loop *OldParent = Unloop.getParentLoop(); OldParent != OuterParent; in removeBlocksFromAncestors()
780 while (!Unloop.isInnermost()) { in updateSubloopParents()
781 Loop *Subloop = *std::prev(Unloop.end()); in updateSubloopParents()
782 Unloop.removeChildLoop(std::prev(Unloop.end())); in updateSubloopParents()
804 if (NearLoop != &Unloop && Unloop.contains(NearLoop)) { in getNearestLoop()
807 while (Subloop->getParentLoop() != &Unloop) { in getNearestLoop()
812 NearLoop = SubloopParents.insert({Subloop, &Unloop}).first->second; in getNearestLoop()
825 if (L == &Unloop) { in getNearestLoop()
831 if (L != &Unloop && Unloop.contains(L)) { in getNearestLoop()
837 assert(L->getParentLoop() == &Unloop && "cannot skip into nested loops"); in getNearestLoop()
843 if (L == &Unloop) { in getNearestLoop()
847 if (L && !L->contains(&Unloop)) { in getNearestLoop()
851 if (NearLoop == &Unloop || !NearLoop || NearLoop->contains(L)) in getNearestLoop()
872 void LoopInfo::erase(Loop *Unloop) { in erase() argument
873 assert(!Unloop->isInvalid() && "Loop has already been erased!"); in erase()
875 auto InvalidateOnExit = make_scope_exit([&]() { destroy(Unloop); }); in erase()
878 if (Unloop->isOutermost()) { in erase()
880 for (BasicBlock *BB : Unloop->blocks()) { in erase()
882 if (getLoopFor(BB) != Unloop) in erase()
893 if (*I == Unloop) { in erase()
900 while (!Unloop->isInnermost()) in erase()
901 addTopLevelLoop(Unloop->removeChildLoop(std::prev(Unloop->end()))); in erase()
908 UnloopUpdater Updater(Unloop, this); in erase()
918 Loop *ParentLoop = Unloop->getParentLoop(); in erase()
921 if (*I == Unloop) { in erase()