/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | LoopNestAnalysis.h | 80 Loop &getOutermostLoop() const { return *Loops.front(); } in getOutermostLoop() 86 if (Loops.size() == 1) in getInnermostLoop() 87 return Loops.back(); in getInnermostLoop() 89 // The loops in the 'Loops' vector have been collected in breadth first in getInnermostLoop() 92 Loop *LastLoop = Loops.back(); in getInnermostLoop() 93 auto SecondLastLoopIter = ++Loops.rbegin(); in getInnermostLoop() 101 assert(Index < Loops.size() && "Index is out of bounds"); in getLoop() 102 return Loops[Index]; in getLoop() 114 size_t getNumLoops() const { return Loops.size(); } in getNumLoops() 117 ArrayRef<Loop *> getLoops() const { return Loops; } in getLoops() 184 LoopVectorTy Loops; // the loops in the nest (in breadth first order). global() variable [all...] |
H A D | DependenceAnalysis.h | 370 SmallBitVector Loops; member 563 SmallBitVector &Loops) const; 569 SmallBitVector &Loops); 575 SmallBitVector &Loops); 615 SmallBitVector &Loops); 661 const SmallBitVector &Loops, 801 const SmallBitVector &Loops, 838 const SmallBitVector &Loops, 888 SmallBitVector &Loops, 974 SmallBitVector &Loops, boo [all...] |
H A D | ScalarEvolutionNormalization.h | 55 const SCEV *normalizeForPostIncUse(const SCEV *S, const PostIncLoopSet &Loops, 66 const SCEV *denormalizeForPostIncUse(const SCEV *S, const PostIncLoopSet &Loops,
|
H A D | LoopCacheAnalysis.h | 197 /// Construct a CacheCost object for the loop nest described by \p Loops. 201 CacheCost(const LoopVectorTy &Loops, const LoopInfo &LI, ScalarEvolution &SE, 262 /// Loops in the loop nest associated with this object. 263 LoopVectorTy Loops;
|
H A D | BlockFrequencyInfoImpl.h | 432 std::list<LoopData> Loops; variable 1199 Loops.emplace_back(Parent, Header); 1200 Working[Header.Index].Loop = &Loops.back(); 1204 Q.emplace_back(L, &Loops.back()); 1237 for (auto L = Loops.rbegin(), E = Loops.rend(); L != E; ++L) { 1346 computeIrreducibleMass(nullptr, Loops.begin()); 1360 for (auto L = Loops.rbegin(), E = Loops.rend(); L != E; ++L) {
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScalarEvolutionNormalization.cpp | 98 const PostIncLoopSet &Loops, in normalizeForPostIncUse() argument 101 if (Loops.empty()) in normalizeForPostIncUse() 104 return Loops.count(AR->getLoop()); in normalizeForPostIncUse() 108 const SCEV *Denormalized = denormalizeForPostIncUse(Normalized, Loops, SE); in normalizeForPostIncUse() 121 const PostIncLoopSet &Loops, in denormalizeForPostIncUse() argument 123 if (Loops.empty()) in denormalizeForPostIncUse() 126 return Loops.count(AR->getLoop()); in denormalizeForPostIncUse()
|
H A D | LoopCacheAnalysis.cpp | 62 static Loop *getInnerMostLoop(const LoopVectorTy &Loops) { in getInnerMostLoop() argument 63 assert(!Loops.empty() && "Expecting a non-empy loop vector"); in getInnerMostLoop() 65 Loop *LastLoop = Loops.back(); in getInnerMostLoop() 69 assert(Loops.size() == 1 && "Expecting a single loop"); in getInnerMostLoop() 73 return (llvm::is_sorted(Loops, in getInnerMostLoop() 562 CacheCost::CacheCost(const LoopVectorTy &Loops, const LoopInfo &LI, in CacheCost() argument 566 : Loops(Loops), TRT(TRT.value_or(TemporalReuseThreshold)), LI(LI), SE(SE), in CacheCost() 568 assert(!Loops.empty() && "Expecting a non-empty loop vector."); in CacheCost() 570 for (const Loop *L : Loops) { in CacheCost() 587 LoopVectorTy Loops; in getCacheCost() local [all …]
|
H A D | DependenceAnalysis.cpp | 878 SmallBitVector &Loops) const { in collectCommonLoops() 882 Loops.set(Level); in collectCommonLoops() 963 SmallBitVector &Loops, bool IsSrc) { in checkSubscript() argument 992 Loops.set(mapSrcLoop(AddRec->getLoop())); in checkSubscript() 994 Loops.set(mapDstLoop(AddRec->getLoop())); in checkSubscript() 995 return checkSubscript(Start, LoopNest, Loops, IsSrc); in checkSubscript() 1001 SmallBitVector &Loops) { in checkSrcSubscript() argument 1002 return checkSubscript(Src, LoopNest, Loops, true); in checkSrcSubscript() 1008 SmallBitVector &Loops) { in checkDstSubscript() argument 1009 return checkSubscript(Dst, LoopNest, Loops, false); in checkDstSubscript() [all …]
|
H A D | BlockFrequencyInfoImpl.cpp | 298 Loops.clear(); in clear() 542 for (LoopData &Loop : Loops) in unwrapLoops() 769 auto Loop = BFI.Loops.emplace(Insert, OuterLoop, Headers.begin(), in createIrreducibleLoop() 784 assert((OuterLoop == nullptr) == (Insert == Loops.begin())); in analyzeIrreducible() 785 auto Prev = OuterLoop ? std::prev(Insert) : Loops.end(); in analyzeIrreducible() 797 return make_range(Loops.begin(), Insert); in analyzeIrreducible()
|
H A D | InlineSizeEstimatorAnalysis.cpp | 59 Loops, enumerator 195 FF[NamedFeatureIndex::Loops] = std::distance(LI.begin(), LI.end()); in getFunctionFeatures()
|
H A D | LoopNestAnalysis.cpp | 44 append_range(Loops, breadth_first(&Root)); in LoopNest() 245 for (Loop *L : depth_first(const_cast<Loop *>(Loops.front()))) { in getPerfectLoops()
|
H A D | MustExecute.cpp | 360 const auto &Loops = MustExec.lookup(&V); in printInfoComment() local 361 const auto NumLoops = Loops.size(); in printInfoComment() 368 for (const Loop *L : Loops) in printInfoComment()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | CalcSpillWeights.h | 49 const MachineLoopInfo &Loops; variable 58 const VirtRegMap &VRM, const MachineLoopInfo &Loops, in VirtRegAuxInfo() argument 60 : MF(MF), LIS(LIS), VRM(VRM), Loops(Loops), MBFI(MBFI) {} in VirtRegAuxInfo()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | StructurizeCFG.cpp | 262 BB2BBMap Loops; member in __anone8c890770111::StructurizeCFG 280 void insertConditions(bool Loops); 438 Loops[Exit] = N->getEntry(); in analyzeLoops() 447 Loops[Succ] = BB; in analyzeLoops() 490 if (Visited.count(Other) && !Loops.count(Other) && in gatherPredicates() 528 Loops.clear(); in collectInfos() 559 void StructurizeCFG::insertConditions(bool Loops) { in insertConditions() argument 560 BranchVector &Conds = Loops ? LoopConds : Conditions; in insertConditions() 561 Value *Default = Loops ? BoolTrue : BoolFalse; in insertConditions() 573 PhiInserter.AddAvailableValue(Loops ? SuccFalse : Parent, Default); in insertConditions() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | LoopExtractor.cpp | 223 SmallVector<Loop *, 8> Loops; in extractLoops() local 226 Loops.assign(From, To); in extractLoops() 227 for (Loop *L : Loops) { in extractLoops()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | EarlyIfConversion.cpp | 766 MachineLoopInfo *Loops = nullptr; member in __anon4c5015260311::EarlyIfConverter 827 void updateLoops(MachineLoopInfo *Loops, in updateLoops() argument 832 Loops->removeBlock(B); in updateLoops() 874 MachineLoop *CurrentLoop = Loops->getLoopFor(IfConv.Head); in shouldConvertIf() 1069 updateLoops(Loops, RemovedBlocks); in tryConvertIf() 1090 Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI(); in runOnMachineFunction() 1120 MachineLoopInfo *Loops = nullptr; member in __anon4c5015260b11::EarlyIfPredicator 1207 updateLoops(Loops, RemovedBlocks); in tryConvertIf() 1224 Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI(); in runOnMachineFunction()
|
H A D | MLRegallocEvictAdvisor.cpp |
|
H A D | MLRegAllocEvictAdvisor.cpp | 291 const MachineLoopInfo &Loops); 352 const MachineLoopInfo &Loops; member in __anonb6cddc090111::MLEvictAdvisor 436 const MachineLoopInfo &Loops, Logger *Log) in DevelopmentModeEvictAdvisor() argument 437 : MLEvictAdvisor(MF, RA, Runner, MBFI, Loops), Log(Log) {} in DevelopmentModeEvictAdvisor() 575 const MachineLoopInfo &Loops) in MLEvictAdvisor() argument 577 Runner(std::move(Runner)), MBFI(MBFI), Loops(Loops), in MLEvictAdvisor() 830 auto *Loop = Loops.getLoopFor(MBB); in getLIFeatureComponents()
|
H A D | MachineTraceMetrics.cpp | 71 Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI(); in runOnMachineFunction() 169 return MTM.Loops->getLoopFor(MBB); in getLoopFor() 448 const MachineLoopInfo *Loops; member 452 const MachineLoopInfo *loops) : Blocks(blocks), Loops(loops) {} in LoopBounds() 478 if (const MachineLoop *FromLoop = LB.Loops->getLoopFor(*From)) { in insertEdge() 483 if (isExitingLoop(FromLoop, LB.Loops->getLoopFor(To))) in insertEdge() 500 LoopBounds Bounds(BlockInfo, MTM.Loops); in computeTrace()
|
H A D | SelectOptimize.cpp | 510 SmallVector<Loop *, 4> Loops(LI->begin(), LI->end()); in optimizeSelectsInnerLoops() local 512 for (unsigned long i = 0; i < Loops.size(); ++i) in optimizeSelectsInnerLoops() 513 for (Loop *ChildL : Loops[i]->getSubLoops()) in optimizeSelectsInnerLoops() 514 Loops.push_back(ChildL); in optimizeSelectsInnerLoops() 516 for (Loop *L : Loops) { in optimizeSelectsInnerLoops()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SIOptimizeVGPRLiveRange.cpp | 96 const MachineLoopInfo *Loops = nullptr; member in __anon0f1b199c0111::SIOptimizeVGPRLiveRange 250 Loops->getLoopFor(DefMBB) == Loops->getLoopFor(If)) { in collectCandidateRegisters() 295 Loops->getLoopFor(DefMBB) == Loops->getLoopFor(If)) in collectCandidateRegisters() 639 Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI(); in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | GenericLoopInfoImpl.h | 392 DenseSet<const LoopT *> *Loops) const { in verifyLoopNest() argument 394 Loops->insert(static_cast<const LoopT *>(this)); in verifyLoopNest() 399 (*I)->verifyLoopNest(Loops); in verifyLoopNest() 709 DenseSet<const LoopT *> Loops; in verify() local 712 (*I)->verifyLoopNest(&Loops); in verify() 720 assert(Loops.count(L) && "orphaned loop"); in verify()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86CmovConversion.cpp | 239 SmallVector<MachineLoop *, 4> Loops(MLI->begin(), MLI->end()); in runOnMachineFunction() local 242 for (int i = 0; i < (int)Loops.size(); ++i) in runOnMachineFunction() 243 for (MachineLoop *Child : Loops[i]->getSubLoops()) in runOnMachineFunction() 244 Loops.push_back(Child); in runOnMachineFunction() 246 for (MachineLoop *CurrLoop : Loops) { in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | UnifyLoopExits.cpp | 219 auto Loops = LI.getLoopsInPreorder(); in runImpl() local 220 for (auto *L : Loops) { in runImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ConditionalCompares.cpp | 768 MachineLoopInfo *Loops; member in __anon79d718350211::AArch64ConditionalCompares 837 if (!Loops) in updateLoops() 840 Loops->removeBlock(RemovedMBB); in updateLoops() 937 Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI(); in runOnMachineFunction()
|