| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | LoopInfoTest.cpp | 85 Loop *L = LI.getLoopFor(Header); in TEST() 135 Loop *L = LI.getLoopFor(Header); in TEST() 194 Loop &L_0 = *LI.getLoopFor(&*I++); in TEST() 196 Loop &L_0_0 = *LI.getLoopFor(&*I++); in TEST() 198 Loop &L_0_1 = *LI.getLoopFor(&*I++); in TEST() 200 Loop &L_0_2 = *LI.getLoopFor(&*I++); in TEST() 202 Loop &L_1 = *LI.getLoopFor(&*I++); in TEST() 204 Loop &L_1_0 = *LI.getLoopFor(&*I++); in TEST() 206 Loop &L_1_1 = *LI.getLoopFor(&*I++); in TEST() 208 Loop &L_1_2 = *LI.getLoopFor(&*I++); in TEST() [all …]
|
| H A D | IVDescriptorsTest.cpp | 79 Loop *L = LI.getLoopFor(Header); in TEST() 130 Loop *L = LI.getLoopFor(Header); in TEST() 196 Loop *L = LI.getLoopFor(Header); in TEST()
|
| H A D | LoopNestTest.cpp | 90 Loop *L = LI.getLoopFor(Header); in TEST() 186 Loop *L = LI.getLoopFor(Header); in TEST() 272 Loop *L = LI.getLoopFor(Header); in TEST()
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/Vectorize/ |
| H A D | VPlanSlpTest.cpp | 98 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F() 179 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F() 242 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F() 306 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F() 454 getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan)); in TEST_F() 526 getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan)); in TEST_F() 596 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F() 674 getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan)); in TEST_F() 724 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F() 787 auto VPIAI = getInterleavedAccessInfo(*F, LI->getLoopFor(LoopHeader), *Plan); in TEST_F() [all …]
|
| H A D | VPlanTestBase.h | 68 VPlanHCFGBuilder HCFGBuilder(LI->getLoopFor(LoopHeader), LI.get(), *Plan); in buildHCFG() 78 VPlanHCFGBuilder HCFGBuilder(LI->getLoopFor(LoopHeader), LI.get(), *Plan); in buildPlainCFG()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineLoopInfo.h | 126 inline MachineLoop *getLoopFor(const MachineBasicBlock *BB) const { in getLoopFor() function 127 return LI.getLoopFor(BB); in getLoopFor() 132 return LI.getLoopFor(BB);
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopSimplifyCFG.cpp | 95 Loop *BBL = LI.getLoopFor(BB); in getInnermostLoopFor() 238 bool TakeFoldCandidate = TheOnlySucc && LI.getLoopFor(BB) == &L; in analyze() 276 return !TheOnlySucc || TheOnlySucc == To || LI.getLoopFor(From) != &L; in analyze() 385 if (Loop *OuterLoop = LI.getLoopFor(Preheader)) { in handleDeadExits() 448 assert(LI.getLoopFor(BB) != &L && "Attempt to remove current loop!"); in deleteDeadLoopBlocks() 449 Loop *DL = LI.getLoopFor(BB); in deleteDeadLoopBlocks() 481 assert(LI.getLoopFor(BB) == &L && "Should be a loop block!"); in foldTerminators() 673 if (!Pred || !Pred->getSingleSuccessor() || LI.getLoopFor(Pred) != &L) in mergeBlocksIntoPredecessors()
|
| H A D | SimpleLoopUnswitch.cpp | 362 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent() 422 Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop() 740 Loop *ExitL = LI.getLoopFor(DefaultExitBB); in unswitchTrivialSwitch() 1286 if (LI.getLoopFor(BB) == &OrigL) in cloneLoopNest() 1446 if (LI.getLoopFor(BB) == &OrigL) { in buildClonedLoops() 1561 assert(LI.getLoopFor(BB) == OuterL && in buildClonedLoops() 1755 if (Loop *InnerL = LI.getLoopFor(BB)) in recomputeLoopBlockSet() 1911 Loop &ExitL = *LI.getLoopFor(ExitBB); in rebuildLoopAfterUnswitch() 1956 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch() 1970 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch() [all …]
|
| H A D | Sink.cpp | 91 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget() 92 Loop *cur = LI.getLoopFor(Inst->getParent()); in IsAcceptableTarget()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | LoopInfo.h | 989 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); } in getLoopFor() function 992 const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); } 997 const LoopT *L = getLoopFor(BB); in getLoopDepth() 1003 const LoopT *L = getLoopFor(BB); in isLoopHeader() 1149 Loop *ToLoop = getLoopFor(I->getParent()); in replacementPreservesLCSSAForm() 1155 return ToLoop->contains(getLoopFor(From->getParent())); in replacementPreservesLCSSAForm() 1175 auto *OldLoop = getLoopFor(OldBB); in movementPreservesLCSSAForm() 1176 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm() 1199 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm() 1221 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ShrinkWrap.cpp | 408 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints() 419 if (Restore && (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints() 430 MLI->getLoopFor(Restore)->getExitingBlocks(ExitBlocks); in updateSaveRestorePoints()
|
| H A D | MachineTraceMetrics.cpp | 169 MachineTraceMetrics::Ensemble::getLoopFor(const MachineBasicBlock *MBB) const { in getLoopFor() function in MachineTraceMetrics::Ensemble 170 return MTM.Loops->getLoopFor(MBB); in getLoopFor() 329 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTracePred() 357 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTraceSucc() 365 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc() 460 if (const MachineLoop *FromLoop = LB.Loops->getLoopFor(*From)) { in insertEdge() 465 if (isExitingLoop(FromLoop, LB.Loops->getLoopFor(To))) in insertEdge() 597 const MachineLoop *Loop = getLoopFor(MBB); in verify() 605 const MachineLoop *Loop = getLoopFor(MBB); in verify() 606 const MachineLoop *SuccLoop = getLoopFor(TBI.Succ); in verify() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblySortRegion.cpp | 18 const auto *ML = MLI.getLoopFor(MBB); in getRegionFor() 47 return getBottom(MLI.getLoopFor(R->getHeader())); in getBottom()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | SyncDependenceAnalysis.cpp | 165 auto *NestedLoop = LI.getLoopFor(NextBB); in computeStackPO() 352 const auto *DivBlockLoop = LI.getLoopFor(&DivTermBlock); in computeJoinPoints() 373 const auto *BlockLoop = LI.getLoopFor(SuccBlock); in computeJoinPoints() 394 auto *BlockLoop = LI.getLoopFor(Block); in computeJoinPoints()
|
| H A D | DivergenceAnalysis.cpp | 117 for (const auto *Loop = LI.getLoopFor(Inst->getParent()); in isTemporalDivergent() 251 const Loop *ExitLevelLoop = LI.getLoopFor(&DivExit); in propagateLoopExitDivergence() 297 const auto *BranchLoop = LI.getLoopFor(Term.getParent()); in analyzeControlDivergence()
|
| H A D | LoopInfo.cpp | 471 return isBlockInLCSSAForm(*LI.getLoopFor(BB), *BB, DT, IgnoreTokens); in isRecursivelyLCSSAForm() 716 Loop *L = LI->getLoopFor(POI); in updateBlockParents() 745 Loop *L = LI->getLoopFor(*POI); in updateBlockParents() 762 Loop *OuterParent = LI->getLoopFor(BB); in removeBlocksFromAncestors() 824 Loop *L = LI->getLoopFor(*I); in getNearestLoop() 882 if (getLoopFor(BB) != Unloop) in erase() 939 const Loop *L = getLoopFor(I->getParent()); in wouldBeOutOfLoopUseRequiringLCSSA()
|
| H A D | MustExecute.cpp | 417 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter() 430 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter() 508 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findForwardJoinPoint() 613 const Loop *L = LI->getLoopFor(ToBB); in findForwardJoinPoint() 650 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findBackwardJoinPoint()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | LCSSA.cpp | 100 Loop *L = LI.getLoopFor(InstBB); in formLCSSAForInstructions() 197 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions() 254 if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent())) in formLCSSAForInstructions() 368 if (LI->getLoopFor(BB) != &L) in formLCSSA()
|
| H A D | BreakCriticalEdges.cpp | 134 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge() 148 if (LI->getLoopFor(P) != TIL) { in SplitKnownCriticalEdge() 258 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge() 261 if (Loop *DestLoop = LI->getLoopFor(DestBB)) { in SplitKnownCriticalEdge()
|
| H A D | BasicBlockUtils.cpp | 604 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge() 618 if (LI->getLoopFor(P) != BBLoop) { in ehAwareSplitEdge() 687 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge() 690 if (Loop *SuccLoop = LI->getLoopFor(Succ)) { in ehAwareSplitEdge() 803 if (Loop *L = LI->getLoopFor(Old)) in SplitBlockImpl() 868 if (Loop *L = LI->getLoopFor(Old)) in splitBlockBefore() 946 Loop *L = LI->getLoopFor(OldBB); in UpdateAnalysisInformation() 962 if (Loop *PL = LI->getLoopFor(Pred)) in UpdateAnalysisInformation() 1115 L = LI->getLoopFor(BB); in SplitBlockPredecessorsImpl() 1165 Loop *IL = LI->getLoopFor(OldLatch); in SplitBlockPredecessorsImpl() [all …]
|
| H A D | LoopUnroll.cpp | 126 if (LI->getLoopFor(BB) == L) in needToInsertPhisForLCSSA() 131 Loop *DefLoop = LI->getLoopFor(Def->getParent()); in needToInsertPhisForLCSSA() 151 const Loop *OldLoop = LI->getLoopFor(OriginalBB); in addClonedBlockToLoopInfo() 542 assert((*BB != Header || LI->getLoopFor(*BB) == L) && in UnrollLoop() 820 Loop *LatchLoop = LI->getLoopFor(Latches.back()); in UnrollLoop()
|
| /llvm-project-15.0.7/polly/lib/Analysis/ |
| H A D | ScopDetection.cpp | 461 Loop *L = LI.getLoopFor(BB); in addOverApproximatedRegion() 553 Loop *L = LI.getLoopFor(&BB); in isValidSwitch() 619 Loop *L = LI.getLoopFor(&BB); in isValidBranch() 769 Loop *L = LI.getLoopFor(II.getParent()); in isValidIntrinsicInst() 1002 auto *Scope = LI.getLoopFor(Insn->getParent()); in computeAccessFunctions() 1125 auto *Scope = LI.getLoopFor(Inst->getParent()); in isValidAccess() 1205 Loop *L = LI.getLoopFor(Inst->getParent()); in isValidMemoryAccess() 1386 auto L = LI.getLoopFor(R->getEntry()); in countBeneficialLoops() 1538 if (R.contains(LI.getLoopFor(BB))) in regionWithoutLoops() 1619 Loop *L = LI.getLoopFor(BB); in allBlocksValid() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/Utils/ |
| H A D | ScalarEvolutionExpanderTest.cpp | 190 LI->getLoopFor(L), SCEV::FlagNUW); in TEST_F() 272 EXPECT_TRUE(LI->getLoopFor(L)->isLCSSAForm(*DT)); in TEST_F() 274 EXPECT_TRUE(LI->getLoopFor(L)->isLCSSAForm(*DT)); in TEST_F() 512 auto *Loop = LI.getLoopFor(I.getParent()); in TEST_F() 559 auto *Loop = LI.getLoopFor(LoopHeaderBB); in TEST_F() 643 auto *Loop = LI.getLoopFor(LoopHeaderBB); in TEST_F() 756 auto *Loop = LI.getLoopFor(I.getParent()); in TEST_F() 799 auto *Loop = LI.getLoopFor(LoopHeaderBB); in TEST_F() 856 auto *Loop = LI.getLoopFor(LoopHeaderBB); in TEST_F()
|
| /llvm-project-15.0.7/polly/lib/Support/ |
| H A D | ScopHelper.cpp | 437 Loop *L = LI.getLoopFor(S.getEntry()); in getLoopSurroundingScop() 473 Loop *L = LI.getLoopFor(BB); in getRegionNodeLoop() 494 L = LI.getLoopFor(BB->getPrevNode()); in getRegionNodeLoop() 499 Loop *L = LI.getLoopFor(NonAffineSubRegion->getEntry()); in getRegionNodeLoop() 519 Loop *L = LI.getLoopFor(LInst->getParent()); in isHoistableLoad() 638 Loop *L = LI.getLoopFor(BB); in getFirstNonBoxedLoopFor()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZMachineScheduler.cpp | 89 LLVM_DEBUG(const MachineLoop *Loop = MLI->getLoopFor(MBB); in enterMBB() 96 getSingleSchedPred(MBB, MLI->getLoopFor(MBB)); in enterMBB()
|