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

References

include/llvm/Analysis/ScalarEvolutionExpressions.h
  317                               getLoop(), FlagAnyWrap);
  732                       : SE.getAddRecExpr(Operands, Expr->getLoop(),
  838       const Loop *L = Expr->getLoop();
lib/Analysis/DependenceAnalysis.cpp
  889   const SCEV *UB = SE->getBackedgeTakenCount(AddRec->getLoop());
  899   Loops.set(mapSrcLoop(AddRec->getLoop()));
  914   const SCEV *UB = SE->getBackedgeTakenCount(AddRec->getLoop());
  924   Loops.set(mapDstLoop(AddRec->getLoop()));
 1029       const SCEV *BECount = SE->getBackedgeTakenCount(AddRec->getLoop());
 2165     const Loop *CurLoop = SrcAddRec->getLoop();
 2166     assert(CurLoop == DstAddRec->getLoop() &&
 2187     const Loop *CurLoop = SrcAddRec->getLoop();
 2197     const Loop *CurLoop = DstAddRec->getLoop();
 2240     SrcLoop = SrcAddRec->getLoop();
 2243     DstLoop = DstAddRec->getLoop();
 2250       SrcLoop = tmpAddRec->getLoop();
 2253       DstLoop = SrcAddRec->getLoop();
 2263       DstLoop = tmpAddRec->getLoop();
 2266       SrcLoop = DstAddRec->getLoop();
 2433     const Loop *CurLoop = AddRec->getLoop();
 2441       if (CurLoop == AddRec->getLoop())
 2458       if (CurLoop == AddRec->getLoop())
 2924     const Loop *L = AddRec->getLoop();
 3000   if (AddRec->getLoop() == TargetLoop)
 3016   if (AddRec->getLoop() == TargetLoop)
 3020                            AddRec->getLoop(),
 3039   if (AddRec->getLoop() == TargetLoop) {
 3045                              AddRec->getLoop(),
 3052       AddRec->getStepRecurrence(*SE), AddRec->getLoop(),
lib/Analysis/IVDescriptors.cpp
  920   const Loop *L = AR->getLoop();
 1047   if (AR->getLoop() != TheLoop) {
 1056       Phi->getIncomingValueForBlock(AR->getLoop()->getLoopPreheader());
 1058   BasicBlock *Latch = AR->getLoop()->getLoopLatch();
lib/Analysis/IVUsers.cpp
   65     if (AR->getLoop() == L)
  256         auto *L = AR->getLoop();
  396     if (AR->getLoop() == L)
lib/Analysis/Loads.cpp
  219   if (!AddRec || AddRec->getLoop() != L || !AddRec->isAffine())
lib/Analysis/LoopAccessAnalysis.cpp
  983         return OpAR->getLoop() == L && OpAR->getNoWrapFlags(SCEV::FlagNSW);
 1017   if (Lp != AR->getLoop()) {
lib/Analysis/LoopCacheAnalysis.cpp
   80   assert(AR->getLoop() && "AR should have a loop");
  409   return (AR != nullptr) ? AR->getLoop() != &L
  419   assert(AR->getLoop() && "AR should have a loop");
lib/Analysis/LoopUnrollAnalyzer.cpp
   38   if (!AR || AR->getLoop() != L)
lib/Analysis/ScalarEvolution.cpp
  277     AR->getLoop()->getHeader()->printAsOperand(OS, /*PrintType=*/false);
  702     const Loop *LLoop = LA->getLoop(), *RLoop = RA->getLoop();
  702     const Loop *LLoop = LA->getLoop(), *RLoop = RA->getLoop();
  983     Quotient = SE.getAddRecExpr(StartQ, StepQ, Numerator->getLoop(),
  985     Remainder = SE.getAddRecExpr(StartR, StepR, Numerator->getLoop(),
 1329     return getAddRecExpr(Operands, AddRec->getLoop(), SCEV::FlagAnyWrap);
 1442   const Loop *L = AR->getLoop();
 1692       const Loop *L = AR->getLoop();
 2036       const Loop *L = AR->getLoop();
 2233     return getAddRecExpr(Ops, AR->getLoop(), SCEV::FlagNW);
 2698     const Loop *AddRecLoop = AddRec->getLoop();
 2745            cast<SCEVAddRecExpr>(Ops[OtherIdx])->getLoop()->getHeader(),
 2746            AddRec->getLoop()->getHeader()) &&
 2748       if (AddRecLoop == cast<SCEVAddRecExpr>(Ops[OtherIdx])->getLoop()) {
 2755           if (OtherAddRec->getLoop() == AddRecLoop) {
 2990           return getAddRecExpr(Operands, AddRec->getLoop(),
 3036     const Loop *AddRecLoop = AddRec->getLoop();
 3094       if (!OtherAddRec || OtherAddRec->getLoop() != AddRecLoop)
 3222                             AR->getLoop(), SCEV::FlagAnyWrap)) {
 3226             return getAddRecExpr(Operands, AR->getLoop(), SCEV::FlagNW);
 3236                             AR->getLoop(), SCEV::FlagAnyWrap)) {
 3241                                   AR->getLoop(), SCEV::FlagNW);
 3398     if (StepChrec->getLoop() == L) {
 3438     const Loop *NestedLoop = NestedAR->getLoop();
 4258     if (Expr->getLoop() == L)
 4299     if (Expr->getLoop() == L)
 4415     if (Expr->getLoop() == L && Expr->isAffine())
 5076            cast<SCEVAddRecExpr>(Accum)->getLoop() == L)) {
 5196         const auto *ARLoop = cast<SCEVAddRecExpr>(S)->getLoop();
 5677       const SCEV *MaxBECount = getConstantMaxBackedgeTakenCount(AddRec->getLoop());
 6024           if (!isLoopInvariant(OtherOp, AddRec->getLoop())) {
 6031           isGuaranteedToExecuteForEveryIteration(I, AddRec->getLoop()))
 7400       if (AddRec->getLoop() == L) {
 8323         getAddRecExpr(NewOps, AddRec->getLoop(),
 8336     if (!AddRec->getLoop()->contains(L)) {
 8339       const SCEV *BackedgeTakenCount = getBackedgeTakenCount(AddRec->getLoop());
 8727   if (!AddRec || AddRec->getLoop() != L)
 8811       loopHasNoAbnormalExits(AddRec->getLoop())) {
 8930     const Loop *L = AR->getLoop();
 9190   const Loop *L = LHS->getLoop();
 9286   if (!ArLHS || ArLHS->getLoop() != L)
 9881     if (LAR->getLoop() != MAR->getLoop())
 9881     if (LAR->getLoop() != MAR->getLoop())
 9945   const Loop *L = AddRecFoundLHS->getLoop();
 9946   if (L != AddRecLHS->getLoop())
10078   } else if (RAR && RAR->getLoop()->getHeader() == LBB) {
10086     auto *RLoop = RAR->getLoop();
10159   if (LAR->getLoop() != RAR->getLoop())
10159   if (LAR->getLoop() != RAR->getLoop())
10599   if (!IV || IV->getLoop() != L || !IV->isAffine())
10739   if (!IV || IV->getLoop() != L || !IV->isAffine())
10806       const SCEV *Shifted = SE.getAddRecExpr(Operands, getLoop(),
10888   return cast<SCEVAddRecExpr>(SE.getAddRecExpr(Ops, getLoop(),
11675     if (AR->getLoop() == L)
11683     if (DT.dominates(L->getHeader(), AR->getLoop()->getHeader()))
11685     assert(!L->contains(AR->getLoop()) && "Containing loop's header does not"
11689     if (AR->getLoop()->contains(L))
11784     if (!DT.dominates(AR->getLoop()->getHeader(), BB))
11900         LoopsUsed.insert(AR->getLoop());
12133     if (AR && AR->getLoop() == L && AR->isAffine()) {
12149     if (AR && AR->getLoop() == L && AR->isAffine()) {
12200         if (L != AR->getLoop())
lib/Analysis/ScalarEvolutionExpander.cpp
  304     S = SE.getAddRecExpr(Start, Step, A->getLoop(),
  357                                          A->getLoop(),
  636       L = AR->getLoop();
  882                                           A->getLoop(),
 1340   const Loop *L = S->getLoop();
 1359                        Normalized->getLoop(),
 1378                              Start, Step, Normalized->getLoop(),
 1500   const Loop *L = S->getLoop();
 1516     Value *V = expand(SE.getAddRecExpr(NewOps, S->getLoop(),
 2245       SE.getPredicatedBackedgeTakenCount(AR->getLoop(), Pred);
 2412       if (!AR->isAffine() && !SE.dominates(Step, AR->getLoop()->getHeader())) {
lib/Analysis/ScalarEvolutionNormalization.cpp
   54     return SE.getAddRecExpr(Operands, AR->getLoop(), SCEV::FlagAnyWrap);
   93   return SE.getAddRecExpr(Operands, AR->getLoop(), SCEV::FlagAnyWrap);
  100     return Loops.count(AR->getLoop());
  114     return Loops.count(AR->getLoop());
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 1930   if (!StoreEv || StoreEv->getLoop() != CurLoop || !StoreEv->isAffine())
 1952   if (!LoadEv || LoadEv->getLoop() != CurLoop || !LoadEv->isAffine())
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  271       if (!LARSCEV || LARSCEV->getLoop() != L)
  336   assert(BasePtrSCEV->getLoop() == L && "AddRec for the wrong loop?");
  583       if (!LARSCEV || LARSCEV->getLoop() != L)
lib/Transforms/Scalar/IndVarSimplify.cpp
  655             if (AddRec->getLoop() == L)
 1296   if (!AddRec || AddRec->getLoop() != L)
 1337   if (!AddRec || AddRec->getLoop() != L)
 1454   if (!AddRecOp1 || AddRecOp1->getLoop() != L)
 1741   if (!AddRec || AddRec->getLoop() != L)
 2228   if (!AR || AR->getLoop() != L || !AR->isAffine())
 3083       if (!AR || AR->getLoop()->getLoopPreheader())
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  363       IndexAddRec && (IndexAddRec->getLoop() == L) && IndexAddRec->isAffine();
 1663     const Loop *L = IndVar->getLoop();
lib/Transforms/Scalar/LoopFuse.cpp
  847       const Loop *ExprL = Expr->getLoop();
  910       return !DT.dominates(L0Header, AddRec->getLoop()->getHeader()) &&
  911              !DT.dominates(AddRec->getLoop()->getHeader(), L0Header);
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  502   if (!StoreEv || StoreEv->getLoop() != CurLoop || !StoreEv->isAffine())
  561     if (!LoadEv || LoadEv->getLoop() != CurLoop || !LoadEv->isAffine())
  822   if (!Ev || Ev->getLoop() != CurLoop || !Ev->isAffine())
 2055       ScevForSrcA->getLoop() != CurLoop || ScevForSrcB->getLoop() != CurLoop ||
 2055       ScevForSrcA->getLoop() != CurLoop || ScevForSrcB->getLoop() != CurLoop ||
lib/Transforms/Scalar/LoopInterchange.cpp
 1049           if (AR->getLoop() == InnerLoop) {
 1063           if (AR->getLoop() == OuterLoop) {
lib/Transforms/Scalar/LoopPredication.cpp
  383   if (!AR || AR->getLoop() != L)
lib/Transforms/Scalar/LoopRerollPass.cpp
  584       if (PHISCEV->getLoop() != L)
  917   if (!IVU_ADR || IVU_ADR->getLoop() != L)
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  413                                       AR->getLoop(), SCEV::FlagAnyWrap),
  476   if (SAR && SAR->getLoop() == &L)
  485                (cast<SCEVAddRecExpr>(S)->getLoop() == &L);
  514   if (!SAR || SAR->getLoop() != &L) {
  518                               (cast<SCEVAddRecExpr>(S)->getLoop() == &L);
  701       return SE.getAddRecExpr(Start, Step, AR->getLoop(), SCEV::FlagAnyWrap);
  761       S = SE.getAddRecExpr(NewOps, AR->getLoop(),
  787       S = SE.getAddRecExpr(NewOps, AR->getLoop(),
  884   for (PHINode &PN : AR->getLoop()->getHeader()->phis()) {
 1242     if (AR->getLoop() != L) {
 1249       if (!AR->getLoop()->contains(L)) {
 2307   assert(AR->getLoop() == L &&
 2667         if (AR->getLoop() == L)
 2727         if (AR->getLoop() == L)
 3511     if (Remainder && (AR->getLoop() == L || !isa<SCEVAddRecExpr>(Remainder))) {
 3520                               AR->getLoop(),
 3994       if (AR && (AR->getLoop() == L || LU.AllFixupsOutsideLoop)) {
 4009                                (AR->getLoop() != L && LU.AllFixupsOutsideLoop)))
lib/Transforms/Utils/LoopUnrollPeel.cpp
  222     if (!LeftAR->isAffine() || LeftAR->getLoop() != &L ||
lib/Transforms/Utils/SimplifyIndVar.cpp
  834   if (AR && AR->getLoop() == L)
tools/polly/lib/Analysis/ScopInfo.cpp
 1406                                     E->getLoop(), SCEV::FlagAnyWrap);
 1437       FoundInside |= S->getRegion().contains(AddRec->getLoop());
tools/polly/lib/Support/SCEVAffinator.cpp
  172     if (AddRec->getLoop() != L)
  394     assert(S->contains(Expr->getLoop()) &&
  401     unsigned loopDimension = S->getRelativeLoopDepth(Expr->getLoop());
  418                        Expr->getStepRecurrence(SE), Expr->getLoop(), Flags);
tools/polly/lib/Support/SCEVValidator.cpp
  242     auto *L = Expr->getLoop();
  273         Expr->getStepRecurrence(SE), Expr->getLoop(), Expr->getNoWrapFlags());
  542       auto *L = AddRec->getLoop();
  565       Loops.insert(AddRec->getLoop());
  725           SE.getAddRecExpr(StartExpr, StepPair.second, AddRec->getLoop(),
tools/polly/lib/Support/ScopHelper.cpp
  389     return SE.getAddRecExpr(NewOps, E->getLoop(), E->getNoWrapFlags());
unittests/Analysis/ScalarEvolutionTest.cpp
  539     Loops.insert(S0->getLoop());
  546     Loops.insert(S1->getLoop());