reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/LoopInfo.h
  132     return contains(Inst->getParent());
  210     assert(contains(BB) && "Exiting block must be part of the loop");
  212       if (!contains(Succ))
  224     assert(contains(BB) && "block does not belong to the loop");
  239       if (contains(Pred))
  318       if (contains(Pred))
include/llvm/Analysis/LoopInfoImpl.h
   39       if (!contains(Succ)) {
   67       if (!contains(Succ))
   92       if (!contains(Predecessor))
  109       if (!L->contains(Successor))
  146       if (!contains(Succ))
  196     if (!contains(Pred)) { // If the block is not in the loop...
  214     if (contains(Pred)) {
  302                        [&](BlockT *B) { return contains(B); }) &&
  307                        [&](BlockT *B) { return contains(B); }) &&
  314                     if (!contains(B))
  351       assert(contains(*BI) &&
  695     assert(L->contains(BB) && "orphaned block");
  697       assert(!ChildLoop->contains(BB) &&
include/llvm/Analysis/LoopIterator.h
   67       return N.second != L->getHeader() && L->contains(N.second);
lib/Analysis/BranchProbabilityInfo.cpp
  533       if (!L->contains(B))
  600       else if (!L->contains(*I))
lib/Analysis/CodeMetrics.cpp
   84     if (!L->contains(I->getParent()))
lib/Analysis/DivergenceAnalysis.cpp
  144        Loop != RegionLoop && !Loop->contains(&ObservingBlock);
  184   return (!RegionLoop && BB.getParent() == &F) || RegionLoop->contains(&BB);
  212     assert(!DivLoop->contains(UserBlock) &&
  235         if (DivLoop->contains(OpInst->getParent())) {
  290   if (BranchLoop && !BranchLoop->contains(&JoinBlock)) {
lib/Analysis/IVDescriptors.cpp
  344       if (!TheLoop->contains(Parent)) {
  842   if (TheLoop->contains(Phi->getIncomingBlock(0))) {
  846     assert(TheLoop->contains(Phi->getIncomingBlock(1)) &&
lib/Analysis/LoopAccessAnalysis.cpp
 2080   assert(TheLoop->contains(BB) && "Unknown block used");
lib/Analysis/LoopInfo.cpp
  135   if (contains(Incoming)) {
  136     if (contains(Backedge))
  139   } else if (!contains(Backedge))
  440       if (UserBB != &BB && !L.contains(UserBB) &&
lib/Analysis/MustExecute.cpp
  121   assert(CurLoop->contains(CondExitBlock) && "meaning of exit block");
  161   assert(CurLoop->contains(BB) && "Should only be called for loop blocks!");
  171     assert(CurLoop->contains(Pred) && "Should only reach loop blocks!");
  190   assert(CurLoop->contains(BB) && "Should only be called for loop blocks!");
  235         if (CurLoop->contains(Succ) ||
  274   assert(CurLoop->contains(BB) && "Should only be called for loop blocks!");
  295   assert(CurLoop->contains(BB) && "Should only be called for loop blocks!");
lib/Analysis/ScalarEvolution.cpp
 4700     if (L->contains(PN->getIncomingBlock(i))) {
 5014     if (L->contains(PN->getIncomingBlock(i))) {
 7132   assert(L->contains(ExitingBlock) && "Exit count for non-loop block?");
 7143     bool ExitIfTrue = !L->contains(BI->getSuccessor(0));
 7144     assert(ExitIfTrue == L->contains(BI->getSuccessor(1)) &&
 7156       if (!L->contains(SBB)) {
 7459   assert(!L->contains(ExitingBlock) && "Not an exiting block!");
 7465   assert(L->contains(Switch->getDefaultDest()) &&
 8168               if (!LI->contains(PN->getIncomingBlock(i))) {
 8185             unsigned InLoopPred = LI->contains(PN->getIncomingBlock(0)) ? 0 : 1;
lib/Analysis/ScalarEvolutionExpander.cpp
 1305     if (!L->contains(Pred)) {
 1580       if (L->contains(HP)) {
lib/Analysis/SyncDependenceAnalysis.cpp
  185     if (ParentLoop && !ParentLoop->contains(&SuccBlock)) {
  230       if (ParentLoop && !ParentLoop->contains(SuccBlock)) {
lib/Analysis/TargetTransformInfo.cpp
   98       if (!L->contains(Pred))
lib/CodeGen/HardwareLoops.cpp
  404   if (!L->contains(ExitBranch->getSuccessor(0)))
  449   if (!L->contains(ExitBranch->getSuccessor(0)))
lib/CodeGen/MachineBlockPlacement.cpp
 2442       if (!L.contains(LoopPred))
lib/CodeGen/MachineLICM.cpp
  694     if (!CurLoop->contains(BB))
 1100     if (!CurLoop->contains(UseMI.getParent()))
lib/CodeGen/MachineLoopInfo.cpp
   59     while (contains(PriorMBB)) {
   74     while (contains(NextMBB)) {
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  109                return SubLoop->contains(BB); }))
  122           if ((L->contains(Succ0) && L->isLoopExiting(Succ0)) ||
  123               (L->contains(Succ1) && L->isLoopExiting(Succ1)))
lib/Target/AMDGPU/AMDILCFGStructurizer.cpp
 1056     if (LoopRep->contains(LB))
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  280     else if (L->contains(Pred) && DT->dominates(Pred, BB))
lib/Target/ARM/ARMLowOverheadLoops.cpp
  252       if (!ML->contains(MBB)) {
lib/Target/Hexagon/HexagonHardwareLoops.cpp
  580   if (L->contains(Incoming)) {
  581     if (L->contains(Backedge))
  584   } else if (!L->contains(Backedge))
 1229     if (L->contains(TB))
 1231     else if (L->contains(FB))
 1290     if (!L->contains(BranchTarget)) {
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  541       bool TrueIsExit = !L->contains(BI->getSuccessor(0));
lib/Target/SystemZ/SystemZMachineScheduler.cpp
   50       if (Loop->contains(*I))
   54   assert ((PredMBB == nullptr || !Loop || Loop->contains(PredMBB))
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
   66     return Region->contains(MBB);
  253           if (L->contains(Pred))
  297         if (SuccL->getHeader() == Succ && SuccL->contains(MBB))
lib/Transforms/Scalar/GuardWidening.cpp
  835     return BB == RootBB || L.contains(BB);
  896       return BB == RootBB || L->contains(BB);
lib/Transforms/Scalar/IndVarSimplify.cpp
  308   unsigned IncomingEdge = L->contains(PN->getIncomingBlock(0));
  355   if (!L->contains(TheBr->getParent()) ||
  356       (L->contains(TheBr->getSuccessor(0)) &&
  357        L->contains(TheBr->getSuccessor(1))))
 1872        L->contains(DTB->getBlock());
 2481   if (L->contains(BI->getSuccessor(0)))
 2617       if (UseBB == Preheader || L->contains(UseBB)) {
 2739     bool ExitIfTrue = !L->contains(*succ_begin(ExitingBB));
 2857     BI->getSuccessor(L->contains(BI->getSuccessor(0)) ? 1 : 0);
 2945       NewCond = L->contains(BI->getSuccessor(0)) ?
 2957       auto Pred = L->contains(BI->getSuccessor(0)) ?
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
 1012   assert(!L.contains(LatchExit) && "expected an exit block!");
 1167       if (OriginalLoop.contains(SBB))
lib/Transforms/Scalar/LICM.cpp
  601     if (!CurLoop->contains(TrueDest) || !CurLoop->contains(FalseDest) ||
  601     if (!CurLoop->contains(TrueDest) || !CurLoop->contains(FalseDest) ||
 1243                   CurLoop->contains(MD->getBlock()))
 1273              !CurLoop->contains(Source->getBlock());
 1539     assert(CurLoop->contains(PredBB) &&
 1752         if (!L->contains(BB)) {
 2298            CurLoop->contains(Source->getBlock());
 2334   assert(CurLoop->contains(BB) && "Only valid if BB is IN the loop");
lib/Transforms/Scalar/LoopDistribute.cpp
  174         if (I && OrigLoop->contains(I->getParent()) && Set.insert(I).second)
lib/Transforms/Scalar/LoopFuse.cpp
 1025             if (FC0.L->contains(Def->getParent())) {
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 2000              return CurLoop->contains(PredecessorBB);
 2329     assert(CurLoop->contains(OldBB) && "Only for loop's basic blocks.");
 2346     assert(CurLoop->contains(OldLoopBB) && !CurLoop->contains(SuccessorBB) &&
 2346     assert(CurLoop->contains(OldLoopBB) && !CurLoop->contains(SuccessorBB) &&
lib/Transforms/Scalar/LoopInterchange.cpp
 1266           if (!InnerLoop->contains(UserI->getParent()) ||
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
   85   assert((!LastLoop || LastLoop->contains(FirstLoop->getHeader())) &&
   87   assert(FirstLoop->contains(BB) && "Must be a loop block!");
  100     while (BBL && !BBL->contains(L.getHeader()))
  198         if (L.contains(Succ) && !LI.isLoopHeader(Succ) && RPO[BB] > RPO[Succ])
  249           if (L.contains(Succ))
  493           bool PreserveLCSSAPhi = !L.contains(Succ);
  504       bool PreserveLCSSAPhi = !L.contains(TheOnlySucc);
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 1475           L->contains(PN->getIncomingBlock(i)))
 5343             if (L->contains(BB) && !L->contains(PN))
lib/Transforms/Scalar/LoopUnrollPass.cpp
  591         if (L->contains(KnownSucc))
  600         if (L->contains(Succ))
lib/Transforms/Scalar/LoopUnswitch.cpp
  562   while (currentLoop->contains(DomBB)) {
  841   if (!L->contains(BB)) {
 1025   assert(!L->contains(ExitBlock) && "Exit block is in the loop?");
 1083     if (!currentLoop->contains(CurrentBB) || !Visited.insert(CurrentBB).second)
lib/Transforms/Scalar/PlaceSafepoints.cpp
  316     assert(L->contains(Pred));
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  310                      return BB == &Preheader || L.contains(BB);
  377   if (L.contains(LoopExitBB)) {
  381     if (L.contains(LoopExitBB))
  587     if (!L.contains(SuccBB) &&
  594   if (!L.contains(SI.getDefaultDest()) &&
  941   } while (L.contains(CurrentBB) && Visited.insert(CurrentBB).second);
 1582     assert(L.contains(Pred) && "Found a predecessor of the loop header other "
 1617         assert(L.contains(InnerPH) && "Cannot contain an inner loop block "
 1649       if (L.contains(Pred) && LoopBlockSet.insert(Pred).second)
 1709         return BB == PH || L.contains(BB);
 2465          return L.contains(SuccBB);
 2488           return !SkipExitingSuccessors || L.contains(SuccBB);
lib/Transforms/Utils/BasicBlockUtils.cpp
  479         if (!PL->contains(OldBB))
  486     if (L->contains(Pred))
  506         while (PredLoop && !PredLoop->contains(OldBB))
  510         if (PredLoop && PredLoop->contains(OldBB) &&
lib/Transforms/Utils/BreakCriticalEdges.cpp
  274       if (!TIL->contains(DestBB)) {
  275         assert(!TIL->contains(NewBB) &&
lib/Transforms/Utils/LCSSA.cpp
  110       if (InstBB != UserBB && !L->contains(UserBB))
  158         if (!L->contains(Pred))
  224       if (InstBB == UserBB || L->contains(UserBB))
  312     if (!L.contains(IDomBB))
lib/Transforms/Utils/LoopRotationUtils.cpp
  179   if (L->contains(HeaderExit))
  283   if (L->contains(Exit))
  286   assert(L->contains(NewHeader) && !L->contains(Exit) &&
  286   assert(L->contains(NewHeader) && !L->contains(Exit) &&
  469       if (!PredLoop || PredLoop->contains(Exit) ||
lib/Transforms/Utils/LoopSimplify.cpp
  104     if (++BBI != NewBB->getParent()->end() && L->contains(&*BBI)) {
  132     if (!L->contains(P)) {         // Coming in from outside the loop?
  198           L->contains(PN->getIncomingBlock(i)))
  245         !L->contains(PN->getIncomingBlock(i))) {
  493       if (!L->contains(P))
  529                                             !L->contains(BI->getSuccessor(0))));
  616         if (L->contains(SuccBB))
lib/Transforms/Utils/LoopUnroll.cpp
  319            !L->contains(BI->getSuccessor(S2));
  332            L->contains(HeaderBI->getSuccessor(S1)) &&
  333            !L->contains(HeaderBI->getSuccessor(S2));
  534     ContinueOnTrue = L->contains(BI->getSuccessor(0));
  538     ContinueOnTrue = L->contains(HeaderBI->getSuccessor(0));
  558     if (Term->isUnconditional() || L->contains(Term->getSuccessor(0))) {
  559       assert(L->contains(Term->getSuccessor(0)));
  562       assert(L->contains(Term->getSuccessor(1)));
  639         if (L->contains(Succ))
  834         if (!L->contains(ChildBB))
lib/Transforms/Utils/LoopUnrollAndJam.cpp
   60     if (!SubLoop->contains(BB)) {
  253   bool ContinueOnTrue = L->contains(BI->getSuccessor(0));
  255   bool SubLoopContinueOnTrue = SubLoop->contains(
  545     if (Term && Term->isUnconditional() && L->contains(Term->getSuccessor(0))) {
  793             if (SubLoop->contains(I->getParent()))
lib/Transforms/Utils/LoopUnrollPeel.cpp
  619       assert(L->contains(BB) && "IDom is not in a loop");
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  139       if (PrologLoop->contains(PredBB))
  251     if (!L->contains(Succ))
  580   if (L->contains(LatchExit)) {
lib/Transforms/Utils/LoopUtils.cpp
   68       if (L->contains(PredBB)) {
  106       if (L->contains(SuccBB))
  130             return !L->contains(Use->getParent());
  493     if (CurLoop->contains(BB))
  618           if (L->contains(Usr->getParent()))
lib/Transforms/Utils/LoopVersioning.cpp
  144         if (!VersionedLoop->contains(cast<Instruction>(U)->getParent()))
lib/Transforms/Utils/SimplifyIndVar.cpp
  546     assert(L->contains(ICI->getParent()) && "LCSSA form broken?");
lib/Transforms/Vectorize/LoopVectorize.cpp
 6673   assert(OrigLoop->contains(BB) && "Block is not a part of a loop");
tools/polly/lib/CodeGen/BlockGenerators.cpp
 1597       if (L->contains(PredBB))
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  345     return S.contains(L) || L->contains(S.getEntry());
tools/polly/lib/Support/ScopHelper.cpp
  474       AllContained &= L->contains(BB);
unittests/Transforms/Vectorize/VPlanLoopInfoTest.cpp
   65   EXPECT_FALSE(VPLp->contains(PH));
   67   EXPECT_TRUE(VPLp->contains(H));
   69   EXPECT_TRUE(VPLp->contains(IfThen));
   71   EXPECT_TRUE(VPLp->contains(IfElse));
   73   EXPECT_TRUE(VPLp->contains(Latch));
   75   EXPECT_FALSE(VPLp->contains(Exit));