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

References

examples/Kaleidoscope/Chapter9/toy.cpp
  287     for (const auto &Arg : Args)
  347     for (const auto &NamedVar : VarNames)
examples/SpeculativeJIT/SpeculativeJIT.cpp
  166   for (const auto &InputFile : InputFiles) {
  182   for (const auto &InputArg : InputArgv)
gen/lib/Target/AArch64/AArch64GenGICombiner.inc
   90   for (const auto &Identifier : AArch64PreLegalizerCombinerHelperOption)
include/llvm/ADT/BreadthFirstIterator.h
   85     while (*ChildIt != GT::child_end(Node)) {
include/llvm/ADT/DenseMap.h
  268     for (; I != E; ++I)
include/llvm/ADT/DenseSet.h
  212     for (; I != E; ++I)
include/llvm/ADT/DepthFirstIterator.h
  130       while (*Opt != GT::child_end(Node)) {
include/llvm/ADT/DirectedGraph.h
  109     for (auto *E : Edges)
  124     return (findEdgeTo(N) != Edges.end());
include/llvm/ADT/Hashing.h
  406   while (first != last && store_and_advance(buffer_ptr, buffer_end,
  415   while (first != last) {
  419     while (first != last && store_and_advance(buffer_ptr, buffer_end,
include/llvm/ADT/MapVector.h
  211   for (auto I = O, E = Vector.end(); I != E; ++I) {
  218     if (I != O) {
include/llvm/ADT/PostOrderIterator.h
  127     while (VisitStack.back().second != GT::child_end(VisitStack.back().first)) {
include/llvm/ADT/PriorityWorklist.h
  199     for (auto I = V.begin(); I != E; ++I)
include/llvm/ADT/SCCIterator.h
  157   while (VisitStack.back().NextChild != GT::child_end(VisitStack.back().Node)) {
include/llvm/ADT/STLExtras.h
  322     while (this->I != End && !Pred(*this->I))
  607     return all_of(std::initializer_list<bool>{std::get<Ns>(this->iterators) !=
  720         std::initializer_list<bool>{std::get<Ns>(this->iterators) !=
 1129   for (auto V : C)
 1225   return std::find(adl_begin(Range), adl_end(Range), Element) != adl_end(Range);
include/llvm/ADT/SetOperations.h
   26        SI != SE; ++SI)
include/llvm/ADT/SetVector.h
  151     for (; Start != End; ++Start)
  160       assert(I != vector_.end() && "Corrupted SetVector instances!");
  248     for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE;
  261     for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE;
include/llvm/ADT/SmallPtrSet.h
  388     for (; I != E; ++I)
include/llvm/ADT/SmallSet.h
  203     for (; I != E; ++I)
include/llvm/ADT/StringExtras.h
  320   for (IteratorT I = Begin; I != End; ++I)
  324   while (++Begin != End) {
include/llvm/ADT/StringSet.h
   45       for (auto It = Begin; It != End; ++It)
include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1073   for (rpot_iterator I = rpot_begin(), E = rpot_end(); I != E; ++I) {
 1093   for (const LoopT *L : *LI)
 1107     for (const LoopT *L : *Loop)
 1235   for (rpot_iterator I = rpot_begin(), IE = rpot_end(); I != IE; ++I) {
 1272     for (const auto Succ : children<const BlockT *>(BB))
 1323          SI != SE; ++SI)
include/llvm/Analysis/CFG.h
  160     for (NodeT Succ : make_range(GT::child_begin(Node), GT::child_end(Node))) {
include/llvm/Analysis/DominanceFrontierImpl.h
  184       for (const auto Succ : children<BlockT *>(currentBB)) {
  197          NI != NE; ++NI) {
include/llvm/Analysis/Interval.h
   67     for (BasicBlock *Node : Nodes)
   77     for (BasicBlock *Successor : Successors)
include/llvm/Analysis/IntervalIterator.h
  146       while (SuccIt != EndIt) {                 // Loop over all interval succs
  185            E = GT::child_end(Node); I != E; ++I)
  215              E = IGT::child_end(Node); I != E; ++I) {
  238              End = GT::child_end(Node); It != End; ++It)
include/llvm/Analysis/LoopInfo.h
  211     for (const auto &Succ : children<const BlockT *>(BB)) {
  229     return std::find(PredBegin, PredEnd, BB) != PredEnd;
  238     for (const auto Pred : children<Inverse<BlockT *>>(H))
  317     for (const auto Pred : children<Inverse<BlockT *>>(H))
  443     assert(I != Blocks.end() && "N is not in this list!");
  485     for (auto *SubLoop : SubLoops)
  874     for (auto *L : TopLevelLoops)
  886     for (auto *L : TopLevelLoops)
  950     assert(I != end() && "Cannot remove end iterator!");
  972     assert(I != TopLevelLoops.end() && "Old loop not at top level!");
include/llvm/Analysis/LoopInfoImpl.h
   38     for (const auto &Succ : children<BlockT *>(BB))
   66     for (const auto &Succ : children<BlockT *>(BB))
   91     for (BlockT *Predecessor : children<Inverse<BlockT *>>(EB))
  108     for (BlockT *Successor : children<BlockT *>(BB))
  145     for (const auto &Succ : children<BlockT *>(BB))
  175   if (SI != BlockTraits::child_end(Out))
  195   for (const auto Pred : children<Inverse<BlockT *>>(Header)) {
  213   for (const auto Pred : children<Inverse<BlockT *>>(Header)) {
  271   assert(I != SubLoops.end() && "OldChild not in loop!");
  338     for (auto BB : Blocks) {
  347   for (iterator I = begin(), E = end(); I != E; ++I)
  372   for (iterator I = begin(), E = end(); I != E; ++I)
  405   for (iterator I = begin(), E = end(); I != E; ++I)
  464       for (const auto Pred : children<Inverse<BlockT *>>(PredBB)) {
  547     for (const auto Backedge : children<Inverse<BlockT *>>(Header)) {
  592   for (LoopT *RootL : *this) {
  633   for (LoopT *SL : L)
  656   for (const LoopT *SubL : *L) {
  684   for (iterator I = begin(), E = end(); I != E; ++I) {
  696     for (LoopT *ChildLoop : *L)
  709   for (LoopT *L : OtherLI)
  715   for (LoopT *L : *this) {
include/llvm/Analysis/RegionInfo.h
  737     for (auto &SubR : *R)
include/llvm/Analysis/RegionInfoImpl.h
   78     for (std::unique_ptr<RegionT> &Child : *R) {
   96     for (std::unique_ptr<RegionT> &Child : *R) {
  167   for (BlockT *Pred : make_range(InvBlockTraits::child_begin(entry),
  190        PI != PE; ++PI) {
  211   for (BlockT *Pred : make_range(InvBlockTraits::child_begin(exit),
  261   for (BlockT *Succ :
  269     for (BlockT *Pred : make_range(InvBlockTraits::child_begin(BB),
  286   for (BlockT *Succ :
  307   for (const std::unique_ptr<RegionT> &R : *this)
  385   for (std::unique_ptr<RegionT> &R : *this) {
  420   for (std::unique_ptr<RegionT> &R : *this) {
  443   assert(I != children.end() && "Region does not exit. Unable to remove.");
  468     for (BlockT *Pred : make_range(InvBlockTraits::child_begin(getExit()),
  480   for (BlockT *Pred : make_range(InvBlockTraits::child_begin(getExit()),
  516     for (const std::unique_ptr<RegionT> &R : *this)
  534   for (std::unique_ptr<RegionT> &R : *this)
  568   for (BlockT *P : make_range(InvBlockTraits::child_begin(BB),
  768   for (DomTreeNodeBase<BlockT> *C : *N) {
  859     for (BlockT *Pred : make_range(InvBlockTraits::child_begin(Exit),
include/llvm/Analysis/RegionIterator.h
  110       while (BlockTraits::child_end(node->getEntry()) != BItor && isExit(*BItor))
  146       while (BItor != BlockTraits::child_end(getNode()->getEntry())
  190     while (BlockTraits::child_end(Node->getEntry()) != Itor &&
include/llvm/CodeGen/AsmPrinter.h
  579     for (const auto &Abbrev : Abbrevs)
include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
 1240     for(auto SizeAndAction: v) {
include/llvm/CodeGen/LiveInterval.h
  624       while (Idx != EndIdx && Seg != EndSeg) {
  640         if (NotLessEnd != NotLessStart) {
include/llvm/CodeGen/MachineOutliner.h
  189     for (const Candidate &C : Candidates)
  216     for (Candidate &C : Candidates)
include/llvm/CodeGen/MachinePipeliner.h
  175       for (const auto &NodeNum : Topo)
  370     for (SUnit *SU : *this) {
include/llvm/CodeGen/PBQP/Graph.h
  574       for (auto AEId : adjEdgeIds(N1Id)) {
  636       for (auto AEId : adjEdgeIds(NId))
include/llvm/CodeGen/PBQP/ReductionRules.h
  202       for (auto EId : G.adjEdgeIds(NId)) {
include/llvm/CodeGen/PBQPRAConstraint.h
   53     for (auto &C : Constraints)
include/llvm/CodeGen/ScheduleDAG.h
  529            E = Nodes.end(); I != E; ++I)
include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
  151       for (auto &X : Items) {
  160       for (auto &X : Items) {
  183       for (auto &Item : Items) {
include/llvm/DebugInfo/CodeView/SymbolVisitorCallbackPipeline.h
   25     for (auto Visitor : Pipeline) {
   33     for (auto Visitor : Pipeline) {
   41     for (auto Visitor : Pipeline) {
   49     for (auto Visitor : Pipeline) {
include/llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h
   26     for (auto Visitor : Pipeline) {
   34     for (auto Visitor : Pipeline) {
   42     for (auto Visitor : Pipeline) {
   50     for (auto Visitor : Pipeline) {
   58     for (auto Visitor : Pipeline) {
   66     for (auto Visitor : Pipeline) {
   74     for (auto Visitor : Pipeline) {
  100     for (auto Visitor : Pipeline) {
  109     for (auto Visitor : Pipeline) {
include/llvm/DebugInfo/DWARF/DWARFListTable.h
  255       for (const auto &Entry : List.second.getEntries())
  263     for (const auto &Entry : List.second.getEntries())
include/llvm/DebugInfo/DWARF/DWARFUnit.h
  481     if (It != DieArray.end() && It->getOffset() == Offset)
include/llvm/DebugInfo/DWARF/DWARFVerifier.h
   70       if (Iter != Begin)
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  232       for (auto BLK : BaseLayerVModuleKeys)
  241       for (auto &BLK : BaseLayerVModuleKeys)
include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
  118     for (const auto &CtorDtorName : CtorDtorNames) {
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
  158       for (auto &Frame : RegisteredEHFrames) {
  167       for (auto &ObjAllocs : Unmapped) {
  182       for (auto &ObjAllocs : Unfinalized) {
  197       for (auto &EHFrame : UnfinalizedEHFrames) {
  271       for (auto &Alloc : Allocs) {
  294         for (auto &Alloc : Allocs) {
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
  179     for (auto &Arg : Args)
include/llvm/ExecutionEngine/Orc/RPCSerialization.h
  588     for (const auto &E : V)
  605     for (auto &E : V)
include/llvm/FuzzMutate/Random.h
   54     for (auto &I : Items)
include/llvm/IR/ModuleSummaryIndex.h
 1339       for (auto &Summary : GlobalList.second.SummaryList) {
include/llvm/IR/ModuleSummaryIndexYAML.h
   86       for (uint64_t Arg : P.first) {
  216     for (auto &FSum : FSums) {
  218       for (auto &RefGUID : FSum.Refs) {
  238       for (auto &Sum : P.second.SummaryList) {
include/llvm/MCA/HardwareUnits/ResourceManager.h
  440     for (const std::unique_ptr<ResourceState> &Resource : Resources)
include/llvm/PassAnalysisSupport.h
  157     for (const auto &AnalysisImpl : AnalysisImpls) {
include/llvm/ProfileData/Coverage/CoverageMapping.h
  462     for (const FunctionRecord *F : Instantiations)
include/llvm/ProfileData/InstrProf.h
  531   for (auto Name : IterRange)
  563   if (Result != MD5NameMap.end() && Result->first == FuncMD5Hash)
  574   if (Result != MD5FuncMap.end() && Result->first == FuncMD5Hash)
include/llvm/Support/BranchProbability.h
  242   for (auto I = Begin; I != End; ++I)
include/llvm/Support/Error.h
  371     for (auto &ErrPayload : Payloads) {
  401         for (auto &Payload : E2List.Payloads)
  910     for (auto &P : List.Payloads)
include/llvm/Support/FormatProviders.h
  405     if (Begin != End) {
  411     while (Begin != End) {
include/llvm/Support/FormatVariadic.h
  106     for (auto &R : Replacements) {
include/llvm/Support/GenericDomTree.h
  104     for (const DomTreeNodeBase *I : *Other) {
  109     for (const DomTreeNodeBase *I : *this) {
  122     assert(I != IDom->Children.end() &&
  158       for (DomTreeNodeBase *C : *Current) {
  185        I != E; ++I)
  631       assert(I != IDom->Children.end() &&
  781     for (const auto &Pred : children<Inverse<N>>(NewBB))
  787     for (const auto &Pred : children<Inverse<N>>(NewBBSucc)) {
include/llvm/Support/GenericDomTreeConstruction.h
 1144     assert(ChIt != IDom->Children.end());
 1323     for (const NodePtr N : NumToNode) {
 1520       for (TreeNodePtr Child : TN->getChildren())
 1547       for (const TreeNodePtr N : Siblings) {
 1554         for (const TreeNodePtr S : Siblings) {
include/llvm/Support/GenericIteratedDominanceFrontier.h
  199       for (auto DomChild : *Node) {
include/llvm/Support/GraphWriter.h
   89     for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i) {
  103     if (EI != EE && hasEdgeSourceLabels)
  230     for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i)
  233     for (; EI != EE; ++EI)
include/llvm/Support/JSON.h
  165     for (const auto &V : C)
include/llvm/Support/YAMLTraits.h
  874     if (this->canElideEmptySequence() && !(Val.begin() != Val.end()))
 1100     for (StringRef key : io.keys())
include/llvm/TableGen/StringToOffsetTable.h
   88     for (char C : AggregateString) {
include/llvm/Testing/Support/SupportHelpers.h
   41     for (const auto &Info : Err.Infos) {
include/llvm/Transforms/IPO/Attributor.h
  608       for (CallGraphNode *Node : *I)
include/llvm/Transforms/Scalar/ConstantHoisting.h
  136     for (auto MapEntry : ConstGEPCandMap)
  140     for (auto MapEntry : ConstGEPInfoMap)
include/llvm/Transforms/Utils/SSAUpdaterImpl.h
  198              E = Traits::BlkSucc_end(Info->BB); SI != E; ++SI) {
lib/Analysis/AliasAnalysis.cpp
   65   for (auto &AA : AAs)
   92   for (AnalysisKey *ID : AADeps)
  112   for (const auto &AA : AAs) {
  128   for (const auto &AA : AAs)
  138   for (const auto &AA : AAs) {
  187   for (const auto &AA : AAs) {
  254   for (const auto &AA : AAs) {
  385   for (const auto &AA : AAs) {
  399   for (const auto &AA : AAs) {
lib/Analysis/AliasAnalysisEvaluator.cpp
  141        I1 != E; ++I1) {
  147     for (SetVector<Value *>::iterator I2 = Pointers.begin(); I2 != I1; ++I2) {
  177     for (Value *Load : Loads) {
  178       for (Value *Store : Stores) {
  204          I1 != E; ++I1) {
  205       for (SetVector<Value *>::iterator I2 = Stores.begin(); I2 != I1; ++I2) {
  232     for (auto Pointer : Pointers) {
lib/Analysis/AliasSetTracker.cpp
  624   for (auto Cur : ASVector) {
lib/Analysis/BlockFrequencyInfoImpl.cpp
  647   for (auto &I : Nodes)
  691   for (const auto *I : SCC)
lib/Analysis/BranchProbabilityInfo.cpp
  971     for (auto *BB : Scc) {
lib/Analysis/CFLAndersAliasAnalysis.cpp
  559     if (RangePair.first != RangePair.second) {
  568       for (const auto &OVal : make_range(RangePair)) {
  618       for (auto &Edge : ValueInfo.getNodeInfoAtLevel(I).Edges) {
  684     for (const auto &AssignEdge : NodeInfo->Edges)
  688     for (const auto &RevAssignEdge : NodeInfo->ReverseEdges)
  752     for (const auto &Dst : WorkList) {
  796     for (const auto &Item : WorkList)
lib/Analysis/CFLSteensAliasAnalysis.cpp
  218       for (auto &Edge : ValueInfo.getNodeInfoAtLevel(I).Edges)
lib/Analysis/CGSCCPassManager.cpp
   70   for (auto &Pass : Passes) {
lib/Analysis/CallGraph.cpp
  169   for (const auto &I : *this) {
  188     assert(I != CalledFunctions.end() && "Cannot find callsite to remove!");
  215     assert(I != CalledFunctions.end() && "Cannot find callee to remove!");
  232     assert(I != CalledFunctions.end() && "Cannot find callsite to remove!");
lib/Analysis/CallGraphSCCPass.cpp
  171   for (CallGraphNode *CGN : CurSCC) {
  208                   : CurSCC) CGN->dump(););
  216        SCCIdx != E; ++SCCIdx, ++FunctionNo) {
  229     for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) {
  388     for (CallGraphNode *CGN : CurSCC)
  428            I != E; ++I) {
  429         if (I != CurSCC.begin()) OS << ", ";
  650       for (CallGraphNode *CGN : SCC) {
  687   for (CallGraphNode *CGN : SCC) {
lib/Analysis/DDG.cpp
   70   for (auto &E : N.getEdges())
  156     for (auto *E : *N)
lib/Analysis/DomTreeUpdater.cpp
  522   for (auto BB : Callbacks) {
lib/Analysis/GlobalsModRef.cpp
  475     for (auto *CGN : SCC)
  499       for (auto *Node : SCC)
  537            CI != E && !KnowNothing; ++CI)
  557       for (auto *Node : SCC)
  563     for (auto *Node : SCC) {
lib/Analysis/InlineCost.cpp
 1920     for (Loop *L : LI) {
lib/Analysis/Interval.cpp
   41   for (const BasicBlock *Node : Nodes)
   45   for (const BasicBlock *Predecessor : Predecessors)
   49   for (const BasicBlock *Successor : Successors)
lib/Analysis/IntervalPartition.cpp
   54        It != End; ++It)
   64   for (BasicBlock *Successor : Int->Successors)
lib/Analysis/LoopAccessAnalysis.cpp
  827     for (auto A : Accesses)
  862         for (auto AC : S) {
 1665              I1E = Accesses[*AI].end(); I1 != I1E; ++I1)
 1671                I2 != I2E; ++I2) {
 2412   for (Loop *TopLevelLoop : *LI)
lib/Analysis/LoopInfo.cpp
  727          POI != POE; ++POI) {
  880       assert(I != end() && "Couldn't find loop");
  908     assert(I != ParentLoop->end() && "Couldn't find loop");
lib/Analysis/MemDepPrinter.cpp
  112       for (const NonLocalDepEntry &I : NLDI) {
lib/Analysis/MemoryDependenceAnalysis.cpp
  807     for (auto &Entry : Cache)
  848     if (Entry != Cache.begin() && std::prev(Entry)->getBB() == DirtyBB)
  852     if (Entry != Cache.begin() + NumSortedEntries &&
  985   if (Entry != Cache->begin() && (Entry - 1)->getBB() == BB)
  989   if (Entry != Cache->begin() + NumSortedEntries && Entry->getBB() == BB)
 1136         for (auto &Entry : CacheInfo->NonLocalDeps)
 1156         for (auto &Entry : CacheInfo->NonLocalDeps)
 1179       for (auto &Entry : *Cache) {
 1193     for (auto &Entry : *Cache) {
 1547     for (auto &Entry : BlockMap)
 1628       for (auto &Entry : INLD.first) {
 1668       for (auto &Entry : NLPDI) {
 1713     for (const auto &Entry : DepKV.second.NonLocalDeps)
 1720     for (const auto &Entry : INLD.first)
lib/Analysis/ModuleSummaryAnalysis.cpp
  399       for (const auto *I : Instrs) {
  425     for (auto &VI : StoreRefEdges)
  433     for (auto &VI : LoadRefEdges)
  437     for (auto &VI : StoreRefEdges)
  539   for (auto &P : VTableFuncs) {
lib/Analysis/RegionPass.cpp
   42   for (const auto &E : R)
lib/Analysis/RegionPrinter.cpp
  119     for (const auto &RI : R)
lib/Analysis/ScalarEvolution.cpp
 3849     for (const auto &VE : SI->second)
11484   for (Loop *I : *L)
11639   for (Loop *I : LI)
lib/Analysis/ScalarEvolutionExpander.cpp
 1790       for (auto const &VOPair : *Set) {
lib/Analysis/StratifiedSets.h
  270     for (auto &Link : Links) {
  279     for (auto &Link : StratLinks) {
lib/Analysis/SyntheticCountsUtils.cpp
   33   for (auto &Node : SCC)
   39     for (auto &E : children_edges<CallGraphType>(Node)) {
lib/Analysis/TargetLibraryInfo.cpp
 1558   return I != VectorDescs.end() && StringRef(I->ScalarFnName) == funcName;
 1568   while (I != VectorDescs.end() && StringRef(I->ScalarFnName) == F) {
lib/Analysis/Trace.cpp
   39   for (const_iterator i = begin(), e = end(); i != e; ++i) {
lib/AsmParser/LLParser.cpp
  130     for (const auto &Attr : Attrs)
  497   for (auto &MD : MDs)
 7511     for (auto TIDRef : FwdRefTIDs->second) {
 7600     for (auto P : I.second) {
 7618     for (auto TIDRef : FwdRefTIDs->second) {
 7941     for (auto VIRef : FwdRefVIs->second) {
 7952     for (auto AliaseeRef : FwdRefAliasees->second) {
 8353     for (auto P : I.second) {
 8440     for (auto P : I.second) {
 8489   for (auto &VC : VContexts) {
 8501     for (auto P : I.second) {
 8596     for (auto P : I.second) {
 8637     for (auto P : I.second) {
 8676     for (auto P : I.second) {
lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
   59   for (auto &Item : Array)
lib/BinaryFormat/MsgPackDocument.cpp
  221         if (Stack.back().ArrayIt != Stack.back().Node.getArray().end())
lib/Bitcode/Reader/BitcodeReader.cpp
 2914   for (uint64_t BitPos : DeferredMetadataInfo) {
 2985   for (auto &Pair : UpgradedVariables) {
lib/Bitcode/Reader/MetadataLoader.cpp
  485     for (auto CU_SP : CUSubprograms)
lib/Bitcode/Reader/ValueList.cpp
  196           assert(It != ResolveConstants.end() && It->first == *I);
lib/Bitcode/Writer/BitcodeWriter.cpp
  194       for (auto &Summary : GUIDSummaryLists.second.SummaryList)
  454         for (auto &Summary : Summaries.second.SummaryList)
  745   for (ValueEnumerator::IndexAndAttrSet Pair : AttrGrps) {
 1095   for (const Comdat *C : VE.getComdats()) {
 1252     for (const auto P : M.getSourceFileName())
 2102     for (auto &Elt : IndexPos) {
 3630   for (auto &P : Summary) {
 4384   for (Module *M : Mods) {
 4562     for (const auto P : M.getSourceFileName())
lib/Bitcode/Writer/ValueEnumerator.cpp
  736   for (const Metadata *MD : MDs)
lib/CodeGen/AggressiveAntiDepBreaker.cpp
  162          SE = BB->succ_end(); SI != SE; ++SI)
  163     for (const auto &LI : (*SI)->liveins()) {
lib/CodeGen/Analysis.cpp
  721     for (const MachineBasicBlock *Succ : Visiting->successors())
lib/CodeGen/AsmPrinter/AccelTable.cpp
   83   for (auto &Bucket : Buckets)
  252     for (auto &Hash : Bucket) {
  268     for (auto *Hash : Buckets[i]) {
  320     for (auto *HD : Buckets[i]) {
  333     for (auto &Hash : Buckets[i]) {
  345       for (const auto *V : Hash->Values)
  401     for (auto *Hash : Bucket) {
  402       for (auto *Value : Hash->Values) {
  445     for (auto *Hash : Bucket.value()) {
  503     for (auto *Hash : Bucket) {
  506       for (const auto *Value : Hash->Values)
  658   for (auto *Value : Values)
  667     for (auto *V : Entry.second.Values)
  672   for (auto &Bucket : Buckets)
  673     for (auto &Hash : Bucket)
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1289   for (auto &I : GlobalGOTEquivs) {
 1434       for (const auto &Stub : Stubs) {
 1451       for (const auto &Stub : Stubs) {
 2857   for (const MachineLoop *CL : *Loop) {
 2911       std::find(MBB.pred_begin(), MBB.pred_end(), MBB.getPrevNode()) !=
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
  549     for (auto I = RestrRegs.begin(), E = RestrRegs.end(); I != E; I++) {
  550       if(I != RestrRegs.begin())
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  579   for (auto &P : FnDebugInfo)
 1084     for (auto Annot : FI.Annotations) {
 1102     for (auto HeapAllocSite : FI.HeapAllocSites) {
 1301   for (const auto &I : DbgValues) {
 2161   for (const ClassInfo::MemberInfo &IndirectField : NestedInfo.Members)
 2324   for (const DIDerivedType *I : Info.Inheritance) {
 2352   for (ClassInfo::MemberInfo &MemberInfo : Info.Members) {
 2397   for (auto &MethodItr : Info.Methods) {
 2430   for (const DIType *Nested : Info.NestedTypes) {
lib/CodeGen/AsmPrinter/DIE.cpp
  142   for (DIEAbbrev *Abbrev : Abbreviations)
lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
  340   for (const auto &VarRangePair : *this) {
lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
  212   for (const auto &I : DbgValues) {
  269   for (const auto &I : DbgLabels) {
lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
   75   for (const Function *Personality : MMI->getPersonalities()) {
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
 1068   for (const auto &P : CUMap) {
 1171   for (const auto &P : CUMap) {
 1514   for (const auto &I : DbgValues) {
 1588   for (const auto &I : DbgLabels) {
 2044   for (const auto &NU : CUMap) {
 2349   for (const auto &P : SectionRanges) {
 2378     for (const auto *RS : P.second) {
 2490   for (const SymbolCU &SCU : ArangeLabels) {
 2506   for (auto &I : SectionMap) {
 2579   for (DwarfCompileUnit *CU : CUs) {
 2616     for (const ArangeSpan &Span : List) {
 2762   for (const auto &P : CUMap) {
lib/CodeGen/AsmPrinter/EHStreamer.cpp
   93          I = FilterIds.begin(), E = FilterIds.end(); I != E; ++I) {
lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp
   57        FI != IE; ++FI) {
   82     for (GCFunctionInfo::iterator PI = MD.begin(), PE = MD.end(); PI != PE;
  113          LI != LE; ++LI) {
lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp
  117        I != IE; ++I) {
  122     for (GCFunctionInfo::iterator J = FI.begin(), JE = FI.end(); J != JE; ++J) {
  136        I != IE; ++I) {
  157     for (GCFunctionInfo::iterator J = FI.begin(), JE = FI.end(); J != JE; ++J) {
  173            K != KE; ++K) {
lib/CodeGen/AsmPrinter/WasmException.cpp
   46   for (const LandingPadInfo &Info : MF->getLandingPads()) {
lib/CodeGen/AsmPrinter/WinCFGuard.cpp
   54   for (const Function *F : Functions)
   59   for (const MCSymbol *S : LongjmpTargets) {
lib/CodeGen/BranchFolding.cpp
  433     for (MachineBasicBlock::RegisterMaskPair P : NewDest.liveins()) {
  744        CurMPIter != B && CurMPIter->getHash() == CurHash; --CurMPIter) {
  933     for (MachineBasicBlock *Pred : MBB->predecessors()) {
 1146     for (MachineBasicBlock *PBB : I->predecessors()) {
 1230   for (const auto &Src : SameTails) {
 1243          SuccI != SuccE; ++SuccI, ++EdgeFreq)
 1259          SuccI != SuccE; ++SuccI, ++EdgeFreq) {
 1379   for (MachineBasicBlock *SuccBB : MBB.successors())
 1385   for (MachineBasicBlock *PredBB : MBB.predecessors())
 1748       for (MachineBasicBlock *PredBB : MBB->predecessors()) {
 1780       for (MachineBasicBlock *SuccBB : MBB->successors()) {
 1845   for (MachineBasicBlock *SuccBB : BB->successors())
lib/CodeGen/BranchRelaxation.cpp
  459     for (const MachineBasicBlock *Succ : MBB->successors()) {
  460       for (const MachineBasicBlock::RegisterMaskPair &LiveIn : Succ->liveins())
lib/CodeGen/CFIInstrInserter.cpp
  234     for (auto *Succ : CurrentInfo.MBB->successors()) {
  314     for (MachineBasicBlock *Succ : CurrMBB->successors()) {
lib/CodeGen/CodeGenPrepare.cpp
 1893       if (it != LargeOffsetGEPMap.end()) {
 5283   for (auto &Entry : LargeOffsetGEPMap) {
 6214   for (auto *I : MaybeDead) {
 6892   for (GetElementPtrInst *UGEPI : UGEPIs) {
 6900   for (GetElementPtrInst *UGEPI : UGEPIs) {
lib/CodeGen/CriticalAntiDepBreaker.cpp
   72          SE = BB->succ_end(); SI != SE; ++SI)
   73     for (const auto &LI : (*SI)->liveins()) {
lib/CodeGen/DFAPacketizer.cpp
   69   for (auto U : InsnClass)
  184   for (auto &M : Mutations)
  214       for (MachineInstr *MI : CurrentPacketMIs) {
  246   for (SUnit &SU : VLIWScheduler->SUnits)
  288       for (auto MJ : CurrentPacketMIs) {
lib/CodeGen/DeadMachineInstructionElim.cpp
  117            E = MBB.succ_end(); S != E; S++)
  118       for (const auto &LI : (*S)->liveins())
lib/CodeGen/EdgeBundles.cpp
   48            SE = MBB.succ_end(); SI != SE; ++SI)
   88            SE = MBB.succ_end(); SI != SE; ++SI)
lib/CodeGen/ExecutionDomainFix.cpp
  169   for (MachineBasicBlock *pred : MBB->predecessors()) {
  215   for (DomainValue *OldLiveReg : MBBOutRegsInfos[MBBNumber]) {
  462     for (DomainValue *OutLiveReg : OutLiveRegs) {
lib/CodeGen/FaultMaps.cpp
   92   for (auto &Fault : FFI) {
lib/CodeGen/GCMetadata.cpp
  114        RI != RE; ++RI)
  118   for (GCFunctionInfo::iterator PI = FD->begin(), PE = FD->end(); PI != PE;
lib/CodeGen/GCRootLowering.cpp
  294        RI != FI->roots_end();) {
lib/CodeGen/GlobalISel/CombinerHelper.cpp
 1106   for (auto CopyTy : MemOps) {
 1211   for (auto CopyTy : MemOps) {
lib/CodeGen/GlobalISel/IRTranslator.cpp
  473     for (const CaseCluster &C : Clusters) {
  679        SI != SE; ++SI) {
 2174   for (auto &JTCase : SL->JTCases) {
 2391   for (const MachineBasicBlock::RegisterMaskPair &LiveIn : EntryBB->liveins())
lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  350         for (SizeAndAction BitsizeAndAction : VectorSpecifiedActions.second) {
  570   assert(It != Vec.begin() && "Does Vec not start with size 1?");
  721     for (unsigned Opcode : FailedOpcodes)
lib/CodeGen/GlobalISel/RegBankSelect.cpp
  811     for (auto &Succ : Src.successors())
lib/CodeGen/HardwareLoops.cpp
  191   for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I) {
  204   for (Loop::iterator I = L->begin(), E = L->end(); I != E; ++I)
lib/CodeGen/IfConversion.cpp
  613   for (MachineBasicBlock *SuccBB : BB->successors()) {
 1455   for (const MachineBasicBlock *Predecessor : MBB.predecessors()) {
 1645       for (MachineBasicBlock *PBB : CvtMBB.predecessors()) {
 1712     if (NewTrueBBIter != BBI.BB->succ_end())
 2215     for (MachineBasicBlock *Succ : Succs) {
lib/CodeGen/InlineSpiller.cpp
  500       for (MachineBasicBlock *P : MBB->predecessors()) {
 1467   for (auto &Ent : MergeableSpills) {
lib/CodeGen/LatencyPriorityQueue.cpp
  124        E = Queue.end(); I != E; ++I)
  128   if (Best != std::prev(Queue.end()))
  137   assert(I != Queue.end() && "Queue doesn't contain the SU being removed!");
  138   if (I != std::prev(Queue.end()))
  147   for (const SUnit *SU : Queue) {
lib/CodeGen/LiveDebugValues.cpp
 1144   for (auto p : MBB.predecessors()) {
 1391           for (auto s : MBB->successors())
lib/CodeGen/LiveDebugVariables.cpp
 1209   for (auto &Pair : NewLocations) {
lib/CodeGen/LiveInterval.cpp
 1331            PE = MBB->pred_end(); PI != PE; ++PI)
lib/CodeGen/LiveIntervals.cpp
  327     for (const auto &LI : MBB.liveins()) {
  401       for (const MachineBasicBlock *Pred : MBB->predecessors()) {
  417     for (const MachineBasicBlock *Pred : MBB->predecessors()) {
  647   for (MachineBasicBlock *Succ : KillMBB->successors()) {
  846     for (const MachineBasicBlock *Pred : PHIMBB->predecessors())
lib/CodeGen/LivePhysRegs.cpp
  158   for (const auto &LI : MBB.liveins()) {
  194     for (const CalleeSavedInfo &Info : MFI.getCalleeSavedInfo())
  205   for (const CalleeSavedInfo &Info : MFI.getCalleeSavedInfo())
  213   for (const MachineBasicBlock *Succ : MBB.successors())
  227       for (const CalleeSavedInfo &Info : MFI.getCalleeSavedInfo())
lib/CodeGen/LiveRangeCalc.cpp
  286     for (MachineBasicBlock *S : B.successors())
  295   for (MachineBasicBlock *P : MBB.predecessors())
  338     for (MachineBasicBlock *P : B.predecessors())
  386     for (MachineBasicBlock *Pred : MBB->predecessors()) {
  518         for (MachineBasicBlock *Pred : MBB->predecessors()) {
  602     for (const MachineBasicBlock *P : B->predecessors())
lib/CodeGen/LiveRegUnits.cpp
   87   for (const auto &LI : MBB.liveins())
  110     for (const CalleeSavedInfo &Info : MFI.getCalleeSavedInfo())
  121   for (const CalleeSavedInfo &Info : MFI.getCalleeSavedInfo())
  132   for (const MachineBasicBlock *Succ : MBB.successors())
lib/CodeGen/LiveVariables.cpp
  178          E = MBB->pred_end(); PI != E; ++PI)
  567   for (const auto &LI : MBB->liveins()) {
  602          SE = MBB->succ_end(); SI != SE; ++SI) {
  606     for (const auto &LI : SuccMBB->liveins()) {
  747   for (const MachineBasicBlock *SuccMBB : MBB.successors()) {
lib/CodeGen/LoopTraversal.cpp
   46       for (MachineBasicBlock *Succ : ActiveMBB->successors()) {
lib/CodeGen/MIRCanonicalizerPass.cpp
  107   for (auto *II : instructions) {
  123   for (auto &II : StringInstrMap) {
  167   for (auto *II : Instructions) {
  183   for (auto *II : Instructions) {
  316   for (MachineInstr *MI : Copies) {
  343     for (auto *MO : Uses)
  386   if (llvm::find(bbNames, MBB->getName()) != bbNames.end()) {
  437     for (auto *MO : RenameMOs) {
  470            : RPOList) { dbgs() << MBB->getName() << "\n"; } dbgs()
  481   for (auto MBB : RPOList)
lib/CodeGen/MIRParser/MIRParser.cpp
  348   for (auto YamlCSInfo : YamlMF.CallSitesInfo) {
  368     for (auto ArgRegPair : YamlCSInfo.ArgForwardingRegs) {
  503   for (const auto &VReg : YamlMF.VirtualRegisters) {
  543   for (const auto &LiveIn : YamlMF.LiveIns) {
  562     for (const auto &RegSource : YamlMF.CalleeSavedRegisters.getValue()) {
  665   for (const auto &Object : YamlMF.FixedStackObjects) {
  692   for (const auto &Object : YamlMF.StackObjects) {
  815   for (const auto &YamlConstant : YamlMF.Constants) {
  841   for (const auto &Entry : YamlJTI.Entries) {
  843     for (const auto &MBBSource : Entry.Blocks) {
lib/CodeGen/MIRPrinter.cpp
  410   for (const auto &CSInfo : MFI.getCalleeSavedInfo()) {
  504   for (const MachineConstantPoolEntry &Constant : ConstantPool.getConstants()) {
  528   for (const auto &Table : JTI.getJumpTables()) {
  532     for (const auto *MBB : Table.MBBs) {
  653     for (auto I = MBB.succ_begin(), E = MBB.succ_end(); I != E; ++I) {
  654       if (I != MBB.succ_begin())
  672     for (const auto &LI : MBB.liveins()) {
lib/CodeGen/MIRVRegNamerUtils.cpp
  163   for (auto &vreg : VRegs) {
  195     if (llvm::find(renamedInOtherBB, Reg) != renamedInOtherBB.end()) {
  241     for (auto *MO : RenameMOs) {
  265   for (auto candidate : Candidates) {
lib/CodeGen/MachineBasicBlock.cpp
  238   for (const_succ_iterator I = succ_begin(), E = succ_end(); I != E; ++I)
  348     for (auto I = pred_begin(), E = pred_end(); I != E; ++I) {
  349       if (I != pred_begin())
  361     for (auto I = succ_begin(), E = succ_end(); I != E; ++I) {
  362       if (I != succ_begin())
  373       for (auto I = succ_begin(), E = succ_end(); I != E; ++I) {
  375         if (I != succ_begin())
  395     for (const auto &LI : liveins()) {
  469   return I != livein_end() && (I->LaneMask & LaneMask).any();
  554       for (succ_iterator SI = succ_begin(), SE = succ_end(); SI != SE; ++SI) {
  594   for (succ_iterator SI = succ_begin(), SE = succ_end(); SI != SE; ++SI) {
  644   for (auto Prob : Probs)
  678   assert(OldI != succ_end() && "Old is not a successor of this block!");
  701   assert(I != Successors.end() && "Not a current successor!");
  724   for (succ_iterator I = succ_begin(); I != E; ++I) {
  727       if (NewI != E)
  732       if (OldI != E)
  736   assert(OldI != E && "Old is not a successor of this block");
  770   assert(I != Predecessors.end() && "Pred is not a predecessor of this block!");
  987   for (const auto &LI : Succ->liveins())
 1271   while (SI != succ_end()) {
 1339     for (auto &P : Probs) {
 1412     for (MachineBasicBlock *S : successors()) {
 1413       for (const MachineBasicBlock::RegisterMaskPair &LI : S->liveins()) {
 1468     for (const MachineBasicBlock::RegisterMaskPair &LI : liveins())
lib/CodeGen/MachineBlockPlacement.cpp
  603   for (MachineBasicBlock *Succ : MBB->successors()) {
  650   for (MachineBasicBlock *Succ : BB->successors()) {
  698   for (MachineBasicBlock *Succ : BB.successors())
  794   for (MachineBasicBlock *SuccPred : Succ->predecessors()) {
  906     for (auto SuccPred : Succ->predecessors()) {
  910         for (MachineBasicBlock *CheckSucc : SuccPred->successors())
 1005     for (MachineBasicBlock *SuccPred : Succ->predecessors()) {
 1079   for (MachineBasicBlock *Pred : Succ->predecessors()) {
 1177     for (MachineBasicBlock *Succ : BB.successors()) {
 1197     for (MachineBasicBlock* Pred : PDom->predecessors()) {
 1419   for (MachineBasicBlock *Pred : Succ->predecessors()) {
 1683     for (MachineBasicBlock *Pred : ChainBB->predecessors()) {
 1809   for (MachineBasicBlock *Pred : Top->predecessors()) {
 1817       for (MachineBasicBlock *Succ : Pred->successors()) {
 1877    for (MachineBasicBlock *Pred : NewTop->predecessors()) {
 1895      for (MachineBasicBlock *Succ : BestPred->successors()) {
 1968   for (MachineBasicBlock *Pred : OldTop->predecessors()) {
 2087     for (MachineBasicBlock *Succ : MBB->successors()) {
 2173   for (MachineBasicBlock *Pred : Top->predecessors()) {
 2181       for (MachineBasicBlock *Succ : Pred->successors()) {
 2224     for (MachineBasicBlock *Succ : Bottom->successors()) {
 2311   for (auto *Pred : ChainHeaderBB->predecessors()) {
 2333     for (auto *Succ : BB->successors()) {
 2441     for (auto LoopPred : L.getHeader()->predecessors())
 2467   for (const MachineLoop *InnerLoop : L)
 2593   for (MachineLoop *L : *MLI)
 2964     for (MachineBasicBlock *NewSucc : Pred->successors()) {
 3148     for (MachineBasicBlock *Succ : MBB.successors()) {
lib/CodeGen/MachineBranchProbabilityInfo.cpp
   66        E = MBB->succ_end(); I != E; ++I) {
lib/CodeGen/MachineCSE.cpp
  751     for (MachineDomTreeNode *Child : Children)
  858     for (MachineDomTreeNode *Child : Children)
lib/CodeGen/MachineDominators.cpp
  105     for (MachineBasicBlock *PredBB : Succ->predecessors()) {
lib/CodeGen/MachineFrameInfo.cpp
  129   for (auto &I : getCalleeSavedInfo())
lib/CodeGen/MachineFunction.cpp
  502          I = RegInfo->livein_begin(), E = RegInfo->livein_end(); I != E; ++I) {
  506       if (std::next(I) != E)
  803        E = FilterEnds.end(); I != E; ++I) {
lib/CodeGen/MachineLICM.cpp
  511     for (const auto &LI : BB->liveins()) {
 1351   for (const MachineInstr *PrevMI : PrevMIs)
lib/CodeGen/MachineLoopInfo.cpp
  124   for (MachineBasicBlock *P : HB->predecessors()) {
  135   for (MachineBasicBlock *S : Preheader->successors()) {
lib/CodeGen/MachineOutliner.cpp
  554           for (SuffixTreeNode *Leaf : LeafChildren)
  908     for (const Candidate &C : OF.Candidates)
 1019     for (const unsigned &StartIdx : RS.StartIndices) {
 1204   for (OutlinedFunction &OF : FunctionList) {
 1229     for (Candidate &C : OF.Candidates) {
lib/CodeGen/MachinePipeliner.cpp
  223   for (auto &L : *MLI)
  235   for (auto &InnerLoop : L)
  664   for (auto &SU : SUnits) {
  760   for (SUnit &I : SUnits) {
  843   for (SUnit &I : SUnits) {
 1288   for (SUnit &SU : DAG->SUnits) {
 1369          I != E; ++I) {
 1379        I != E; ++I) {
 1450        I != E; ++I) {
 1483        I != E; ++I) {
 1550   for (SUnit *SU : NS) {
 1564   for (SUnit *SU : NS)
 1600     for (auto &SU : SUnits) {
 1777         for (NodeSet::iterator NII = J->begin(), ENI = J->end(); NII != ENI;
 1831       for (auto &N : Nodes)
 1839       for (SUnit *SU : Nodes) {
 1952     for (SUnit *I : NodeOrder)
 2036     } while (++NI != NE && scheduleFound);
 2275   for (auto &M : Mutations)
 2863   for (const auto &I : Nodes)
lib/CodeGen/MachineRegisterInfo.cpp
  213   for (auto &I : LiveIns)
  443   for (livein_iterator I = livein_begin(), E = livein_end(); I != E; ++I)
  452   for (livein_iterator I = livein_begin(), E = livein_end(); I != E; ++I)
  461   for (livein_iterator I = livein_begin(), E = livein_end(); I != E; ++I)
lib/CodeGen/MachineSSAUpdater.cpp
  165          E = BB->pred_end(); PI != E; ++PI) {
  285            E = BB->pred_end(); PI != E; ++PI)
lib/CodeGen/MachineScheduler.cpp
  598   for (const SUnit *SU : Queue)
  821   for (auto &m : Mutations)
  828   for (SUnit &SU : SUnits) {
  894          DI = DbgValues.end(), DE = DbgValues.begin(); DI != DE; --DI) {
  995   for (SUnit &SU : SUnits)
 1061                   : RegionCriticalPSets) dbgs()
 1167   for (const SUnit &SU : SUnits) {
 1602   for (SUnit &SU : DAG->SUnits) {
 1823   for (SUnit &SU : DAG->SUnits) {
 1892   for (SUnit &SU : DAG->SUnits) {
 2392     for (ReadyQueue::iterator I = Available.begin(); I != Available.end();) {
 2845   for (const SUnit *SU : Bot.Available) {
 3111   for (SUnit *SU : Q) {
 3401   for (SUnit *SU : Q) {
lib/CodeGen/MachineSink.cpp
  328     for (auto &Pair : ToSplit) {
  525            E = ToBB->pred_end(); PI != E; ++PI) {
  602   for (const auto &DTChild : Children)
 1120   for (auto *SI : CurBB.successors()) {
 1229   for (MachineBasicBlock *SI : CurBB.successors())
lib/CodeGen/MachineTraceMetrics.cpp
  335   for (const MachineBasicBlock *Pred : MBB->predecessors()) {
  359   for (const MachineBasicBlock *Succ : MBB->successors()) {
  536       for (const MachineBasicBlock *Pred : MBB->predecessors()) {
  561       for (const MachineBasicBlock *Succ : MBB->successors()) {
lib/CodeGen/MachineVerifier.cpp
  571            SuE = MBB->succ_end(); SuI != SuE; ++SuI)
  625     for (const auto &LI : MBB->liveins()) {
  637        E = MBB->succ_end(); I != E; ++I) {
  651        E = MBB->pred_end(); I != E; ++I) {
  799     for (const auto &LI : MBB->liveins()) {
 2146            SuE = MBB.succ_end(); SuI != SuE; ++SuI) {
 2160            SuE = MBB->succ_end(); SuI != SuE; ++SuI) {
 2179            PrE = MBB.pred_end(); PrI != PrE; ++PrI) {
 2193            PrE = MBB->pred_end(); PrI != PrE; ++PrI) {
 2259       for (MachineBasicBlock *Pred : MBB.predecessors()) {
 2635          PE = MFI->pred_end(); PI != PE; ++PI) {
 2807          E = MBB->pred_end(); I != E; ++I) {
 2823          E = MBB->succ_end(); I != E; ++I) {
lib/CodeGen/MacroFusion.cpp
  102       for (SUnit &SU : DAG.SUnits) {
  135     for (SUnit &ISU : DAG->SUnits)
lib/CodeGen/ModuloSchedule.cpp
   25   for (MachineInstr *MI : ScheduledInstrs)
  265   assert(LoopExitI != KernelBB->succ_end() && "Expecting a successor");
 1957   for (auto *L : MLI) {
lib/CodeGen/PHIElimination.cpp
  490              SE = opBlock.succ_end(); SI != SE; ++SI) {
  662     for (const MachineBasicBlock *SI : MBB->successors())
lib/CodeGen/PostRASchedulerList.cpp
  443   for (auto &M : Mutations)
  694          DI = DbgValues.end(), DE = DbgValues.begin(); DI != DE; --DI) {
lib/CodeGen/PrologEpilogInserter.cpp
  336          i = FrameSDOps.begin(), e = FrameSDOps.end(); i != e; ++i) {
  411     for (auto &CS : CSI) {
  498     for (MachineBasicBlock *SuccBB : CurBB->successors())
lib/CodeGen/ReachingDefAnalysis.cpp
   41     for (const auto &LI : MBB->liveins()) {
   55   for (MachineBasicBlock *pred : MBB->predecessors()) {
   90   for (int &OutLiveReg : MBBOutRegsInfos[MBBNumber])
  159     for (MBBRegUnitDefs &RegUnitDefs : MBBDefs)
lib/CodeGen/RegAllocFast.cpp
 1255   for (const MachineBasicBlock::RegisterMaskPair LI : MBB.liveins())
lib/CodeGen/RegAllocGreedy.cpp
  550     for (MachineLoop *L : *Loops) {
 3148   for (MachineLoop *SubLoop : *L) {
lib/CodeGen/RegisterCoalescer.cpp
 1058   for (MachineBasicBlock *Pred : MBB.predecessors()) {
lib/CodeGen/RenameIndependentSubregs.cpp
  324         for (MachineBasicBlock *PredMBB : MBB.predecessors()) {
lib/CodeGen/ScheduleDAG.cpp
  393   for (const SUnit &SUnit : SUnits) {
  480   for (SUnit &SU : SUnits) {
  514   for (SUnit &SU : SUnits)  {
  698   for (unsigned LI : L) {
lib/CodeGen/ScheduleDAGInstrs.cpp
  218     for (const MachineBasicBlock *Succ : BB->successors()) {
  219       for (const auto &LI : Succ->liveins()) {
  631     if (Itr != end()) {
  650     for (auto &I : *this)
  663   for (auto &I : Val2SUsMap)
  672   if (Itr != Val2SUsMap.end())
  680   for (auto &I : map) {
  692   for (Value2SUsMap::iterator I = map.begin(), EE = map.end(); I != EE;) {
 1022   for (auto &Itr : *this) {
 1048   for (auto &I : stores)
 1051   for (auto &I : loads)
 1166   for (const SUnit &SU : SUnits)
 1339     for (const std::pair<const SUnit*, const SUnit*> &P : ConnectionPairs) {
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
12498   for (auto *U : Users) {
lib/CodeGen/SelectionDAG/FastISel.cpp
  222   for (auto &P : FuncInfo.PHINodesToUpdate)
 1173   for (auto &Arg : CLI.getArgs()) {
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  187           for (TargetLowering::AsmOperandInfo &Op : Ops) {
lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp
  593     for (auto I = std::next(Queue.begin()), E = Queue.end(); I != E; ++I) {
  603     for (auto I = std::next(Queue.begin()), E = Queue.end(); I != E; ++I)
  609   if (Best != std::prev(Queue.end()))
  621   if (I != std::prev(Queue.end()))
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
 1812     if (I != std::prev(Queue.end()))
 1842   for (auto I = std::next(Q.begin()), E = Q.end(); I != E; ++I)
 1846   if (Best != std::prev(Q.end()))
 2012   for (const SUnit &SU : *SUnits)
 2808     for (SUnit &SU : sunits)
 2942   for (SUnit &SU : *SUnits) {
 3054   for (SUnit &SU : *SUnits) {
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
  697   for (const SUnit &SU : SUnits)
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 8438   for (auto N : TopoOrder) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1144   for (auto &DDIMI : DanglingDebugInfoMap) {
 1149     for (auto &DDI : DDIV)
 1166   for (auto &DDI : DDIV) {
 1362   for (auto &Pair : DanglingDebugInfoMap)
 1363     for (auto &DDI : Pair.second)
 7744     for (const auto &Code : Codes)
 8058   for (auto &T : TargetConstraints) {
10176              SI != SE; ++SI) {
10483   for (CaseCluster &CC : Clusters) {
10537     for (const CaseCluster &C : Clusters) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 1774   for (auto &BTB : SDB->SL->BitTestCases) {
lib/CodeGen/SelectionDAG/StatepointLowering.cpp
  872   for (const GCRelocateInst *Relocate : ISP.getRelocates()) {
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4192   for (InlineAsm::ConstraintInfo &CI : IA->ParseConstraints()) {
lib/CodeGen/ShrinkWrap.cpp
  316   for (MachineBasicBlock *BB : BBs) {
lib/CodeGen/SplitKit.cpp
   83   for (const MachineBasicBlock *SMBB : MBB.successors())
 1244   for (MachineBasicBlock *P : B.predecessors()) {
 1460     for (const MachineBasicBlock *Pred : MBB.predecessors()) {
lib/CodeGen/StackColoring.cpp
  645              PE = MBB->pred_end(); PI != PE; ++PI) {
  776            PE = BB->pred_end(); PI != PE; ++PI) {
lib/CodeGen/StackMaps.cpp
  178   for (const auto &CSI : CSInfos) {
  357   if (CurrentIt != FnInfos.end())
  441   for (auto const &FR : FnInfos) {
  457   for (const auto &ConstEntry : ConstPool) {
  495   for (const auto &CSI : CSInfos) {
lib/CodeGen/SwiftErrorValueTracking.cpp
  183       for (auto *Pred : MBB->predecessors()) {
lib/CodeGen/SwitchLoweringUtils.cpp
   49   for (CaseCluster &C : Clusters)
  237   for (MachineBasicBlock *Succ : Table) {
  269   for (const CaseCluster &C : Clusters)
  444   for (auto &CB : CBV) {
  461   for (const CaseCluster &CC : Clusters)
lib/CodeGen/TailDuplicator.cpp
  637   for (auto SB : TailBB.successors()) {
  675   for (MachineBasicBlock *BB : A.successors())
  683   for (MachineBasicBlock *PredBB : BB.predecessors()) {
  865     for (MachineBasicBlock *Succ : TailBB->successors())
lib/CodeGen/TargetFrameLoweringImpl.cpp
   72   for (const CalleeSavedInfo &Info : MFI.getCalleeSavedInfo())
lib/CodeGen/UnreachableBlockElim.cpp
  129       while (BB->succ_begin() != BB->succ_end()) {
lib/CodeGen/WinEHPrepare.cpp
  726   for (auto &Funclets : FuncletBlocks) {
  737     for (BasicBlock *BB : BlocksInFunclet) {
  769     for (auto &BBMapping : Orig2Clone) {
  799     for (BasicBlock *BB : BlocksInFunclet)
  808     for (auto &BBMapping : Orig2Clone) {
  851     for (auto &BBMapping : Orig2Clone) {
  864     for (auto &BBMapping : Orig2Clone) {
  933   for (auto &Funclet : FuncletBlocks) {
  941     for (BasicBlock *BB : BlocksInFunclet) {
lib/DebugInfo/CodeView/AppendingTypeTableBuilder.cpp
   92   for (auto C : Fragments)
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
  254     for (auto V : Value) {
lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp
   95   for (const auto &FC : Checksums) {
lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp
   86   for (const auto &Item : Ids) {
lib/DebugInfo/CodeView/DebugInlineeLinesSubsection.cpp
   91   for (const auto &E : Entries) {
lib/DebugInfo/CodeView/DebugLinesSubsection.cpp
  113   for (const auto &B : Blocks) {
  139   for (const auto &B : Blocks) {
lib/DebugInfo/CodeView/DebugSymbolsSubsection.cpp
   23   for (const auto &Record : Records) {
lib/DebugInfo/CodeView/GlobalTypeTableBuilder.cpp
  103   for (auto C : Fragments)
lib/DebugInfo/CodeView/MergingTypeTableBuilder.cpp
  120   for (auto C : Fragments)
lib/DebugInfo/CodeView/SymbolDumper.cpp
  215   for (auto Entry : EnvBlock.Fields) {
  595   for (auto FuncID : Caller.Indices)
  642   for (StringRef Str : Annot.Strings)
lib/DebugInfo/CodeView/TypeRecordMapping.cpp
  486     for (auto Name : Record.MethodNames)
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
  411   for (const auto &Attr : Attributes)
  527   for (const auto &Attr : Abbr.Attributes)
lib/DebugInfo/DWARF/DWARFContext.cpp
  142   for (auto &Contribution : Contributions) {
 1142   for (uint32_t RowIndex : RowVector) {
 1698     for (SectionName &S : SectionNames)
 1750     for (auto &P : InfoDWOSections)
 1755     for (auto &P : TypesDWOSections)
 1804     for (auto &P : InfoSections)
 1809     for (auto &P : TypesSections)
lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp
   51   for (const auto &Decl : Decls)
   59     for (const auto &Decl : Decls) {
lib/DebugInfo/DWARF/DWARFDebugAddr.cpp
  154     for (uint64_t Addr : Addrs)
lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp
  107   for (const auto &Desc : ArangeDescriptors) {
lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
   31     for (const auto &Desc : Set.descriptors()) {
   60         for (const auto &R : *CURanges)
   87   for (const auto &E : Endpoints) {
  119   if (It != Aranges.end() && It->LowPC <= Address)
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
  276   for (const auto &Instr : Instructions) {
  538   if (It != Entries.end() && (*It)->getOffset() == Offset)
  552   for (const auto &Entry : Entries)
lib/DebugInfo/DWARF/DWARFDebugLine.cpp
  460     for (const Row &R : Rows) {
  998   while (SeqPos != LastSeq && SeqPos->LowPC < EndAddr) {
lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp
   49   for (const Set &S : Sets) {
   57     for (const Entry &E : S.Entries) {
lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp
   61   for (const RangeListEntry &RLE : Entries) {
   73   for (const RangeListEntry &RLE : Entries) {
lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
  118   for (const RangeListEntry &RLE : Entries) {
lib/DebugInfo/DWARF/DWARFDie.cpp
   69   for (const DWARFAddressRange &R : Ranges) {
  513   for (const auto &R : RangesOrError.get())
lib/DebugInfo/DWARF/DWARFListTable.cpp
  102     for (const auto &Off : Offsets) {
lib/DebugInfo/DWARF/DWARFUnit.cpp
  606       for (const auto &R : DIERangesOrError.get()) {
lib/DebugInfo/DWARF/DWARFVerifier.cpp
   35   if (Pos != End) {
   38     if (Pos != Begin) {
   69   while (I1 != E1) {
   89   while (I1 != E1 && I2 != E2) {
   89   while (I1 != E1 && I2 != E2) {
  244     for (auto AbbrDecl : *AbbrDecls) {
  394     for (auto Range : Ranges) {
  713     for (const auto &FileName : LineTable->Prologue.FileNames) {
  749     for (const auto &Row : LineTable->Rows) {
 1015   for (const BucketInfo &B : BucketStarts) {
 1150     for (const auto &AttrEnc : Abbrev.Attributes) {
 1455       for (const DWARFDebugInfoEntry &Die : CU->dies())
lib/DebugInfo/GSYM/GsymCreator.cpp
  100   for (const auto &FuncInfo : Funcs) {
  126   for (auto File: Files) {
  138   for (const auto &FuncInfo : Funcs) {
  150   for (auto AddrInfoOffset: AddrInfoOffsets) {
  193   while (Curr != Funcs.end()) {
  196     if (Prev != Funcs.end()) {
  262   for (auto &FI : Funcs) {
  271   for (const auto &FI : Funcs) {
lib/DebugInfo/GSYM/InlineInfo.cpp
   25   for (auto Range : II.Ranges) {
   34   for (const auto &Child : II.Children)
   47     for (const auto &Child : II.Children) {
  140     for (const auto &Child : Children) {
  143       for (const auto &ChildRange: Child.Ranges) {
lib/DebugInfo/GSYM/LineTable.cpp
  139     for (const auto &line_entry : Lines) {
  146         if (Pos != End && Pos->Delta == LineDelta)
  201   for (const auto &Curr : Lines) {
  284   for (const auto &LineEntry : LT)
lib/DebugInfo/GSYM/Range.cpp
   26   while (It2 != Ranges.end() && It2->Start < Range.End)
   28   if (It != It2) {
   32   if (It != Ranges.begin() && Range.Start < It[-1].End)
   42   return It != Ranges.begin() && Addr < It[-1].End;
   89   for (auto Range : Ranges)
  100   for (auto &Range : Ranges)
lib/DebugInfo/MSF/MSFBuilder.cpp
   87   for (auto B : DirectoryBlocks)
  241   for (const auto &D : StreamData) {
  375   for (const auto &Blocks : Layout.StreamMap) {
lib/DebugInfo/MSF/MappedBlockStream.cpp
  100     for (auto &Entry : CacheIter->second) {
  285     for (const auto &Alloc : MapEntry.second) {
lib/DebugInfo/PDB/IPDBSourceFile.cpp
   29     for (uint8_t c : Checksum)
lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp
   91   for (const auto &Builder : C13Builders) {
  158     for (ArrayRef<uint8_t> Syms : Symbols) {
  165     for (const auto &Builder : C13Builders) {
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp
  139   for (const auto &M : ModiList)
  164   for (const auto &M : ModiList)
  210   for (const auto &MI : ModiList) {
  228   for (const auto &MI : ModiList) {
  258   for (auto &MI : ModiList)
  321   for (auto &MI : ModiList) {
  403   for (auto &M : ModiList) {
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
   89   for (const auto &Sym : Records)
  137   for (const CVSymbol &Sym : Records) {
  180     for (const auto &Entry : Bucket)
  270   for (auto &Sym : PublicsByAddr) {
lib/DebugInfo/PDB/Native/InfoStreamBuilder.cpp
   76   for (auto E : Features) {
lib/DebugInfo/PDB/Native/TpiStream.cpp
  169   for (TypeIndex TI : HashMap[Bucket]) {
  194   for (TypeIndex TI : HashMap[BucketIdx]) {
lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
  155   for (auto Rec : TypeRecords) {
  171     for (auto &IndexOffset : TypeIndexOffsets) {
lib/DebugInfo/PDB/UDTLayout.cpp
  134   for (auto &LI : LayoutItems) {
  205   for (auto &Base : Bases) {
  226   for (auto &Data : Members) {
  235   for (auto &VB : VirtualBaseSyms) {
  270   for (BaseClassLayout *BL : AllBases) {
lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
   74   for (auto &P : Symbols)
   93     while (I != E) {
   95       while (++I != E && OI->first.Addr == I->first.Addr) {
  148   for (auto I = ExportSyms.begin(), E = ExportSyms.end(); I != E; ++I) {
  151     uint32_t NextOffset = I != E ? I->Offset : Export.Offset + 1;
lib/DebugInfo/Symbolize/Symbolize.cpp
  296   for (const auto &Path : Opts.DsymHints) {
  299   for (const auto &Path : DsymPaths) {
lib/ExecutionEngine/Interpreter/Interpreter.h
   48     for (void *Allocation : Allocations)
lib/ExecutionEngine/JITLink/BasicGOTAndStubsBuilder.h
   30     for (auto *B : Blocks)
   31       for (auto &E : B->edges())
lib/ExecutionEngine/JITLink/JITLink.cpp
  166       for (auto &E : Sym->getBlock().edges()) {
lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp
  131   for (auto &P : Passes)
  174         for (auto *B : *SIEntry.first)
  196     for (auto *B : SegLists.ContentBlocks) {
  205     for (auto *B : SegLists.ZeroFillBlocks) {
  247       for (auto *B : *SIList) {
  322     for (auto &E : Sym->getBlock().edges()) {
  337     for (auto *Sym : SymbolsToRemove) {
  350     for (auto *B : BlocksToRemove) {
lib/ExecutionEngine/JITLink/JITLinkGeneric.h
  168       for (auto *B : SegLayout.ContentBlocks) {
  202         for (auto &E : B->edges()) {
lib/ExecutionEngine/MCJIT/MCJIT.cpp
  665   for (JITEventListener *L : EventListeners)
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
  234   for (auto *GV : GVsToAdd)
  289           for (auto &GV : PromotedGlobals)
lib/ExecutionEngine/Orc/Core.cpp
  214     for (auto &KV : make_range(std::next(JDs.begin()), JDs.end())) {
  742     assert(I != DefGenerators.end() && "Generator not found");
  763         for (auto &SI : AddedSyms)
  978       for (auto &Q : MI.takeQueriesMeeting(SymbolState::Resolved)) {
 1093             for (auto &Q : DependantMI.takeQueriesMeeting(SymbolState::Ready)) {
 1109         for (auto &Q : MI.takeQueriesMeeting(SymbolState::Ready)) {
 1231       for (auto &Q : MII->second.pendingQueries()) {
 1278     if (I != SearchOrder.end())
 1289     if (I != SearchOrder.end())
 1332     for (auto &SymbolMaterializerItrPair : SymbolsToRemove) {
 1357     for (auto &DG : DefGenerators) {
 1409   for (auto &DG : DefGenerators) {
 1510   for (auto &Name : ToRemove)
 1531     for (auto &DG : DefGenerators) {
 1566     for (auto &MU : MUs)
 1635   for (auto &Name : ToRemove)
 1646     for (auto &KV : SearchOrder)
 1678       for (const auto &Q : KV.second.pendingQueries())
 1709   assert(I != PendingQueries.end() &&
 1762   for (auto &S : MUDefsOverridden)
 1766   for (auto &S : ExistingDefsOverridden) {
 1833     for (auto &JD : JDs)
 1959       for (auto &KV : SearchOrder) {
 1985         for (auto &MU : KV.second)
 2018       for (auto &MU : KV.second)
 2113     for (auto &JD : JDs)
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  124     for (auto &Name : KV.second) {
  135       for (auto &Name : KV.second) {
  150   for (auto &P : CXXDestructorDataPairs)
lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
   63   for (const auto &F : FeatureVec)
lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
  210       for (auto &E : Sym->getBlock().edges()) {
  251         for (auto &E : Sym->getBlock().edges()) {
  272       for (auto &WLEntry : Worklist) {
  339   for (auto &P : Plugins)
  344   for (auto &P : Plugins)
  351   for (auto &P : Plugins)
  368   for (auto &P : Plugins)
  389   for (auto &P : Plugins)
lib/ExecutionEngine/Orc/OrcCBindingsStack.h
  245     for (auto &DtorRunner : IRStaticDestructorRunners)
  498     for (auto &Listener : EventListeners)
  505     for (auto &Listener : EventListeners)
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
  392     for (object::OwningBinary<object::Archive> &OB : Archives) {
lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
  144   for (auto &Frame : EHFrames)
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
  740   for (auto &Sym : SymbolsToAllocate) {
lib/FuzzMutate/FuzzerCLI.cpp
   68   for (std::string &S : Args)
  132   for (std::string &S : Args)
lib/FuzzMutate/IRMutator.cpp
   57   for (const auto &Getter : AllowedTypes)
   62   for (const auto &Strategy : Strategies)
lib/IR/AsmWriter.cpp
  539   for (I = NamedTypes.begin(), E = NamedTypes.end(); I != E; ++I) {
 2621   for (const Comdat *C : Comdats) {
 2690   for (auto &ModPair : moduleVec) {
 2705     for (auto &Summary : GlobalList.second.SummaryList)
 2819   for (auto &P : TI) {
 2831   for (auto arg : Args) {
 2991     for (auto &GUID : TIDInfo.TypeTests) {
 3055   for (auto &VFuncId : VCallList) {
 3066   for (auto &ConstVCall : VCallList) {
 4138   for (const auto &I : asVec)
lib/IR/DIBuilder.cpp
  105   for (const auto &I : AllMacrosPerParent) {
lib/IR/LLVMContextImpl.cpp
   60   for (auto *I : DistinctMDNodes)
   74   for (MDNode *I : DistinctMDNodes)
lib/IR/LegacyPassManager.cpp
  113   for (auto *PassInf : PassesToPrint) {
  460     for (auto &OnTheFlyManager : OnTheFlyManagers) {
  850   for (const PassInfo *ImmPI : PassInf->getInterfacesImplemented())
 1720   for (auto &OnTheFlyManager : OnTheFlyManagers) {
 1781   for (auto &OnTheFlyManager : OnTheFlyManagers) {
 1935   for (PMDataManager *Manager : S)
lib/IR/ModuleSummaryIndex.cpp
   70     for (auto &GlobSummary : GlobalList.second.SummaryList) {
  159     for (auto &S : P.second.SummaryList) {
  205     for (const ValueInfo V : *I) {
  260   for (auto &A : Attrs)
  479   for (auto &E : CrossModuleEdges) {
  487     for (auto DstMod : ModList)
lib/IR/PassRegistry.cpp
   66   for (auto *Listener : Listeners)
lib/IR/ProfileSummary.cpp
   51   for (auto &Entry : DetailedSummary) {
lib/IR/Verifier.cpp
 2093   for (const auto &Pair : SiblingFuncletInfo) {
lib/LTO/LTO.cpp
  125   for (auto &A : Conf.MAttrs)
  260         for (uint64_t Arg : ByArg.first)
  367     for (auto &S : I.second.SummaryList)
  390   for (auto &S : GVSummaryList) {
  781   for (GlobalValue *GV : Mod.Keep) {
  880     for (auto &S : P.second.SummaryList) {
  934   for (auto &M : RegularLTO.ModsWithSummaries)
 1281   for (auto &Mod : ThinLTO.ModuleMap)
 1367   for (auto &Mod : ThinLTO.ModuleMap) {
lib/LTO/LTOBackend.cpp
  132   for (const std::string &A : Conf.MAttrs)
  472   for (GlobalValue *GV : DeadGVs) {
  528     assert(I != ModuleMap.end());
lib/LTO/LTOCodeGenerator.cpp
  638     for (std::string &Arg : CodegenOptions)
lib/LTO/LTOModule.cpp
  645   for (const NameAndAttributes &Sym : _symbols) {
lib/LTO/ThinLTOCodeGenerator.cpp
  110   if (StrongDefForLinker != GVSummaryList.end())
  145   for (auto &M : Modules) {
  569   for (auto &Mod : Modules) {
  913     for (auto &Mod : Modules) {
  964   for (const auto &M : Modules)
 1016   for (auto &Module : Modules) {
 1041     for (auto IndexCount : ModulesOrdering) {
lib/LineEditor/LineEditor.cpp
   42        I != E; ++I) {
   73          I != E; ++I)
  175              I != E; ++I) {
lib/Linker/IRMover.cpp
  783   for (StructType *ST : Types) {
 1101   for (const auto Elem : RAUWWorklist) {
 1541   for (StructType *Ty : StructTypes) {
lib/Linker/LinkModules.cpp
  409   for (GlobalValue *GV2 : LazyComdatMembers[SC]) {
  535     for (GlobalValue *GV2 : LazyComdatMembers[SC]) {
  546     for (GlobalValue *GV : ValuesToLink)
lib/MC/ConstantPools.cpp
   89   for (auto &CPI : ConstantPools) {
lib/MC/ELFObjectWriter.cpp
  763   for (ELFSymbolData &MSD : LocalSymbolData) {
  774   for (ELFSymbolData &MSD : ExternalSymbolData) {
  801   for (const MCSymbol *Sym : OWriter.AddrsigSyms)
 1071   for (const MCSectionELF *Section : SectionTable) {
 1165   for (MCSectionELF *Group : Groups) {
 1174     for (const MCSectionELF *Member : GroupMembers[SignatureSymbol]) {
 1199     for (MCSectionELF *RelSection : Relocations) {
 1222     for (const MCAssembler::CGProfileEntry &CGPE : Asm.CGProfile) {
 1280   for (const std::pair<StringRef, const MCSymbol *> &P : Asm.Symvers) {
 1325   for (const MCSymbol *&Sym : AddrsigSyms) {
lib/MC/MCAsmMacro.cpp
   24     for (const AsmToken &T : Value) {
   37   for (const MCAsmMacroParameter &P : Parameters) {
lib/MC/MCCodeView.cpp
  348   for (auto I = Locs.begin(), E = Locs.end(); I != E;) {
  369     for (auto J = I; J != FileSegEnd; ++J) {
  377       for (auto J = I; J != FileSegEnd; ++J) {
lib/MC/MCDwarf.cpp
  161   for (const MCDwarfLineEntry &LineEntry : LineEntries) {
  529   for (const auto &LineSec : MCLineSections.getMCLineEntries())
  903   for (MCSection *Sec : Sections) {
  994     assert(TextSection != Sections.end() && "No text section found");
 1060   for (const auto &Entry : Entries) {
 1108   for (MCSection *Sec : Sections) {
 1872   for (auto I = FrameArrayX.begin(), E = FrameArrayX.end(); I != E;) {
lib/MC/MCELFStreamer.cpp
  491   for (MCAssembler::CGProfileEntry &E : getAssembler().CGProfile) {
lib/MC/MCParser/AsmParser.cpp
 2450         for (const AsmToken &Token : A[Index])
 2487           for (const AsmToken &Token : A[Index])
 4387     for (const MCAsmMacroParameter& CurrParam : Parameters)
 5616   for (const MCAsmMacroArgument &Arg : A) {
lib/MC/MCStreamer.cpp
  124   for (auto &FI : DwarfFrameInfos)
  433     for (const MCCFIInstruction& Inst : MAI->getInitialFrameState()) {
lib/MC/MCSubtargetInfo.cpp
  184   for (const std::string &Feature : Features.getFeatures()) {
  281   for (std::string F : T.getFeatures()) {
lib/MC/MCWin64EH.cpp
   26   for (const auto &I : Insns) {
  270   for (const auto &I : Insns) {
  467   for (auto *EpilogStart : Epilogs) {
  469     assert(InstrsIter != info->EpilogMap.end() &&
  551   for (auto &I : info->EpilogMap) {
  559       assert(EpilogInfo.find(MatchingEpilog) != EpilogInfo.end() &&
  604   for (auto &I : EpilogInfo) {
  625   for (auto &I : info->EpilogMap) {
lib/MC/MachObjectWriter.cpp
  319     for (MachSymbolData &Entry : *SymbolData)
  425   for (const std::string &Option : Options)
  441   for (const std::string &Option : Options) {
  488          ie = Asm.indirect_symbol_end(); it != ie; ++it) {
  504          ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) {
  520          ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) {
  623     for (MachSymbolData &Entry : *SymbolData)
  627     for (RelAndSymbol &Rel : Relocations[&Section]) {
  807   for (const auto &Option : Asm.getLinkerOptions()) {
  949   for (const auto &Option : Asm.getLinkerOptions())
  977          it != ie; ++it) {
 1013            ie = Asm.indirect_symbol_end(); it != ie; ++it) {
 1037       for (MachSymbolData &Entry : *SymbolData)
lib/MC/StringTableBuilder.cpp
  144     for (StringPair *P : Strings) {
lib/MC/SubtargetFeature.cpp
   57   for (auto &F : Features)
lib/MC/WasmObjectWriter.cpp
  907   for (const WasmRelocationEntry &RelEntry : Relocs) {
  923   for (const auto &Sec : CustomSections) {
 1002       for (const WasmComdatEntry &Entry : C.second) {
 1493     for (const WasmRelocationEntry &RelEntry : CodeRelocations)
 1495     for (const WasmRelocationEntry &RelEntry : DataRelocations)
 1580   for (auto &CustomSection : CustomSections)
lib/MC/WinCOFFObjectWriter.cpp
  558   for (auto &Section : Sections)
  564   for (auto &Section : Arr) {
  654   for (const auto &Relocation : Sec.Relocations)
  883   for (const std::unique_ptr<COFFSection> &Section : Sections)
  886   for (const std::unique_ptr<COFFSection> &Section : Sections)
  931       for (auto &Relocation : Sec->Relocations) {
  967   for (auto &Symbol : Symbols) {
  978   for (const auto &S : Sections)
  981   for (const auto &S : Symbols)
  987   for (const auto &S : Sections)
  989   for (auto &S : Symbols)
  993   for (auto &Symbol : Symbols) {
 1004   for (auto &Section : Sections) {
 1039     for (const MCSymbol *S : AddrsigSyms) {
 1073   for (; I != IE && J != JE; ++I, ++J)
 1080   for (auto &Symbol : Symbols)
lib/MCA/HardwareUnits/Scheduler.cpp
  123   for (auto I = PendingSet.begin(), E = PendingSet.end(); I != E;) {
  159   for (auto I = WaitSet.begin(), E = WaitSet.end(); I != E;) {
  220   for (auto I = IssuedSet.begin(), E = IssuedSet.end(); I != E;) {
  251   for (const InstRef &IR : make_range(PendingSet.begin(), EndIt)) {
  273   for (InstRef &IR : IssuedSet)
  277   for (InstRef &IR : PendingSet)
  280   for (InstRef &IR : WaitSet)
lib/Object/ArchiveWriter.cpp
  332     for (unsigned StringOffset : M.Symbols) {
  575     for (const auto &M : Data) {
  621   for (const MemberData &M : Data)
lib/Object/COFFObjectFile.cpp
 1797   if (RelocsForOffset.first != RelocsForOffset.second) {
lib/Object/ELFObjectFile.cpp
  436   for (const auto &Entry : PltEntries)
lib/Object/IRObjectFile.cpp
   31   for (auto &M : this->Mods)
  121   for (auto BM : *BMsOrErr) {
lib/Object/ModuleSymbolTable.cpp
  166       for (auto &Alias : KV.second)
lib/Object/RecordStreamer.cpp
  210     for (auto AliasName : Symver.second) {
lib/Object/SymbolSize.cpp
   91   for (SymEntry &P : Addresses) {
lib/Object/WasmObjectFile.cpp
  476   for (auto &I : Imports) {
lib/Object/WindowsResource.cpp
  941   for (auto DataNodes : DataEntriesTreeOrder) {
lib/ObjectYAML/COFFEmitter.cpp
   70          i != e; ++i) {
  109          i != e; ++i) {
  189   for (auto &SS : CVSS) {
  199   for (const auto &B : Builders) {
  219   for (COFFYAML::Section &S : CP.Obj.Sections) {
  232   for (COFFYAML::Section &S : CP.Obj.Sections) {
  280        i != e; ++i) {
  360   for (const COFFYAML::Section &S : CP.Obj.Sections) {
  477        i != e; ++i) {
  495        I != E; ++I) {
  501   for (const COFFYAML::Section &S : CP.Obj.Sections) {
  509     for (const COFFYAML::Relocation &R : S.Relocations) {
  528        i != e; ++i) {
lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
  406   for (const auto &CS : Checksums) {
  421   for (const auto &LC : Lines.Blocks) {
  433       for (const auto &L : LC.Lines) {
  450   for (const auto &Site : InlineeLines.Sites) {
  456     for (auto EF : Site.ExtraFiles) {
  468   for (const auto &M : Exports)
  481   for (const auto &M : Imports) {
  482     for (const auto Id : M.ImportIds)
  492   for (const auto &Sym : Symbols)
  503   for (const auto &Str : this->Strings)
  514   for (const auto &YF : Frames) {
  535   for (const auto &RVA : RVAs)
lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp
   78   for (const auto &H : DebugH.Hashes) {
lib/ObjectYAML/CodeViewYAMLTypes.cpp
  495   for (const auto &Member : Members) {
lib/ObjectYAML/DWARFEmitter.cpp
   72   for (auto Str : DI.DebugStrings) {
   79   for (auto AbbrevDecl : DI.AbbrevDecls) {
   83     for (auto Attr : AbbrevDecl.Attributes) {
   95   for (auto Range : DI.ARanges) {
  107     for (auto Descriptor : Range.Descriptors) {
  124   for (auto Entry : Sect.Entries) {
  213   for (const auto &LineTable : DI.DebugLines) {
  227     for (auto OpcodeLength : LineTable.StandardOpcodeLengths)
  230     for (auto IncludeDir : LineTable.IncludeDirs) {
  236     for (auto File : LineTable.Files)
  240     for (auto Op : LineTable.Opcodes) {
  257           for (auto OpByte : Op.UnknownOpcodeData)
  286           for (auto OpData : Op.StandardOpcodeData) {
lib/ObjectYAML/DWARFVisitor.cpp
   47   for (auto &Unit : DebugInfo.CompileUnits) {
   51     for (auto &Entry : Unit.Entries) {
   59            FormVal != Entry.Values.end() && AbbrForm != Abbrev.Attributes.end();
   59            FormVal != Entry.Values.end() && AbbrForm != Abbrev.Attributes.end();
lib/ObjectYAML/ELFEmitter.cpp
  208   for (std::unique_ptr<ELFYAML::Section> &D : Doc.Sections) {
  236   for (StringRef SecName : ImplicitSections) {
  290   for (const auto &YamlPhdr : Doc.ProgramHeaders) {
  649   for (auto &YamlPhdr : Doc.ProgramHeaders) {
  653     for (const ELFYAML::SectionName &SecName : YamlPhdr.Sections) {
  672       for (Elf_Shdr *SHeader : Sections)
  680     for (Elf_Shdr *SHeader : Sections) {
  701       for (Elf_Shdr *SHeader : Sections)
  752   for (const auto &Rel : Section.Relocations) {
  780   for (uint32_t E : Shndx.Entries)
  802   for (const ELFYAML::SectionOrType &Member : Section.Members) {
  818   for (uint16_t Version : Section.Entries)
  838   for (const ELFYAML::StackSizeEntry &E : *Section.Entries) {
  864   for (uint32_t Val : *Section.Bucket)
  866   for (uint32_t Val : *Section.Chain)
 1013   for (const ELFYAML::DynamicEntry &DE : Section.Entries) {
 1037   for (const ELFYAML::AddrsigSymbol &Sym : *Section.Symbols) {
 1058   for (const ELFYAML::NoteEntry &NE : *Section.Notes) {
 1126     for (const ELFYAML::Symbol &Sym : *Doc.Symbols)
 1131   for (const ELFYAML::Symbol &Sym : Doc.DynamicSymbols)
 1136   for (const std::unique_ptr<ELFYAML::Section> &Sec : Doc.Sections) {
 1138       for (const ELFYAML::VerneedEntry &VE : VerNeed->VerneedV) {
 1140         for (const ELFYAML::VernauxEntry &Aux : VE.AuxV)
 1144       for (const ELFYAML::VerdefEntry &E : VerDef->Entries)
 1145         for (StringRef Name : E.VerNames)
lib/ObjectYAML/ELFYAML.cpp
  875     for (std::pair<StringRef, uint8_t> &P :
  898     if (It != Flags.end())
  914     for (StOtherPiece &Val : *Other)
 1278     for (const ELFYAML::AddrsigSymbol &AS : *Sec->Symbols)
lib/ObjectYAML/MachOEmitter.cpp
  118   for (const auto &Sec : LC.Sections) {
  133   for (const auto &Sec : LC.Sections) {
  179   for (const auto &T : LC.Tools) {
  209   for (auto &LC : Obj.LoadCommands) {
  259   for (auto &LC : Obj.LoadCommands) {
  270       for (auto &Sec : LC.Sections) {
  327   for (auto Opcode : BindOpcodes) {
  330     for (auto Data : Opcode.ULEBExtraData) {
  333     for (auto Data : Opcode.SLEBExtraData) {
  359   for (auto EE : Entry.Children) {
  364   for (auto EE : Entry.Children)
  394   for (auto &LC : Obj.LoadCommands) {
  423   for (auto writeOp : WriteQueue) {
  432   for (auto Opcode : LinkEdit.RebaseOpcodes) {
  435     for (auto Data : Opcode.ExtraData)
  453   for (auto NLE : Obj.LinkEdit.NameList) {
  462   for (auto Str : Obj.LinkEdit.StringTable) {
  554   for (auto Arch : FatFile.FatArchs) {
lib/ObjectYAML/MinidumpEmitter.cpp
  109   for (const auto &Callback : Callbacks)
  159   for (auto &E : S.Entries)
  166   for (auto &E : S.Entries)
lib/ObjectYAML/WasmEmitter.cpp
  164   for (StringRef Needed : Section.Needed)
  183     for (const WasmYAML::SymbolInfo &Info : Section.SymbolTable) {
  219     for (const WasmYAML::SegmentInfo &SegmentInfo : Section.SegmentInfos) {
  231     for (const WasmYAML::InitFunction &Func : Section.InitFunctions) {
  242     for (const auto &C : Section.Comdats) {
  246       for (const WasmYAML::ComdatEntry &Entry : C.Entries) {
  264     for (const WasmYAML::NameEntry &NameEntry : Section.FunctionNames) {
  288     for (auto &Entry : *Field.second) {
  299   for (auto &E : Section.Features) {
  327   for (const WasmYAML::Signature &Sig : Section.Signatures) {
  335     for (auto ParamType : Sig.ParamTypes)
  338     for (auto ReturnType : Sig.ReturnTypes)
  346   for (const WasmYAML::Import &Import : Section.Imports) {
  382   for (uint32_t FuncType : Section.FunctionTypes)
  389   for (const WasmYAML::Export &Export : Section.Exports) {
  404   for (auto &Table : Section.Tables) {
  413   for (const WasmYAML::Limits &Mem : Section.Memories)
  421   for (auto &Global : Section.Globals) {
  437   for (auto &Event : Section.Events) {
  451   for (auto &Segment : Section.Segments) {
  456     for (auto &Function : Segment.Functions)
  465   for (auto &Func : Section.Functions) {
  475     for (auto &LocalDecl : Func.Locals) {
  492   for (auto &Segment : Section.Segments) {
  529   for (auto Reloc : Sec.Relocations) {
  551   for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) {
  605   for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) {
lib/ProfileData/Coverage/CoverageMapping.cpp
  332     for (auto &Reader : CoverageReadersOrErr.get())
  356     while (I != E && I->FileID != FileID)
  358     assert(I != E && "function does not cover the given file");
  625   for (const auto &CR : Function.CountedRegions)
  660     for (const auto &CR : Function.CountedRegions)
  707   for (const auto &CR : Function.CountedRegions)
  726   for (const auto &CR : Expansion.Function.CountedRegions)
  786   while (Next != CD.end() && Next->Line == Line)
lib/ProfileData/Coverage/CoverageMappingReader.cpp
  303     for (auto &R : MappingRegions) {
  309     for (auto &R : MappingRegions) {
  785       for (auto &Reader : ChildReadersOrErr.get())
  795       for (auto &Buffer : Ar->takeThinBuffers())
lib/ProfileData/GCOV.cpp
  921   for (const auto &FC : FuncCoverages) {
lib/ProfileData/InstrProf.cpp
  373   if (It != AddrToMD5Map.end() && It->first == Address)
  685   for (auto &Count : this->Counts) {
lib/ProfileData/InstrProfWriter.cpp
  153       for (uint64_t I : ProfRecord.Counts)
  406   for (uint64_t Count : Func.Counts)
lib/ProfileData/ProfileSummaryBuilder.cpp
   72   for (const uint32_t Cutoff : DetailedSummaryCutoffs) {
lib/ProfileData/SampleProf.cpp
  223   for (auto &Sym : SortedList) {
  238   for (auto &Sym : SortedList)
lib/ProfileData/SampleProfReader.cpp
  608   for (auto &Entry : SecHdrTable) {
  663   for (auto Offset : OffsetsToUse) {
  776   for (auto &Entry : SecHdrTable) {
  790   for (auto &Entry : SecHdrTable) {
  798   for (auto &Entry : SecHdrTable) {
lib/ProfileData/SampleProfWriter.cpp
   58   for (const auto &I : V) {
  162   for (auto entry : FuncOffsetTable) {
  306   for (const auto &I : NameTable)
  344   for (auto entry : FuncOffsetTable) {
  489   for (auto Entry : Entries) {
lib/Remarks/RemarkStringTable.cpp
   58   for (StringRef Str : serialize()) {
lib/Support/CommandLine.cpp
 2155     for (auto I : GlobalParser->MoreHelp)
 2199          I != E; ++I)
 2218          Category != E; ++Category) {
 2242       for (const Option *Opt : CategoryOptions)
 2413       for (auto I : *ExtraVersionPrinters)
lib/Support/DAGDeltaAlgorithm.cpp
  130              it2 != ie2; ++it2)
  189          ie = Dependencies.end(); it != ie; ++it) {
  208            ie = pred_end(Change); it != ie; ++it) {
  235       if (succ_begin(*it) != succ_end(*it)) {
  238              it2 != ie2; ++it2) {
  239           if (it2 != succ_begin(*it))
  251          it != ie; ++it) {
lib/Support/Debug.cpp
   55   for (auto &d : *CurrentDebugType) {
lib/Support/DebugCounter.cpp
   35     for (auto Name : CounterInstance) {
lib/Support/DeltaAlgorithm.cpp
   61          ie = Sets.end(); it != ie; ++it)
   74          ie = Sets.end(); it != ie; ++it) {
lib/Support/DynamicLibrary.cpp
   47     return Handle == Process || Find(Handle) != Handles.end();
   56       if (Find(Handle) != Handles.end()) {
   78       for (void *Handle : Handles) {
lib/Support/FileCheck.cpp
  645     for (const auto &Substitution : Substitutions) {
  725     for (const auto &Substitution : Substitutions) {
 1143   for (const auto &PatternString : Req.ImplicitCheckNot) {
 1274     if (I != E) {
 1278     for (; I != E; ++I)
 1572   for (const FileCheckPattern *Pat : NotStrings) {
 1617        PatItr != PatEnd; ++PatItr) {
 1734   for (StringRef Prefix : Req.CheckPrefixes) {
 1758   for (StringRef Prefix : Req.CheckPrefixes) {
 1783   for (StringRef CmdlineDef : CmdlineDefines) {
lib/Support/FileCollector.cpp
  126   for (auto &entry : VFSWriter.getMappings()) {
lib/Support/JSON.cpp
  617       for (const Value &E : *V.getAsArray())
  622       for (const Object::value_type *E : sortedElements(*V.getAsObject()))
lib/Support/SourceMgr.cpp
  419   if (find_if(LineContents, isNonASCII) != LineContents.end()) {
lib/Support/SpecialCaseList.cpp
   66   for (auto& RegExKV : RegExes)
  100   for (const auto &Path : Paths) {
  210   for (auto &SectionIter : Sections)
lib/Support/Statistic.cpp
  155   for (auto *Stat : Stats) {
  209   for (const TrackingStatistic *Stat : Stats.Stats) {
  258   for (const auto &Stat : StatInfo->statistics())
lib/Support/ThreadPool.cpp
  105   for (auto &Worker : Threads)
lib/Support/TimeProfiler.cpp
  143     for (const auto &E : SortedTotals) {
lib/Support/Timer.cpp
  306   for (const PrintRecord &Record : TimersToPrint)
  414   for (const PrintRecord &R : TimersToPrint) {
lib/Support/TrigramIndex.cpp
   39   for (unsigned Char : Regex) {
lib/Support/VirtualFileSystem.cpp
 1111   for (const auto &Root : Roots)
 1128     for (std::unique_ptr<Entry> &SubEntry :
 1218       for (const auto &Root : FS->Roots) {
 1227       for (std::unique_ptr<RedirectingFileSystem::Entry> &Content :
 1268       for (std::unique_ptr<RedirectingFileSystem::Entry> &SubEntry :
 1574     for (auto &E : RootEntries)
 1646   for (const auto &Root : Roots) {
 1691   for (const std::unique_ptr<RedirectingFileSystem::Entry> &DirEntry :
 1832     for (std::unique_ptr<RedirectingFileSystem::Entry> &SubEntry :
 2070   assert((IsFirstTime || Current != End) && "cannot iterate past end");
 2073   while (Current != End) {
lib/Support/YAMLTraits.cpp
  307     for (auto &N : SQ->Entries) {
lib/TableGen/TGParser.cpp
  295   for (auto &E : Entry.Loop->Entries) {
  412   for (auto &E : Source) {
  873   for (const auto &L : Loops) {
 2633   for (SmallVectorImpl<LetRecord> &LetInfo : LetStack)
 2644   for (auto &E : Entry.Loop->Entries) {
 3137       for (auto &E : NewEntries) {
 3149   for (auto &E : NewEntries) {
 3229   for (const auto &E : Entries)
 3240   for (const auto &E : Entries)
lib/Target/AArch64/AArch64A53Fix835769.cpp
  143   for (MachineBasicBlock *S : MBB->predecessors())
  232   for (auto &MI : Sequences) {
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
  357   for (auto &I : AllChains)
  360   for (auto &I : AllChains)
  361     for (auto &J : AllChains)
  397   for (auto &I : V)
  418   for (auto I = L.begin(), E = L.end(); I != E; ++I) {
  569     for (auto J : ToErase)
lib/Target/AArch64/AArch64AsmPrinter.cpp
  717     for (auto *JTBB : JTBBs)
lib/Target/AArch64/AArch64BranchTargets.cpp
   73     for (auto &JTE : JTI->getJumpTables())
   74       for (auto *MBB : JTE.MBBs)
lib/Target/AArch64/AArch64CleanupLocalDynamicTLSPass.cpp
   88     for (MachineDomTreeNode *N : *Node) {
lib/Target/AArch64/AArch64CollectLOH.cpp
  515     for (const MachineBasicBlock *Succ : MBB.successors()) {
  516       for (const auto &LI : Succ->liveins()) {
lib/Target/AArch64/AArch64CompressJumpTables.cpp
  100   for (auto Block : JT.MBBs) {
lib/Target/AArch64/AArch64ConditionOptimizer.cpp
  155   for (auto SuccBB : MBB->successors())
lib/Target/AArch64/AArch64ConditionalCompares.cpp
  605     for (auto I = CmpBB->succ_begin(), E = CmpBB->succ_end(); I != E; ++I) {
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp
  139   for (Loop *L : LI)
  832   for (MachineLoop *I : LI)
lib/Target/AArch64/AArch64FrameLowering.cpp
  337   for (const auto &Info : MF.getFrameInfo().getCalleeSavedInfo())
  358   for (const auto &Info : CSI) {
lib/Target/AArch64/AArch64InstrInfo.cpp
 1274   for (auto *BB : MBB->successors())
 5105         for (outliner::Candidate &C : RepeatedSequenceLocs)
 5193     for (outliner::Candidate &C : RepeatedSequenceLocs) {
lib/Target/AArch64/AArch64MachineFunctionInfo.h
  198       for (const auto &Info : MFI.getCalleeSavedInfo()) {
lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
  295     for (auto &I : IRT) {
  297       for (auto &Repl : I.ReplOpc)
  515   for (auto &I : IRT) {
  524       for (auto &Repl : I.ReplOpc) {
lib/Target/AArch64/AArch64SpeculationHardening.cpp
  682   for (const LandingPadInfo &LPI : MF.getLandingPads())
lib/Target/AArch64/AArch64StackTagging.cpp
  439   for (auto &I : Allocas) {
  569   for (auto &I : Allocas) {
  613   for (auto &I : Allocas) {
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
  104     for (GlobalAlias* A : AliasesToRemove) {
lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
  220     for (auto I : *Node) {
  346   for (CallGraphNode *I : SCC) {
lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
  106   for (auto &BB : Checklist) {
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  502          std::find(UseNative.begin(), UseNative.end(), F) != UseNative.end();
lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
  527     for (auto CI : Children) {
  561     for (auto MRTI : Children) {
  587     for (auto CI : Children) {
  607     for (auto &CI : Children) {
  771        SI != E; ++SI) {
  827   for (auto CI : *Children) {
 1260        SI != E; ++SI) {
 1302        SI != SE; ++SI) {
 1332   for (auto CI : *Children) {
 1344   for (auto CI : *Children) {
 1784        PI != E; ++PI) {
 1803          PI != E; ++PI) {
 1816        PI != E; ++PI) {
 1841          PI != E; ++PI) {
 2584        PI != E; ++PI) {
 2593   for (auto SI = MBB->succ_begin(), SE = MBB->succ_end(); SI != SE; ++SI) {
 2652   for (auto CI = Children->begin(), CE = Children->end(); CI != CE; ++CI) {
 2789   for (auto CI : *Children) {
 2843          CI != CE; ++CI) {
lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
  375   for (CallGraphNode *I : SCC) {
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  420   for (Value *V : WorkList) {
  829   for (Value *V : WorkList) {
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  728     for (SUnit &SU : DAG->SUnits) {
  859     for (SUnit &SU : DAG->SUnits) {
  874       for ( ; Lat && LastSALU != E; ++LastSALU) {
lib/Target/AMDGPU/AMDILCFGStructurizer.cpp
  197          iterEnd = LoopInfo.end(); iter != iterEnd; ++iter) {
  656        iterEnd = SrcMBB->succ_end(); It != iterEnd; ++It)
  719        E = MLI->end(); It != E; ++It) {
  884          blockIter != blockEnd; ++blockIter) {
 1015   for (auto &It: *MLI)
 1055   for (auto *LB : inverse_children<MachineBasicBlock*>(LoopHeader))
 1347          PE = LandBlk->pred_end(); PI != PE; ++PI) {
lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
 1231   if (Result != Symbols->end()) {
lib/Target/AMDGPU/GCNHazardRecognizer.cpp
  386   for (MachineBasicBlock *Pred : MBB->predecessors()) {
lib/Target/AMDGPU/GCNILPSched.cpp
  300   for (const SUnit &SU : SUnits)
  304   for (const SUnit &SU : SUnits)
  351   for (auto &SU : SUnits)
lib/Target/AMDGPU/GCNIterativeScheduler.cpp
  111   for (const auto R : Regions) {
  293   for (auto I = Schedule.end(), B = Schedule.begin(); I != B;) {
  350     if (D != DbgE)
  381   for (const auto &I : Schedule) {
  458   for (auto R : Regions) {
  514     for (auto R : Regions) {
  549   for (auto R : Regions) {
  593   for (auto R : Regions) {
lib/Target/AMDGPU/GCNRegPressure.h
  207   for (MachineInstr *I : R) {
lib/Target/AMDGPU/GCNSchedStrategy.cpp
  150   for (SUnit *SU : Q) {
  398   for (MachineInstr *MI : Unsched) {
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp
   88        E = BranchStack.end(); I != E; ++I) {
  381       if (It != Lits.end()) {
lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
  222     if (ChanPos != UpdatedUndef.end())
  300     for (MachineInstr *MI : PreviousRegSeqByReg[MOp->getReg()]) {
lib/Target/AMDGPU/SIFrameLowering.cpp
 1086   for (auto &CS : CSI) {
lib/Target/AMDGPU/SIISelLowering.cpp
11021       for (auto &TC : TargetConstraints) {
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
 1492     for (BlockInfo &BI : BlockInfos) {
 1515         for (MachineBasicBlock *Succ : BI.MBB->successors()) {
lib/Target/AMDGPU/SIInstrInfo.cpp
 4456     for (auto &Succ : RemainderBB->successors()) {
 6108          PI != E; ++PI) {
lib/Target/AMDGPU/SILowerI1Copies.cpp
  188         for (MachineBasicBlock *Succ : MBB->successors())
  199       for (MachineBasicBlock *Succ : MBB->successors())
  205       for (MachineBasicBlock *Pred : MBB->predecessors()) {
  336       for (MachineBasicBlock *Pred : Dom->predecessors()) {
  388       for (MachineBasicBlock *Succ : MBB->successors()) {
lib/Target/AMDGPU/SIMachineScheduler.cpp
  265   for (SUnit* SU : TopReadySUs) {
  293   for (SUnit* SU : SUnits) {
  337   for (SUnit* SU : ScheduledSUnits) {
  411   for (SUnit* SU : SUnits) {
  431   for (SUnit* SU : SUnits) {
  441   for (SUnit* SU : SUnits) {
  528   for (SUnit* SU : SUnits) {
  541   for (SIScheduleBlock* P : Preds) {
  560   for (std::pair<SIScheduleBlock*, SIScheduleBlockLinkKind> &S : Succs) {
  586   for (SIScheduleBlock* P : Preds) {
  591   for (std::pair<SIScheduleBlock*, SIScheduleBlockLinkKind> S : Succs) {
  613     for (const SUnit* SU : SUnits)
  616     for (const SUnit* SU : SUnits)
  703   for (unsigned SUNum : DAG->TopDownIndex2SU) {
  742           for (unsigned k : SubGraph) {
  778         for (unsigned j : AdditionalElements)
  816   for (unsigned SUNum : DAG->TopDownIndex2SU) {
  858   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
  941   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1011   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1037   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1058   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1080   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1086   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1119   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1151   for (unsigned SUNum : DAG->TopDownIndex2SU) {
 1176         for (unsigned k : SubGraph) {
 1312     for (SIScheduleBlock* Pred : Block->getPreds()) {
 1322     for (SIScheduleBlock* Pred : Block->getPreds()) {
 1361     for (SUnit* SU : SUs) {
 1424       for (SIScheduleBlock *Pred : Block->getPreds()) {
 1471       for (SIScheduleBlock* Pred: Block->getPreds()) {
 1535       for (SIScheduleBlock* Pred: Block->getPreds()) {
 1563                                             : BlocksScheduled) {
 1630                   : ReadyBlocks) dbgs()
 1642        E = ReadyBlocks.end(); I != E; ++I) {
 1792     for (SUnit* SU : SUs)
 2032        E = ScheduledSUnits.end(); I != E; ++I) {
lib/Target/AMDGPU/SIModeRegister.cpp
  340     for (P = std::next(P); P != E; P = std::next(P)) {
  352          S != E; S = std::next(S)) {
lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
  259   for (MachineBasicBlock *Succ : MBB.successors()) {
lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
  373         for (auto *Pred : CurBB->predecessors()) {
lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp
  149   for (unsigned Reg : RegsToRewrite) {
lib/Target/AMDGPU/SIWholeQuadMode.cpp
  488   for (MachineBasicBlock *Pred : MBB.predecessors()) {
  499   for (MachineBasicBlock *Succ : MBB.successors()) {
lib/Target/ARC/ARCBranchFinalize.cpp
  169   for (auto P : BranchToPCList) {
lib/Target/ARC/ARCFrameLowering.cpp
   80   for (auto Reg : CSI) {
  223   for (const auto &Entry : CSI) {
  339   for (auto I = V.begin(), E = V.end(); I != E; ++I) {
  379       if (RegI != CSI.end())
  385   for (auto &I : CSI) {
lib/Target/ARM/ARMAsmPrinter.cpp
  531       for (auto &Stub : Stubs)
  544       for (auto &Stub : Stubs)
  957   for (MachineBasicBlock *MBB : JTBBs) {
 1000   for (MachineBasicBlock *MBB : JTBBs) {
 1032   for (auto MBB : JTBBs) {
lib/Target/ARM/ARMBaseInstrInfo.cpp
 3158              SE = MBB->succ_end(); SI != SE; ++SI)
lib/Target/ARM/ARMCodeGenPrepare.cpp
  548   for (auto *V : *Visited) {
  576   for (auto *V : *Visited) {
  667   for (auto V : *Visited) {
  713   for (auto *V : *Visited) {
  768   for (auto *V : Visited) {
  983              for (auto *I : CurrentVisited)
  987   for (auto *V : CurrentVisited) {
lib/Target/ARM/ARMConstantIslandPass.cpp
 1495     if (IP != WaterList.end())
 1512   if (IP != WaterList.end())
 2430   for (const MachineBasicBlock::RegisterMaskPair &RegMaskPair : BB->liveins())
lib/Target/ARM/ARMFrameLowering.cpp
  624     for (const auto &Entry : CSI) {
  657     for (const auto &Entry : CSI) {
  684     for (const auto &Entry : CSI) {
 1495     for (auto &Table: MF.getJumpTableInfo()->getJumpTables())
 2301     for (MachineBasicBlock *PredBB : CurMBB->predecessors()) {
 2317   for (const auto &LI : PrologueMBB.liveins()) {
lib/Target/ARM/ARMISelLowering.cpp
 9805          I = LPadList.begin(), E = LPadList.end(); I != E; ++I) {
 9880        E = MBB->succ_end(); I != E; ++I)
10384          sItr != sEnd; ++sItr) {
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
 1958       for (CalleeSavedInfo &Info : MFI.getCalleeSavedInfo()) {
lib/Target/ARM/ARMLowOverheadLoops.cpp
  106   for (auto ML : MLI) {
  218   for (auto I = ML->begin(), E = ML->end(); I != E; ++I)
  251     for (auto *MBB : ML->getHeader()->predecessors()) {
lib/Target/ARM/ARMOptimizeBarriersPass.cpp
   92   for (auto MI : ToRemove) {
lib/Target/ARM/ARMParallelDSP.cpp
  119       for (auto *Add : Adds) {
  185         for (auto *Add : Adds)
lib/Target/ARM/ARMTargetTransformInfo.cpp
  983   for (auto Inner : *L)
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
10923   for (auto Feature : Features)
lib/Target/ARM/Thumb1FrameLowering.cpp
  268          E = CSI.end(); I != E; ++I) {
  349   for (auto &I : CSI) {
  377     for (auto &I : CSI) {
  532       for (auto &I : MFI.getCalleeSavedInfo()) {
  573   for (const CalleeSavedInfo &CSI : MF.getFrameInfo().getCalleeSavedInfo())
  952   for (CalleeSavedInfo I : CSI) {
lib/Target/ARM/Thumb2SizeReduction.cpp
 1040   for (auto *Pred : MBB.predecessors()) {
lib/Target/AVR/AVRFrameLowering.cpp
  289   for (const CalleeSavedInfo &CCSI : CSI) {
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  283   for (auto Call : CallList) {
  337   for (auto Call : PreserveUnionIndexCalls) {
lib/Target/BPF/BPFMIChecking.cpp
  148   for (auto I : GPR32LiveDefs)
lib/Target/BPF/BTFDebug.cpp
  181   for (const auto &Enum : EnumValues) {
  254   for (const auto &Member : Members) {
  305   for (const auto &Param : Parameters) {
  360   for (const auto &V : Vars) {
  731   for (const auto &TypeEntry : TypeEntries)
  741   for (const auto &TypeEntry : TypeEntries)
  746   for (const auto &S : StringTable.getTable()) {
  803     for (const auto &FuncInfo : FuncSec.second) {
  817     for (const auto &LineInfo : LineSec.second) {
  836       for (const auto &FieldRelocInfo : FieldRelocSec.second) {
  904   for (const auto &TypeEntry : TypeEntries)
  934   for (const auto &TypeEntry : TypeEntries)
 1161     for (const auto &StructType : StructTypes) {
 1173     for (auto &DType : Fixup.second.second) {
 1179   for (const auto &TypeEntry : TypeEntries)
lib/Target/Hexagon/BitTracker.cpp
  961     for (const MachineBasicBlock *SB : B.successors()) {
  972     for (const MachineBasicBlock *SB : B.successors())
  976   for (const MachineBasicBlock *TB : Targets)
lib/Target/Hexagon/HexagonBitSimplify.cpp
  276   for (auto *DTN : children<MachineDomTreeNode*>(MDT->getNode(&B)))
  991   for (auto *DTN : children<MachineDomTreeNode*>(N))
  999   for (auto MI : Instrs) {
 1722   for (auto I : Instrs) {
 2277     for (MachineInstr *In : NewMIs) {
 3132     for (auto &I : Phis) {
 3330     for (auto PI = B.pred_begin(), PE = B.pred_end(); PI != PE; ++PI) {
 3340     for (auto SI = B.succ_begin(), SE = B.succ_end(); SI != SE; ++SI) {
 3354   for (auto &C : Cand)
lib/Target/Hexagon/HexagonBlockRanges.cpp
   76   for (auto &R : RL)
   90   while (Iter != end()-1) {
  145   for (iterator Next, I = begin(); I != end(); I = Next) {
  238   for (auto I : B.liveins()) {
  398   for (auto *SB : B.successors())
  452     while (A != Z) {
  515   for (auto &R : RL)
lib/Target/Hexagon/HexagonCFGOptimizer.cpp
  109   for (MachineBasicBlock *PB : MBB->predecessors())
  227               for (const auto &OrigLI : OrigLiveIn)
  229               for (const auto &NewLI : NewLiveIn)
lib/Target/Hexagon/HexagonCommonGEP.cpp
  274     for (const_iterator I = S.begin(), E = S.end(); I != E; ++I)
  293       for (UseSet::const_iterator J = Us.begin(), F = Us.end(); J != F; ++J) {
  329   for (auto *DTN : children<DomTreeNode*>(DT->getNode(Root)))
  418   for (ValueVect::iterator I = BO.begin(), E = BO.end(); I != E; ++I) {
  436     for (const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) {
  541   for (NodeVect::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) {
  630   for (NodeVect::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) {
  649   for (NodeVect::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) {
  672     for (typename T::iterator I = Blocks.begin(), E = Blocks.end(); I != E;
  687   while (++I != E) {
  703     while (I != E && !*I)
  708     while (++I != E) {
  729     for (iterator I = Values.begin(), E = Values.end(); I != E; ++I) {
  773     for (UseSet::iterator I = Us.begin(), E = Us.end(); I != E; ++I) {
  788     for (NodeVect::iterator I = Cs.begin(), E = Cs.end(); I != E; ++I) {
  829     for (NodeVect::iterator I = Cs.begin(), E = Cs.end(); I != E; ++I)
  919     for (NodeVect::iterator I = Cs.begin(), E = Cs.end(); I != E; ++I)
  983   for (Use *U : Us) {
  987   for (Use *U : NewUs)
 1021     for (UseSet::iterator J = Us.begin(), F = Us.end(); J != F; ++J) {
 1050     for (UseSet::iterator J = Us.begin(), F = Us.end(); J != F; ++J)
 1064   for (NodeVect::iterator I = Roots.begin(), E = Roots.end(); I != E; ++I)
 1070     for (NodeVect::iterator I = Roots.begin(), E = Roots.end(); I != E; ++I)
 1077     for (NodeVect::iterator I = Roots.begin(), E = Roots.end(); I != E; ++I)
 1151       for (UseSet::iterator I = Us.begin(), E = Us.end(); I != E; ++I)
 1221       for (NodeVect::iterator I = Cs.begin(), E = Cs.end(); I != E; ++I) {
 1236       for (UseSet::iterator I = Us.begin(), E = Us.end(); I != E; ++I) {
 1250     for (auto DTN : children<DomTreeNode*>(DT->getNode(B)))
 1263     for (ValueVect::iterator I = Ins.begin(), E = Ins.end(); I != E; ++I) {
lib/Target/Hexagon/HexagonConstExtenders.cpp
  559       for (unsigned I : Q.second)
 1316       for (unsigned I : P.second)
 1332   for (const OffsetRange &R : Ranges)
 1397       for (unsigned I : RangeMap[N->Range])
 1873     for (std::pair<MachineInstr*,unsigned> P : RegOps) {
 1904     for (const std::pair<Loc,IndexList> &Q : Defs) {
 1907       for (unsigned I : Q.second)
lib/Target/Hexagon/HexagonConstPropagation.cpp
  751     for (const MachineBasicBlock *SB : B.successors()) {
  771     for (const MachineBasicBlock *SB : B.successors())
  775   for (const MachineBasicBlock *TB : Targets) {
  839   for (const MachineBasicBlock *SB : MB->successors())
  928       for (const MachineBasicBlock *SSB : SB->successors())
  939       for (const MachineBasicBlock *SB : B.successors()) {
  972   for (MachineBasicBlock *B : POT) {
 1014       for (MachineBasicBlock *SB : B->successors()) {
lib/Target/Hexagon/HexagonEarlyIfConv.cpp
  650     for (MachineLoop::iterator I = L->begin(), E = L->end(); I != E; ++I)
  975   for (auto I = B->pred_begin(), E = B->pred_end(); I != E; ++I)
 1064   for (MachineLoopInfo::iterator I = MLI->begin(), E = MLI->end(); I != E; ++I)
lib/Target/Hexagon/HexagonExpandCondsets.cpp
  392     for (MachineBasicBlock *D : Defs)
  404       for (auto *P : B->predecessors())
lib/Target/Hexagon/HexagonFrameLowering.cpp
  425     for (auto SI = I.succ_begin(), SE = I.succ_end(); SI != SE; ++SI) {
  537       for (auto &R : CSI)
  787     for (auto &R : CSI)
  791       for (auto &SB : MBB.successors())
  810   for (auto &SB : MBB.successors())
  819       for (auto &R : CSI)
  828     for (auto &R : CSI)
 1961     for (auto *RC : SpillRCs) {
 1988     for (auto &DR : F->second)
 2214       for (auto I : FIs) {
 2237     for (auto FI : BlockFIMap[&B]) {
 2242       for (auto &Range : RL) {
 2412   for (auto &R : CSI)
lib/Target/Hexagon/HexagonGenExtract.cpp
  223   for (auto *DTN : children<DomTreeNode*>(DT->getNode(B)))
lib/Target/Hexagon/HexagonGenInsert.cpp
  427     for (OrderedRegisterList::const_iterator I = B; I != E; ++I) {
  428       if (I != B)
  453   if (L != Seq.end())
  765   for (pred_iterator I = ToB->pred_begin(), E = ToB->pred_end(); I != E; ++I) {
  840         for (iterator I = B; I != NewB; ++I)
  842         for (iterator I = NewE; I != E; ++I)
  852     if (B != E) {
  853       for (iterator I = B; I != E; ++I)
  875   for (iterator I = AVs.begin(), E = AVs.end(); I != E; ++I) {
  979   for (auto *DTN : children<MachineDomTreeNode*>(MDT->getNode(B))) {
 1088     if (End != LL.end())
 1178   if (End != LL.end())
 1335     assert(MinI != LL.end());
 1455   for (auto *DTN : children<MachineDomTreeNode*>(N))
 1463   for (auto I = Instrs.begin(), E = Instrs.end(); I != E; ++I) {
lib/Target/Hexagon/HexagonGenPredicate.cpp
  489   for (VectOfInst::iterator I = Erase.begin(), E = Erase.end(); I != E; ++I)
  519     for (iterator I = Copy.begin(), E = Copy.end(); I != E; ++I) {
lib/Target/Hexagon/HexagonHardwareLoops.cpp
  391   for (auto &L : *MLI)
  569   assert(PI != TopMBB->pred_end() &&
  575   if (PI != TopMBB->pred_end())  // multiple backedges?
 1134   for (MachineLoop::iterator I = L->begin(), E = L->end(); I != E; ++I) {
 1882   for (MBBVector::iterator I = Preds.begin(), E = Preds.end(); I != E; ++I) {
 1965   for (MBBVector::iterator I = Preds.begin(), E = Preds.end(); I != E; ++I) {
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
  980   for (auto I : Nodes) {
 1028   for (auto I : Nodes) {
 1092   for (SDNode *N : Nodes) {
 1157   for (SDNode *N : Nodes) {
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
  202   for (Node N : FirstQ) {
  341     for (RowType &Row : Table)
  737   for (const auto &R : Ops) {
  990     for (const OpRef &R : Node.Ops) {
 2013   for (int &Idx : Mask)
lib/Target/Hexagon/HexagonInstrInfo.cpp
  160   for (MachineBasicBlock *PB : BB->predecessors()) {
 1699     for (auto I : MBB->successors())
 3622         for (const MachineBasicBlock *SB : B.successors()) {
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  530     for (Rule &R : Rules) {
 1083   for (Instruction *In : LoopIns)
 1366   for (Value *V : Inputs)
 1369   for (Value *V : Internal)
lib/Target/Hexagon/HexagonMachineScheduler.cpp
  503   for (ReadyQueue::iterator I = Q.begin(), E = Q.end(); I != E; ++I) {
  777   for (ReadyQueue::iterator I = Q.begin(), E = Q.end(); I != E; ++I) {
lib/Target/Hexagon/HexagonMachineScheduler.h
  185         for (auto &SU : DAG->SUnits)
lib/Target/Hexagon/HexagonNewValueJump.cpp
  539              SI != SIE; ++SI) {
lib/Target/Hexagon/HexagonRDFOpt.cpp
  178   for (NodeId N : PartlyDead) {
lib/Target/Hexagon/HexagonSplitDouble.cpp
  577   for (auto I : *MLI)
  580     for (auto I : *WorkQ[i])
lib/Target/Hexagon/HexagonStoreWidening.cpp
  176   for (auto SI : Stores) {
  221   for (auto I = AllInsns.begin(), E = AllInsns.end(); I != E; ++I) {
  246   for (auto I = Begin; I != End; ++I) {
  307   assert(Begin != End && "No instructions to analyze");
  352   for (InstrGroup::iterator I = Begin + 1; I != End; ++I) {
  402   for (InstrGroup::iterator I = OG.begin(), E = OG.end(); I != E; ++I) {
  476     for (auto I : OG)
  479     for (auto I : NG)
  494   for (auto I : OG)
  518   for (auto I : OG)
  526   for (auto I : NG)
  541   while (I != E) {
  576   for (auto &G : SGs) {
lib/Target/Hexagon/HexagonSubtarget.cpp
  129   for (SUnit &SU : DAG->SUnits) {
  142   for (SUnit &SU : DAG->SUnits) {
lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
  379   for (auto BI : CurrentPacketMIs) {
  436   for (auto BI : CurrentPacketMIs) {
  664   for (auto I : CurrentPacketMIs) {
  750   for (auto I : CurrentPacketMIs) {
  915   for (auto I : CurrentPacketMIs) {
  985   for (auto I : CurrentPacketMIs) {
 1359     for (MachineInstr *PI : CurrentPacketMIs) {
 1475       if (Itr != IgnoreDepMIs.end()) {
 1672   for (auto MJ : CurrentPacketMIs) {
 1771       for (MachineInstr *MI : CurrentPacketMIs) {
 1786   for (MachineInstr *MI : CurrentPacketMIs) {
 1858   for (auto J : CurrentPacketMIs) {
 1869   for (auto J : OldPacketMIs) {
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  449   for (auto *D : Dependences) {
  720   for (auto *D : Dependences) {
lib/Target/Hexagon/HexagonVectorPrint.cpp
  163   for (auto *I : VecPrintList) {
lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp
  321   return std::find(table.begin(), table.end(), CPU) != table.end();
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
  671     for (auto const &I : AppliedRestrictions) {
lib/Target/Hexagon/RDFCopy.cpp
   82   for (auto I : *N)
  106     for (NodeId I : Copies) {
  133   for (NodeId C : Copies) {
lib/Target/Hexagon/RDFDeadCode.cpp
  144     for (NodeId N : LiveNodes) {
  187   for (auto I : Nodes) {
lib/Target/Hexagon/RDFGraph.cpp
  272     for (int I : Ns) {
  281   for (MachineBasicBlock *B : BB->predecessors())
  288   for (MachineBasicBlock *B : BB->successors())
  900     for (auto I : EntryB.liveins())
  928       for (MachineBasicBlock *PB : B.predecessors())
 1415   for (auto DB : IDF) {
 1462     for (unsigned I : Closure)
 1471   for (MachineBasicBlock *PB : MBB->predecessors())
 1677   for (auto I : *N) {
 1695   for (MachineBasicBlock *SB : MBB->successors()) {
lib/Target/Hexagon/RDFLiveness.cpp
  159   for (NodeId N : DefQ) {
  230   for (NodeId T : Tmp) {
  812       for (auto I = B.livein_begin(), E = B.livein_end(); I != E; ++I)
  816       for (auto I : LV)
  827       for (auto I : LV)
  839     for (auto I = B.livein_begin(), E = B.livein_end(); I != E; ++I)
  841     for (auto I : T)
  859     for (auto I : B->liveins()) {
  876   for (auto SI : B->successors())
  954   for (auto I : *N) {
  966     for (auto I : *N)
lib/Target/Hexagon/RDFRegisters.cpp
  113     for (const uint32_t *RM : RegMasks) {
  123   for (const uint32_t *RM : RegMasks) {
lib/Target/Hexagon/RDFRegisters.h
   48       if (F != Map.end())
   56       assert(F != Map.end());
lib/Target/Lanai/LanaiInstrInfo.cpp
  423            SI != SE; ++SI)
lib/Target/MSP430/MSP430BranchSelector.cpp
  160         for (MachineBasicBlock *Succ : MBB->successors()) {
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
   88   for (InputIt I = First; I != Last; ++I) {
  208   for (const auto &R : Relocs)
lib/Target/Mips/Mips16FrameLowering.cpp
   76          E = CSI.end(); I != E; ++I) {
lib/Target/Mips/MipsAsmPrinter.cpp
  340   for (const auto &I : CSI) {
  494   if (PI2 != MBB->pred_end())
lib/Target/Mips/MipsConstantIslandPass.cpp
  598        E = MBB->succ_end(); I != E; ++I)
 1358     if (IP != WaterList.end())
 1369   if (IP != WaterList.end())
lib/Target/Mips/MipsDelaySlotFiller.cpp
  407        SE = MBB.succ_end(); SI != SE; ++SI)
  409       for (const auto &LI : (*SI)->liveins())
  804        PE = SuccBB->pred_end(); PI != PE; ++PI)
lib/Target/Mips/MipsSEFrameLowering.cpp
  456            E = CSI.end(); I != E; ++I) {
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  420   for (auto I = MBB.pred_begin(); I != MBB.pred_end(); ++I) {
lib/Target/PowerPC/PPCAsmPrinter.cpp
 1450     for (const auto &TOCMapPair : TOC) {
 1666       for (const Function *Personality : MMI->getPersonalities()) {
lib/Target/PowerPC/PPCCTRLoops.cpp
  182          PIE = MBB->pred_end(); PI != PIE; ++PI)
lib/Target/PowerPC/PPCEarlyReturn.cpp
   66            PIE = ReturnMBB.pred_end(); PI != PIE; ++PI) {
lib/Target/PowerPC/PPCExpandISEL.cpp
  353     for (auto &Succ : MBB->successors()) {
  385     for (auto &LI : MBB->liveins())
lib/Target/PowerPC/PPCFrameLowering.cpp
  934     for (CalleeSavedInfo CSI : Info) {
  956       for (CalleeSavedInfo CSI : Info) {
 1515     for (CalleeSavedInfo CSI : Info) {
 2162   for (auto &CS : CSI) {
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  209   for (auto I = LI->begin(), IE = LI->end(); I != IE; ++I)
lib/Target/PowerPC/PPCMachineFunctionInfo.cpp
   47   for (const std::pair<unsigned, ISD::ArgFlagsTy> &LiveIn : LiveInAttrs)
   54   for (const std::pair<unsigned, ISD::ArgFlagsTy> &LiveIn : LiveInAttrs)
lib/Target/PowerPC/PPCPreEmitPeephole.cpp
  264           for (auto &Succ : MBB.successors())
  275           for (auto &SuccMBB : MBB.successors())
lib/Target/PowerPC/PPCReduceCRLogicals.cpp
  241   for (auto *Succ : NewMBB->successors()) {
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  945   for (Loop::iterator I = L->begin(), E = L->end(); I != E; ++I)
lib/Target/RISCV/RISCVFrameLowering.cpp
  166   for (const auto &Entry : CSI) {
  301   for (const auto &Entry : CSI) {
lib/Target/SystemZ/SystemZElimCompare.cpp
  108   for (auto SI = MBB.succ_begin(), SE = MBB.succ_end(); SI != SE; ++SI)
lib/Target/SystemZ/SystemZFrameLowering.cpp
  369     for (auto &Save : CSI) {
  437   for (auto &Save : CSI) {
lib/Target/SystemZ/SystemZISelLowering.cpp
 6536     for (auto SI = MBB->succ_begin(), SE = MBB->succ_end(); SI != SE; ++SI)
lib/Target/SystemZ/SystemZLDCleanup.cpp
  108   for (auto I = Node->begin(), E = Node->end(); I != E; ++I)
lib/Target/SystemZ/SystemZMachineScheduler.cpp
   49     for (auto I = MBB->pred_begin(); I != MBB->pred_end(); ++I)
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
  136     for (auto Br : BrL.List)
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
  132   for (auto &Pair : Replacements) {
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
  252         for (const MachineBasicBlock *Pred : MBB.predecessors())
  288           for (auto DeferredBlock : E.Deferred)
  294     for (MachineBasicBlock *Succ : MBB->successors()) {
  374         for (auto Pred : MBB.predecessors())
  381         for (auto Pred : MBB.predecessors())
  390       for (auto Pred : MBB.predecessors())
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
  224   for (MachineBasicBlock *Pred : MBB.predecessors()) {
  450   for (auto *Pred : MBB.predecessors()) {
  891       for (auto *Succ : MBB.successors()) {
 1122       for (auto *Succ : MBB->successors()) {
lib/Target/WebAssembly/WebAssemblyExceptionInfo.cpp
  132     for (auto *Succ : MBB->successors())
  169   for (auto &SubE : SubExceptions)
  183   for (auto *WE : TopLevelExceptions)
lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp
   80         for (auto *Pred : MBB->predecessors()) {
  132       for (auto *Succ : MBB->successors()) {
  147         for (auto *Pred : MBB->predecessors()) {
  166       for (auto *Pred : Looper->predecessors()) {
  201     for (auto *Pred : Entry->predecessors()) {
  212         for (auto *Pred : MBB->predecessors()) {
  385     for (auto *Pred : Entry->predecessors()) {
  395     for (auto *Entry : Pred->successors()) {
  410     for (auto *Entry : Pred->successors())
  421     for (auto *Entry : Pred->successors()) {
  458     for (auto *Succ : Pred->successors()) {
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
 1172   for (auto MBB : MBBs)
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
 1075   for (Instruction *I : SetjmpTableInsts)
 1077   for (Instruction *I : SetjmpTableSizeInsts)
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
  134     for (auto &AssociatedAndMore : PriorityAndMore.second) {
  149       for (auto Dtor : AssociatedAndMore.second)
lib/Target/X86/X86AsmPrinter.cpp
  671     for (auto &Stub : Stubs)
lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
  363          PB != PE; ++PB) {
lib/Target/X86/X86CmovConversion.cpp
  227     for (MachineLoop *Child : Loops[i]->getSubLoops())
  582   for (auto I = BB->succ_begin(), E = BB->succ_end(); I != E; ++I) {
lib/Target/X86/X86DomainReassignment.cpp
  773   for (Closure &C : Closures) {
lib/Target/X86/X86ExpandPseudo.cpp
  168   for (auto P : TargetMBBs) {
lib/Target/X86/X86FlagsCopyLowering.cpp
  286   for (auto SI = MBB.succ_begin(), SE = MBB.succ_end(); SI != SE; ++SI)
  295   for (MachineBasicBlock *Succ : NewMBB.successors())
  304   for (MachineBasicBlock *Succ : NewMBB.successors()) {
  446         for (auto *PredMBB : MBB->predecessors()) {
  644       for (MachineBasicBlock *SuccMBB : UseMBB.successors())
lib/Target/X86/X86FloatingPoint.cpp
  128            I != MBB->livein_end(); ) {
lib/Target/X86/X86FrameLowering.cpp
  197   for (MachineBasicBlock::RegisterMaskPair RegMask : MBB.liveins()) {
  240   for (const MachineBasicBlock *Succ : MBB.successors())
  474          I = CSI.begin(), E = CSI.end(); I != E; ++I) {
 2339   for (const auto &LI : PrologueMBB.liveins()) {
 2660     for (const auto &LI : PrologueMBB.liveins()) {
 3145   for (auto &Obj : SortingObjects) {
lib/Target/X86/X86ISelLowering.cpp
29610          sItr != sEnd; ++sItr) {
31104   for (auto &LP : LPadList)
lib/Target/X86/X86InstrFoldTables.cpp
 5669   if (I != Table.end() && I->KeyOp == MemOp)
lib/Target/X86/X86InstrInfo.cpp
 2491   for (auto SI = MBB->succ_begin(), SE = MBB->succ_end(); SI != SE; ++SI) {
 2715     for (auto *Succ : MBB.successors())
 3787     for (MachineBasicBlock *Successor : MBB->successors())
 7889            I != E; ++I) {
 8006     for (outliner::Candidate &C : RepeatedSequenceLocs)
 8015   for (outliner::Candidate &C : RepeatedSequenceLocs)
lib/Target/X86/X86PadShortFunction.cpp
  157        I != MBB->succ_end(); ++I) {
lib/Target/X86/X86SpeculativeLoadHardening.cpp
  311   for (auto &LI : Succ.liveins())
  584     for (MachineBasicBlock *SuccMBB : MBB.successors())
 1042     for (MachineBasicBlock *Succ : MBB.successors())
 1077     for (MachineBasicBlock *Pred : MBB.predecessors()) {
lib/Target/X86/X86VZeroUpper.cpp
  272          SI != SE; ++SI)
  343       for (MachineBasicBlock *Succ : MBB.successors())
lib/Target/X86/X86WinAllocaExpander.cpp
  150     for (MachineBasicBlock *Pred : MBB->predecessors())
  297   for (auto &P : Lowerings)
lib/Target/XCore/XCoreFrameLowering.cpp
  315     for (const auto &SpillLabel : XFI->getSpillLabels()) {
  433                                                     it != CSI.end(); ++it) {
lib/TextAPI/MachO/ArchitectureSet.cpp
   20   for (auto Arch : Archs) {
lib/TextAPI/MachO/InterfaceFile.cpp
   25   if (I != Container.end() && I->getInstallName() == InstallName)
   65   if ((Iter != ParentUmbrellas.end()) && !(Target_ < Iter->first)) {
   79   if ((Iter != UUIDs.end()) && !(Target_ < Iter->first)) {
lib/TextAPI/MachO/TextStub.cpp
  453       for (const auto &Iter : File->umbrellas()) {
  459       for (const auto &Library : File->allowableClients())
  462       for (const auto &Library : File->reexportedLibraries())
  476         for (const auto &Library : File->allowableClients())
  480         for (const auto &Library : File->reexportedLibraries())
  620       for (auto &ID : UUIDs)
  640       for (const auto &Section : Exports) {
  644         for (const auto &Lib : Section.AllowableClients)
  648         for (const auto &Lib : Section.ReexportedLibraries)
  652         for (const auto &Symbol : Section.Symbols) {
  660         for (auto &Symbol : Section.Classes) {
  666         for (auto &Symbol : Section.ClassEHs)
  668         for (auto &Symbol : Section.IVars) {
  675         for (auto &Symbol : Section.WeakDefSymbols)
  678         for (auto &Symbol : Section.TLVSymbols)
  683       for (const auto &Section : Undefineds) {
  686         for (auto &Symbol : Section.Symbols) {
  696         for (auto &Symbol : Section.Classes) {
  703         for (auto &Symbol : Section.ClassEHs)
  706         for (auto &Symbol : Section.IVars) {
  713         for (auto &Symbol : Section.WeakRefSymbols)
  810       for (const auto &IT : File->uuids())
  829         for (const auto &it : File->umbrellas())
  914       for (auto &id : UUIDs)
  921       for (const auto &CurrentSection : ParentUmbrellas)
  922         for (const auto &target : CurrentSection.Targets)
  929       for (const auto &CurrentSection : AllowableClients) {
  930         for (const auto &lib : CurrentSection.Values)
  931           for (const auto &Target : CurrentSection.Targets)
  935       for (const auto &CurrentSection : ReexportedLibraries) {
  936         for (const auto &Lib : CurrentSection.Values)
  937           for (const auto &Target : CurrentSection.Targets)
  943         for (const auto &CurrentSection : CurrentSections) {
  944           for (auto &sym : CurrentSection.Symbols)
  948           for (auto &sym : CurrentSection.Classes)
  952           for (auto &sym : CurrentSection.ClassEHs)
  956           for (auto &sym : CurrentSection.Ivars)
  960           for (auto &sym : CurrentSection.WeakSymbols)
  963           for (auto &sym : CurrentSection.TlvSymbols)
  997       for (const auto &library : Libraries) {
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
  156   for (COFFShortExport& E : Def->Exports) {
  164     for (COFFShortExport& E : Def->Exports) {
lib/ToolDrivers/llvm-lib/LibDriver.cpp
  359   for (NewArchiveMember &Member : Members) {
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
  237   for (auto Itr : InstInfoMap) {
  301   for (auto &Itr : InstInfoMap) { // Forward
lib/Transforms/Coroutines/CoroSplit.cpp
 1545     for (CallGraphNode *CGN : SCC)
lib/Transforms/IPO/ArgumentPromotion.cpp
  286             for (auto II : ArgIndex.second) {
 1132     for (CallGraphNode *OldNode : SCC) {
lib/Transforms/IPO/Attributor.cpp
  731     for (const Use *U : Uses) {
  742     for (const Use *U : NextUses)
 1064   for (auto &It : ReturnedValues) {
 1129   for (auto &It : ReturnedValues) {
 1170     for (auto &RetValAAIt : RetValAA.returned_values()) {
 1197     for (auto &RetValAAIt : RetValAA.returned_values()) {
 1220   for (auto &It : NewRVsMap) {
 3183     for (auto &It : RVAA.returned_values()) {
 4428   for (Instruction *I :
 4496     for (AbstractAttribute *AA : Worklist)
lib/Transforms/IPO/CrossDSOCFI.cpp
  142   for (uint64_t TypeId : TypeIds) {
lib/Transforms/IPO/ForceFunctionAttrs.cpp
   72   for (auto &S : ForceAttributes) {
lib/Transforms/IPO/FunctionAttrs.cpp
  783          I != E && !SCCCaptured; ++I) {
  796     for (ArgumentGraphNode *I : ArgumentSCC) {
  801          I != E && !SCCCaptured; ++I) {
 1500   for (CallGraphNode *I : SCC) {
lib/Transforms/IPO/FunctionImport.cpp
  757     for (auto &S : Entry.second.SummaryList)
  861       for (auto &S : P.second.SummaryList)
 1183       for (const auto *GV : GlobalsToImport)
 1240     for (auto &S : I.second.SummaryList) {
lib/Transforms/IPO/GlobalDCE.cpp
  401   for (Function *F : DeadFunctions) {
  414   for (GlobalVariable *GV : DeadGlobalVars)
  418   for (GlobalAlias *GA : DeadAliases)
  422   for (GlobalIFunc *GIF : DeadIFuncs)
lib/Transforms/IPO/HotColdSplitting.cpp
  581     for (OutliningRegion &Region : Regions) {
lib/Transforms/IPO/Inliner.cpp
  203     for (AllocaInst *AvailableAlloca : AllocasForType) {
  538   for (CallGraphNode *Node : SCC) {
  556   for (CallGraphNode *Node : SCC) {
lib/Transforms/IPO/LowerTypeTests.cpp
  206   for (uint64_t ObjIndex : Fragment)
  373     for (auto P : FunctionAliases)
 1159     for (CallInst *CI : TIUI.CallSites) {
 1630   for (auto &&MemSet : TypeMembers)
 1638   for (auto &&F : GLB.Fragments) {
 1639     for (auto &&Offset : F) {
 1803     for (GlobalAlias *GA : AliasesToErase)
 1845       for (auto &GVS : I.second.SummaryList)
 1990       for (GlobalTypeMember *GTM : TypeIdInfo[TypeId].RefGlobals)
 2057       for (auto &S : P.second.SummaryList) {
 2098   for (const auto &S : Sets) {
lib/Transforms/IPO/MergeFunctions.cpp
  321          I != E && i < Max; ++I, ++i) {
  323       for (std::vector<WeakTrackingVH>::iterator J = I; J != E && j < Max;
  342         for (std::vector<WeakTrackingVH>::iterator K = J; K != E && k < Max;
  407   for (auto I = HashedFuncs.begin(), IE = HashedFuncs.end(); I != IE; ++I) {
  410     if ((I != S && std::prev(I)->first == I->first) ||
  411         (std::next(I) != IE && std::next(I)->first == I->first) ) {
  426     for (WeakTrackingVH &I : Worklist) {
lib/Transforms/IPO/PartialInlining.cpp
  947   for (User *User : Users) {
 1144       for (Value *value : Inputs)
 1146       for (Value *output : Outputs)
 1392   for (User *User : Users) {
lib/Transforms/IPO/PruneEH.cpp
   68   for (CallGraphNode *I : SCC)
   73   for (CallGraphNode *I : SCC)
   86        (!SCCMightUnwind || !SCCMightReturn) && I != E; ++I) {
  151     for (CallGraphNode *I : SCC) {
  165   for (CallGraphNode *I : SCC) {
lib/Transforms/IPO/SampleProfile.cpp
  944         for (const auto *FS : findIndirectCallFunctionSamples(*I, Sum)) {
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  182   for (GlobalValue *GV : V)
  319   for (auto V : CfiFunctions) {
lib/Transforms/IPO/WholeProgramDevirt.cpp
  187       for (auto &&B : Used)
  198       for (auto &&B : Used) {
  724     for (auto &SlotSummary : T.second) {
  843   for (const TypeIdOffsetVtableInfo P : TIdInfo) {
  871     for (auto &&VCallSite : CSInfo.CallSites) {
  903     for (auto *FS : CSInfo.SummaryTypeCheckedLoadUsers) {
  907     for (auto *FS : CSInfo.SummaryTypeTestAssumeUsers) {
 1093     for (auto &&VCallSite : CSInfo.CallSites) {
 1193   for (auto Call : CSInfo.CallSites)
 1301   for (auto &&Call : CSInfo.CallSites) {
 1369   for (auto Call : CSInfo.CallSites) {
 1793     for (auto &S : CallSlots)
 1820       for (auto &S : P.second.SummaryList) {
 1858   for (auto &S : CallSlots) {
 1881         for (const auto &T : TargetsForSlot)
 1893       for (auto FS : S.second.CSInfo.SummaryTypeCheckedLoadUsers)
 1896         for (auto FS : CCS.second.SummaryTypeCheckedLoadUsers)
 1918     for (VTableBits &B : Bits)
 1941     for (auto &S : P.second.SummaryList) {
 1947         for (StringRef Name : NameByGUID[VF.GUID]) {
 1952         for (StringRef Name : NameByGUID[VF.GUID]) {
 1958         for (StringRef Name : NameByGUID[VC.VFunc.GUID]) {
 1966         for (StringRef Name : NameByGUID[VC.VFunc.GUID]) {
 1977   for (auto &S : CallSlots) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
  590     for (auto *PN : PHIs)
  599   for (Value *Val : Explored) {
  660   for (Value *Val : Explored) {
  672   for (Value *Val : Explored) {
  712   for (Value *Val : Explored) {
  730   for (Value *Val : Explored) {
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  289   if (Loc != WorkMap.end())
lib/Transforms/Instrumentation/CFGMST.h
  210     for (auto &Ei : AllEdges) {
  221     for (auto &Ei : AllEdges) {
  247     for (auto &EI : AllEdges)
lib/Transforms/Instrumentation/CGProfile.cpp
   89   for (auto E : Counts) {
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  998   for (auto It = R->begin(); It != R->end(); ++It) {
 1001     Region *NextSubR = NextIt != R->end() ? NextIt->get() : nullptr;
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  828        i != e; ++i) {
  925   for (Function *i : FnsToInstrument) {
  962          i != e; ++i) {
  975       for (Value *V : DFSF.NonZeroChecks) {
 1258       for (auto Child : Children)
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  475   for (Regex &Re : Regexes) {
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1065     for (auto *DDI : AllocaDeclareMap.lookup(AI)) {
 1427   for (GlobalVariable *GV : Globals) {
 1463   for (auto &P : PersonalityFns) {
 1493     for (Function *F : P.second)
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  337   for (auto &C : Candidates) {
  354   for (auto &I : findIndirectCalls(F)) {
lib/Transforms/Instrumentation/InstrProfiling.cpp
  455   for (const auto &LoadStore : PromotionCandidates) {
  937   for (auto *NamePtr : ReferencedNames)
  962   for (Value *Data : UsedVars)
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  593     for (auto &E : MST.AllEdges) {
  726   for (auto &E : MST.AllEdges)
  729   for (auto &E : EdgeList) {
  736   for (auto &E : MST.AllEdges) {
  820   for (auto *InstrBB : InstrumentBBs) {
  847     for (VPCandidateInfo Cand : FuncInfo.ValueSites[Kind]) {
 1077   for (BasicBlock *InstrBB : InstrumentBBs) {
 1095   for (auto &E : FuncInfo.MST.AllEdges) {
 1431   for (VPCandidateInfo &I : ValueSites) {
 1625   for (auto &F : HotFunctions) {
 1630   for (auto &F : ColdFunctions) {
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  151     for (auto &MI : WorkList) {
lib/Transforms/Instrumentation/ValueProfilePlugins.inc
   61     for (Instruction *I : Result) {
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  377        MI != ME; ++MI) {
  385   for (auto MI = top_down_ptr_begin(), ME = top_down_ptr_end(); MI != ME; ++MI)
  420        MI != ME; ++MI) {
  428   for (auto MI = bottom_up_ptr_begin(), ME = bottom_up_ptr_end(); MI != ME;
  441          I != E; ++I) {
  461          I != E; ++I) {
 1113        I != E; ++I) {
 1249        MI != ME; ++MI) {
 1385        MI != ME; ++MI) {
 1648       assert(It != Retains.end());
 1832        I != E; ++I) {
lib/Transforms/ObjCARC/ProvenanceAnalysisEvaluator.cpp
   70   for (Value *V1 : Values) {
   72     for (Value *V2 : Values) {
lib/Transforms/Scalar/ADCE.cpp
  234   for (auto &BBInfo : BlockInfo)
  240   for (auto &BBInfo : BlockInfo)
  297   for (auto &PDTChild : children<DomTreeNode *>(PDT.getRootNode())) {
  320   for (auto &BBInfo : BlockInfo)
lib/Transforms/Scalar/ConstantHoisting.cpp
  215   for (auto BB : BBs) {
  252     for (auto ChildDomNode : DT.getNode(Node)->getChildren()) {
  325     for (auto BB : BBs) {
  557     for (auto ConstCand = S; ConstCand != E; ++ConstCand) {
  567   for (auto ConstCand = S; ConstCand != E; ++ConstCand) {
  581       for (auto C2 = S; C2 != E; ++C2) {
  626   for (auto ConstCand = S; ConstCand != E; ++ConstCand) {
  660        CC != E; ++CC) {
  839     for (Instruction *IP : IPSet) {
  919   for (auto const &I : ClonedCastMap)
  942   for (auto &MapEntry : ConstGEPCandMap)
  951   for (auto MapEntry : ConstGEPInfoMap)
lib/Transforms/Scalar/DivRemPairs.cpp
  148   for (auto &RemPair : RemMap) {
lib/Transforms/Scalar/EarlyCSE.cpp
 1298     } else if (NodeToProcess->childIter() != NodeToProcess->end()) {
lib/Transforms/Scalar/FlattenCFGPass.cpp
   69     for (WeakVH &BlockHandle : Blocks) {
lib/Transforms/Scalar/Float2Int.cpp
  152   if (IT != SeenInsts.end())
  191     if (SeenInsts.find(I) != SeenInsts.end())
  300         assert(SeenInsts.find(OI) != SeenInsts.end() &&
  436   if (ConvertedInsts.find(I) != ConvertedInsts.end())
lib/Transforms/Scalar/GVN.cpp
 1162   for (auto &PredLoad : PredLoads) {
 1240   for (const auto &PredLoad : PredLoads) {
 2642   for (BasicBlock *BB : DeadBlocks) {
lib/Transforms/Scalar/GVNHoist.cpp
  766     for (const auto &R : Ranks) {
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
 1380   for (Loop *SubLoop : *Original)
lib/Transforms/Scalar/LICM.cpp
 2161   for (Loop *InnerL : L->getSubLoops()) {
 2261   if (CurLoop->begin() != CurLoop->end())
lib/Transforms/Scalar/LoopDataPrefetch.cpp
  205   for (Loop *I : *LI)
lib/Transforms/Scalar/LoopDeletion.cpp
  151   if (L->begin() != L->end()) {
lib/Transforms/Scalar/LoopDistribute.cpp
  982   for (Loop *TopLevelLoop : *LI)
lib/Transforms/Scalar/LoopFuse.cpp
  460         if (!isRemovedLoop(L) && L->begin() != L->end())
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  632   for (auto &SL : StoreRefsForMemset)
  635   for (auto &SL : StoreRefsForMemsetPattern)
  759        it != e; ++it) {
lib/Transforms/Scalar/LoopInterchange.cpp
 1085   for (auto &Row : DepMatrix) {
 1133   for (Loop *L : *OuterLoop)
lib/Transforms/Scalar/LoopLoadElimination.cpp
  609   for (Loop *TopLevelLoop : LI)
lib/Transforms/Scalar/LoopPassManager.cpp
   35   for (auto &Pass : Passes) {
lib/Transforms/Scalar/LoopRerollPass.cpp
 1081   while (I != In.end() && (I->second.test(Val) == 0 ||
 1109     for (auto It = Start; It != End; ++It)
 1194   for (auto &KV : Uses) {
 1204                   : Uses) {
 1224     while (BaseIt != Uses.end() && RootIt != Uses.end()) {
 1224     while (BaseIt != Uses.end() && RootIt != Uses.end()) {
 1256         while (TryIt != Uses.end() &&
 1497     for (auto &KV : Uses)
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  299     for (auto I = DFS.beginPostorder(), E = DFS.endPostorder(); I != E; ++I) {
lib/Transforms/Scalar/LoopUnrollPass.cpp
 1392   for (Loop *RootL : Loops) {
 1436   for (auto &L : LI) {
lib/Transforms/Scalar/LoopUnswitch.cpp
  923   for (Loop *I : *L)
 1477     for (Instruction *UI : Worklist)
lib/Transforms/Scalar/MergeICmps.cpp
  748   for (auto &Cmp : Comparisons_) {
lib/Transforms/Scalar/NewGVN.cpp
 3167   for (const auto *CC : CongruenceClasses) {
lib/Transforms/Scalar/PlaceSafepoints.cpp
  125     for (Loop *I : *L)
  135     for (Loop *I : *LI) {
  534     for (Instruction *Term : PollLocations) {
  562         for (BasicBlock *Header : Headers) {
  679   for (auto *CI : Calls) {
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  379     for (Value *V : LiveSet)
  627   if (Found != Cache.end()) {
  848   for (auto Pair : States) {
  859     assert(I != States.end() && "lookup failed!");
  873     for (auto Pair : States) {
  923   for (auto Pair : States) {
  930   for (auto Pair : States) {
 1027   for (auto Pair : States) {
 1117   for (auto Pair : States) {
 1162   for (Value *ptr : live) {
 1183     for (auto &Pair : PointerToBase) {
 1611   for (Value *L : LiveSet) {
 1668   for (auto RematerializedValuePair: RematerializedValues) {
 1722     for (auto RematerializedValuePair : Info.RematerializedValues) {
 2028   for (Value *LiveValue: Info.LiveSet) {
 2254     for (auto Pair : Info.PointerToBase)
 2268       for (auto Pair : Info.PointerToBase) {
 2287     for (auto &BasePair : Info.PointerToBase)
 2318   for (auto &PR : Replacements)
 2700   for (Value *V : Live) {
 2735     for (Value *Kill : Data.KillSet[&BB])
 2817   for (auto V : Updated)
 2825   for (auto V : Updated)
 2833   for (auto KVPair : Info.PointerToBase)
 2841   for (auto KVPair : Info.PointerToBase)
lib/Transforms/Scalar/SCCP.cpp
  414       assert(It != TrackedMultipleRetVals.end());
  844     if (TFRVI != TrackedRetVals.end()) {
 2192   for (const auto &I : RV) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
 1325     for (Loop *ChildL : OrigL) {
 1432   for (Loop *ChildL : OrigL) {
 1736   for (auto *BB : make_range(BlocksSplitI, Blocks.end()))
 1840   for (auto *HoistedL : make_range(SubLoopsSplitI, SubLoops.end())) {
 1893     for (DomTreeNode *ChildN : *N) {
 2254     for (Loop *ChildL : UpdateL) {
lib/Transforms/Scalar/Sink.cpp
  169       I != E && SuccToSinkTo == nullptr; ++I) {
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  730   for (auto *UnlinkedInst : UnlinkedInstructions) {
lib/Transforms/Scalar/StructurizeCFG.cpp
  606   for (const auto &AddedPhi : AddedPhis) {
  614     for (const auto &PI : Map) {
lib/Transforms/Utils/BasicBlockUtils.cpp
  424       for (DomTreeNode *I : Children)
  841       for (DomTreeNode *Child : Children)
lib/Transforms/Utils/CodeExtractor.cpp
  215   for (auto *BB : Result) {
  600   for (BasicBlock *BB : Blocks) {
  745   for (BasicBlock *Block : Blocks)
  787   for (Value *value : inputs) {
  793   for (Value *output : outputs) {
  803     for (Type *i : paramTy)
  945     for (User *use : Users)
  964   for (auto &U : Users)
  984   for (BasicBlock *BB : Blocks) {
 1076   for (Value *input : inputs) {
 1088   for (Value *output : outputs) {
 1106            ve = StructValues.end(); v != ve; ++v)
 1191   for (BasicBlock *Block : Blocks) {
 1331   for (BasicBlock *Block : Blocks) {
 1411     for (BasicBlock *Block : Blocks)
 1425   for (BasicBlock *Block : Blocks) {
 1482   for (auto *II : SinkingCands) {
 1491   for (auto *II : SinkingCands) {
 1500     for (auto *II : HoistingCands)
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp
  106   for (const auto &Node : SortedNodes) {
  168   for (const auto &Name : NonImportedCallers) {
lib/Transforms/Utils/InlineFunction.cpp
  848   for (const MDNode *I : MD) {
  856   for (const MDNode *I : MD) {
 1201   for (; I != E; ++I) {
 1737       for (auto &VH : InlinedFunctionInfo.OperandBundleCallSites) {
lib/Transforms/Utils/LCSSA.cpp
  390   for (Loop *SubLoop : L.getSubLoops())
  401   for (auto &L : *LI)
lib/Transforms/Utils/LoopSimplify.cpp
  818   for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I)
  848   for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I)
lib/Transforms/Utils/LoopUnroll.cpp
  109   for (BasicBlock *BB : Blocks) {
  584   for (Loop *SubLoop : *L)
  621         for (PHINode *OrigPHI : OrigPHINode) {
  684     for (BasicBlock *NewBlock : NewBlocks) {
  695   for (PHINode *PN : OrigPHINode) {
  829     for (auto *BB : OriginalLoopBlocks) {
  832       for (auto *ChildDomNode : BBDomNode->getChildren()) {
  851         for (BasicBlock *Iter : TermBlocks) {
  875   for (BasicBlock *Latch : Latches) {
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  381     for (BasicBlock *NewBlock : NewBlocks) {
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  851       for (auto *DomChild : DomNodeBB->getChildren()) {
  878   for (BasicBlock *BB : NewBlocks) {
lib/Transforms/Utils/LoopUtils.cpp
  500     for (DomTreeNode *Child : Worklist[I]->getChildren())
lib/Transforms/Utils/LoopVersioning.cpp
  273     for (Loop *TopLevelLoop : *LI)
lib/Transforms/Utils/LowerSwitch.cpp
   67   return I != Ranges.end() && I->Low <= R.Low;
  190        B != E;) {
  192     if (++B != E)
  416     for (CaseItr J = std::next(I), E = Cases.end(); J != E; ++J) {
  428       } else if (++I != J) {
  524     for (const auto &I : Cases) {
  553          I != E; ++I) {
  556       if (Next != E) {
lib/Transforms/Utils/MetaRenamer.cpp
   89       for (auto C : M.getModuleIdentifier())
  115       for (StructType *STy : StructTypes) {
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  661   for (Instruction *A : Allocas) {
lib/Transforms/Utils/SimplifyCFG.cpp
 1179       for (ValueEqualityComparisonCase &V : PredCases)
lib/Transforms/Utils/SymbolRewriter.cpp
  570   for (const auto &MapFile : MapFiles)
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
   67     for (BasicBlock *BB : UnreachableBlocks) {
  103   for (BasicBlock *BB : ReturningBlocks) {
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  851   for (const std::pair<ChainID, InstrList> &Chain : Map) {
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  348   for (Loop *SubLp : *Lp)
 1080   for (Loop *SubLp : *Lp)
lib/Transforms/Vectorize/LoopVectorize.cpp
 1082     return VF > 1 && MinBWs.find(I) != MinBWs.end() &&
 1575   for (Loop *InnerL : L)
 1799   assert(II != Legal->getInductionVars()->end() && "IV is not an induction");
 3002   for (auto &InductionEntry : *List) {
 3293   for (const auto &KV : Cost->getMinimalBitwidths()) {
 3396   for (const auto &KV : Cost->getMinimalBitwidths()) {
 3444   for (auto &Entry : *Legal->getInductionVars())
 4460   for (auto &Induction : *Legal->getInductionVars()) {
 4503   for (auto &Induction : *Legal->getInductionVars()) {
 4785   for (auto &Induction : *Legal->getInductionVars()) {
 6372   for (auto &Induction : *Legal->getInductionVars()) {
 6536   for (auto &Induction : *Legal->getInductionVars()) {
 7173     for (Instruction *Instr : Ingredients) {
 7838   for (auto &L : *LI)
 7847   for (Loop *L : *LI)
lib/Transforms/Vectorize/SLPVectorizer.cpp
  564     for (auto &Iter : BlocksSchedules) {
 2133       if (ExtI != ExternallyUsedValues.end()) {
 4242   for (auto &BSIter : BlocksSchedules) {
 4395   for (Instruction *I : GatherSeq) {
 4426   for (BasicBlock *BB : CSEBlocks)
 6294           if (I != ExtraArgs.end() && !I->second) {
 6399     for (auto &Pair : ExtraArgs) {
 6485       for (auto &Pair : ExternallyUsedValues) {
 7023   for (auto &Entry : GEPs) {
 7088       for (auto *V : Candidates) {
 7113   for (StoreListMap::iterator it = Stores.begin(), e = Stores.end(); it != e;
lib/XRay/InstrumentationMap.cpp
  197   for (const auto &Y : YAMLSleds) {
lib/XRay/LogBuilderConsumer.cpp
   31   for (auto *V : Visitors)
lib/XRay/Profile.cpp
   31     for (const auto &PathData : Block.PathData)
  206       for (const auto &PathAndData : Block.PathData) {
  239       for (const auto &PathAndData : Block.PathData) {
  338   for (const auto &E : T) {
lib/XRay/Trace.cpp
  300     for (auto &R : FDRRecords)
  311       for (auto &B : Blocks) {
  313         for (auto *R : B.Records)
  337       for (auto &B : Blocks) {
  338         for (auto *R : B.Records)
projects/openmp/libomptarget/src/omptarget.cpp
  790   for (auto it : fpArrays) {
projects/openmp/libomptarget/src/rtl.cpp
  333     for (auto *R : RTLs.UsedRTLs) {
tools/bugpoint/CrashDebugger.cpp
  296     for (auto *F : ToRemove) {
  353   for (auto A : Attrs)
  520     for (const auto &BI : BlockInfo) {
  568   for (const auto *BB : BBs)
  627     for (auto &BI : BlockInfo) {
  672   for (const auto *BB : BBs)
  719     for (auto &BI : BlockInfo) {
  847   for (const std::string &Name : NamedMDs)
  860   for (auto *NamedMD : ToDelete)
 1129     for (std::string &Name : FunctionNames) {
tools/bugpoint/ExtractFunction.cpp
  393   for (BasicBlock *BB : BBs) {
tools/bugpoint/Miscompilation.cpp
  391       for (Function *F : MiscompiledFunctions) {
tools/bugpoint/OptimizerDriver.cpp
  218        I != E; ++I)
  222        I != E; ++I)
tools/bugpoint/ToolRunner.cpp
  178        i != e; ++i) {
  271   for (const auto &Arg : CompilerArgs)
  276   for (const auto &Arg : CompilerArgs)
  638        I != E; ++I)
  786        I != E; ++I)
tools/bugpoint/bugpoint.cpp
  227   for (const PassInfo *PI : PassList)
tools/clang/include/clang/AST/OpenMPClause.h
 4484     for (auto &M : ComponentListMap) {
tools/clang/include/clang/AST/RecursiveASTVisitor.h
  182     for (Decl *D : AST.getTraversalScope())
tools/clang/include/clang/Analysis/PathDiagnostic.h
  647     for (auto &I : *this)
tools/clang/include/clang/Basic/TargetInfo.h
 1317     for (const auto &Ext : getTargetOpts().OpenCLExtensionsAsWritten) {
tools/clang/include/clang/Sema/TemplateInstCallback.h
   45   for (auto &C : Callbacks) {
   54   for (auto &C : Callbacks) {
   64   for (auto &C : Callbacks) {
   74   for (auto &C : Callbacks) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
 1133     for (const std::pair<CallDescription, T> &I : LinearMap)
tools/clang/include/clang/Tooling/DiagnosticsYaml.h
   40     for (auto &Fix : Fixes) {
tools/clang/include/clang/Tooling/Transformer/Stencil.h
  122     for (const auto &Part : Parts)
tools/clang/lib/ARCMigrate/ARCMT.cpp
  204          E = CInvok->getDiagnosticOpts().Warnings.end(); I != E; ++I) {
tools/clang/lib/ARCMigrate/PlistReporter.cpp
   52            RI = D.range_begin(), RE = D.range_end(); RI != RE; ++RI) {
tools/clang/lib/ARCMigrate/TransformActions.cpp
  568        I = IndentationRanges.begin(), E = IndentationRanges.end(); I!=E; ++I) {
tools/clang/lib/ARCMigrate/Transforms.cpp
  331            E = MigrateCtx.traversers_end(); I != E; ++I)
  344            E = MigrateCtx.traversers_end(); I != E; ++I)
  355          I = traversers_begin(), E = traversers_end(); I != E; ++I)
  511          I = traversers_begin(), E = traversers_end(); I != E; ++I)
tools/clang/lib/AST/ASTContext.cpp
10247   return I != MangleNumbers.end() ? I->second : 1;
10257   return I != StaticLocalNumbers.end() ? I->second : 1;
tools/clang/lib/AST/CXXInheritance.cpp
  562   for (const_iterator I = Other.begin(), IE = Other.end(); I != IE; ++I) {
  572   for (iterator I = begin(), IEnd = end(); I != IEnd; ++I) {
  649            OM != OMEnd;
  738   for (auto &OM : FinalOverriders) {
  739     for (auto &SO : OM.second) {
tools/clang/lib/AST/CommentBriefParser.cpp
   27        I != E; ++I) {
   40   if (O != S.begin() && *(O - 1) == ' ')
tools/clang/lib/AST/CommentCommandTraits.cpp
   28        I != E; I++) {
tools/clang/lib/AST/DeclCXX.cpp
 1880          M != MEnd && !Done; ++M) {
 1883            SO != SOEnd && !Done; ++SO) {
tools/clang/lib/AST/ExternalASTMerger.cpp
  258   for (const std::unique_ptr<ASTImporter> &I : Importers)
  273   for (const std::unique_ptr<ASTImporter> &I : Importers)
  288     for (const std::unique_ptr<ASTImporter> &Importer : Importers) {
  406   for (const auto &I : Importers)
tools/clang/lib/AST/Interp/Disasm.cpp
   66   for (auto &Anon : AnonFuncs) {
tools/clang/lib/AST/VTableBuilder.cpp
  179   for (const auto &Overrider : FinalOverriders) {
  183     for (const auto &M : Methods) {
 3424   for (const BaseSubobject &BSO : FullPath) {
 3536       for (const BaseSubobject &BSO : *BestPath)
tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp
  551     for (const auto &MP : Matchers) {
  574     for (unsigned short I : Filter) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
   44   for (const std::string &S : Matches)
  164     for (auto &IM : InnerMatchers) {
  351   for (StringRef Name : Names)
  525     for (const StringRef Pattern : Names) {
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
  600     for (const auto &O : Overloads) {
  621     for (const auto &O : Overloads) {
  631     for (const auto &O : Overloads) {
  640     for (const auto &O : Overloads) {
  649     for (const auto &O : Overloads) {
tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp
  541        I != E; ++I) {
  547   for (const auto &Completion : S->getMatcherCompletions(AcceptedTypes)) {
  551   for (const auto &Completion : getNamedValueCompletions(AcceptedTypes)) {
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  625         for (const std::vector<ArgKind> &Arg : ArgsKinds) {
  632           for (const ArgKind &AK : Arg) {
tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp
  165     for (const DynTypedMatcher &Matcher : Matchers) {
  207     for (const VariantMatcher &Matcher : Args) {
tools/clang/lib/Analysis/CFG.cpp
 1547                                    E = BackpatchBlocks.end(); I != E; ++I ) {
tools/clang/lib/Analysis/CloneDetection.cpp
  355   for (CloneDetector::CloneGroup &Group : Sequences) {
  479   for (auto &HashGroup : CloneGroups) {
tools/clang/lib/Analysis/LiveVariables.cpp
  636         it = vec.begin(), ei = vec.end(); it != ei; ++it) {
  654          de = declVec.end(); di != de; ++di) {
tools/clang/lib/Analysis/PathDiagnostic.cpp
  413   for (const auto D : BatchDiags)
 1100   for (const auto &I : *this)
tools/clang/lib/Analysis/ReachableCode.cpp
  697          E = cfg->try_blocks_end() ; I != E; ++I) {
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp
  880   for (auto *A : CurrentArguments)
  901   for (auto *V : CurrentInstructions)
  943   for (auto *Ph : IncompleteArgs) {
tools/clang/lib/Basic/Diagnostic.cpp
  466   for (diag::kind Diag : AllDiags)
  784     for (char c : S) {
tools/clang/lib/Basic/Module.cpp
   68        I != IEnd; ++I) {
  131                            Feature) != LangOpts.ModuleFeatures.end();
  248            I = TopHeaderNames.begin(), E = TopHeaderNames.end(); I != E; ++I) {
  309          Sub != SubEnd; ++Sub) {
  343        I != E; ++I) {
  519        MI != MIEnd; ++MI)
  645     for (auto &C : V.M->Conflicts) {
tools/clang/lib/Basic/SanitizerSpecialCaseList.cpp
   38   for (auto &S : Sections) {
   57   for (auto &S : SanitizerSections)
tools/clang/lib/Basic/TargetInfo.cpp
  405   for (const auto &F : FeatureVec) {
tools/clang/lib/Basic/Targets/AArch64.cpp
  286   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/AMDGPU.cpp
  233   for (auto &I : TargetOpts.FeaturesAsWritten) {
tools/clang/lib/Basic/Targets/ARM.cpp
  378   for (auto Feature : TargetFeatures)
  392   for (const auto &Feature : FeaturesVec) {
  428   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/Hexagon.cpp
   80   for (auto &F : Features) {
tools/clang/lib/Basic/Targets/Mips.h
  316     for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/NVPTX.cpp
   43   for (const StringRef Feature : Opts.FeaturesAsWritten) {
tools/clang/lib/Basic/Targets/PPC.cpp
   34   for (const auto &Feature : Features) {
  227   if (llvm::find(FeaturesVec, "-vsx") != FeaturesVec.end()) {
  228     if (llvm::find(FeaturesVec, "+power8-vector") != FeaturesVec.end()) {
  234     if (llvm::find(FeaturesVec, "+direct-move") != FeaturesVec.end()) {
  240     if (llvm::find(FeaturesVec, "+float128") != FeaturesVec.end()) {
  246     if (llvm::find(FeaturesVec, "+power9-vector") != FeaturesVec.end()) {
  319       llvm::find(FeaturesVec, "+float128") != FeaturesVec.end()) {
tools/clang/lib/Basic/Targets/RISCV.cpp
  148   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/Sparc.h
   43     if (Feature != Features.end()) {
tools/clang/lib/Basic/Targets/SystemZ.h
  112     for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/WebAssembly.cpp
  135   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/X86.cpp
  727   for (const auto &Feature : Features) {
tools/clang/lib/CodeGen/BackendUtil.cpp
  347     for (auto &FuncName : CodeGenOpts.getNoBuiltinFuncs())
  373   for (const auto &MapFile : Opts.RewriteMapFiles)
  502   for (const auto &Entry : HSOpts.UserEntries)
 1079   for (auto &PluginFN : CodeGenOpts.PassPlugins) {
 1387     for (auto &Summary : GlobalList.second.SummaryList) {
tools/clang/lib/CodeGen/CGCall.cpp
 1806   for (StringRef Attr : CodeGenOpts.DefaultFunctionAttrs) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 2385     for (auto &M : PPOpts.Macros) {
 2391       for (char c : Macro)
 4690       for (auto &MD : P.second)
 4697   for (const auto &P : ReplaceMap) {
 4710   for (const auto &P : FwdDeclReplaceMap) {
 4731   for (auto &RT : RetainedTypes)
tools/clang/lib/CodeGen/CGExprCXX.cpp
  499   for (CharUnits VBPtrOffset : VBPtrOffsets) {
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 1576     for (auto *C : Categories) {
 1594     for (auto clsAlias : ClassAliases)
 1642       for (const auto &lateInit : EarlyInitList) {
 3669     for (auto &untypedSel : allSelectors) {
 3833        iter != ClassAliases.end(); ++iter) {
tools/clang/lib/CodeGen/CGObjCMac.cpp
 5590     for (const auto *Sym : DefinedSymbols)
 5593     for (const auto *Sym : LazySymbols)
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1327   for (const auto &Pair : DeferredVariantFunction) {
 7979         if (It != Info.end()) {
 8017     for (const auto &M : Info) {
 8060       if (CI != DeferredInfo.end()) {
 8126     for (const auto &M : Info) {
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 2301     for (auto &Rec : I->getSecond().LocalVarData) {
 4796   if (VDI != I->getSecond().LocalVarData.end())
 4805       if (VDI != I->getSecond().LocalVarData.end())
tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
  570        IsZeroInitializableAsBase && Member != MemberEnd; ++Member) {
  591        Member != MemberEnd; ++Member) {
  623        Member != MemberEnd; ++Member) {
  653        Member != MemberEnd; ++Member) {
  669         Pad != PadEnd; ++Pad)
  677        Member != MemberEnd; ++Member) {
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  579   for (const auto &LocalAddrPair : LocalAddrs) {
  611     if (I != LocalAddrs.end()) {
tools/clang/lib/CodeGen/CGVTables.cpp
  997   for (const CXXRecordDecl *RD : DeferredVTables)
 1109   for (auto AP : AddressPoints) {
tools/clang/lib/CodeGen/CodeGenAction.cpp
  902     for (const CodeGenOptions::BitcodeFileToLink &F :
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  404   for (const auto &FuncletAndParent : TerminateFunclets)
 2224     for (const auto &F : ParsedAttr.Features) {
tools/clang/lib/CodeGen/CodeGenModule.cpp
  300   for (const GlobalDecl &GD : Aliases) {
  360   for (const GlobalDecl &GD : Aliases) {
  977   for (StringRef Feat : Info.Features) {
 1088   if (FoundName != MangledDeclNames.end())
 1165   for (const auto &I : Fns) {
 1629     for (const CXXRecordDecl *Base : getMostBaseClasses(MD->getParent())) {
 2018   for (Module *M : ImportedModules) {
 2036     for (const auto &SM : Mod->submodules()) {
 2060   for (Module *M : LinkModules)
 2099   for (GlobalDecl &D : CurDeclsToEmit) {
 2151   for (const CXXRecordDecl *RD : OpportunisticVTables) {
 2854   for (GlobalDecl GD : MultiVersionFuncs) {
 5426            Sub != SubEnd; ++Sub) {
 5517   for (const auto &Entry : DeferredEmptyCoverageMappingDecls.takeVector()) {
 5583   for (auto &I : StaticExternCValues) {
 5610   for (auto &I : MangledDeclNames) {
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
   96   for (auto &entry : SelfReferences) {
  115     for (auto &entry : SelfReferences) {
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  230     for (const auto &Region : SourceRegions) {
  310     for (const auto &Region : SourceRegions) {
 1395   for (auto &S : CoverageMappings) {
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  752       for (const CXXRecordDecl *Base : CGM.getMostBaseClasses(RD)) {
tools/clang/lib/CodeGen/ModuleBuilder.cpp
  149       for (auto &&Lib : CodeGenOpts.DependentLibraries)
  151       for (auto &&Opt : CodeGenOpts.LinkerOptions)
tools/clang/lib/DirectoryWatcher/DirectoryScanner.cpp
   47   for (const auto &File : Scan) {
tools/clang/lib/Driver/Driver.cpp
 1631     for (StringRef S : DiagnosticIDs::getDiagnosticFlags())
 1775     for (const Multilib &Multilib : TC.getMultilibs())
tools/clang/lib/Driver/Multilib.cpp
   92   for (StringRef Flag : Flags) {
  118   for (const auto &Flag : Flags)
  121   for (const auto &Flag : Other.Flags)
  145   for (StringRef Flag : M.flags()) {
  199       for (const auto &Base : *this) {
  249   for (StringRef Flag : Flags)
  253     for (StringRef Flag : M.flags()) {
  290   for (const auto &M : *this)
tools/clang/lib/Driver/SanitizerArgs.cpp
  955   for (const auto &BLPath : BlacklistFiles) {
  960   for (const auto &Dep : ExtraDeps) {
tools/clang/lib/Driver/ToolChain.cpp
  859     for (const auto &P :
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
  265   if (std::find(ItBegin, ItEnd, "+v8.4a") != ItEnd) {
  286       const bool HasSM4  = (std::find(ItBegin, ItEnd, "+sm4") != ItEnd);
  287       const bool HasSHA3 = (std::find(ItBegin, ItEnd, "+sha3") != ItEnd);
  288       const bool HasSHA2 = (std::find(ItBegin, ItEnd, "+sha2") != ItEnd);
  289       const bool HasAES  = (std::find(ItBegin, ItEnd, "+aes") != ItEnd);
  308       const bool HasSHA2 = (std::find(ItBegin, ItEnd, "+sha2") != ItEnd);
  309       const bool HasAES  = (std::find(ItBegin, ItEnd, "+aes") != ItEnd);
  310       const bool HasV82a = (std::find(ItBegin, ItEnd, "+v8.2a") != ItEnd);
  311       const bool HasV83a = (std::find(ItBegin, ItEnd, "+v8.3a") != ItEnd);
  312       const bool HasV84a = (std::find(ItBegin, ItEnd, "+v8.4a") != ItEnd);
tools/clang/lib/Driver/ToolChains/Clang.cpp
 5746   for (auto EHVal : EHArgs) {
tools/clang/lib/Driver/ToolChains/CrossWindows.cpp
  238     for (const auto &P : DriverArgs.getAllArgValues(options::OPT_isystem_after))
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  404   for (const auto& A : Args.getAllArgValues(options::OPT_Xcuda_ptxas))
  487   for (const auto& A : Args.getAllArgValues(options::OPT_Xcuda_fatbinary))
tools/clang/lib/Driver/ToolChains/Fuchsia.cpp
  219         for (const auto &Path : PathsCallback(SelectedMultilib))
tools/clang/lib/Driver/ToolChains/Gnu.cpp
  421   for (const auto &Opt : ToolChain.ExtraOpts)
 1860   for (const auto &Multilib : Multilibs)
tools/clang/lib/Driver/ToolChains/HIP.cpp
  151   for(auto OneFeature : Features) {
  314   for (auto Path :
  323   for (auto Lib : DriverArgs.getAllArgValues(options::OPT_hip_device_lib_EQ)) {
tools/clang/lib/Driver/ToolChains/Hexagon.cpp
  232   for (const auto &Opt : HTC.ExtraOpts)
  341       for (StringRef Lib : OsLibs)
  443   for (auto &Dir : RootDirs) {
tools/clang/lib/Driver/ToolChains/Linux.cpp
  216     for (const auto &Path : PathsCallback(Multilib))
  690       for (const auto &Path : Callback(GCCInstallation.getMultilib()))
tools/clang/lib/Driver/ToolChains/MSVC.cpp
  353     for (const auto &LibPath : Args.getAllArgValues(options::OPT_L))
  669   for (const auto &Include : Includes)
 1239   for (const auto &Path : DriverArgs.getAllArgValues(options::OPT__SLASH_imsvc))
tools/clang/lib/Driver/ToolChains/MinGW.cpp
   86   for (auto Lib : Args.getAllArgValues(options::OPT_l))
  204   for (auto Lib : Args.getAllArgValues(options::OPT_l)) {
tools/clang/lib/Driver/ToolChains/MipsLinux.cpp
   59     for (const auto &Path : Callback(SelectedMultilib))
   99     for (std::string Path : Callback(SelectedMultilib)) {
tools/clang/lib/Driver/ToolChains/Solaris.cpp
  258       for (const auto &Path : Callback(GCCInstallation.getMultilib()))
tools/clang/lib/Driver/XRayArgs.cpp
  103       for (const auto &B : Bundles) {
  130     for (const auto &Filename :
  139     for (const auto &Filename :
  148     for (const auto &Filename :
  162       for (const auto &Arg : SpecifiedModes) {
  197   for (const auto &Always : AlwaysInstrumentFiles) {
  203   for (const auto &Never : NeverInstrumentFiles) {
  209   for (const auto &AttrFile : AttrListFiles) {
  215   for (const auto &Dep : ExtraDeps) {
  221   for (const auto &Mode : Modes) {
tools/clang/lib/Format/ContinuationIndenter.cpp
  176   for (const auto &Format : Style.RawStringFormats) {
  185   for (const auto &RawStringFormat : CodeStyle.RawStringFormats) {
  198     for (StringRef Delimiter : RawStringFormat.Delimiters) {
  201     for (StringRef EnclosingFunction : RawStringFormat.EnclosingFunctions) {
tools/clang/lib/Format/Format.cpp
 2116     for (StringRef CommentLine : Imports[Index].AssociatedCommentLines) {
tools/clang/lib/Format/FormatTokenLexer.cpp
   38   for (const std::string &ForEachMacro : Style.ForEachMacros)
   40   for (const std::string &StatementMacro : Style.StatementMacros)
   42   for (const std::string &TypenameMacro : Style.TypenameMacros)
   44   for (const std::string &NamespaceMacro : Style.NamespaceMacros)
tools/clang/lib/Format/UnwrappedLineFormatter.cpp
  717   for (const ParenState &P : State.Stack) {
tools/clang/lib/Frontend/ASTUnit.cpp
  173     for (const auto &RF : PreprocessorOpts.RemappedFiles) {
  189     for (const auto &RB : PreprocessorOpts.RemappedFileBuffers) {
  264     for (const auto &RB : PPOpts.RemappedFileBuffers)
 1031     for (const auto *D : TopLevelDecls) {
 1435   for (const auto TopLevelDecl : TopLevelDeclsInPreamble) {
 1843   for (const auto &RB : PPOpts.RemappedFileBuffers)
 2062        C != CEnd; ++C) {
 2388     for (const auto &Range : SD.Ranges) {
 2396     for (const auto &FixIt : SD.FixIts) {
 2624          TL != TLEnd; ++TL) {
tools/clang/lib/Frontend/CompilerInstance.cpp
  204   for (const std::string &VFSFile : CI.getHeaderSearchOpts().VFSOverlayFiles) {
  334   for (const auto &RB : InitOpts.RemappedFileBuffers) {
  352   for (const auto &RF : InitOpts.RemappedFiles) {
  448   for (auto &Listener : DependencyCollectors)
  957   for (const FrontendInputFile &FIF : getFrontendOpts().Inputs) {
 1517     for (auto &Listener : DependencyCollectors)
 1903              J != JEnd; ++J) {
tools/clang/lib/Frontend/CompilerInvocation.cpp
  484                 ? llvm::find(Checkers, CheckerOrPackage) != Checkers.end()
  485                 : llvm::find(Packages, CheckerOrPackage) != Packages.end();
  575   for (const auto &Level : Levels) {
  596   for (const auto &Sanitizer : Sanitizers) {
  772   for (const auto &Arg : Args.getAllArgValues(OPT_fdebug_prefix_map_EQ))
 1096     for (const auto &A : XRayInstrBundles)
 1490   for (const auto &Prefix : VerifyPrefixes) {
 1496     if (BadChar != Prefix.end() || !isLetter(Prefix[0])) {
 1808   for (const std::string &Arg :
 3574   for (StringRef Feature : LangOpts->ModuleFeatures)
 3580   for (const auto &FeatureAsWritten : TargetOpts->FeaturesAsWritten)
 3588   for (const auto &I : getPreprocessorOpts().Macros) {
 3636   for (const auto &ext : frontendOpts.ModuleFileExtensions) {
 3700   for (const auto &File : CI.getHeaderSearchOpts().VFSOverlayFiles) {
tools/clang/lib/Frontend/DependencyFile.cpp
  188   for (const auto &ExtraDep : Opts.ExtraDeps) {
  331   for (StringRef Target : Targets) {
tools/clang/lib/Frontend/FrontendAction.cpp
  157   for (const std::string &Arg : CI.getFrontendOpts().AddPluginActions) {
  215   for (auto &C : AfterConsumers) {
  407        Sub != SubEnd; ++Sub)
  677   for (const auto &F : CI.getFrontendOpts().ModulesEmbedFiles) {
  795   for (const auto &Filename : CI.getFrontendOpts().ModuleMapFiles) {
  900   for (const auto &ModuleFile : CI.getFrontendOpts().ModuleFiles)
tools/clang/lib/Frontend/FrontendActions.cpp
  257   for (const FrontendInputFile &FIF : Inputs) {
  288   for (StringRef Name : ModuleHeaders) {
  536         for (StringRef Feature : LangOpts.ModuleFeatures)
  572       for (const std::string &Warning : DiagOpts->Warnings)
  574       for (const std::string &Remark : DiagOpts->Remarks)
  613            I != IEnd; ++I) {
tools/clang/lib/Frontend/HeaderIncludeGen.cpp
  121   for (const auto &Header : DepOpts.ExtraDeps)
tools/clang/lib/Frontend/InitHeaderSearch.cpp
  559   for (auto &Include : IncludePath)
  567   for (auto &Include : IncludePath)
  574   for (auto &Include : IncludePath)
  583   for (auto &Include : IncludePath)
tools/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
  265         for (auto Name : Symbol.Names) {
tools/clang/lib/Frontend/MultiplexConsumer.cpp
   42   for (auto &Listener : Listeners)
   72   for (auto &Listener : Listeners)
  155   for (auto &Listener : Listeners)
  165   for (auto *L : Listeners)
  184   for (auto &Listener : Listeners)
  214   for (ASTMutationListener *L : Listeners)
  219   for (auto *L : Listeners)
  224   for (auto *L : Listeners)
  231   for (auto *L : Listeners)
  244   for (auto &Consumer : Consumers) {
  264   for (auto &Consumer : Consumers)
  270   for (auto &Consumer : Consumers)
  276   for (auto &Consumer : Consumers)
  281   for (auto &Consumer : Consumers)
  286   for (auto &Consumer : Consumers)
  291   for (auto &Consumer : Consumers)
  296   for (auto &Consumer : Consumers)
  301   for (auto &Consumer : Consumers)
  306   for (auto &Consumer : Consumers)
  311   for (auto &Consumer : Consumers)
  316   for (auto &Consumer : Consumers)
  321   for (auto &Consumer : Consumers)
  326   for (auto &Consumer : Consumers)
  331   for (auto &Consumer : Consumers)
  344   for (auto &Consumer : Consumers)
  350   for (auto &Consumer : Consumers)
  356   for (auto &Consumer : Consumers)
  362   for (auto &Consumer : Consumers)
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  447   for (const auto &R : PreprocessorOpts.RemappedFiles) {
  461   for (const auto &RB : PreprocessorOpts.RemappedFileBuffers) {
tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp
   54   for (const auto &I : All) {
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
  851   for (const_diag_iterator I = diag_begin, E = diag_end; I != E; ++I) {
  879   for (const auto *D : DL) {
  927   for (auto &Owner : Left) {
  933       for (II = Right.begin(), IE = Right.end(); II != IE; ++II) {
tools/clang/lib/Index/FileIndexRecord.cpp
   45   for (auto &DclInfo : Decls) {
tools/clang/lib/Lex/HeaderSearch.cpp
  135   for (auto &HM : HeaderMaps)
  157   for (const std::string &Dir : HSOpts->PrebuiltModulePaths) {
tools/clang/lib/Lex/ModuleMap.cpp
 1296   for (auto &UC : Unresolved) {
tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
   40   if (upp != CondDirectiveLocs.end())
   59   assert(low != CondDirectiveLocs.end());
tools/clang/lib/Lex/PPLexerChange.cpp
  263   for (auto *M : Mod.submodules())
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1037     for (const auto &Lexer : MacroExpandingLexersStack) {
tools/clang/lib/Lex/PreprocessingRecord.cpp
  293        RI != Begin && count < 4; --RI, ++count) {
tools/clang/lib/Lex/Preprocessor.cpp
 1371   assert(Pos != CommentHandlers.end() && "Comment handler not registered");
 1379        H != HEnd; ++H) {
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
 1531     for (const auto &P : uses) {
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
  573       for (const FixItHint &FixIt : Results[I].FixIts) {
tools/clang/lib/Sema/Sema.cpp
  324       for (auto &I : Atomic64BitTypes)
  659   for (const auto &UndefinedUse : UndefinedButUsed) {
  940   for (const auto &Typo : DelayedTypos) {
 1016   for (auto WeakID : WeakUndeclaredIdentifiers) {
 1228     for (const auto &DeletedFieldInfo : DeleteExprs) {
 1417   for (PartialDiagnosticAt &PDAt : It->second) {
 1553     for (std::pair<CanonicalDeclPtr<FunctionDecl>, SourceLocation> FDLoc :
tools/clang/lib/Sema/SemaCodeComplete.cpp
 1963         for (auto *MD : it->second) {
 4040            Sub != SubEnd; ++Sub) {
 8756     for (const auto &D : make_range(S.quoted_dir_begin(), S.quoted_dir_end()))
 8759   for (const auto &D : make_range(S.angled_dir_begin(), S.angled_dir_end()))
 8761   for (const auto &D : make_range(S.system_dir_begin(), S.system_dir_end()))
tools/clang/lib/Sema/SemaDecl.cpp
 9679   for (const auto &Feat : ParseInfo.Features) {
16679                  M != MEnd; ++M) {
16682                    SO != SOEnd; ++SO) {
tools/clang/lib/Sema/SemaDeclAttr.cpp
 2987   for (const auto &Feature : ParsedAttrs.Features) {
 7416         if (I != WeakUndeclaredIdentifiers.end()) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 5555        M != MEnd;
 5559          SO != SOEnd; ++SO) {
 9595   for (ComparisonCategoryResult CCR :
15759        I != E; ++I) {
15762          OI != OE; ++OI) {
tools/clang/lib/Sema/SemaDeclObjC.cpp
 4980   for (auto &SelectorAndLocation : ReferencedSelectors) {
tools/clang/lib/Sema/SemaExpr.cpp
14813     for (FixItHint &H : ConvHints.Hints)
tools/clang/lib/Sema/SemaExprCXX.cpp
  852   for (CXXRecordDecl *PublicSubobject : PublicSubobjectsSeen) {
tools/clang/lib/Sema/SemaExprObjC.cpp
 3203     if (Pos != S.ReferencedSelectors.end() && Pos->second == Loc)
tools/clang/lib/Sema/SemaLookup.cpp
 4291   for (auto KNPair : KnownNamespaces)
 5492   assert(Entry != DelayedTypos.end() &&
tools/clang/lib/Sema/SemaOpenMP.cpp
 2098              &Callee : CallerCallees.getSecond()) {
 5936   if (I != Captures.end())
 6866     for (const auto &Pair : Captures)
tools/clang/lib/Sema/SemaOverload.cpp
10138        HE = Cand->Fix.Hints.end(); HI != HE; ++HI)
tools/clang/lib/Sema/SemaStmt.cpp
 1213         for (; RI != CaseRanges.end(); RI++) {
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
 4279     assert(LPTIter != LateParsedTemplateMap.end() &&
tools/clang/lib/Serialization/ASTReader.cpp
  722           != PPOpts.Includes.end())
  734         != PPOpts.MacroIncludes.end())
 4250     for (auto Offset : F.PreloadIdentifierOffsets) {
 7964     for (auto Lexical : TULexicalDecls)
 9800     for (RawComment *C : Comments) {
10057   for (auto *ND : PendingMergedDefinitionsToDeduplicate)
tools/clang/lib/Serialization/ASTWriter.cpp
 1603   for (StringRef Feature : LangOpts.ModuleFeatures)
 1613   for (const auto &I : LangOpts.CommentOpts.BlockCommandNames) {
 1620   for (auto &T : LangOpts.OMPTargetTriples)
 2436       for (auto &LE : L.second) {
 2455       for (const auto &LE : L.second) {
 2848        Sub != SubEnd; ++Sub)
 3060     for (const auto &C : Mod->Conflicts) {
 3069     for (const auto &CM : Mod->ConfigMacros) {
 3088     for (auto *M : Mod->submodules())
 3459     for (auto &SelectorAndID : SelectorIDs) {
 3556   for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) {
 3799     for (auto IdentIDPair : IdentifierIDs) {
 4462   for (auto &LPTMapEntry : LPTMap) {
 4807   for (auto &WeakUndeclaredIdentifier : SemaRef.WeakUndeclaredIdentifiers) {
 4859   for (const auto &I : SemaRef.KnownNamespaces) {
 4879     for (const auto &DeleteExprsInfo :
 4948   for (const auto &Number : Context.MangleNumbers)
 4952   for (const auto &Number : Context.StaticLocalNumbers)
 4992   for (auto &SelectorAndID : SelectorIDs)
 5246   for (const auto &ExtWriter : ModuleFileExtensionWriters)
 5259   for (auto &DeclUpdate : LocalUpdates) {
tools/clang/lib/Serialization/ASTWriterDecl.cpp
  182       for (const auto &F : Firsts)
tools/clang/lib/Serialization/GlobalModuleIndex.cpp
  444       if (Known != ModuleFiles.end())
  795        M != MEnd; ++M) {
tools/clang/lib/Serialization/ModuleManager.cpp
  416            M != MEnd; ++M) {
tools/clang/lib/Serialization/MultiOnDiskHashTable.h
  322         for (const auto &F : Merged->Files)
tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
  121       E = CE.blocks_exhausted_end(); I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp
  114   for (const CloneDetector::CloneGroup &Group : CloneGroups) {
  133   for (const CloneDetector::CloneGroup &Group : CloneGroups) {
  166   for (VariablePattern::SuspiciousClonePair &Pair : Pairs) {
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
  323   for (auto &P : Config.Propagations) {
  329   for (auto &F : Config.Filters) {
  334   for (auto &S : Config.Sinks) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
  182          e = Finder.Calls.end(); i != e; ++i) {
tools/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
  357   for (const auto &VRS: Summary.Ranges) {
  359     for (const auto &VR: VRS) {
  463   for (const FunctionSummaryTy &Spec : SpecVariants)
tools/clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp
   51        E = PathConsumers.end(); I != E; ++I) {
   60        I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 1993   for (const std::string &CheckerOrPackage : Opts.SilencedCheckersAndPackages) {
 2028     for (const PathDiagnosticPieceRef &Note : VisitorNotes->second) {
 2398   for (const auto I : EQClassesVector)
 2405   for (const auto EQ : EQClassesVector)
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
   88     for (const auto &info : DeclCheckers)
  102   for (const auto BodyChecker : BodyCheckers)
  128   for (; I != E; ++I) {
  405   for (const auto EndAnalysisChecker : EndAnalysisCheckers)
  458   for (const auto checkFn : EndFunctionCheckers) {
  545   for (const auto LiveSymbolsChecker : LiveSymbolsCheckers)
  602   for (const auto RegionChangesChecker : RegionChangesCheckers) {
  624   for (const auto PointerEscapeChecker : PointerEscapeCheckers) {
  638   for (const auto EvalAssumeChecker : EvalAssumeCheckers) {
  661     for (const auto EvalCallChecker : EvalCallCheckers) {
  700   for (const auto EndOfTranslationUnitChecker : EndOfTranslationUnitCheckers)
  900   for (const auto &Info : StmtCheckers)
  907   for (const auto CheckerDtor : CheckerDtors)
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
  202   for (ExplodedGraph::eop_iterator I = G.eop_begin(), E = G.eop_end(); I != E;
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
  183   for (const auto node : ChangedNodes)
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  158   for (const auto Diag : Diags)
  286     for (auto I = FileIDs.begin(), E = FileIDs.end(); I != E; I++) {
  290       if (I != FileIDs.begin())
  296       if (I != FileIDs.begin())
  304       if (I + 1 != E)
  314     for (auto I : llvm::make_range(FileIDs.begin() + 1, FileIDs.end())) {
  613   for (const auto &Range : PopUpRanges) {
  952     if (std::find(PopUpRanges.begin(), PopUpRanges.end(), Range) !=
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
  271        I!=E; ++I) {
  617   for (const PathDiagnostic *D : Diags) {
  667        DE = Diags.end(); DI!=DE; ++DI) {
  766                 CE = files->end(); CI != CE; ++CI) {
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
 1059          I != E; ++I)
 1316                                       E = Vals.end(); I != E; ++I) {
 2598          I != E; ++I)
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  139          I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
  203   for (const std::pair<std::string, bool> &Opt : AnOpts.CheckersAndPackages) {
  212     for (CheckerInfo &checker : CheckerForCmdLineArg) {
  264   for (const CheckerInfo &Checker : Checkers) {
  291     assert(CheckerIt != Checkers.end() && CheckerIt->FullName == Entry.first &&
  296     assert(DependencyIt != Checkers.end() &&
  366   assert(It != Collection.end() &&
  439   for (const auto *Checker : enabledCheckers) {
  489     if (CheckerIt != Checkers.end()) {
  516   for (const auto &Checker : Checkers) {
  533   for (const auto &Checker : Checkers) {
  562   for (const auto *i : EnabledCheckers)
  575   for (const CheckerInfo &Checker : Checkers) {
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  319   for (NodeId Leaf : Leaves) {
  651     for (SNodeId Id1 : S1.KeyRoots)
  652       for (SNodeId Id2 : S2.KeyRoots)
  790   for (const auto Tuple : R) {
  836   for (NodeId Id1 : Postorder) {
  872       for (NodeId Id : L1.pop())
  877       for (NodeId Id : L2.pop())
  884     for (NodeId Id1 : H1) {
  885       for (NodeId Id2 : H2) {
  892     for (NodeId Id1 : H1) {
  896     for (NodeId Id2 : H2) {
  931   for (NodeId Id1 : T1.NodesBfs) {
  942   for (NodeId Id2 : T2.NodesBfs) {
tools/clang/lib/Tooling/AllTUsExecution.cpp
  102   for (const auto& File : Compilations.getAllFiles()) {
  119     for (std::string File : Files) {
tools/clang/lib/Tooling/CommonOptionsParser.cpp
   77   for (CompileCommand &Command : Commands)
   78     for (const auto &Adjuster : Adjusters)
tools/clang/lib/Tooling/CompilationDatabase.cpp
  136   for (const auto &File : getAllFiles()) {
tools/clang/lib/Tooling/Core/Replacement.cpp
  491   for (const auto &R : Ranges) {
  521   for (const auto &R : MergedRanges) {
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
  101       for (const auto &Entry : CI.getHeaderSearchOpts().UserEntries)
  103       for (const auto &Entry : CI.getHeaderSearchOpts().VFSOverlayFiles)
tools/clang/lib/Tooling/Execution.cpp
   33   for (const auto &KV : KVResults) {
tools/clang/lib/Tooling/FileMatchTrie.cpp
  127     for (const auto &Child : AllChildren) {
tools/clang/lib/Tooling/GuessTargetAndModeCompilationDatabase.cpp
   40     for (auto &Cmd : Cmds) {
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
  181   for (const auto &Category : Style.IncludeCategories)
  244   for (const auto &Category : Style.IncludeCategories)
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
  143       for (const std::string &S : OldArgs)
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp
  305     for (const auto *Node : Nodes)
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
  227   for (const auto &Child : Node.Children)
  241   for (const auto &Child : Node.Children) {
  349     for (const auto &Child : ASTSelection.Children) {
  366   for (const auto &Child : ASTSelection.Children)
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp
  242   for (const auto &R : NE.Replaces) {
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
  149   for (const auto &Occurrence : Occurrences) {
  211       for (const auto &Occurrence : Occurrences) {
tools/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
   73       for (const auto &OverriddenMethod : OverriddenMethods) {
  122     for (const auto *PartialSpec : PartialSpecs) {
  157     for (const auto *Method : InstantiatedMethods) {
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  533   for (const auto &RenameInfo : Finder.getRenameInfos()) {
  577   for (const auto *Using : Finder.getUsingDecls())
tools/clang/lib/Tooling/RefactoringCallbacks.cpp
   46     for (const auto &Callback : Refactoring.Callbacks) {
   50     for (const auto &Callback : Refactoring.Callbacks) {
  203   for (const auto &Element : Template) {
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  242   for (auto Mapping : File.Mappings) {
  604   for (FileID ID : Keys) {
  620     for (auto &M : File.Mappings) {
tools/clang/lib/Tooling/Tooling.cpp
  215   for (auto &FilenameWithContent : VirtualMappedFiles) {
  250     for (auto Token = ++CommandLine.begin(); Token != CommandLine.end();
  317   for (const std::string &Str : CommandLine)
  439   for (StringRef Arg : Args)
  456     for (const auto &MappedFile : MappedFileContents)
  468   for (const auto &SourcePath : SourcePaths) {
  490   for (llvm::StringRef File : AbsolutePaths) {
  505     for (CompileCommand &CompileCommand : CompileCommandsForFile) {
  522         for (const auto &MappedFile : MappedFileContents)
tools/clang/lib/Tooling/Transformer/Stencil.cpp
  262   for (auto &Part : OtherStencil.Parts)
  269   for (const auto &Part : Parts)
tools/clang/lib/Tooling/Transformer/Transformer.cpp
   24   for (auto &Matcher : transformer::detail::buildMatchers(Rule))
   59   for (const auto &I : Case.AddedIncludes) {
tools/clang/tools/arcmt-test/arcmt-test.cpp
  145   for (const auto &RB : PPOpts.RemappedFileBuffers)
tools/clang/tools/clang-format/ClangFormat.cpp
  540   for (const auto &FileName : FileNames) {
tools/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp
   28   for (auto &A : ExtraArgs)
tools/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp
   59   for (auto &A : ExtraArgs) {
tools/clang/tools/clang-import-test/clang-import-test.cpp
  355   for (auto I : Imports) {
  365     for (auto &ImportCI : ImportCIs) {
  371     for (auto &ImportCI : ImportCIs)
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  327     for (auto &T : TargetNames) {
  338     for (auto &T : TargetNames) {
  676   for (auto &I : InputFileNames) {
  701   for (auto &Triple : TargetNames) {
  739   for (auto &Triple : TargetNames) {
  872   for (StringRef Target : TargetNames) {
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  339   for (const std::string &File : Inputs) {
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  261     for (const auto &Rule : this->ActionRules) {
  274     for (const auto &Rule : this->ActionRules) {
  354     for (const auto &Action : Actions) {
  363     for (auto &Action : Actions) {
  480     for (const auto &Change : Changes)
  536     for (const auto &Rule : Subcommand.getActionRules()) {
  590       for (const auto &Subcommand : SubCommands)
tools/clang/tools/clang-refactor/TestSupport.cpp
   33   for (const auto &Group : GroupedRanges) {
   52   for (const auto &Group : GroupedRanges) {
   69   for (const auto &Change : Changes)
   87   for (const auto &Change : Changes)
  119     for (auto &Group : Results) {
  120       for (auto &Result : Group) {
tools/clang/tools/clang-rename/ClangRename.cpp
  116     for (const auto &Info : Infos) {
  142   for (const auto &NewName : NewNames) {
  167     for (const auto &PrevName : PrevNames) {
  224     for (const auto &File : Files) {
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp
  141   for (const auto &Command : Compilations->getAllCompileCommands())
  253   for (auto &W : WorkerThreads)
tools/clang/tools/diagtool/DiagTool.cpp
   53        ei = toolNames.end(); it != ei; ++it) {
tools/clang/tools/diagtool/ListWarnings.cpp
   41   for (const Entry &E : entries) {
tools/clang/tools/diagtool/ShowEnabledWarnings.cpp
  135   for (const PrettyDiag &PD : Active) {
tools/clang/tools/driver/cc1as_main.cpp
  245   for (const auto &Arg : Args.getAllArgValues(OPT_fdebug_prefix_map_EQ))
  510   for (auto &S : Opts.SymbolDefs) {
tools/clang/tools/driver/cc1gen_reproducer_main.cpp
  178   for (const auto &Arg : InvocationInfo.Arguments)
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
  167   for (const auto &TU : TUs)
  168     for (const tooling::Replacement &R : TU.Replacements)
  171   for (const auto &TU : TUDs)
  172     for (const auto &D : TU.Diagnostics)
  202     for (const auto &R : FileAndReplacements.second) {
  248   for (const auto &Filename : Files) {
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  803   for (llvm::Regex &RE : WhiteListedSymbolRegexes)
  985     for (const auto &NsMove : NsMoves) {
 1008     for (const auto &FwdDeclInsertion : FwdDeclInsertions) {
tools/clang/tools/extra/clang-doc/BitcodeWriter.cpp
  124       for (const auto &Init : Inits)
  190       for (const auto &Init : Inits) {
  382   for (const auto &Block : RecordsByBlock) {
  393   for (RecordId RID : RIDs) {
  433   for (const auto &L : std::vector<std::pair<llvm::StringRef, RecordId>>{
  449   for (const auto &C : I.Children)
  460   for (const auto &CI : I.Description)
  462   for (const auto &C : I.ChildNamespaces)
  464   for (const auto &C : I.ChildRecords)
  466   for (const auto &C : I.ChildFunctions)
  468   for (const auto &C : I.ChildEnums)
  478   for (const auto &CI : I.Description)
  496   for (const auto &CI : I.Description)
  510   for (const auto &PB : I.Bases)
  512   for (const auto &C : I.ChildRecords)
  514   for (const auto &C : I.ChildFunctions)
  516   for (const auto &C : I.ChildEnums)
  531   for (const auto &C : I.ChildFunctions)
  541   for (const auto &CI : I.Description)
tools/clang/tools/extra/clang-doc/Generators.cpp
   84     if (It != I->Children.end()) {
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp
  104     for (const auto &C : Children) {
  186   for (const auto &C : Children)
  193   for (const auto &A : Attributes)
  203   for (const auto &C : Children) {
  273   for (const auto &FilePath : CDCtx.UserStylesheets) {
  290   for (const auto &FilePath : CDCtx.JsScripts) {
  356   for (const auto &E : Enums) {
  385   for (const auto &F : Functions) {
  428   for (const auto &R : References) {
  567   for (const auto &C : Infos)
  591   for (const auto &C : Index.Children) {
  603     for (const auto &Child : I.Children) {
  611     for (const auto &Child : I.Children) {
  629   for (const auto &Child : C) {
  907         for (const Index &C : I.Children)
  991   for (const auto &FilePath : CDCtx.UserStylesheets) {
  996   for (const auto &FilePath : CDCtx.FilesToCopy) {
tools/clang/tools/extra/clang-doc/MDGenerator.cpp
   61     for (const auto &Child : I.Children)
   64     for (const auto &Child : I.Children)
   69     for (const auto &Child : I.Children)
   80     for (const auto &Child : I.Children)
  123   for (const auto &C : I.Description)
  150   for (const auto &C : I.Description)
  162     for (const auto &C : I.Description)
  169     for (const auto &R : I.ChildNamespaces)
  175     for (const auto &R : I.ChildRecords)
  181     for (const auto &F : I.ChildFunctions)
  187     for (const auto &E : I.ChildEnums)
  199     for (const auto &C : I.Description)
  230     for (const auto &R : I.ChildRecords)
  236     for (const auto &F : I.ChildFunctions)
  242     for (const auto &E : I.ChildEnums)
tools/clang/tools/extra/clang-doc/Representation.cpp
   41   for (auto &I : Values)
   59   for (auto &ChildToMerge : ChildrenToMerge) {
   71   for (auto &ChildToMerge : ChildrenToMerge) {
   83   for (auto &ChildToMerge : ChildrenToMerge) {
  272   for (auto &C : Children)
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp
  277       for (auto &Bitcode : Group.getValue()) {
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp
   21     for (auto &Symbol : Symbols) {
   33     for (const Entry &E : Symbols)
tools/clang/tools/extra/clang-include-fixer/InMemorySymbolIndex.cpp
   18   for (const auto &Symbol : Symbols)
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  422     for (const auto &Info : Context.getQuerySymbolInfos()) {
tools/clang/tools/extra/clang-include-fixer/IncludeFixerContext.cpp
   98   for (const auto &Symbol : MatchedSymbols) {
tools/clang/tools/extra/clang-include-fixer/SymbolIndexManager.cpp
   51   for (const auto &Symbol : Symbols) {
   94     for (const auto &DB : SymbolIndices) {
  102     for (auto &SymAndSig : Symbols) {
  110              SymbolContext != Symbol.getContexts().end()) {
  152   for (auto &SymAndSig : MatchedSymbols)
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.cpp
   52   for (const auto &Symbol : Symbols) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/HeaderMapCollector.cpp
   19   for (const auto &Entry : *RegexHeaderMappingTable) {
   32   for (auto &Entry : RegexHeaderMappingTable) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/SymbolInfo.cpp
   90   for (const auto &Context : Contexts) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp
  105             for (auto &Symbol : Symbols) {
tools/clang/tools/extra/clang-include-fixer/plugin/IncludeFixerPlugin.cpp
   56     for (StringRef Arg : Args) {
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
  243   for (const auto &Info : Context.getQuerySymbolInfos()) {
  254   for (const auto &Info : HeaderInfos) {
  361     for (auto &Symbol : MatchedSymbols) {
  404   for (const auto &Context : Contexts) {
  430     for (const auto &Context : Contexts) {
  460   for (const auto &Replacement : FixerReplacements) {
tools/clang/tools/extra/clang-move/Move.cpp
  386   for (const auto &Include : Includes)
  397   for (const auto *MovedDecl : Decls) {
  403     while (CurrentIt != CurrentNamespaces.end() &&
  404            DeclIt != DeclNamespaces.end()) {
  433     while (DeclIt != DeclNamespaces.end()) {
  447   for (const auto &NS : CurrentNamespaces)
  463   for (const auto *D : Decls) {
  735     for (const auto *D : HelperDeclarations) {
  747   for (const auto *RemovedDecl : RemovedDecls) {
  801   for (const auto *MovedDecl : MovedDecls) {
  815   for (const auto *D : NewCCDecls) {
tools/clang/tools/extra/clang-move/tool/ClangMove.cpp
  138     for (auto I = Declarations.begin(), E = Declarations.end(); I != E; ++I) {
  147       if (I != std::prev(E))
tools/clang/tools/extra/clang-query/Query.cpp
  108     for (auto MI = Matches.begin(), ME = Matches.end(); MI != ME; ++MI) {
tools/clang/tools/extra/clang-query/QueryParser.cpp
  169   for (auto I = Comps.begin(), E = Comps.end(); I != E; ++I) {
tools/clang/tools/extra/clang-query/tool/ClangQuery.cpp
  119     for (auto I = Commands.begin(), E = Commands.end(); I != E; ++I) {
  125     for (auto I = CommandFiles.begin(), E = CommandFiles.end(); I != E; ++I) {
tools/clang/tools/extra/clang-reorder-fields/tool/ClangReorderFields.cpp
   80   for (const auto &File : Files) {
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
   74     for (const ento::PathDiagnostic *PD : Diags) {
  346   for (StringRef CheckName : RegisteredCheckers) {
  359   for (StringRef CheckName : RegisteredCheckers) {
  413   for (auto &Check : Checks) {
  452   for (const auto &AnalyzerCheck : getAnalyzerCheckersAndPackages(
  465   for (const auto &Check : Checks)
  508           if (I != AdjustedArgs.end() && !StringRef(*I).startswith("-"))
  602   for (const auto &Error : Errors) {
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
  451   for (const FileFilter &Filter : Context.getGlobalOptions().LineFilter) {
  455       for (const FileFilter::LineRange &Range : Filter.LineRanges) {
  639   for (auto &Error : Errors) {
  644   for (const auto &ErrorAndFix : ErrorFixes) {
  677     for (const auto &Event : Events) {
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp
   53     for (const FileFilter::LineRange &Range : File.LineRanges) {
   74     for (const auto &KeyValue : Options)
  171   for (const auto &Source : getRawOptions(FileName))
  282   for (const ConfigFileHandler &ConfigHandler : ConfigHandlers) {
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
  115   for (auto Import : MF->Imports)
tools/clang/tools/extra/clang-tidy/GlobList.cpp
   56   for (const GlobListItem &Item : Items) {
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  293     for (auto Comment : Comments) {
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp
  122     for (const auto *CurDecl : Declarations) {
  134       for (const auto *Decl : Declarations) {
  158       for (const auto *Def : Definitions) {
tools/clang/tools/extra/clang-tidy/google/NonConstReferences.cpp
   78                    }) != WhiteListTypes.end())
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
  164   for (auto &Context : Contexts) {
  171   for (const auto &Context : Contexts) {
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
   54   for (const auto &KeyValue :
   78     for (const auto &KeyValue :
   88   for (const auto &Key :
tools/clang/tools/extra/clang-tidy/plugin/ClangTidyPlugin.cpp
   66     for (StringRef Arg : Args)
tools/clang/tools/extra/clang-tidy/readability/FunctionSizeCheck.cpp
  210   for (const auto &CSPos : FI.NestingThresholders) {
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.cpp
   77     for (const auto &InputValue : IgnoredFloatingPointValuesInput) {
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
   99   if (NewSuffix != NewSuffixes.end())
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp
  378     for (const std::string &Check : EnabledChecks) {
  396     for (const auto &CheckName : EnabledChecks)
  435                      }) != Errors.end();
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp
   73     for (const auto &MacroEntry : Macros) {
  231       for (const auto &MacroEntry : Macros) {
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.cpp
   57   for (const auto &Abbreviation : Abbreviations) {
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
   65     for (auto &Matcher : tooling::detail::buildMatchers(*Rule))
  101   for (const auto &I : Case.AddedIncludes) {
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp
  142   for (const auto &R : llvm::make_range(Ranges.begin() + 1, Ranges.end())) {
  463     for (OffsetEncoding Supported : *Params.capabilities.offsetEncoding)
  741         for (auto &Sym : *Items)
  862         for (auto &C : S.children)
  914   for (const Diagnostic &D : Params.context.diagnostics) {
  915     for (auto &F : getFixes(File.file(), D)) {
  931         for (const auto &T : *Tweaks)
  937         for (const auto &Action : Actions) {
  962                          for (const auto &R : List->Completions) {
  983                           for (auto &SigInfo : Signature->signatures) {
  984                             for (auto &Param : SigInfo.parameters)
 1020         for (auto &S : *Symbols) {
 1039         for (auto &S : *Symbols) {
 1323   for (auto &Diag : Diagnostics) {
 1356   for (const Path &FilePath : DraftMgr.getActiveFiles())
tools/clang/tools/extra/clangd/ClangdServer.cpp
  298   for (const tooling::Replacement &R :
  383     for (auto &T : prepareTweaks(*Selection, TweakFilter))
tools/clang/tools/extra/clangd/CodeComplete.cpp
  280       for (const auto &FixIt : C.SemaResult->FixIts) {
  534     for (llvm::StringRef AS : AccessibleScopes)
  575     for (auto &S : Scopes.scopesForIndexQuery()) {
  855       for (const auto &S : ScoredSignatures) {
  901     for (auto &SS : ScoredSignatures) {
 1272       for (const auto &Inc : Includes.MainFileIncludes)
 1373     for (std::string &S : Scopes.AccessibleScopes)
 1463     for (auto &C : Scored) {
 1556         if (I != IndexResults.end()) {
 1564     for (auto &SemaResult : SemaResults)
 1567     for (const auto &IndexResult : IndexResults) {
 1573     for (const auto &Ident : IdentifierResults)
 1578     for (auto &Bundle : Bundles)
 1826   for (const auto &FixIt : FixIts) {
 1858   for (const auto &C : R.Completions)
tools/clang/tools/extra/clangd/Compiler.cpp
   47   for (const auto &S : Inputs.CompileCommand.CommandLine)
tools/clang/tools/extra/clangd/Diagnostics.cpp
   69   for (auto &N : D.Notes) {
  244     for (auto &Note : D.Notes) {
  293     for (auto &Note : D.Notes) {
  302     for (auto &Fix : D.Fixes) {
  344     for (const auto &Fix : D.Fixes)
  353     for (auto &Note : D.Notes) {
  371     for (auto &Note : D.Notes) {
  402   for (auto &Diag : Output) {
  432         for (auto &Note : Diag.Notes)
  434         for (auto &Fix : Diag.Fixes)
tools/clang/tools/extra/clangd/FindSymbols.cpp
  125   for (auto &R : std::move(Top).items())
tools/clang/tools/extra/clangd/Format.cpp
  263   for (tooling::Range &R : Incremental.FormatRanges)
  274   for (auto &R : RangesToFormat) {
  332   for (auto Pass :
  355   for (const auto &R : Replacements) {
tools/clang/tools/extra/clangd/FormattedString.cpp
  120   for (const auto &C : Chunks) {
  151   for (const auto &C : Chunks) {
  179   for (const auto &C : Chunks) {
tools/clang/tools/extra/clangd/Function.h
   86     for (const auto &L : Listeners)
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.cpp
  220     for (llvm::StringRef File : AllFiles) {
  235   for (llvm::StringRef File : AllFiles) {
tools/clang/tools/extra/clangd/HeaderSourceSwitch.cpp
   80   for (const auto *D : getIndexableLocalDecls(AST)) {
tools/clang/tools/extra/clangd/Headers.cpp
  153     for (const auto &Parent : PreviousLevel) {
tools/clang/tools/extra/clangd/IncludeFixer.cpp
  168   for (const auto &Sym : Syms) {
  315   for (const auto *Ctx : Collector.takeVisitedContexts()) {
  362       for (std::string &Scope : Unresolved.Scopes)
tools/clang/tools/extra/clangd/ParsedAST.cpp
  164     for (const auto &Inc : Includes.MainFileIncludes) {
  302     for (const auto &Check : CTChecks) {
  320       for (const auto &Inc : Preamble->Includes.MainFileIncludes)
tools/clang/tools/extra/clangd/Protocol.cpp
  316         for (const auto &Format : *ContentFormat) {
tools/clang/tools/extra/clangd/RIFF.cpp
   72   for (const auto &C : F.Chunks)
   79   for (const auto &C : F.Chunks)
tools/clang/tools/extra/clangd/Selection.cpp
   86     for (auto It = Start; It != Tokens.end() && It->StartOffset < End; ++It) {
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  131     for (const auto &M : AST.getMacros().Ranges)
  476     for (const auto &Token : Line.Tokens) {
tools/clang/tools/extra/clangd/XRefs.cpp
  249   for (auto &Inc : AST.getIncludeStructure().MainFileIncludes) {
  289   for (const Decl *D : getDeclAtPosition(AST, SourceLocationBeg)) {
  359     for (const Decl *D : TargetDecls)
  425   for (const auto &Ref : References) {
  946   for (const auto &Ref : MainFileRefs) {
  962     for (const Decl *D : Decls) {
  992   for (const Decl *D : getDeclAtPosition(AST, Loc)) {
 1143   for (const CXXRecordDecl *ParentDecl : typeParents(&CXXRD)) {
tools/clang/tools/extra/clangd/benchmarks/IndexBenchmark.cpp
   56   for (const auto &Item : *JSONArray->getAsArray()) {
   72     for (const auto &Request : Requests)
   81     for (const auto &Request : Requests)
tools/clang/tools/extra/clangd/index/Background.cpp
  100   for (auto &Include : Node.DirectIncludes) {
  178     for (auto &Cmd : NeedsReIndexing)
  246   for (const auto &Sym : *Index.Symbols) {
  268   for (const auto &SymRefs : *Index.Refs) {
  279   for (const auto &Rel : *Index.Relations) {
  458     for (auto &LS : Result) {
  488   for (auto &LS : Result) {
tools/clang/tools/extra/clangd/index/BackgroundIndexLoader.cpp
  105     for (PathRef Edge : ShardAndEdges.second) {
tools/clang/tools/extra/clangd/index/BackgroundQueue.cpp
   80     for (Task &T : Tasks)
   97   for (Task &T : Queue)
tools/clang/tools/extra/clangd/index/FileIndex.cpp
  141     for (const auto &Slab : SymbolSlabs) {
  142       for (const auto &Sym : *Slab) {
  150     for (const RefSlab *Refs : MainFileRefs)
  151       for (const auto &Sym : *Refs) {
  167     for (const auto &Slab : SymbolSlabs)
  168       for (const auto &Sym : *Slab) {
  183     for (const auto &RefSlab : RefSlabs)
  184       for (const auto &Sym : *RefSlab) {
  203   for (const auto &RelationSlab : RelationSlabs) {
  204     for (const auto &R : *RelationSlab)
  210   for (const auto &Slab : SymbolSlabs)
  212   for (const auto &RefSlab : RefSlabs)
  214   for (const auto &RelationSlab : RelationSlabs)
tools/clang/tools/extra/clangd/index/MemIndex.cpp
   55   for (const auto &Item : Results)
   98       for (const auto &Obj : It->second) {
tools/clang/tools/extra/clangd/index/MemIndex.h
   25     for (const Symbol &S : Symbols)
   27     for (const std::pair<SymbolID, llvm::ArrayRef<Ref>> &R : Refs)
   29     for (const Relation &R : Relations)
tools/clang/tools/extra/clangd/index/Merge.cpp
   64   for (const Symbol &S : Dyn)
tools/clang/tools/extra/clangd/index/Serialization.cpp
  171     for (llvm::StringRef S : Sorted) {
  264   for (llvm::StringRef &Include : IGN.DirectIncludes)
  278   for (llvm::StringRef Include : IGN.DirectIncludes)
  359   for (auto &Ref : Result.second) {
  396   for (llvm::StringRef C : Cmd.CommandLine)
  405   for (llvm::StringRef &C : Cmd.CommandLine)
  431   for (const auto &Chunk : RIFF->Chunks)
  458       for (auto &Include : Entry->getValue().DirectIncludes)
  479       for (const auto &Ref : RefsBundle.second) // FIXME: bulk insert?
  506     for (llvm::StringRef C : Cmd.CommandLine)
  515   for (llvm::StringRef &Include : IGN.DirectIncludes)
  533   for (const auto &Sym : *Data.Symbols) {
  548     for (const auto &Sym : *Data.Refs) {
  550       for (auto &Ref : Refs.back().second) {
  560     for (const auto &Relation : *Data.Relations) {
  571     for (llvm::StringRef C : Data.Cmd->CommandLine) {
  587     for (const auto &Sym : Symbols)
  596       for (const auto &Sym : Refs)
  606       for (const auto &Relation : Relations)
  616       for (const auto &SF : Sources)
tools/clang/tools/extra/clangd/index/Symbol.cpp
   40   if (It != Symbols.end() && It->ID == ID)
   65   for (auto &S : SortedSymbols)
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
  524         for (const auto &LocAndRole : It.second) {
tools/clang/tools/extra/clangd/index/YAMLSerialization.cpp
  337   for (const auto &Sym : *O.Symbols) {
  343     for (auto &Sym : *O.Refs) {
  349     for (auto &R : *O.Relations) {
  374       for (const auto &Ref : Variant.Refs->second)
tools/clang/tools/extra/clangd/index/dex/Dex.cpp
   55     for (const auto &ProximityURI :
   93     for (const auto &Token : generateSearchTokens(*Sym))
  120     for (const auto &ProximityURI : PathProximityURIs)
  179   for (const auto &Trigram : TrigramTokens)
  185   for (const auto &Scope : Req.Scopes)
  219   for (const auto &IDAndScore : IDAndScores) {
  237   for (const auto &Item : std::move(Top).items())
  277       for (const auto &Object : It->second) {
tools/clang/tools/extra/clangd/index/dex/Dex.h
   48     for (auto &&Sym : Symbols)
   50     for (auto &&Ref : Refs)
   52     for (auto &&Rel : Relations)
tools/clang/tools/extra/clangd/index/dex/Iterator.cpp
   31     for (const auto &Child : Children)
   68     for (const auto &Child : Children)
   81     for (const auto &Child : Children) {
  100       for (auto &Child : Children) {
  143     for (const auto &Child : Children)
  153     for (const auto &Child : Children)
  161     for (const auto &Child : Children)
  172     for (const auto &Child : Children)
  185     for (const auto &Child : Children)
  193     for (const auto &Child : Children)
  202     for (const auto &Child : Children) {
  360   for (auto &Child : Children) {
  390   for (auto &Child : Children) {
tools/clang/tools/extra/clangd/indexer/IndexerMain.cpp
   50           for (const auto &Sym : S) {
   59           for (const auto &Sym : S) {
   67           for (const auto &R : S) {
tools/clang/tools/extra/clangd/refactor/Rename.cpp
  184   for (const tooling::SymbolOccurrence &Rename :
tools/clang/tools/extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp
   61   for (const auto &Token : HighlightingTokens) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  311   for (const Parameter &P : Parameters) {
  323   for (const Parameter &P : Parameters) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  102   for (const Decl *ReferencedDecl : ReferencedDecls) {
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
  137   for (auto *D : AllDirectives) {
  184   for (auto *D : AllDirectives) {
  193   for (auto Loc : IdentsToQualify) {
tools/clang/tools/extra/clangd/unittests/Annotations.cpp
   24   for (size_t O : Offsets)
   46   for (Annotations::Range R : OffsetRanges)
tools/clang/tools/extra/clangd/unittests/BackgroundIndexTests.cpp
  226   for (const auto &Ref : *ShardHeader->Refs)
  234   for (const auto &Ref : *ShardSource->Refs)
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
   54   for (auto D : Diagnostics) {
  148     for (const auto &FileWithContents : ExtraFiles)
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp
   94   for (const auto &Sym : Symbols)
 1052   for (auto Range : A.ranges()) {
 1717   for (const auto &C : Results.Completions) {
 1757   for (const auto &C : Results.Completions) {
tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp
  711   for (const auto &D : Parsed.getDiagnostics()) {
tools/clang/tools/extra/clangd/unittests/FormatTests.cpp
   31   for (const auto& R : Changes)
tools/clang/tools/extra/clangd/unittests/FormattedStringTests.cpp
   90   for (char C : Punctuation)
tools/clang/tools/extra/clangd/unittests/FuzzyMatchTests.cpp
  190     for (const auto &Str : RankedStrings)
  205     for (const auto &Str : RankedStrings) {
tools/clang/tools/extra/clangd/unittests/HeaderSourceSwitchTests.cpp
  122   for (auto &Sym : Testing.headerSymbols())
  135   for (auto &Sym : Testing.headerSymbols())
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp
   95     for (const auto &Inc : Inclusions)
tools/clang/tools/extra/clangd/unittests/IndexActionTests.cpp
   51   for (llvm::StringRef Path : Paths) {
tools/clang/tools/extra/clangd/unittests/Matchers.h
   47     for (const auto &M : Matchers) {
tools/clang/tools/extra/clangd/unittests/ParsedASTTests.cpp
  277   for (const auto &R : AST.getMacros().Ranges)
tools/clang/tools/extra/clangd/unittests/RenameTests.cpp
  195       for (const auto &R : T.ranges())
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp
  374     for (const SelectionTree::Node *N : allNodes(T))
tools/clang/tools/extra/clangd/unittests/SemanticHighlightingTests.cpp
  112   for (auto File : AdditionalFiles)
  131   for (const Position &Point : NewTest.points()) {
  136   for (const HighlightingToken &Token : NewTokens) {
tools/clang/tools/extra/clangd/unittests/SerializationTests.cpp
  162   for (const auto &Sym : Slab)
  168   for (const auto &Refs : Slab)
  175   for (const auto &Rel : Slab)
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  309   for (auto P : Source.points()) {
  323   for (const std::string &Text : std::vector<std::string>{
  471   for (const auto& Case : Cases) {
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp
  239     for (const auto &Inclusion : Preamble->Includes.MainFileIncludes)
tools/clang/tools/extra/clangd/unittests/TestIndex.cpp
   78   for (llvm::StringRef QName : QualifiedNames)
tools/clang/tools/extra/clangd/unittests/TestTU.cpp
   99   for (const Symbol &S : Slab) {
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp
  142   for (const auto& Point : Test.points()) {
  146   for (const auto& Range : Test.ranges()) {
tools/clang/tools/extra/clangd/unittests/TweakTests.cpp
  436   for (const auto &IO : InputOutputs) {
tools/clang/tools/extra/clangd/unittests/TypeHierarchyTests.cpp
   74   for (Position Pt : Source.points()) {
   98   for (Position Pt : Source.points()) {
  121   for (Position Pt : Source.points()) {
  371   for (Position Pt : Source.points()) {
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp
   64   for (const auto &Range : Test.ranges())
   66   for (const auto &Range : Test.ranges("read"))
   68   for (const auto &Range : Test.ranges("write"))
 2052     for (const auto &R : T.ranges())
 2112     for (const auto &R : T.ranges())
 2204     for (Position Pos : File.points()) {
tools/clang/tools/extra/modularize/CoverageChecker.cpp
  230        MI != MIEnd; ++MI)
  334       I != E; ++I) {
  415     I != E; ++I) {
tools/clang/tools/extra/modularize/Modularize.cpp
  343   for (auto I = CLArgs.begin(), E = CLArgs.end(); I != E; ++I)
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
   75   for (auto I = InputFilePaths.begin(), E = InputFilePaths.end(); I != E; ++I) {
  350        MI != MIEnd; ++MI)
tools/clang/tools/extra/modularize/ModuleAssistant.cpp
   87   for (auto I = SubModules.begin(), E = SubModules.end(); I != E; ++I) {
   93   for (auto I = HeaderFileNames.begin(), E = HeaderFileNames.end(); I != E;
  120   for (auto I = SubModules.begin(), E = SubModules.end(); I != E; ++I) {
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  561          I != E; ++I) {
  610          I != E; ++I) {
  659          I != E; ++I) {
  700          I != E; ++I) {
  838          I != E; ++I) {
  873          I != E; ++I) {
  951     for (auto I = HeaderPaths.begin(), E = HeaderPaths.end(); I != E;
 1000     for (auto I = HeaderStack.begin(), E = HeaderStack.end(); I != E; ++I) {
 1012     for (auto I = InclusionPaths.begin(), E = InclusionPaths.end(); I != E;
 1155            IMT != EMT; ++IMT) {
 1163              IIP != EIP; ++IIP) {
 1216            IMT != EMT; ++IMT) {
 1224              IIP != EIP; ++IIP) {
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp
  422     for (const std::pair<llvm::GlobPattern, bool> &Filter : Filters)
tools/clang/tools/extra/pp-trace/PPTrace.cpp
   95     for (const CallbackCall &Callback : CallbackCalls) {
   97       for (const Argument &Arg : Callback.Arguments)
tools/clang/tools/extra/unittests/clang-move/ClangMoveTests.cpp
  342   for (const auto& Header : TestHeaders) {
  362   for (const auto& Header : TestHeaders) {
  388   for (const auto& Header : TestHeaders) {
  410   for (const auto& Header : TestHeaders) {
  632   for (const auto &DelPair : Reporter.getDeclarationList())
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h
  134     for (const auto &Error : DiagConsumer.take()) {
  142   for (const ClangTidyError &Error : Diags) {
tools/clang/tools/extra/unittests/clang-tidy/IncludeInserterTest.cpp
   48     for (StringRef header : HeadersToInclude()) {
tools/clang/tools/libclang/ARCMigrate.cpp
   67              I = diagBuffer.err_begin(), E = diagBuffer.err_end(); I != E; ++I)
  111              I = diagBuffer.err_begin(), E = diagBuffer.err_end(); I != E; ++I)
tools/clang/tools/libclang/CIndex.cpp
  531                TL != TLEnd; ++TL) {
 3556     for (const char *Arg : *Args)
 8683        i != ei; ++i) {
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  750   for (const auto &Arg : TU->Arguments)
tools/clang/tools/libclang/CXCursor.cpp
 1468            E = AllCursors.end(); I != E; ++I) {
tools/clang/tools/libclang/CXString.cpp
  129        I != E; ++I) {
tools/clang/unittests/AST/ASTImporterFixtures.h
   62     for (const auto &Arg : ExtraArgs) {
tools/clang/unittests/AST/ASTImporterTest.cpp
  206     for (const ImportAction &Action : ImportActions) {
tools/clang/unittests/ASTMatchers/ASTMatchersTest.h
  155   for (auto Mode : LangModes) {
tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
  150   for (const auto &E : Sema.Errors) {
  187   for (const auto &E : Sema.Errors) {
tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp
  116     for (CompVector::const_iterator I = Comps.begin(), E = Comps.end(); I != E;
tools/clang/unittests/CodeGen/CodeGenExternalTest.cpp
  174   for (auto decl : my->toplevel_decls ) {
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
  148       if (OptIt != OptionalNonInitial.end()) {
  203       for (const auto &E : ExpectedInitialCopy) {
  207       for (const auto &E : ExpectedNonInitialCopy) {
  214       for (const auto &E : ExpectedInitial) {
  220       for (const auto &E : ExpectedNonInitial) {
  226       for (const auto &E : UnexpectedInitial) {
  232       for (const auto &E : UnexpectedNonInitial) {
tools/clang/unittests/Driver/MultilibTest.cpp
  161        I != E; ++I) {
  171        I != E; ++I) {
  186   for (MultilibSet::const_iterator I = MS.begin(), E = MS.end(); I != E; ++I) {
  202   for (MultilibSet::const_iterator I = MS.begin(), E = MS.end(); I != E; ++I) {
  230   for (MultilibSet::const_iterator I = MS.begin(), E = MS.end(); I != E; ++I) {
  249   for (MultilibSet::const_iterator I = MS.begin(), E = MS.end(); I != E; ++I) {
  278   for (MultilibSet::const_iterator I = MS.begin(), E = MS.end(); I != E; ++I) {
tools/clang/unittests/Lex/LexerTest.cpp
  461   for (const Token &Tok : LexedTokens) {
tools/clang/unittests/Sema/CodeCompleteTest.cpp
  121   for (size_t Point : A.points()) {
tools/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
   32       for (const auto *PD : Diags)
tools/clang/unittests/Tooling/ASTSelectionTest.cpp
  132     for (const SelectedASTNode &Child : Node.Children) {
tools/clang/unittests/Tooling/CommentHandlerTest.cpp
  103     if (Current != End) {
  111     EXPECT_TRUE(Current != End) << "Comment " << Message << " not found";
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp
  387   for (const auto &Case : Cases) {
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
  773   for (auto Range : Code.ranges("macro"))
  777   for (auto Expansion : Expansions)
tools/clang/unittests/Tooling/TestVisitor.h
  153          It != End; ++It) {
  168          It != End; ++It) {
  175          It != End; ++It) {
tools/clang/unittests/Tooling/ToolingTest.cpp
   92        i != e; ++i) {
  418         for (llvm::StringRef Arg : Args) {
  472     return llvm::find(FinalArgs, Flag) != FinalArgs.end();
  503     return llvm::find(FinalArgs, Flag) != FinalArgs.end();
tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp
  226   for (RecordVector::iterator i = Decls.begin(), e = Decls.end(); i != e; ++i) {
  241        i != e; ++i)
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
   82   for (const auto &Spelling : Spellings) {
  165   for (const auto *Attr : Attrs) {
  795     for (const auto &i : enums) {
  848       for (; i != e; ++i)
  880       for (const auto &I : uniques) {
  958       for (; i != e; ++i)
  972       for (const auto &UI : uniques) {
 1485       for (const auto &arg : Args) {
 1561   for (const auto *Accessor : Accessors) {
 1582   for (const auto &Spelling :
 1609   for (auto I = Spellings.begin(), E = Spellings.end(); I != E; ++I, ++Idx) {
 1634     if (I != Spellings.begin())
 1662   for (const auto *Attr : Attrs) {
 1669       for (const auto &I : Spellings) {
 1681   for (const auto &I : Spellings) {
 1830     for (const auto *Subject : ApplicableSubjects) {
 1843   for (const auto *MetaSubject : MetaSubjects) {
 1847     for (const auto *Constraint : Constraints)
 1855   for (const auto *Aggregate : Aggregates) {
 1861     for (const auto *D : DeclNodes) {
 1896   for (const auto &Rule : Rules) {
 1934   for (const auto *Subject : Subjects) {
 1982   for (const auto *Subject : Subjects) {
 2008   for (const auto &Rule : Rules) {
 2021     for (const auto &Rule : SubMatchRule.second) {
 2029     for (const auto &Rule : SubMatchRule.second) {
 2046   for (const auto &Rule : Rules) {
 2072     for (const auto &Rule : SubMatchRule.second) {
 2094   for (const FlattenedSpelling &S : Spellings) {
 2105   for (const auto *Attr : Attrs) {
 2127   for (const auto &I : Attrs) {
 2163   for (const auto *A : Attrs) {
 2184   for (const auto *Attr : Attrs) {
 2210   for (const auto *A : Attrs) {
 2236   for (const auto *Attr : Attrs) {
 2274     for (const auto *ArgRecord : ArgRecords) {
 2315       for (auto const &ai : Args) {
 2323       for (auto const &ai : Args) {
 2346       for (auto const &ai : Args) {
 2359       if (ParsedAttrSpellingItr != std::end(AttrMap))
 2372       for (auto const &ai : Args) {
 2405       for (auto const &ai : Args) {
 2423       for (auto const &ai : Args) {
 2435       for (auto const &ai : Args) {
 2469     for (auto const &ai : Args) {
 2501   for (auto *Attr : Attrs) {
 2509     for (const auto *Arg : ArgRecords)
 2512     for (auto const &ai : Args)
 2518     for (auto const &ai : Args) {
 2536     for (const auto *Attr : Attrs) {
 2563   for (auto Cur : AttrList) {
 2573          }) != Spellings.end();
 2629       for (auto SubClass : SubClasses) {
 2650       for (auto SubClass : SubClasses) {
 2691       for (auto &Class : Classes) {
 2699       for (auto i = Classes.begin(), e = Classes.end(); i != e; ++i) {
 2707       for (auto &Class : Classes) {
 2713       for (auto &Class : Classes) {
 2724       for (auto &Class : Classes)
 2735       for (auto &Class : Classes) {
 2770   for (auto *Attr : Attrs) {
 2819   for (const auto *Attr : Attrs) {
 2830     for (const auto *Arg : ArgRecords) {
 2835     for (auto const &ri : Args) {
 2857   for (const auto *Attr : Attrs) {
 2870     for (const auto *Arg : Args)
 2888     for (auto I = Items.begin(), E = Items.end(); I != E; ++I) {
 2894       if (I + 1 != E)
 2927     for (auto I = Arches.begin(), E = Arches.end(); I != E; ++I) {
 2931       if (I + 1 != E)
 2963   for (const auto *Attr : Attrs) {
 2974         for (const auto &Spelling : Spellings) {
 3006     for (const auto &S : Spellings)
 3026   for (auto *R : Attrs) {
 3028     for (const auto &SI : Spellings) {
 3092   for (const auto &I : Attrs) {
 3121   for (const auto *Attr : Attrs) {
 3135   for (const auto *Attr : Attrs) {
 3149     for (const auto *Arg : ArgRecords)
 3164   for (const auto *Attr : Attrs) {
 3184   for (const auto *Attr : Attrs) {
 3213     for (const auto *ArgRecord : ArgRecords)
 3216     for (auto const &ai : Args)
 3220     for (auto const &ai : Args) {
 3262   for (const auto &I : Names) {
 3278   for (const auto *Arg : Args) {
 3323   for (const auto *Subject : Subjects) {
 3440   for (auto I = Subjects.begin(), E = Subjects.end(); I != E; ++I) {
 3452     if (I + 1 != E)
 3477   for (const auto &Rule : PragmaAttributeSupport.Rules) {
 3488     for (auto I = Subjects.begin(), E = Subjects.end(); I != E; ++I) {
 3497       if (I + 1 != E)
 3526   for (auto I = LangOpts.begin(), E = LangOpts.end(); I != E; ++I)
 3576     for (const auto &I : Dupes) {
 3674   for (auto I = Attrs.begin(), E = Attrs.end(); I != E; ++I) {
 3701     if (I + 1 != E)
 3724   for (const auto *A : Attrs) {
 3751       for (const auto &S : Spellings) {
 3819   for (const auto *Attr : Attrs) {
 3836     for (const auto *Arg : Args)
 3855   for (const auto *Attr : Attrs) {
 3864     for (const auto *Arg : Args)
 3991            I != E && Uniques.size() <= 1; ++I) {
 4008   for (const auto &I : Spellings)
 4081   for (const auto *A : Attrs) {
 4084     for (const auto *D : Docs) {
 4115     for (const auto &Doc : I.second)
 4125   for (const auto &I : Attrs) {
tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp
   55        I != E; ++I) {
tools/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp
   25   for (Record *Tag : Tags) {
   42   for (Record *Tag : Tags) {
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
  607     for (auto *S : Records.getAllDerivedDefinitions("TextSubstitution")) {
  615     for (Record *Diag : Records.getAllDerivedDefinitions("Diagnostic")) {
  668       for (Piece *P : AllocatedPieces)
  699     for (int Idx : P->Modifiers)
  781   for (It I = Begin; I != End; ++I)
  783   for (It I = Begin; I != End; ++I)
  791   for (It I = Begin; I != End; ++I)
  796   for (char &K : Str)
  815       for (Piece *Node : MD->Pieces)
  839     for (const std::pair<Piece *, ModifierMappingsType> &NodePair : Pieces) {
  909     for (auto *O : P->Options) {
  917     for (size_t I : SeparatorIndexes)
  935     for (auto *Child : P->Pieces)
  949       for (auto *D : P->Options) {
 1329       for (auto const &SubGroup : SubGroups) {
 1337         for (auto const &Group : GroupsInPedantic) {
 1380       for (auto *Record : V)
 1384         for (auto const &Diag : DiagsInPedantic)
 1525   for (auto const &C : CategoriesByID)
 1618     for (const Record *Diag : GroupInfo.DiagsInGroup)
 1620     for (const auto &Name : GroupInfo.SubGroups)
 1643     for (const Record *Diag : GroupInfo.DiagsInGroup)
 1645     for (const auto &Name : GroupInfo.SubGroups)
 1663     for (auto &Line : Out)
 1716     for (auto *Group : GroupsInPedantic)
 1723   for (const Record *G : DiagGroups) {
 1762       for (const auto &Name : GroupInfo.SubGroups) {
 1772       for (const Record *D : GroupInfo.DiagsInGroup) {
tools/clang/utils/TableGen/ClangOpcodesEmitter.cpp
   74       for (auto *Type : TypeClass->getDef()->getValueAsListOfDefs("Types")) {
   89   for (auto *Opcode : Records.getAllDerivedDefinitions(Root.getName())) {
  164     for (auto *Arg : R->getValueAsListOfDefs("Args"))
  208     for (auto *Arg : Args)
  225     for (auto *Arg : Args)
  246   for (auto *Arg : Args)
  295       for (auto *Case : Cases) {
tools/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
  203   for (const auto *T : Types) {
  294   for (const auto *T : Signature) {
  330   for (const auto &T : Types) {
  337   for (const auto *B : Builtins) {
  366   for (const auto &T : TypeMap) {
  391   for (const auto &P : SignaturesList) {
  393     for (const Record *R : P.first) {
  405   for (const auto &FOM : FctOverloadMap) {
  409     for (const auto &Overload : FOM.second) {
  425   for (auto &i : FctOverloadMap) {
  472   for (const auto *VectList : Records.getAllDerivedDefinitions("IntList")) {
  475     for (const auto V : VectList->getValueAsListOfInts("List")) {
  491   for (auto *IT : ImageTypes) {
  527   for (const auto *GenType : Records.getAllDerivedDefinitions("GenericType")) {
  538       for (const auto *T :
  565   for (const auto *T : Types) {
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp
   50   for (Record *R : Records.getAllDerivedDefinitions("Option"))
   67   for (Record *R : Records.getAllDerivedDefinitions("OptionGroup")) {
   77   for (Record *R : Records.getAllDerivedDefinitions("Option")) {
  122     for (Record *G : Groups) {
  131     for (Record *O : Options)
  165   for (const Record *Flag : OptionOrGroup->getValueAsListOfDefs("Flags"))
  173   for (StringRef Exclusion : DocInfo->getValueAsListOfStrings("ExcludedFlags"))
  284   for (auto &Prefix : Option->getValueAsListOfStrings("Prefixes")) {
  298   for (auto *Alias : Option.Aliases)
  318     for (auto &Prefix : Option->getValueAsListOfStrings("Prefixes"))
  329   for (auto &S : SphinxOptionIDs)
  375   for (auto &O : Doc.Options)
  377   for (auto &G : Doc.Groups)
tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp
  227   for (const Record *Package : packages) {
  234     for (Record *PackageOpt : PackageOptions) {
  254   for (const Record *checker : checkers) {
  268   for (const Record *Checker : checkers) {
  272     for (const Record *Dependency :
  302   for (const Record *Checker : checkers) {
  309     for (Record *CheckerOpt : CheckerOptions) {
tools/clang/utils/TableGen/ClangTypeNodesEmitter.cpp
  146 	for (auto type : Types) {
  195 	for (auto type : Types) {
  209 	for (auto &macroName : MacrosToUndef) {
tools/clang/utils/TableGen/MveEmitter.cpp
  651       for (auto T : ParamTypes) {
  659     for (auto Arg : Args) {
  710     for (Result::Ptr W : V->prerequisites())
  724     for (const Type *T : ArgTypes)
 1027       for (unsigned i : Op->getValueAsListOfInts("address_params"))
 1030       for (unsigned i : Op->getValueAsListOfInts("int_constant_params"))
 1036       for (Record *RParam : Op->getValueAsListOfDefs("params"))
 1216   for (Record *R : Records.getAllDerivedDefinitions("PrimitiveType"))
 1221   for (Record *R : Records.getAllDerivedDefinitions("Intrinsic")) {
 1222     for (Record *RParam : R->getValueAsListOfDefs("params")) {
 1324         for (const Type *ArgTypePtr : Int.argTypes())
tools/clang/utils/TableGen/NeonEmitter.cpp
  121     for (char I : Str.str()) {
  340     for (const auto &T : Types){
  769   for (char I : S) {
 1511   for (auto &L : Lines) {
 2068   for (auto TS : TypeSpecs) {
 2071       for (auto SrcTS : TypeSpecs) {
 2088   for (auto &I : NewTypeSpecs) {
 2317   for (auto *R : RV)
 2410   for (auto &TS : TDTypeVec) {
 2443     for (auto &TS : TDTypeVec) {
 2477   for (auto *R : RV)
 2584   for (auto *R : RV)
tools/dsymutil/BinaryHolder.cpp
   76   for (auto MemRef : ArchiveBuffers) {
  114   for (auto MemRef : ObjectBuffers) {
  128   for (auto &Object : Objects) {
  135   for (const auto &Obj : Objects) {
  167   for (const auto &Archive : Archives) {
tools/dsymutil/BinaryHolder.h
   68       for (auto &Object : Objects) {
tools/dsymutil/CompileUnit.cpp
   38   for (auto &I : Info) {
   82   for (const auto &Ref : ForwardDIEReferences) {
tools/dsymutil/DebugMap.cpp
   68   for (const auto &Sym : Entries) {
  271   for (auto &Entry : Entries) {
tools/dsymutil/DwarfLinker.cpp
  114   return CU != Units.end() ? CU->get() : nullptr;
  403   for (auto I = DIEBlocks.begin(), E = DIEBlocks.end(); I != E; ++I)
  405   for (auto I = DIELocs.begin(), E = DIELocs.end(); I != E; ++I)
 1721   for (const auto &RangeAttribute : Unit.getRangesAttributes()) {
 1784   if (InsertPoint != Rows.end() && InsertPoint->Address == Front &&
 1855   for (auto &Row : LineTable.Rows) {
 1964   for (const auto &Namespace : Unit.getNamespaces())
 1971   for (const auto &Pubname : Unit.getPubnames())
 1978   for (const auto &Pubtype : Unit.getPubtypes())
 1987   for (const auto &ObjC : Unit.getObjC())
 1992   for (const auto &Namespace : Unit.getNamespaces())
 1995   for (const auto &Pubname : Unit.getPubnames())
 1998   for (const auto &Pubtype : Unit.getPubtypes())
 2364   for (auto &CurrentUnit : CompileUnits) {
 2413   for (auto &CurrentUnit : CompileUnits) {
 2469   for (const auto &Warning : DMO.getWarnings()) {
 2557   for (const auto &Obj : Map.objects()) {
 2589   for (LinkContext &LinkContext : ObjectContexts) {
 2723     for (auto &CurrentUnit : LinkContext.CompileUnits) {
 2752       for (auto &CurrentUnit : LinkContext.CompileUnits)
 2756       for (auto &CurrentUnit : LinkContext.CompileUnits)
tools/dsymutil/DwarfStreamer.cpp
  197   for (auto Entry : Entries) {
  214   for (auto &CU : EmittedUnits) {
  281   for (const auto &Range : Entries) {
  353     for (auto Range = Ranges.begin(), End = Ranges.end(); Range != End;
  357       while ((Range + 1) != End && Range->second == (Range + 1)->first)
  375   for (auto Range = Ranges.begin(), End = Ranges.end(); Range != End; ++Range) {
  377     while (Range + 1 != End && Range->second == (Range + 1)->first)
  414   for (const auto &Attr : Attributes) {
  727   for (const auto &Name : Names) {
tools/dsymutil/MachODebugMapParser.cpp
  114       if (Result->end() != Result->begin())
  136   for (auto &CommonSymbol : CommonSymbols) {
  367   for (const auto *Object : *Objects)
  389   for (const auto *Object : *Objects)
  455     for (const auto &Alias : getMainBinarySymbolNames(Value)) {
tools/dsymutil/MachOUtils.cpp
  538     for (auto EntryRef : Strings) {
tools/dsymutil/dsymutil.cpp
  116   for (const auto &Input : InputFiles) {
  157       std::find(Options.InputFiles.begin(), Options.InputFiles.end(), "-") !=
  482   for (const auto &Arch : Options.Archs)
  491   for (auto &InputFile : Options.InputFiles) {
  513       for (auto &Map : *DebugMapPtrsOrErr)
  540     for (auto &Map : *DebugMapPtrsOrErr) {
tools/gold/gold-plugin.cpp
  717   for (ld_plugin_symbol &Sym : F.syms) {
 1097   for (const auto &F : Files)
 1130   for (std::string &Name : Cleanup) {
tools/llc/llc.cpp
  565       for (const std::string &RunPassName : *RunPassNames) {
tools/lld/COFF/Chunks.cpp
  345   for (const std::string &s : symbolLocations)
  785   for (const RuntimePseudoReloc &rpr : relocs) {
  882   for (SectionChunk *c : sections)
  890   for (SectionChunk *c : sections) {
tools/lld/COFF/DLL.cpp
  144   for (DefinedImportData *sym : imports)
  510     for (const Export &e : config->exports) {
  534     for (Chunk *c : chunks) {
  550     for (Export &e : config->exports) {
  568   for (std::vector<DefinedImportData *> &syms : v) {
  574     for (DefinedImportData *s : syms) {
  629   for (std::vector<DefinedImportData *> &syms : v) {
  636     for (DefinedImportData *s : syms) {
  704   for (Export &e : config->exports)
  710   for (Export &e : config->exports)
  715   for (Export &e : config->exports) {
tools/lld/COFF/Driver.cpp
  190       for (MemoryBufferRef m : getArchiveMembers(archive))
  339   for (StringRef e : exports) {
  411   for (StringRef dir : searchPaths) {
  744   for (Export &e1 : config->exports) {
  830   for (COFFShortExport e1 : m.Exports) {
  881   for (Chunk *c : symtab->getChunks())
  895   for (std::string s : args::getLines(mb->getMemBufferRef())) {
  917   for (Export &r : config->exports)
  922   for (ObjFile *obj : ObjFile::instances) {
 1006   for (ObjFile *f : ObjFile::instances) {
 1024     for (ObjFile *f : resourceObjFiles)
 1792     for (Export &e : config->exports) {
 1895          i != e; i++) {
tools/lld/COFF/DriverUtils.cpp
  171   for (char c : s.lower()) {
  398   for (StringRef filename : config->manifestInput) {
  426   for (StringRef filename : config->manifestInput) {
  624   for (Export &e : config->exports) {
  631   for (Export &e : config->exports) {
  640     for (Export &e : config->exports) {
  651   for (Export &e : config->exports) {
  675   for (Export &e : config->exports)
  677   for (Export &e : config->exports)
  733   for (const auto &dupeDiag : duplicates)
  868   for (StringRef tok : tokenize(s)) {
tools/lld/COFF/ICF.cpp
  261       for (SectionChunk *sc : mc->sections)
tools/lld/COFF/InputFiles.cpp
  442   for (uint32_t i : pendingIndexes) {
tools/lld/COFF/LTO.cpp
  203   for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/COFF/MapFile.cpp
   50   for (ObjFile *file : ObjFile::instances)
  112     for (Chunk *c : sec->chunks) {
tools/lld/COFF/MarkLive.cpp
   54   for (Symbol *b : config->gcroot)
tools/lld/COFF/MinGW.cpp
  157   for (Export &e : config->exports) {
tools/lld/COFF/PDB.cpp
  520   for (ObjFile *f : ObjFile::instances) {
 1127   for (DebugFrameDataSubsectionRef &fds : newFpoFrames) {
 1137   for (ulittle32_t *ref : stringTableReferences)
 1228   for (ObjFile *file : ObjFile::instances) {
 1276   for (ObjFile *file : ObjFile::instances)
 1305     for (const PublicSym32 &pub : publics)
 1339   for (StringRef file : config->natvisFiles) {
 1501   for (PartialSection *sec : os.contribSections) {
 1513   for (ImportFile *file : ImportFile::instances) {
 1660     for (Chunk *c : os->chunks) {
tools/lld/COFF/SymbolTable.cpp
  167   for (Location loc : locations) {
  208   for (const UndefinedDiag::File &ref : undefDiag.files) {
  212     for (const std::string &s : symbolLocations) {
  321   for (Symbol *b : config->gcroot) {
  356   for (ObjFile *file : objFiles)
  360     for (BitcodeFile *file : *bitcodeFiles)
  363   for (const UndefinedDiag &undefDiag : undefDiags)
  712   for (ObjFile *file : ObjFile::instances) {
  756     for (auto *s : syms)
  787   for (BitcodeFile *f : BitcodeFile::instances)
  797   for (StringRef object : compileBitcodeFiles()) {
tools/lld/COFF/Writer.cpp
  104     for (const Chunk *record : records) {
  123     for (support::ulittle32_t *tds : timeDateStamps)
  487       if (nextReplacement != endReplacement && nextReplacement->first == i) {
  500   for (Chunk *c : chunks) {
  531   for (OutputSection *sec : outputSections) {
  543     for (OutputSection *sec : outputSections) {
  564       for (OutputSection *sec : outputSections)
  572     for (OutputSection *sec : outputSections)
  754     for (Chunk *c : importDirs->chunks)
  761     for (Chunk *c : importAddresses->chunks)
  825   for (Chunk *c : symtab->getChunks()) {
  881     for (Chunk *c : pSec->chunks)
  917     for (Chunk *c : symtab->localImportChunks)
  936     for (Chunk *c : debugRecords)
  963   for (ImportFile *file : ImportFile::instances) {
  989   for (ImportFile *file : ImportFile::instances) {
 1006     for (Chunk *c : delayIdata.getChunks())
 1008     for (Chunk *c : delayIdata.getDataChunks())
 1022     for (Chunk *c : edata.chunks)
 1059   for (OutputSection *os : outputSections) {
 1061     for (Chunk *c : os->chunks)
 1070       for (SectionChunk *sc : mc->sections)
 1146   for (OutputSection *sec : outputSections) {
 1155     for (ObjFile *file : ObjFile::instances) {
 1224   for (OutputSection *sec : outputSections) {
 1238     for (Chunk *c : sec->chunks) {
 1439   for (OutputSection *sec : outputSections) {
 1472   for (ObjFile *file : ObjFile::instances) {
 1575   for (ObjFile *file : ObjFile::instances) {
 1594   for (Export &e : config->exports)
 1685   for (Chunk *c : symtab->getChunks()) {
 1734     for (OutputSection *sec : outputSections)
 1747   for (OutputSection *sec : outputSections) {
 1868     for (auto &c : chunks) {
 1877   for (OutputSection *sec : outputSections)
 1885   for (OutputSection *s : outputSections)
 1897   for (OutputSection *sec : outputSections) {
 1901     for (Chunk *c : sec->chunks)
tools/lld/Common/DWARF.cpp
   35     for (const auto &entry : cu->dies()) {
   94   for (const llvm::DWARFDebugLine::LineTable *lt : lineTables) {
tools/lld/Common/Memory.cpp
   19   for (SpecificAllocBase *alloc : SpecificAllocBase::instances)
tools/lld/Common/Strings.cpp
   45   for (const GlobPattern &pat : patterns)
tools/lld/Common/Timer.cpp
   51   for (const auto &child : children)
   76     for (const auto &child : children)
tools/lld/ELF/AArch64ErrataFix.cpp
  442   for (InputFile *file : objectFiles) {
  494   for (const InputSection *isec : isd.sections) {
  497       while (patchIt != patchEnd) {
  507   for (; patchIt != patchEnd; ++patchIt) {
  551   if (relIt != isec->relocations.end() &&
  565   if (relIt != isec->relocations.end()) {
  580   for (InputSection *isec : isd.sections) {
  592     while (codeSym != mapSyms.end()) {
  629   for (OutputSection *os : outputSections) {
  632     for (BaseCommand *bc : os->sectionCommands)
tools/lld/ELF/ARMErrataFix.cpp
  277       if (relIt != isec->relocations.end())
  318   for (InputFile *file : objectFiles) {
  366   for (const InputSection *isec : isd.sections) {
  369       for (; patchIt != patchEnd; ++patchIt) {
  378   for (; patchIt != patchEnd; ++patchIt)
  475   for (InputSection *isec : isd.sections) {
  487     while (thumbSym != mapSyms.end()) {
  511   for (OutputSection *os : outputSections) {
  514     for (BaseCommand *bc : os->sectionCommands)
tools/lld/ELF/Arch/Hexagon.cpp
   65   for (InputFile *f : objectFiles) {
tools/lld/ELF/Arch/MipsArchTree.cpp
  299   for (InputFile *f : objectFiles)
tools/lld/ELF/Arch/PPC64.cpp
  352   for (InputFile *f : objectFiles) {
tools/lld/ELF/Arch/RISCV.cpp
  113   for (InputFile *f : objectFiles) {
tools/lld/ELF/CallGraphSort.cpp
  117   for (std::pair<SectionPair, uint64_t> &c : profile) {
  146   for (Cluster &c : clusters)
  192   for (int l : sorted) {
  227   for (int leader : sorted)
  245     for (int leader : sorted)
tools/lld/ELF/Driver.cpp
  182   for (std::unique_ptr<MemoryBuffer> &mb : file->takeThinBuffers())
  209       for (const auto &p : getArchiveMembers(mbref))
  224       for (const std::pair<MemoryBufferRef, uint64_t> &p :
  231       for (const std::pair<MemoryBufferRef, uint64_t> &p :
  712   for (InputFile *file : objectFiles)
  730   for (StringRef line : args::getLines(mb)) {
  747   for (auto file : objectFiles) {
  797   for (StringRef s : args::getLines(mb))
 1055       for (StringRef s : args::getLines(*buffer))
 1256   for (InputFile *f : files) {
 1356   for (InputFile *file : objectFiles)
 1359   for (BitcodeFile *file : bitcodeFiles)
 1392   for (Symbol *sym : syms)
 1486   for (InputFile *f : objectFiles) {
 1526   for (Partition &part : partitions) {
 1575   for (BitcodeFile *file : bitcodeFiles)
 1578   for (InputFile *file : lto->compile()) {
 1678   for (InputFile *f : objectFiles) {
 1752   for (StringRef name : script->referencedSymbols)
 1756   for (StringRef arg : config->undefined)
 1765   for (StringRef pat : args::getStrings(args, OPT_undefined_glob))
 1854   for (InputFile *f : objectFiles)
 1858   for (BinaryFile *f : binaryFiles)
 1951   for (BaseCommand *base : script->sectionCommands)
tools/lld/ELF/DriverUtils.cpp
  220   for (StringRef dir : config->searchPaths)
  229   for (StringRef dir : config->searchPaths) {
tools/lld/ELF/ICF.cpp
  449   for (InputSectionBase *sec : inputSections) {
  506   for (BaseCommand *base : script->sectionCommands)
  508       for (BaseCommand *sub_base : sec->sectionCommands)
tools/lld/ELF/InputFiles.cpp
 1545     for (Symbol *sym : this->symbols) {
tools/lld/ELF/InputSection.cpp
  593   for (auto it = range.first; it != range.second; ++it)
  893   for (const Relocation &rel : sec->relocations) {
  925   for (const Relocation &rel : relocations) {
 1014   for (Defined *f : functions) {
 1016     while (it != morestackCalls.end() && (*it)->offset < f->value)
 1019     while (it != morestackCalls.end() && (*it)->offset < f->value + f->size) {
 1046   for (Relocation &rel : relocations) {
tools/lld/ELF/LTO.cpp
  217   for (LazyObjFile *f : lazyObjFiles) {
  301   for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/ELF/LinkerScript.cpp
  219   for (BaseCommand *base : sectionCommands) {
  226     for (BaseCommand *sub_base : cast<OutputSection>(base)->sectionCommands)
  258   for (BaseCommand *base : sectionCommands) {
  282   for (BaseCommand *base : sectionCommands) {
  295     for (BaseCommand *base2 : sec->sectionCommands)
  335   for (InputSectionDescription *id : keptSections)
  337       for (SectionPattern &p : id->sectionPatterns)
  413   for (const SectionPattern &pat : cmd->sectionPatterns) {
  416     for (InputSectionBase *sec : inputSections) {
  466   for (BaseCommand *base : outCmd.sectionCommands) {
  469       for (InputSectionBase *s : cmd->sectionBases)
  480   for (BaseCommand *base : sectionCommands) {
  487         for (InputSectionBase *s : v)
  501         for (InputSectionBase *s : v)
  512         for (InputSectionBase *s : v)
  541   for (BaseCommand *base : sectionCommands) {
  545       for (BaseCommand *sub_base : cast<OutputSection>(base)->sectionCommands)
  706   for (InputSectionBase *isec : inputSections) {
  784   for (auto &pair : memoryRegions) {
  797   for (OutputSection *sec : outputSections)
  850   for (BaseCommand *base : sec->sectionCommands) {
  870     for (InputSection *sec : cast<InputSectionDescription>(base)->sections)
  896   for (BaseCommand *base : sec.sectionCommands) {
  932   for (BaseCommand *&cmd : sectionCommands) {
  973   for (BaseCommand *base : sectionCommands) {
  995   if (firstPtLoad != phdrsCommands.end())
 1000   for (BaseCommand *base : sectionCommands) {
 1034   for (OutputSection *sec : outputSections)
 1071   for (auto &mri : script->memoryRegions) {
 1101   for (BaseCommand *base : sectionCommands) {
 1121   for (const PhdrsCommand &cmd : phdrsCommands) {
 1137   for (OutputSection *sec : outputSections) {
 1139     for (size_t id : getPhdrIndices(sec)) {
 1156   for (PhdrsCommand &cmd : phdrsCommands)
 1196   for (StringRef s : cmd->phdrs) {
tools/lld/ELF/MapFile.cpp
   56   for (InputFile *file : objectFiles)
  127     for (const EhSectionPiece *fde : rec->fdes)
  133   for (EhSectionPiece &p : pieces) {
  164   for (BaseCommand *base : script->sectionCommands) {
  179     for (BaseCommand *base : osec->sectionCommands) {
  181         for (InputSection *isec : isd->sections) {
  236   for (InputFile *file : objectFiles) {
  251   for (auto kv : map) {
  256     for (InputFile *file : files)
tools/lld/ELF/MarkLive.cpp
  116   for (InputSectionBase *sec : cNamedSections.lookup(sym.getName()))
  234   for (StringRef s : config->undefined)
  236   for (StringRef s : script->referencedSymbols)
  241   for (InputSectionBase *sec : inputSections) {
  299   for (InputFile *file : objectFiles)
  306   for (InputSectionBase *sec : inputSections) {
  323     for (InputSectionBase *sec : inputSections)
  356   for (InputSectionBase *sec : inputSections) {
  377     for (InputSectionBase *sec : inputSections)
tools/lld/ELF/OutputSections.cpp
  164   for (BaseCommand *base : sectionCommands) {
  169     for (InputSectionBase *s : cmd->sectionBases) {
  211     for (InputSection *s : cmd->sections)
  214   for (auto *ms : mergeSections)
  241   for (BaseCommand *b : sectionCommands)
  335   for (BaseCommand *base : sectionCommands)
  466   for (BaseCommand *base : os->sectionCommands)
tools/lld/ELF/Relocations.cpp
   68   for (BaseCommand *base : script->sectionCommands)
  789   for (UndefinedDiag::Loc l : undef.locs) {
  829   for (UndefinedDiag &undef : undefs) {
 1445     for (BaseCommand *bc : os->sectionCommands)
 1558         for (const std::pair<ThunkSection *, uint32_t> ts : isd->thunkSections)
 1584   for (std::pair<ThunkSection *, uint32_t> tp : isd->thunkSections) {
 1617   for (BaseCommand *bc : tos->sectionCommands) {
 1672         for (const InputSection *isec : isd->sections) {
 1717   for (Thunk *t : *thunkVec)
 1782         for (InputSection *isec : isd->sections)
 1783           for (Relocation &rel : isec->relocations) {
 1821         for (auto &p : isd->thunkSections)
tools/lld/ELF/ScriptLexer.cpp
  296   for (MemoryBufferRef mb : mbs)
tools/lld/ELF/ScriptParser.cpp
  190   for (SymbolVersion v : globals)
  513     for (BaseCommand *cmd : v)
  534       for (BaseCommand *cmd : readOverlay())
  683     for (SectionPattern &pat : v) {
 1347   for (const SymbolVersion &pat : locals)
 1349   for (const SymbolVersion &pat : globals)
 1362   for (const SymbolVersion &pat : locals)
 1493   for (char c : next().lower()) {
tools/lld/ELF/SymbolTable.cpp
  122     for (Symbol *sym : symVector) {
  151   for (Symbol *sym : symVector)
  159   for (SymbolVersion &ver : config->dynamicList) {
  166     for (Symbol *sym : syms)
  196   for (Symbol *sym : syms) {
  221   for (Symbol *sym : findAllByVersion(ver))
  236   for (VersionDefinition &v : config->versionDefinitions)
  237     for (SymbolVersion &pat : v.patterns)
  244     for (SymbolVersion &pat : v.patterns)
  250   for (VersionDefinition &v : config->versionDefinitions)
  251     for (SymbolVersion &pat : v.patterns)
  258   for (Symbol *sym : symVector)
tools/lld/ELF/SymbolTable.h
   39     for (Symbol *sym : symVector)
tools/lld/ELF/SyntheticSections.cpp
  106   for (InputSectionBase *sec : inputSections) {
  173   for (InputSectionBase *sec : inputSections)
  181   for (InputSectionBase *sec : sections) {
  230   for (InputSectionBase *sec : inputSections)
  238   for (InputSectionBase *sec : sections) {
  404   for (EhSectionPiece &piece : sec->pieces) {
  467     for (EhInputSection *sec : sections)
  471     for (EhInputSection *sec : sections)
  475     for (EhInputSection *sec : sections)
  479     for (EhInputSection *sec : sections)
  485   for (CieRecord *rec : cieRecords) {
  489     for (EhSectionPiece *fde : rec->fdes) {
  512   for (CieRecord *rec : cieRecords) {
  514     for (EhSectionPiece *fde : rec->fdes) {
  575   for (CieRecord *rec : cieRecords) {
  579     for (EhSectionPiece *fde : rec->fdes) {
  592   for (EhInputSection *s : sections)
  809   for (const FileGot &g : gots)
  823   for (FileGot &got : gots) {
  824     for (auto &p: got.global)
  835   for (FileGot &got : gots) {
  847   for (FileGot &got : gots) {
  854   for (FileGot &got : gots) {
  859       for (BaseCommand *cmd : os->sectionCommands) {
  861           for (InputSection *isec : isd->sections) {
  875   for (FileGot &srcGot : gots) {
  904   for (FileGot &got : gots) {
  917     for (auto &p: got.local16)
  919     for (auto &p: got.global)
  921     for (auto &p: got.relocs)
  923     for (auto &p: got.tls)
  925     for (auto &p: got.dynTlsSymbols) {
  933   for (auto &p : primGot->global)
  935   for (auto &p : primGot->relocs)
  939   for (FileGot &got : gots) {
  941     for (std::pair<Symbol *, size_t> &p : got.tls) {
  947     for (std::pair<Symbol *, size_t> &p : got.dynTlsSymbols) {
  977     for (const std::pair<Symbol *, size_t> &p : got.global) {
  993     for (const std::pair<GotEntry, size_t> &p : got.local16) {
 1033   for (const FileGot &g : gots) {
 1053     for (const std::pair<GotEntry, size_t> &p : g.local16)
 1058       for (const std::pair<const Symbol *, size_t> &p : g.global)
 1060     for (const std::pair<Symbol *, size_t> &p : g.relocs)
 1062     for (const std::pair<Symbol *, size_t> &p : g.tls)
 1064     for (const std::pair<Symbol *, size_t> &p : g.dynTlsSymbols) {
 1106   for (const Symbol *b : entries) {
 1148   for (const Symbol *b : entries) {
 1178   for (StringRef s : strings) {
 1279   for (StringRef s : config->filterList)
 1281   for (StringRef s : config->auxiliaryList)
 1288   for (SharedFile *file : sharedFiles)
 1450     for (SharedFile *f : sharedFiles)
 1502   for (std::pair<int32_t, std::function<uint64_t()>> &kv : entries) {
 1613   for (const DynamicReloc &rel : relocs) {
 1690   for (const DynamicReloc &rel : relocs) {
 1712   for (auto i = relatives.begin(), e = relatives.end(); i != e;) {
 1716     } while (i != e && (i - 1)->r_offset + config->wordsize == i->r_offset);
 1758   for (auto i = nonRelatives.begin(), e = nonRelatives.end(); i != e;) {
 1760     while (j != e && i->r_info == j->r_info &&
 1786   for (std::vector<Elf_Rela> &g : relativeGroups) {
 1805       for (auto i = g.begin() + 1, e = g.end(); i != e; ++i) {
 1819     for (Elf_Rela &r : ungroupedRelatives) {
 1830   for (ArrayRef<Elf_Rela> g : nonRelativeGroups) {
 1845     for (Elf_Rela &r : ungroupedNonRelatives) {
 1917   for (const RelativeReloc &rel : relocs)
 2018     for (const SymbolTableEntry &s : symbols)
 2045   for (const SymbolTableEntry &s : llvm::make_range(symbols.begin(), e))
 2049   for (std::pair<InputFile *, std::vector<SymbolTableEntry>> &p : arr)
 2050     for (SymbolTableEntry &entry : p.second)
 2071     for (const SymbolTableEntry &e : symbols) {
 2118   for (SymbolTableEntry &ent : symbols) {
 2172     for (SymbolTableEntry &ent : symbols) {
 2224   for (BaseCommand *base : script->sectionCommands)
 2320   for (const Entry &sym : symbols) {
 2335   for (auto i = symbols.begin(), e = symbols.end(); i != e; ++i) {
 2386   for (SymbolTableEntry &ent : llvm::make_range(mid, v.end())) {
 2398   for (const Entry &ent : symbols)
 2533   for (GdbChunk &chunk : chunks)
 2545   for (InputSectionBase *s : inputSections)
 2576     for (DWARFAddressRange &r : *ranges) {
 2615       for (const DWARFDebugPubTable::Entry &ent : set.Entries)
 2677   for (ArrayRef<GdbSymbol> v : symbols)
 2684   for (std::vector<GdbSymbol> &vec : symbols)
 2685     for (GdbSymbol &sym : vec)
 2691   for (GdbSymbol &sym : ret) {
 2695   for (GdbSymbol &sym : ret) {
 2710   for (InputSectionBase *s : inputSections)
 2745   for (GdbChunk &chunk : chunks) {
 2746     for (CuEntry &cu : chunk.compilationUnits) {
 2757   for (GdbChunk &chunk : chunks) {
 2758     for (AddressEntry &e : chunk.addressAreas) {
 2773   for (GdbSymbol &sym : symbols) {
 2794   for (GdbSymbol &sym : symbols) {
 2797     for (uint32_t val : sym.cuVector) {
 2836   for (FdeData &fde : fdes) {
 2968   for (SharedFile *f : sharedFiles) {
 2996   for (auto &vn : verneeds) {
 3007     for (auto &vna : vn.vernauxs) {
 3049   for (MergeInputSection *sec : sections)
 3060   for (MergeInputSection *sec : sections)
 3093     for (MergeInputSection *sec : sections) {
 3288   for (InputSection *isec : executableSections) {
 3320   for (InputSection *isec : executableSections) {
 3346          }) != exidxSections.end();
 3366   for (Thunk *t : thunks)
 3379   for (Thunk *t : thunks) {
 3397   for (BaseCommand *base : getParent()->sectionCommands)
 3399       for (InputSection *isec : isd->sections)
 3411   for (BaseCommand *base : getParent()->sectionCommands)
 3413       for (InputSection *isec : isd->sections) {
 3448   for (const Symbol *sym : entries) {
 3517   for (PhdrEntry *p : part.phdrs) {
tools/lld/ELF/Target.cpp
   97   for (InputSectionBase *d : inputSections) {
tools/lld/ELF/Writer.cpp
  158     for (InputSectionBase *s : inputSections) {
  178   for (InputSectionBase *&s : inputSections) {
  304   for (BaseCommand *base : script->sectionCommands)
  368   for (Partition &part : partitions) {
  563   for (OutputSection *sec : outputSections)
  572   for (Partition &part : partitions)
  580   for (Partition &part : partitions)
  584     for (OutputSection *sec : outputSections)
  680   for (InputFile *file : objectFiles) {
  705   for (BaseCommand *base : script->sectionCommands) {
 1020   for (InputSectionBase *isec : inputSections)
 1023   for (Partition &part : partitions) {
 1024     for (EhInputSection *es : part.ehFrame->sections)
 1027       for (InputSection *ex : part.armExidx->exidxSections)
 1058   for (Partition &part : partitions) {
 1059     for (PhdrEntry *p : part.phdrs) {
 1079     for (OutputSection *os : outputSections) {
 1106     for (OutputSection *os : outputSections) {
 1166   for (; i != e; ++i) {
 1193   while (i != e && shouldSkip(*i))
 1218   for (StringRef s : config->symbolOrderingFile)
 1246   for (InputFile *file : objectFiles)
 1267   for (InputSection *isec : isd->sections) {
 1318   for (std::pair<InputSection *, int> p : orderedSections)
 1368     for (BaseCommand *b : sec->sectionCommands)
 1378   for (BaseCommand *base : script->sectionCommands)
 1393   for (BaseCommand *base : script->sectionCommands) {
 1403     for (InputSection *sec : getInputSections(os))
 1473   if (firstSectionOrDotAssignment != e &&
 1478   while (nonScriptI != e) {
 1507   for (OutputSection *sec : outputSections) {
 1521     for (BaseCommand *base : sec->sectionCommands) {
 1523         for (InputSection *&isec : isd->sections) {
 1580     for (Partition &part : partitions) {
 1633     for (BaseCommand *b : os->sectionCommands)
 1682     for (BaseCommand *base : script->sectionCommands)
 1734   for (Partition &part : partitions)
 1766     for (SharedFile *file : sharedFiles)
 1802     for (DynamicReloc &reloc : part.relaDyn->relocs)
 1820   for (BaseCommand *base : script->sectionCommands)
 1825   for (OutputSection *sec : outputSections) {
 1846     for (Partition &part : partitions) {
 1866     for (PhdrEntry *p : mainPart->phdrs)
 1893   for (Partition &part : partitions) {
 1946   for (OutputSection *sec : outputSections)
 1957   for (OutputSection *os : outputSections)
 1959       for (InputSection *isec : getInputSections(os))
 2094   for (OutputSection *sec : outputSections) {
 2110   for (OutputSection *sec : outputSections) {
 2151   for (OutputSection *sec : outputSections)
 2194   for (OutputSection *sec : outputSections) {
 2278   for (Partition &part : partitions) {
 2280     for (const PhdrEntry *p : part.phdrs)
 2326   for (OutputSection *sec : outputSections)
 2343   for (Partition &part : partitions)
 2344     for (PhdrEntry *p : part.phdrs)
 2348   for (OutputSection *sec : outputSections) {
 2371   for (OutputSection *sec : outputSections) {
 2384   for (PhdrEntry *p : part.phdrs) {
 2461   for (OutputSection *os : outputSections)
 2474   for (OutputSection *sec : outputSections)
 2492   for (OutputSection *sec : outputSections)
 2501   for (OutputSection *sec : outputSections)
 2581   for (OutputSection *sec : outputSections)
 2610   for (OutputSection *sec : outputSections)
 2627   for (Partition &part : partitions) {
 2629     for (PhdrEntry *p : part.phdrs)
 2640     for (PhdrEntry *p : part.phdrs)
 2655   for (OutputSection *sec : outputSections)
 2659   for (OutputSection *sec : outputSections)
 2702     for (Partition &part : partitions)
 2735   for (Partition &part : partitions)
tools/lld/MinGW/Driver.cpp
  382   for (const std::string &s : linkArgs)
tools/lld/include/lld/Core/PassManager.h
   35     for (std::unique_ptr<Pass> &pass : _passes)
tools/lld/lib/Core/LinkingContext.cpp
   55   for (StringRef undefSym : _initialUndefinedSymbols)
tools/lld/lib/Core/Reader.cpp
   42   for (const std::unique_ptr<Reader> &reader : _readers) {
   64   for (const std::unique_ptr<YamlIOTaggedDocumentHandler> &h : _yamlHandlers)
   81   for (const KindEntry &entry : _kindEntries) {
   98   for (const KindEntry &entry : _kindEntries) {
tools/lld/lib/Core/Resolver.cpp
   36   for (auto &atom : file.defined().owning_ptrs())
   38   for (auto &atom : file.undefined().owning_ptrs()) {
   42   for (auto &atom : file.sharedLibrary().owning_ptrs())
   44   for (auto &atom : file.absolute().owning_ptrs())
  298   for (const OwningAtomPtr<Atom> &atom : _atoms) {
  355   for (const OwningAtomPtr<Atom> &atom : _atoms) {
  366     for (const OwningAtomPtr<Atom> &atom : _atoms)
  410   for (const UndefinedAtom *undef : undefinedAtoms) {
tools/lld/lib/Driver/DarwinLdDriver.cpp
  162   for (std::unique_ptr<File> &file : files)
  642     for (auto path : ctx.searchDirs()) {
  646     for (auto path : ctx.frameworkDirs()) {
 1164   for (std::unique_ptr<Node> &ie : ctx.getNodes())
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
  141     for (uint32_t encoding : commonEncodings) {
  196     for (auto &page : pages) {
  209     for (auto &page : pages) {
  491     for (auto &entry : unwindInfos)
tools/lld/lib/ReaderWriter/MachO/File.h
  178       for (auto &offAndAtom : sectAndAtoms.second) {
  193     for (auto &offAndAtom : vec)
  324     for (ReExportedDylib &entry : _reExportedDylibs) {
  363     for (const ReExportedDylib &dylib : _reExportedDylibs) {
tools/lld/lib/ReaderWriter/MachO/GOTPass.cpp
  133     for (const GOTEntryAtom *slot : entries)
tools/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
   44   for (auto i = vec.begin(), e = vec.end(); (i + 1) != e; ++i) {
   45     for (auto j = i + 1; j != e; ++j) {
  425   for (OwningAtomPtr<DefinedAtom> &atom : atomRange.owning_ptrs()) {
  438   for (SortKey &k : keys)
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  480     for (auto syslibRoot : _syslibRoots) {
  508     for (auto syslibRoot : _syslibRoots) {
  561   for (StringRef dir : searchDirs()) {
  573   for (StringRef dir : frameworkDirs()) {
  710   for (StringRef sysPath : _syslibRoots) {
  749     for (MachODylibFile *dylib : _allDylibs) {
  816   for (const SectionAlign &entry : _sectAligns) {
  945   for (const OrderFileNode &info : nodes) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  288     for (const Section &sect : file.sections) {
  440   for (const DependentDylib &dep : _file.dependentDylibs) {
  446   for (const StringRef &path : _file.rpaths) {
  485   for (const Segment &sg1 : _file.segments) {
  486     for (const Segment &sg2 : _file.segments) {
  497   for (const Section &s1 : _file.sections) {
  498     for (const Section &s2 : _file.sections) {
  511   for (const Segment &sg : _file.segments) {
  517   for (const Section &s : _file.sections) {
  520     for (const Segment &sg : _file.segments) {
  540   for (const Segment &sg : _file.segments) {
  552     for (const Section *s : _segInfo[&sg].sections) {
  648   for (const Section &sin : _file.sections) {
  672   for (const Segment &seg : _file.segments) {
  715     for (const Section *section : segInfo.sections) {
  961     for (const DependentDylib &dep : _file.dependentDylibs) {
  979     for (const StringRef &path : _file.rpaths) {
 1021   for (const Section &s : _file.sections) {
 1037   for (Section sect : _file.sections) {
 1038     for (Relocation r : sect.relocations) {
 1049   for (const Symbol &sym : symbols) {
 1086   for (const DataInCode &entry : _file.dataInCode) {
 1114     for (const Section &section : _file.sections) {
 1115       for (uint32_t index : section.indirectSymbols) {
 1124     for (const Segment &seg : _file.segments) {
 1126       for (const Section *section : segInfo.sections) {
 1127         for (uint32_t index : section->indirectSymbols) {
 1172   for (const RebaseLocation& entry : _file.rebasingInfo) {
 1191   for (const BindLocation& entry : _file.bindingInfo) {
 1236   for (const BindLocation& entry : _file.lazyBindingInfo) {
 1438   for (const Export& entry : _file.exportInfo) {
 1445   for (const Export& entry : _file.exportInfo)
 1454     for (TrieNode* node : orderedNodes) {
 1461   for (TrieNode* node : orderedNodes) {
 1476   for (const Symbol &sym : _file.stabsSymbols) {
 1479   for (const Symbol &sym : _file.localSymbols) {
 1482   for (const Symbol &sym : _file.globalSymbols) {
 1485   for (const Symbol &sym : _file.undefinedSymbols) {
 1495   for (const Section &sect : _file.sections) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  214   for (SectionInfo *si : _sectionInfos) {
  222   for (SegmentInfo *sgi : _segmentInfos) {
  356     for(SectionInfo *sect : _customSections) {
  441   for (SegmentInfo *si : _segmentInfos) {
  531   for (SectionInfo *si : _sectionInfos) {
  539   for (SegmentInfo *seg : _segmentInfos) {
  549   for (SegmentInfo *seg : _segmentInfos) {
  551     for (SectionInfo *sect : seg->sections)
  558   for (SectionInfo *sect : seg->sections) {
  581   for (SectionInfo *sect : seg->sections) {
  593   for (SegmentInfo *seg : _segmentInfos) {
  610     for (SegmentInfo *sgi : _segmentInfos) {
  615       for (SectionInfo *si : sgi->sections) {
  626   for (SegmentInfo *sgi : _segmentInfos) {
  664     for (const SectionInfo *sectInfo : _sectionInfos)
  665       for (const AtomInfo &atomInfo : sectInfo->atomsAndOffsets)
  671   for (SectionInfo *si : _sectionInfos) {
  685     for (AtomInfo &ai : si->atomsAndOffsets) {
  703   for (SegmentInfo *sgi : _segmentInfos) {
  704     for (SectionInfo *si : sgi->sections) {
  713   for (SegmentInfo *sgi : _segmentInfos) {
  717     for (SectionInfo *si : sgi->sections) {
  742   for (SectionInfo *sect : _sectionInfos) {
  743     for (const AtomInfo &info : sect->atomsAndOffsets) {
  767   for (const Atom *atom : _machHeaderAliasAtoms) {
  806   for (SectionInfo *sect : _sectionInfos) {
  807     for (const AtomInfo &info : sect->atomsAndOffsets) {
  855   for (const DefinedAtom *atom : atomsNeedingDebugNotes) {
  938     for (auto &stab : stabsList) {
 1039   for (auto &stab : _stabs) {
 1056   for (SectionInfo *sect : _sectionInfos) {
 1057     for (const AtomInfo &info : sect->atomsAndOffsets) {
 1101   for (AtomAndIndex &ai : globals) {
 1126   for (AtomAndIndex &ai : undefs) {
 1171   for (SectionInfo *si : _sectionInfos) {
 1175       for (const AtomInfo &info : si->atomsAndOffsets) {
 1197       for (const AtomInfo &info : si->atomsAndOffsets) {
 1206       for (const AtomInfo &info : si->atomsAndOffsets) {
 1256   for (DependentDylib &dep : nFile.dependentDylibs) {
 1272   for (const SegmentInfo *seg : _segmentInfos) {
 1285   for (const SectionInfo *si : _sectionInfos) {
 1315   for (SectionInfo *si : _sectionInfos) {
 1317     for (const AtomInfo &info : si->atomsAndOffsets) {
 1342   for (SectionInfo *si : _sectionInfos) {
 1343     for (const AtomInfo &info : si->atomsAndOffsets) {
 1382   for (SectionInfo *si : _sectionInfos) {
 1383     for (const AtomInfo &info : si->atomsAndOffsets) {
 1430   for (SectionInfo *sect : _sectionInfos) {
 1432     for (const AtomInfo &info : sect->atomsAndOffsets) {
 1510     for (SectionInfo *sectInfo : _sectionInfos) {
 1511       for (const AtomInfo &atomInfo : sectInfo->atomsAndOffsets) {
 1537   for (SectionInfo *sect : _sectionInfos) {
 1538     for (const AtomInfo &info : sect->atomsAndOffsets) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  229   for (const Symbol &sym : inSymbols) {
  282   for (auto &sect : normalizedFile.sections) {
  494   for (const Section &s : normalizedFile.sections) {
  601                                                                 it != e; ++it) {
  727   for (const auto &stabSym : normalizedFile.stabsSymbols) {
  946   for (auto &s : normalizedFile.sections) {
 1324   for (auto &section : normalizedFile.sections)
 1438   for (auto &sect : normalizedFile.sections) {
 1462   for (auto &sym : normalizedFile.undefinedSymbols) {
 1476   for (auto &sect : normalizedFile.sections) {
 1499   for (const DataInCode &entry : normalizedFile.dataInCode) {
 1570     for (const Export &exp : normalizedFile.exportInfo) {
 1576     for (auto &sym : normalizedFile.globalSymbols) {
 1583   for (const DependentDylib &dep : normalizedFile.dependentDylibs) {
tools/lld/lib/ReaderWriter/MachO/ShimPass.cpp
   82     for (const DefinedAtom *shim : shims)
tools/lld/lib/ReaderWriter/MachO/StubsPass.cpp
  292     for (const Atom *target : targetsNeedingStubs) {
tools/lld/lib/ReaderWriter/MachO/TLVPass.cpp
  106     for (const TLVPEntryAtom *slot : entries)
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
  608       for (const ArchMember &member : _members)
 1266   for (const lld::Reference *ref : _references) {
tools/lld/tools/lld/lld.cpp
   78   for (auto it = v.begin(); it + 1 != v.end(); ++it) {
tools/lld/wasm/Driver.cpp
  184     for (StringRef sym : args::getLines(*buf))
  212   for (std::unique_ptr<MemoryBuffer> &mb : file->takeThinBuffers())
  233       for (MemoryBufferRef &m : getArchiveMembers(mbref))
  260   for (StringRef dir : config->searchPaths) {
  713   for (InputFile *f : files)
tools/lld/wasm/InputFiles.cpp
  238   for (InputChunk *c : chunks) {
  304     for (const WasmRelocation &reloc : section.Relocations)
tools/lld/wasm/LTO.cpp
  161   for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/wasm/MarkLive.cpp
   68     for (const ObjFile *obj : symtab->objectFiles) {
   70       for (const WasmInitFunc &f : l.InitFunctions) {
   91     for (const ObjFile *obj : symtab->objectFiles) {
   93       for (const WasmInitFunc &f : l.InitFunctions)
  147     for (const ObjFile *obj : symtab->objectFiles) {
  148       for (InputChunk *c : obj->functions)
  151       for (InputChunk *c : obj->segments)
  154       for (InputGlobal *g : obj->globals)
  157       for (InputEvent *e : obj->events)
  161     for (InputChunk *c : symtab->syntheticFunctions)
  164     for (InputGlobal *g : symtab->syntheticGlobals)
tools/lld/wasm/OutputSections.cpp
  168     for (InputSegment *inputSeg : segment->inputSegments)
  196     for (const InputChunk *chunk : segment->inputSegments)
  204     for (const InputChunk *inputSeg : seg->inputSegments)
  211     for (const InputChunk *c : seg->inputSegments)
tools/lld/wasm/SymbolTable.cpp
   73   for (BitcodeFile *f : bitcodeFiles)
   76   for (StringRef filename : lto->compile()) {
  574   for (Symbol* v : variants) {
  691     for (auto *s: variants) {
  700     for (auto *symbol : variants) {
  717     for (auto *symbol : variants) {
tools/lld/wasm/SyntheticSections.cpp
   66   for (auto *so : symtab->sharedFiles)
   90   for (const WasmSignature *sig : types)
  156   for (const Symbol *sym : importedSymbols) {
  184   for (const Symbol *sym : gotSymbols) {
  201   for (const InputFunction *func : inputFunctions)
  245   for (InputGlobal *g : inputGlobals)
  247   for (Symbol *sym : staticGotSymbols)
  268   for (InputGlobal *g : inputGlobals)
  270   for (const Symbol *sym : staticGotSymbols) {
  284   for (const DefinedData *sym : dataAddressGlobals) {
  304   for (InputEvent *e : inputEvents) {
  324   for (const WasmExport &export_ : exports)
  361   for (const FunctionSymbol *sym : indirectFunctions) {
  391     for (const Symbol *sym : symtabEntries) {
  431     for (const OutputSegment *s : dataSegments) {
  442     for (const WasmInitEntry &f : initFunctions) {
  455   for (const InputFunction *f : out.functionSec->inputFunctions) {
  467     for (const InputSegment *isec : inputSegments)
  481       for (const ComdatEntry &entry : c.second) {
  497   for (const InputFunction *f : out.functionSec->inputFunctions)
  512   for (const Symbol *s : out.importSec->importedSymbols) {
  518   for (const InputFunction *f : out.functionSec->inputFunctions) {
  536     for (auto &producer : *producers.first)
tools/lld/wasm/Writer.cpp
  109   for (ObjFile *file : symtab->objectFiles) {
  110     for (InputSection *section : file->customSections) {
  172   for (ObjFile *file : symtab->objectFiles) {
  240   for (OutputSegment *seg : segments) {
  364   for (OutputSection *s : outputSections) {
  389   for (ObjFile *file : symtab->objectFiles) {
  459   for (ObjFile *file : symtab->objectFiles) {
  556   for (ObjFile *file : symtab->objectFiles) {
  572   for (ObjFile *file : symtab->objectFiles) {
  579   for (const Symbol *sym : out.importSec->importedSymbols) {
  586   for (const InputFunction *f : out.functionSec->inputFunctions)
  589   for (const InputEvent *e : out.eventSec->inputEvents)
  594   for (ObjFile *file : symtab->objectFiles) {
  596     for (InputChunk *chunk : file->functions)
  598     for (InputChunk *chunk : file->segments)
  600     for (auto &p : file->customSections)
  610   for (InputFunction *func : symtab->syntheticFunctions)
  613   for (ObjFile *file : symtab->objectFiles) {
  615     for (InputFunction *func : file->functions)
  619   for (InputGlobal *global : symtab->syntheticGlobals)
  622   for (ObjFile *file : symtab->objectFiles) {
  624     for (InputGlobal *global : file->globals)
  628   for (ObjFile *file : symtab->objectFiles) {
  630     for (InputEvent *event : file->events)
  661   for (ObjFile *file : symtab->objectFiles) {
  662     for (InputSegment *segment : file->segments) {
  789       for (const OutputSegment *s : segments) {
  823       for (const OutputSegment *s : segments) {
  849     for (const OutputSegment *seg : segments)
  850       for (const InputSegment *inSeg : seg->inputSegments)
  877     for (const WasmInitEntry &f : initFunctions) {
  896     for (auto *seg : segments) {
  936   for (ObjFile *file : symtab->objectFiles) {
  938     for (const WasmInitFunc &f : l.InitFunctions) {
 1006     for (const OutputSegment *seg : segments)
 1051     for (ObjFile *file : symtab->objectFiles)
tools/lldb/include/lldb/Core/ModuleSpec.h
  362     for (auto spec : m_specs) {
  372       for (auto spec : m_specs) {
  388     for (auto spec : m_specs) {
  398       for (auto spec : m_specs) {
  408     for (auto spec : m_specs) {
tools/lldb/include/lldb/Core/UniqueCStringMap.h
   84     if (pos != m_map.end() && pos->cstring == unique_cstr)
   96     if (pos != m_map.end() && pos->cstring == unique_cstr)
  123     for (const Entry &entry : llvm::make_range(std::equal_range(
  135     for (pos = m_map.begin(); pos != end; ++pos) {
tools/lldb/include/lldb/DataFormatters/FormattersContainer.h
   90     for (MapIterator iter = m_map.begin(); iter != m_map.end(); ++iter)
  109     for (const auto &pos : m_map)
  120       for (const auto &pos : m_map) {
  244     for (pos = m_format_map.map().begin(); pos != end; pos++) {
  302     for (const auto &pos : m_format_map.map()) {
  314     for (const FormattersMatchCandidate &candidate : candidates) {
tools/lldb/include/lldb/Expression/ExpressionVariable.h
  191          vi != ve; ++vi) {
tools/lldb/include/lldb/Symbol/UnwindPlan.h
  401     for (const RowSP &row_sp : rhs.m_row_list)
tools/lldb/include/lldb/Target/Language.h
  108       for (auto& scavenger : m_scavengers) {
tools/lldb/include/lldb/Utility/CompletionRequest.h
  172     for (const std::string &completion : completions)
tools/lldb/include/lldb/Utility/Iterable.h
   55     return m_iter != rhs.m_iter;
tools/lldb/include/lldb/Utility/RangeMap.h
  358       if (pos != end && pos->Union(entry)) {
  362       if (pos != begin) {
  507       if (pos != end && pos->Contains(addr)) {
  509       } else if (pos != begin) {
  529       if (pos != end && pos->Contains(addr)) {
  531       } else if (pos != begin) {
  567     if (pos != m_entries.begin()) {
  575     if (pos != end) {
  577       if (next != end) {
tools/lldb/include/lldb/Utility/StreamTee.h
   65     for (pos = m_streams.begin(), end = m_streams.end(); pos != end; ++pos) {
  121     for (pos = m_streams.begin(), end = m_streams.end(); pos != end; ++pos) {
tools/lldb/include/lldb/Utility/StringList.h
  123     for (const auto &s : s_iterable)
tools/lldb/include/lldb/Utility/StructuredData.h
  173       for (const auto &object_sp : m_items) {
tools/lldb/source/API/SBBreakpoint.cpp
  709     for (std::string name : names_vec) {
  814     for (lldb::break_id_t &break_id : m_break_ids) {
  859     for (lldb::break_id_t id : m_break_ids) {
tools/lldb/source/API/SBFrame.cpp
  893               for (auto &rec_value_sp : recognized_arg_list->GetObjects()) {
tools/lldb/source/API/SBMemoryRegionInfoList.cpp
   45     for (const auto &val : list.m_regions)
tools/lldb/source/API/SBTarget.cpp
  223   for (auto &Entry : target_sp->GetStatistics()) {
 1204     for (auto name : name_vec)
 1846       for (auto *runtime : process_sp->GetLanguageRuntimes()) {
 1856     for (auto *type_system : target_sp->GetScratchTypeSystems())
 1870     for (auto *type_system : target_sp->GetScratchTypeSystems())
 1900       for (auto *runtime : process_sp->GetLanguageRuntimes()) {
 1904           for (auto type : types)
 1912       for (auto *type_system : target_sp->GetScratchTypeSystems())
tools/lldb/source/API/SBValueList.cpp
   38     for (auto val : list.m_values)
   49     for (auto val : m_values) {
   58       for (auto val : m_values) {
tools/lldb/source/Breakpoint/Breakpoint.cpp
  240       if (std::find(begin, end, name) != end) {
  790             for (lldb::break_id_t old_id : old_id_vec) {
  795             for (lldb::break_id_t new_id : new_id_vec) {
tools/lldb/source/Breakpoint/BreakpointList.cpp
   63   for (const auto &bp_sp : m_breakpoints)
   69   for (const auto &bp_sp : m_breakpoints)
   75   for (const auto &bp_sp : m_breakpoints)
   85     for (const auto &bp_sp : m_breakpoints)
   95   for (const auto &bp_sp : m_breakpoints) {
  126   if (it != m_breakpoints.end())
  156   for (const auto &bp_sp : m_breakpoints)
  171   for (const auto &bp_sp : m_breakpoints)
  178   for (const auto &bp_sp : m_breakpoints)
  184   for (const auto &bp_sp : m_breakpoints)
tools/lldb/source/Breakpoint/BreakpointLocationCollection.cpp
   38   if (pos != m_break_loc_collection.end()) {
   84   if (pos != m_break_loc_collection.end())
   95   if (pos != m_break_loc_collection.end())
  142   for (pos = begin; pos != end; ++pos) {
  156   for (pos = begin; pos != end; ++pos) {
  171   for (pos = begin; pos != end; ++pos) {
  172     if (pos != begin)
tools/lldb/source/Breakpoint/BreakpointLocationList.cpp
   74   if (pos != end && (*pos)->GetID() == break_id)
   86   for (pos = m_locations.begin(); pos != end; ++pos) {
  131   for (pos = m_locations.begin(); pos != end; ++pos)
  157   for (pos = m_locations.begin(); pos != end; ++pos)
  165   for (pos = m_locations.begin(); pos != end; ++pos) {
  175   for (pos = m_locations.begin(); pos != end; ++pos)
  184   for (pos = m_locations.begin(); pos != end; ++pos) {
  196   for (pos = m_locations.begin(); pos != end; ++pos) {
  306   for (BreakpointLocationSP loc_sp : m_locations) {
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp
   68   for (const std::string &name : names) {
  200     for (auto lookup : m_lookups) {
  226     for (ConstString variant_name : lang->GetMethodNameVariants(name)) {
  278       for (const auto &lookup : m_lookups) {
tools/lldb/source/Breakpoint/WatchpointOptions.cpp
  173     for (const std::string &line : data->user_source) {
tools/lldb/source/Commands/CommandCompletions.cpp
  311   for (const std::string &s : g_property_names)
tools/lldb/source/Commands/CommandObjectBreakpoint.cpp
  163           for (std::string &str : m_commands)
  724         for (auto name : m_options.m_breakpoint_names) {
 1921       for (const Args::ArgEntry &arg : command)
 1930       for (const std::string &name_str : name_list) {
tools/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
  243     for (BreakpointOptions *bp_options : *bp_options_vec) {
  268     for (auto bp_options : bp_options_vec) {
tools/lldb/source/Commands/CommandObjectCommands.cpp
  964         for (const std::string &line : lines) {
tools/lldb/source/Commands/CommandObjectDisassemble.cpp
  454       for (AddressRange cur_range : ranges) {
  499       for (AddressRange cur_range : ranges) {
tools/lldb/source/Commands/CommandObjectFrame.cpp
  530         for (auto &entry : command) {
  700           for (auto &rec_value_sp : recognized_arg_list->GetObjects()) {
tools/lldb/source/Commands/CommandObjectLog.cpp
   41     for (llvm::StringRef channel : Log::ListChannels())
  287     for (llvm::StringRef channel : Log::ListChannels())
tools/lldb/source/Commands/CommandObjectMemory.cpp
 1405     for (auto &entry : command) {
 1666     for (auto thread : thread_list) {
tools/lldb/source/Commands/CommandObjectMultiword.cpp
  141     for (const std::string &match : matches) {
tools/lldb/source/Commands/CommandObjectProcess.cpp
 1421       for (const auto &arg : signal_args) {
tools/lldb/source/Commands/CommandObjectRegister.cpp
  203         for (auto &entry : command) {
tools/lldb/source/Commands/CommandObjectReproducer.cpp
  342       for (GDBRemotePacket &packet : packets) {
tools/lldb/source/Commands/CommandObjectSettings.cpp
  281       for (const auto &arg : args) {
  402     for (const auto &arg : args) {
tools/lldb/source/Commands/CommandObjectStats.cpp
   81     for (auto &stat : target.GetStatistics()) {
tools/lldb/source/Commands/CommandObjectTarget.cpp
 4685         for (auto cmd : m_options.m_one_liner)
tools/lldb/source/Commands/CommandObjectThread.cpp
  146       for (const lldb::tid_t &tid : tids) {
  160         for (const uint32_t &thread_index_id : thread_index_ids) {
  175       for (const lldb::tid_t &tid : tids) {
  334       for (auto type : types) {
  888             if (this_thread_pos != resume_threads.end()) {
 1196         for (uint32_t line_number : line_numbers) {
 1218         for (lldb::addr_t address : m_options.m_until_addrs) {
tools/lldb/source/Commands/CommandObjectType.cpp
  198                 for (const std::string &type_name : options->m_target_types) {
  436                 for (const std::string &type_name : options->m_target_types) {
 2583     for (begin = m_options.m_expr_paths.begin(); begin != end; begin++)
 2784     for (Language *language : languages) {
tools/lldb/source/Core/Debugger.cpp
  527       for (const auto &debugger : *g_debugger_list_ptr)
  646     for (pos = g_debugger_list_ptr->begin(); pos != end; ++pos) {
  660     for (pos = g_debugger_list_ptr->begin(); pos != end; ++pos) {
  675     for (pos = g_debugger_list_ptr->begin(); pos != end; ++pos) {
  689     for (pos = g_debugger_list_ptr->begin(); pos != end; ++pos) {
 1095     for (pos = g_debugger_list_ptr->begin(); pos != end; ++pos) {
tools/lldb/source/Core/Disassembler.cpp
 1054   for (pos = m_instructions.begin(), end = m_instructions.end(); pos != end;
 1086        pos != end; ++pos) {
 1087     if (pos != begin)
tools/lldb/source/Core/FileSpecList.cpp
   49   for (pos = m_files.begin(); pos != end; ++pos) {
   51     if (separator_cstr && ((pos + 1) != end))
  107   for (pos = m_files.begin(); pos != end; ++pos) {
tools/lldb/source/Core/FormatEntity.cpp
  386   for (const auto &child : children) {
 1111     for (const auto &child : entry.children) {
 1126     for (const auto &child : entry.children) {
tools/lldb/source/Core/IOHandler.cpp
 1026     for (pos = m_subwindows.begin(); pos != end; ++pos, ++i) {
 1055     for (pos = m_subwindows.begin(); pos != end; ++pos, ++i) {
 1066          pos != m_subwindows.end(); pos = m_subwindows.erase(pos)) {
 1121     for (auto &subwindow_sp : m_subwindows)
 1192     for (auto subwindow_sp : subwindows) {
 1252       for (auto subwindow_sp : m_subwindows) {
 2058     for (auto &item : m_children) {
 2124       for (auto &item : m_children) {
 2166       for (auto &item : m_children) {
 2624     for (auto &valobj_sp : valobj_list.GetObjects())
 2899     for (auto &row : rows) {
 2932     for (auto &row : rows) {
 2941     for (auto &row : rows) {
tools/lldb/source/Core/Module.cpp
  265     assert(pos != end);
tools/lldb/source/Core/ModuleList.cpp
  177     for (pos = m_modules.begin(); pos != end; ++pos) {
  189   for (auto pos : module_list.m_modules)
  195   for (auto pos : module_list.m_modules) {
  206     for (pos = m_modules.begin(); pos != end; ++pos) {
  246     for (pos = m_modules.begin(); pos != end; ++pos) {
  271   while (pos != m_modules.end()) {
  286   for (pos = module_list.m_modules.begin(); pos != end; ++pos) {
  340     for (pos = m_modules.begin(); pos != end; ++pos) {
  353     for (pos = m_modules.begin(); pos != end; ++pos) {
  370     for (pos = m_modules.begin(); pos != end; ++pos) {
  382     for (pos = m_modules.begin(); pos != end; ++pos) {
  393   for (pos = m_modules.begin(); pos != end; ++pos) {
  402   for (pos = m_modules.begin(); pos != end; ++pos) {
  411   for (pos = m_modules.begin(); pos != end; ++pos) {
  421   for (pos = m_modules.begin(); pos != end; ++pos) {
  431   for (pos = m_modules.begin(); pos != end; ++pos)
  440   for (pos = m_modules.begin(); pos != end; ++pos)
  448   for (pos = m_modules.begin(); pos != end; ++pos) {
  463     for (pos = m_modules.begin(); pos != end; ++pos) {
  480     for (pos = m_modules.begin(); pos != end; ++pos) {
  498     for (pos = m_modules.begin(); pos != end; ++pos) {
  509   for (pos = m_modules.begin(); pos != end; ++pos) {
  526   for (pos = m_modules.begin(); pos != end; ++pos) {
  540   for (pos = m_modules.begin(); pos != end; ++pos) {
  550   for (pos = m_modules.begin(); pos != end; ++pos) {
  574   for (pos = m_modules.begin(); pos != end; ++pos) {
  584     for (pos = begin; pos != end; ++pos) {
  600   for (pos = m_modules.begin(); pos != end; ++pos) {
  621     for (pos = m_modules.begin(); pos != end; ++pos) {
  645   for (pos = m_modules.begin(); pos != end; ++pos) {
  659     for (pos = begin; pos != end; ++pos) {
  972   for (auto module : m_modules) {
  998   for (const auto &module : m_modules) {
tools/lldb/source/Core/PluginManager.cpp
  245     for (pos = instances.begin(); pos != end; ++pos) {
  270     for (pos = instances.begin(); pos != end; ++pos) {
  310   for (auto pos = instances.begin(), end = instances.end(); pos != end; ++pos) {
  322   for (const auto &instances : GetArchitectureInstances()) {
  375     for (pos = instances.begin(); pos != end; ++pos) {
  402     for (pos = instances.begin(); pos != end; ++pos) {
  460     for (pos = instances.begin(); pos != end; ++pos) {
  487     for (pos = instances.begin(); pos != end; ++pos) {
  544     for (pos = instances.begin(); pos != end; ++pos) {
  570     for (pos = instances.begin(); pos != end; ++pos) {
  624     for (pos = instances.begin(); pos != end; ++pos) {
  651     for (pos = instances.begin(); pos != end; ++pos) {
  709     for (pos = instances.begin(); pos != end; ++pos) {
  736     for (pos = instances.begin(); pos != end; ++pos) {
  788     for (pos = instances.begin(); pos != end; ++pos) {
  814     for (pos = instances.begin(); pos != end; ++pos) {
  873     for (pos = instances.begin(); pos != end; ++pos) {
  918     for (pos = instances.begin(); pos != end; ++pos) {
  971     for (pos = instances.begin(); pos != end; ++pos) {
  998     for (pos = instances.begin(); pos != end; ++pos) {
 1062     for (pos = instances.begin(); pos != end; ++pos) {
 1108     for (pos = instances.begin(); pos != end; ++pos) {
 1124     for (pos = instances.begin(); pos != end; ++pos) {
 1139   for (pos = instances.begin(); pos != end; ++pos) {
 1198     for (pos = instances.begin(); pos != end; ++pos) {
 1225     for (pos = instances.begin(); pos != end; ++pos) {
 1310     for (pos = instances.begin(); pos != end; ++pos) {
 1336     for (pos = instances.begin(); pos != end; ++pos) {
 1354   for (pos = instances.begin(); pos != end; ++pos) {
 1426     for (pos = instances.begin(); pos != end; ++pos) {
 1452     for (pos = instances.begin(); pos != end; ++pos) {
 1511   for (pos = instances.begin(); pos != end; ++pos) {
 1538   for (pos = instances.begin(); pos != end; ++pos) {
 1608     for (pos = instances.begin(); pos != end; ++pos) {
 1636     for (pos = instances.begin(); pos != end; ++pos) {
 1707     for (pos = instances.begin(); pos != end; ++pos) {
 1734     for (pos = instances.begin(); pos != end; ++pos) {
 1787     for (pos = instances.begin(); pos != end; ++pos) {
 1814     for (pos = instances.begin(); pos != end; ++pos) {
 1867     for (pos = instances.begin(); pos != end; ++pos) {
 1894     for (pos = instances.begin(); pos != end; ++pos) {
 1947     for (pos = instances.begin(); pos != end; ++pos) {
 1974     for (pos = instances.begin(); pos != end; ++pos) {
 2035     for (pos = instances.begin(); pos != end; ++pos) {
 2075     for (pos = instances.begin(); pos != end; ++pos) {
 2131     for (pos = instances.begin(); pos != end; ++pos) {
 2158     for (pos = instances.begin(); pos != end; ++pos) {
 2230     for (pos = instances.begin(); pos != end; ++pos) {
 2255     for (pos = instances.begin(); pos != end; ++pos) {
 2281     for (pos = instances.begin(); pos != end; ++pos) {
 2293     for (pos = instances.begin(); pos != end; ++pos) {
 2305     for (pos = instances.begin(); pos != end; ++pos) {
 2317     for (pos = instances.begin(); pos != end; ++pos) {
 2326     for (auto &sym_file : GetSymbolFileInstances()) {
 2335     for (auto &os : GetOperatingSystemInstances()) {
 2344     for (auto &plugin : GetStructuredDataPluginInstances()) {
tools/lldb/source/Core/Section.cpp
  449   for (sect_iter = begin; sect_iter != end; ++sect_iter) {
  470   for (sect_iter = m_sections.begin(); sect_iter != end; ++sect_iter) {
  488     for (sect_iter = m_sections.begin(); sect_iter != end; ++sect_iter) {
  510          sect_iter != end && sect_sp.get() == nullptr; ++sect_iter) {
  531          sect_iter != end && sect_sp.get() == nullptr; ++sect_iter) {
  568        sect_iter != end && sect_sp.get() == nullptr; ++sect_iter) {
  608   for (sect_iter = m_sections.begin(); sect_iter != end; ++sect_iter) {
  619   for (pos = m_sections.begin(); pos != end; ++pos) {
tools/lldb/source/Core/ValueObject.cpp
  590     for (++pos; pos != end; ++pos) {
tools/lldb/source/Core/ValueObjectList.cpp
   67   for (pos = m_value_objects.begin(); pos != end; ++pos) {
   81   for (pos = m_value_objects.begin(); pos != end; ++pos) {
   98   for (pos = m_value_objects.begin(); pos != end; ++pos) {
tools/lldb/source/DataFormatters/FormatManager.cpp
  241   for (lldb::LanguageType language_type : GetCandidateLanguages(valobj)) {
  243       for (ConstString candidate :
  621   for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  662     for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  696   for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  737     for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  770   for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  811     for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  872     for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  905   for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
tools/lldb/source/DataFormatters/FormattersHelpers.cpp
  110   for (auto child : children)
tools/lldb/source/DataFormatters/LanguageCategory.cpp
  138   for (auto &candidate : m_hardcoded_formats) {
  158   for (auto &candidate : m_hardcoded_summaries) {
  178   for (auto &candidate : m_hardcoded_synthetics) {
  198   for (auto &candidate : m_hardcoded_validators) {
tools/lldb/source/DataFormatters/TypeCategory.cpp
   96   return (iter != end);
tools/lldb/source/DataFormatters/TypeCategoryMap.cpp
  113   for (; viter != vend; viter++)
  182     for (auto match : match_data.GetMatchesVector()) {
  221     for (auto match : match_data.GetMatchesVector()) {
  262     for (auto match : match_data.GetMatchesVector()) {
  303     for (auto match : match_data.GetMatchesVector()) {
tools/lldb/source/Expression/DiagnosticManager.cpp
   50   for (const auto &diagnostic : Diagnostics()) {
tools/lldb/source/Expression/ExpressionVariable.cpp
   50   for (const IRExecutionUnit::JittedFunction &jitted_function :
   65   for (const IRExecutionUnit::JittedGlobalVariable &global_var :
tools/lldb/source/Expression/IRExecutionUnit.cpp
  111   for (JittedFunction &function : m_jitted_functions) {
  279   for (std::string &feature : m_cpu_features)
  402     for (ConstString failed_lookup : m_failed_lookups) {
  422   for (JittedFunction &jitted_function : m_jitted_functions) {
  449     for (AllocationRecord &record : m_records) {
  716   for (const SearchSpec &C_spec : C_specs) {
  748   for (const SearchSpec &C_spec : C_specs) {
  780   for (const SearchSpec &spec : specs) {
  915   for (const SearchSpec &spec : specs) {
  916     for (LanguageRuntime *runtime : process_sp->GetLanguageRuntimes()) {
  932   for (const SearchSpec &spec : specs) {
  993             for (JittedFunction &jitted_function : m_jitted_functions) {
 1058   for (AllocationRecord &record : m_records) {
 1085   for (AllocationRecord &record : m_records) {
 1145   for (AllocationRecord &record : m_records) {
 1154     for (AllocationRecord &record : m_records) {
 1168   for (AllocationRecord &record : m_records) {
 1185   for (AllocationRecord &record : m_records) {
 1226   for (AllocationRecord &record : m_records) {
tools/lldb/source/Expression/Materializer.cpp
 1368   for (EntityUP &entity_up : m_entities) {
 1382     for (EntityUP &entity_up : m_entities)
 1417       for (EntityUP &entity_up : m_materializer->m_entities)
 1421     for (EntityUP &entity_up : m_materializer->m_entities) {
 1437   for (EntityUP &entity_up : m_materializer->m_entities) {
tools/lldb/source/Expression/REPL.cpp
  150   for (char &ch : last_line) {
tools/lldb/source/Host/common/Editline.cpp
   93   for (wchar_t ch : content) {
  102   for (EditLineStringType line : lines) {
  134   for (EditLineCharType ch : line) {
  413   for (EditLineStringType line : m_input_lines) {
tools/lldb/source/Host/common/MainLoop.cpp
  232   for (const auto &fd : read_fds) {
  248   for (const auto &signal : signals) {
tools/lldb/source/Host/common/NativeProcessProtocol.cpp
   96   for (const auto &thread : m_threads) {
  161   for (const auto &thread : m_threads) {
  182       for (auto unwatch_thread_sp : watchpoint_established_threads) {
  202   for (const auto &thread : m_threads) {
  248   for (const auto &thread : m_threads) {
  260       for (auto rollback_thread_sp : breakpoint_established_threads) {
  287   for (const auto &thread : m_threads) {
  301   if (std::find(m_delegates.begin(), m_delegates.end(), &native_delegate) !=
  329   for (auto native_delegate : m_delegates)
  354     for (auto native_delegate : m_delegates)
tools/lldb/source/Host/common/TCPSocket.cpp
  154   for (auto address : addresses) {
  192   for (auto address : addresses) {
tools/lldb/source/Interpreter/CommandAlias.cpp
  154   for (const auto &opt_entry : *options) {
  179   for (const auto &opt_entry : *GetOptionArguments()) {
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 1399   for (const auto &entry : *option_arg_vector) {
 1906     for (const auto &option_entry : *option_arg_vector) {
tools/lldb/source/Interpreter/OptionValueArgs.cpp
   18   for (auto value : m_values) {
tools/lldb/source/Interpreter/OptionValueDictionary.cpp
  113     for (const auto &entry : args) {
tools/lldb/source/Interpreter/Options.cpp
  867   for (pos = m_option_infos.begin(); pos != end; ++pos) {
  880   for (pos = m_option_infos.begin(); pos != end; ++pos) {
  900   for (const Args::ArgEntry &entry : args)
  925     assert(pos != original.end());
tools/lldb/source/Interpreter/ScriptInterpreter.cpp
   76   for (BreakpointOptions *bp_options : bp_options_vec) {
   89   for (BreakpointOptions *bp_options : bp_options_vec) {
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
 1344       for (const auto &ku : kexts_failed_to_load) {
 1348       for (const auto &ku : kexts_failed_to_load) {
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
  155   for (addr_t solib_addr : solib_addresses) {
  168           for (pos = m_dyld_image_infos.begin(); pos != end; pos++) {
  952       for (Address address : addresses) {
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
  603     for (pos = m_dyld_image_infos.begin(); pos != end; pos++) {
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
  292   for (auto const &modInfo : module_list.m_list) {
  308   for (auto const &modInfo : module_list.m_list) {
  310     for (auto const &existing : m_loaded_modules.m_list) {
  337   for (auto const &existing : m_loaded_modules.m_list) {
  339     for (auto const &modInfo : module_list.m_list) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
  451   for (clang::NamedDecl *decl : m_decls) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
  328            i != e && !found; ++i) {
  754          i != e; ++i) {
 1676   for (const auto &item : sorted_items) {
 1892          i != e; ++i) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.cpp
   24   for (auto *named_decl : named_decls) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
  753          i != e; ++i) {
 1177         for (CompilerDecl decl : found_decls) {
 1328         for (const FuncDeclInfo &fdi : fdi_cache) {
 1390         for (clang::NamedDecl *decl : decls_from_modules) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  139     for (ClangModulesDeclVendor::ModuleID module : exported_modules)
  249   for (const std::string &dir : include_directories) {
 1107   for (const auto &diag : diagnostic_manager.Diagnostics()) {
 1110       for (const FixItHint &fixit : diagnostic->FixIts()) {
 1370   for (lldb::addr_t static_initializer : static_initializers) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp
  328       for (ClangModulesDeclVendor::ModuleID module : hand_imported_modules) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
  138   for (IDAndDiagnostic &diag : m_diagnostics) {
  212   for (ConstString path_component : module.path) {
  274     for (ConstString path_component : module.path) {
  350     for (auto &imported_module : cu.GetImportedModules())
  407   for (ModuleID module : modules) {
  648   for (const std::string &arg : compiler_invocation_arguments)
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  357     for (ClangModulesDeclVendor::ModuleID module : hand_imported_modules) {
  475   for (const FileSpec &f : sc.comp_unit->GetSupportFiles())
  483       for (const FileSpec &f : support_files) {
  492     for (const FileSpec &f : files)
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
  162          ii != last_ii; ++ii) {
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
 1412   for (CallInst *ci : calls_to_remove)
tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
  412     for (auto &candidate : map) {
  488     for (auto &candidate : map) {
tools/lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp
  941             for (const CompilerType &type :
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
  409   for (pos = m_descriptors.begin(); pos != end; pos++) {
  608   for (pos = m_regions.begin(); pos != end; pos++) {
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
  136     for (auto element : elements) {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
  838   for (const auto &module_desc : *m_rsmodules) {
  842     for (const auto &reduction : module_desc->m_reductions) {
  899   for (auto &name : names) {
  909     for (const RSScriptGroupDescriptor::Kernel &k : sg->m_kernels) {
 1175     for (auto sg : m_scriptGroups) {
 1321   for (const uint64_t alloc_addr : allocs) {
 1457   for (auto iter = m_allocations.begin(); iter != m_allocations.end(); ++iter) {
 1632   for (const auto &rs_script : m_scripts) {
 2236   for (auto module_sp : m_rsmodules)
 2322     for (Element &child : elem.children) {
 2583   for (const RenderScriptRuntime::Element &child : elem.children) {
 2611   for (const Element &child : elem.children)
 2745     for (const auto &rs_module : m_rsmodules) {
 3105   for (const auto &script : m_scripts) {
 3129   for (const auto &module : m_rsmodules) {
 3132     for (const auto &kernel : module->m_kernels) {
 3152   for (const auto &a : m_allocations) {
 3326   for (auto &alloc : m_allocations) {
 3352   for (auto &alloc : m_allocations) {
 3447   for (const auto &kernel : rsmodule_sp->m_kernels) {
 3469     for (const auto &module : m_rsmodules)
 3812   for (const auto &module : m_rsmodules) {
 3820   for (const auto &s : m_scripts) {
 3836   for (const auto &a : m_allocations) {
 3850   while (it != m_allocations.end()) {
 3905   for (const auto &global : m_globals) {
 3914   for (const auto &kernel : m_kernels) {
 3935   for (const auto &reduction : m_reductions) {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
  280     for (auto sg : m_script_groups) {
  398     for (const auto &module : m_rsmodules)
  399       for (const auto &kernel : module->m_kernels)
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptScriptGroup.cpp
   64     for (const auto &name : sites) {
  116     for (const RSScriptGroupDescriptorSP &g : groups) {
  124         for (const auto &k : g->m_kernels) {
tools/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/ObjectContainerUniversalMachO.cpp
  225       for (const llvm::MachO::fat_arch &fat_arch : fat_archs) {
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
  410   for (const ELFProgramHeader &H : program_headers) {
 1397            I != section_headers.end(); ++I) {
 1797        I != m_section_headers.end(); ++I) {
 2347   for (; I != E; ++I) {
 2850        I != m_section_headers.end(); ++I) {
 2913   for (const Symbol &s : new_symbols)
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 1966         for (auto name_slice : nameSlices)
 2513         for (auto &e : trie_entries)
 4475     for (auto &nlist : nlists) {
 4482     for (auto &nlist : nlists) {
 4668     for (const auto &e : trie_entries) {
 5078       for (auto &rpath : rpath_paths) {
 5088       for (const auto &rpath_relative_path : rpath_relative_paths) {
 5089         for (const auto &rpath : rpath_paths) {
 5111       for (const auto &at_exec_relative_path : at_exec_relative_paths) {
 6131         for (auto &LC_THREAD_data : LC_THREAD_datas) {
 6174         for (const auto &LC_THREAD_data : LC_THREAD_datas) {
 6199         for (auto &segment : segment_load_commands) {
 6205         for (const auto &LC_THREAD_data : LC_THREAD_datas) {
 6213         for (const auto &segment : segment_load_commands) {
 6257             for (const auto &segment : segment_load_commands) {
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
 1199   for (pos = m_sect_headers.begin(); pos != end; ++pos, ++idx) {
tools/lldb/source/Plugins/ObjectFile/PECOFF/PECallFrameInfo.cpp
  304   for (const EHInstruction &i : m_program)
  372   if (m_begin != m_end)
  378   for (EHProgram::const_iterator it = m_begin; it != m_end; ++it) {
  396   for (EHProgram::const_iterator it = m_begin; it != m_end; ++it) {
  423   for (EHProgram::const_iterator it = m_begin; it != m_end; ++it) {
  485   for (auto it = builder.GetProgram().begin(); it != builder.GetProgram().end();
tools/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
  366   for (auto name: dl_open_names) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
 1663   for (const auto &executable_dir : g_executable_dirs) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
  184       for (const auto &sdk_directory_info : builtin_sdk_directory_infos) {
  202       for (std::string &dirname : device_support_dirnames)
  248         for (const auto &sdk_directory_info : env_var_sdk_directory_infos) {
  336     if (max != m_sdk_directory_infos.end())
tools/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
  854     for (auto path : *paths) {
tools/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
   52     if (iter != m_archs.end())
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
  846   for (const auto &gdbserver : remote_servers) {
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
 1039     for (const auto &thread : m_threads) {
 1056   for (const auto &thread : m_threads) {
 1115   for (const auto &thread : m_threads) {
 1150   for (const auto &thread : m_threads) {
 1245   for (auto it = m_mem_region_cache.begin(); it != m_mem_region_cache.end();
 1552   for (const auto &thread : m_threads) {
 1569   for (auto it = m_threads.begin(); it != m_threads.end(); ++it) {
 1623   for (const auto &it : m_mem_region_cache) {
 1641   for (const auto &it : m_mem_region_cache) {
 1705   for (const auto &thread : m_threads) {
 1718   for (const auto &thread_sp : m_threads) {
 1915   for (const auto &thread_sp : m_threads) {
tools/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
  460       if (unique_end != pos->second.end())
  485       for (const uint32_t invalidate_reg_num : pos->second) {
  489           for (const uint32_t concrete_invalidate_reg_num :
  510       if (unique_end != pos->second.end())
  529   for (const auto &reg : m_regs) {
  541       for (auto &reg : m_regs) {
  562       for (auto &reg : m_regs) {
  585       for (auto &reg : m_regs) {
  601       for (auto &reg : m_regs) {
  652   for (pos = m_set_names.begin(); pos != end; ++pos) {
  668   for (pos = m_regs.begin(); pos != end; ++pos) {
  742   for (auto &reg_info : m_regs) {
tools/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
 1120     for (ConstString name : trap_handler_names) {
 1129   for (ConstString name : user_specified_trap_handler_names) {
tools/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
  214   for (const auto &thread_data : m_thread_data) {
  224       for (auto &thread_data : m_thread_data)
  702     for (auto &data : m_thread_data)
  709     for (auto &data : m_thread_data) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
 1573   for (const auto &map_region : m_qXfer_memory_map) {
 2328   for (auto d : v) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
 1193   for (auto &arg : proc_info.GetArguments()) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
 2778     for (auto const &library : *library_list) {
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 1320                  t_pos != t_end; ++t_pos)
 1331                  s_pos != s_end; ++s_pos)
 1343                  t_pos != t_end; ++t_pos)
 1354                  s_pos != s_end; ++s_pos)
 1788       if (iter != m_thread_ids.end()) {
 4083   for (auto addr : load_addresses) {
 4276     for (const ModuleSpec &spec : *module_specs)
 4597       for (auto &feature_node : feature_nodes) {
 4602       for (const auto &include : target_info.includes) {
 4826   for (LoadedModuleInfoList::LoadedModuleInfo &modInfo : module_list->m_list) {
tools/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
  351   if (pos != m_memory_regions->begin() &&
  411   for (auto module : filtered_modules) {
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
  547     for (auto bp_options : *bp_options_vec) {
tools/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
  600       for (auto &rule_sp : m_filter_rules) {
  913       for (auto rule_sp : options_sp->GetFilterRules()) {
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp
  575     for (const auto &rule : llvm::make_range(program.begin(), it)) {
  608   for (++it; it != program.end(); ++it) {
tools/lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
  162   for (const DIERef &die_ref : offsets) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
 1986         for (const DWARFDIE &die : member_function_dies)
 2010                  pi != pe; ++pi)
 2044           for (const auto &base_class : bases) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp
  126       for (auto &section : *m_main_section_list)
  131       for (auto &section : *m_dwo_section_list)
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAbbrev.cpp
   58     for (pos = m_decls.begin(); pos != end; ++pos) {
   74   for (const auto &abbr_decl : m_decls) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugArangeSet.cpp
  136   if (pos != end)
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
  386     for (const DWARFDIE &die : dies) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp
  212     for (const RngListEntry &E : pos->second) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.cpp
   67   for (pos = begin, rhs_pos = rhs_begin; pos != end; ++pos, ++rhs_pos) {
   81   for (pos = begin, rhs_pos = rhs_begin; pos != end; ++pos, ++rhs_pos) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
  391     for (pos = m_die_array.begin(); pos != end; ++pos) {
  469       if (pos != end) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
  237   for (DWARFDIE die : v)
tools/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
   75     for (auto &set : sets)
  117   for (const DWARFDebugInfoEntry &die : unit.dies()) {
  407     for (const DIERef &die_ref: offsets) {
  418     for (const DIERef &die_ref: offsets) {
  431     for (const DIERef &die_ref: offsets) {
  441     for (const DIERef &die_ref: offsets) {
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
  839   for (const DWARFDIE &die : function_dies) {
 1003   for (auto &row : line_table->Rows) {
 2283   for (const DWARFDIE &die : dies) {
 2325   for (DIERef ref : offsets) {
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
   71     for (auto comp_unit_info : cu_infos) {
  316       for (uint32_t sym_idx : m_func_indexes) {
  324       for (uint32_t sym_idx : m_glob_indexes) {
tools/lldb/source/Plugins/SymbolFile/DWARF/UniqueDWARFASTType.cpp
   17   for (const UniqueDWARFASTType &udt : m_collection) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  370   for (TypeIndex fwd : fwd_keys) {
  374   for (TypeIndex full : full_keys) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp
   61   for (auto it = parsed.begin(), end = parsed.end(); it != end; ++it) {
   66           for (const auto &pair : llvm::make_range(parsed.begin(), it)) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
 1110       lldbassert(fn_iter != cci->m_file_list.end());
 1150   for (llvm::StringRef f : cci->m_file_list) {
 1190   for (const SymbolAndOffset &result : results) {
 1222   for (const SymbolAndOffset &match : matches) {
 1273   for (TypeIndex ti : matches) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
  197   for (const OneMethodRecord &method : method_list.Methods)
  223   for (auto &ib : m_bases)
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
 1324       for (uint32_t id : ids) {
 1362       for (auto id : ids) {
 1641   for (auto type : type_collection) {
 2048     if (it != sec_cs.begin()) {
tools/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp
  827     for (ItemRefAndCodeAddress pending_item :
tools/lldb/source/Symbol/ArmUnwindInfo.cpp
  329   for (const auto &offset : register_offsets) {
tools/lldb/source/Symbol/Block.cpp
  104     for (pos = m_children.begin(); pos != end; ++pos)
  117   for (pos = m_children.begin(); pos != end; ++pos) {
  420     for (pos = m_children.begin(); pos != end; ++pos) {
  481     for (pos = m_children.begin(); pos != end; ++pos)
  490     for (pos = m_children.begin(); pos != end; ++pos)
  508     for (pos = m_children.begin(); pos != end; ++pos) {
  510         if (++pos != end)
tools/lldb/source/Symbol/ClangASTContext.cpp
 8341   for (auto &b : bases)
 9447   for (const auto &val : values) {
tools/lldb/source/Symbol/CompileUnit.cpp
   79   for (auto &f : sorted_functions)
tools/lldb/source/Symbol/CxxModuleHandler.cpp
   84   for (Scope *s : scopes)
tools/lldb/source/Symbol/DeclVendor.cpp
   25     for (auto decl : decls)
tools/lldb/source/Symbol/LineTable.cpp
  119   if (pos != begin_pos) {
  127   if (pos != begin_pos) {
  186       if (pos != end_pos) {
  187         if (pos != begin_pos) {
  199               if (pos != end_pos) {
  205             if (pos != end_pos) {
  208               while (pos != begin_pos) {
  230         if (pos != end_pos && pos->is_terminal_entry == false) {
tools/lldb/source/Symbol/SymbolContext.cpp
 1209   for (pos = sc_list.m_symbol_contexts.begin(); pos != end; ++pos)
 1217   for (pos = sc_list.m_symbol_contexts.begin(); pos != end; ++pos) {
 1227   for (pos = m_symbol_contexts.begin(); pos != end; ++pos) {
 1235       for (pos = m_symbol_contexts.begin(); pos != end; ++pos) {
 1270   for (pos = m_symbol_contexts.begin(); pos != end; ++pos) {
tools/lldb/source/Symbol/SymbolFile.cpp
  222     for (const CompUnitSP &cu_sp : *m_compile_units) {
tools/lldb/source/Symbol/Symtab.cpp
   98       for (const_iterator pos = m_symbols.begin(); pos != end; ++pos) {
  114            pos != end; ++pos) {
  161     for (pos = indexes.begin(); pos != end; ++pos) {
  329     for (const auto &record : backlog) {
  645     while (pos != indexes.end()) {
  665     while (pos != indexes.end()) {
  810       for (pos = matching_indexes.begin(); pos != end; ++pos) {
  865     for (const_iterator pos = m_symbols.begin(); pos != end; ++pos) {
tools/lldb/source/Symbol/TypeList.cpp
   70   for (pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) {
   80   for (auto pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) {
   88   for (auto pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) {
   95   for (iterator pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) {
  125   for (pos = m_types.begin(); pos != end; ++pos) {
  199   for (pos = m_types.begin(); pos != end; ++pos) {
tools/lldb/source/Symbol/UnwindPlan.cpp
  370   while (it != m_row_list.end()) {
  389       for (pos = m_row_list.begin(); pos != end; ++pos) {
  542   for (pos = begin; pos != end; ++pos) {
tools/lldb/source/Symbol/VariableList.cpp
   65   for (pos = m_variables.begin(); pos != end; ++pos) {
   76   for (pos = m_variables.begin(); pos != end; ++pos) {
   92   for (pos = m_variables.begin(); pos != end; ++pos) {
  106   for (pos = m_variables.begin(); pos != end; ++pos)
  116   for (pos = m_variables.begin(); pos != end; ++pos) {
  133   for (pos = m_variables.begin(); pos != end; ++pos) {
  150   for (pos = m_variables.begin(); pos != end; ++pos) {
  160   for (pos = m_variables.begin(); pos != end; ++pos)
  173   for (pos = m_variables.begin(); pos != end; ++pos) {
tools/lldb/source/Target/JITLoaderList.cpp
   41   for (auto const &jit_loader : m_jit_loaders_vec)
   47   for (auto const &jit_loader : m_jit_loaders_vec)
   53   for (auto const &jit_loader : m_jit_loaders_vec)
tools/lldb/source/Target/PathMappingList.cpp
   75     for (pos = rhs.m_pairs.begin(); pos != end; ++pos)
  162   for (const auto &it : m_pairs) {
  190   for (const auto &it : m_pairs) {
  212   for (auto entry : m_pairs) {
  260   if (pos != m_pairs.end()) {
  276   for (pos = begin; pos != end; ++pos) {
  289   for (pos = begin; pos != end; ++pos) {
  312   for (pos = begin; pos != end; ++pos) {
tools/lldb/source/Target/Platform.cpp
  275     for (const auto &platform_sp : GetPlatformList()) {
  318       for (const auto &platform_sp : GetPlatformList()) {
  325       for (const auto &platform_sp : GetPlatformList()) {
tools/lldb/source/Target/Process.cpp
  655   for (pos = m_notifications.begin(); pos != end; ++pos) {
  670        notification_pos != notification_end; ++notification_pos) {
 1552   for (LanguageRuntime *runtime : GetLanguageRuntimes()) {
 2292   for (const auto &Entry : entries) {
 5528     if (found_iter != m_pre_resume_actions.end())
 5930     for (auto &type_name : names_to_remove)
tools/lldb/source/Target/StackFrameList.cpp
  626   for (pos = begin; pos != end; ++pos) {
  740     if (begin != end) {
  743       if (pos != end) {
  780   for (pos = begin; pos != end; ++pos) {
  930   for (pos = begin; pos != end; ++pos) {
tools/lldb/source/Target/StackFrameRecognizer.cpp
   42   for (const auto o : args->GetObjects()) {
tools/lldb/source/Target/Target.cpp
 1623       for (LanguageRuntime *runtime : m_process_sp->GetLanguageRuntimes()) {
tools/lldb/source/Target/TargetList.cpp
  216           for (const auto &the_platform_sp : platforms) {
  244             for (const auto &the_platform_sp : platforms) {
  447   for (pos = m_target_list.begin(); pos != end; ++pos) {
  463   for (pos = m_target_list.begin(); pos != end; ++pos) {
  485   for (pos = m_target_list.begin(); pos != end; ++pos) {
  500     for (pos = m_target_list.begin(); pos != end; ++pos) {
  515     for (pos = m_target_list.begin(); pos != end; ++pos) {
  553     for (pos = m_target_list.begin(); pos != end; ++pos) {
  605   for (pos = begin; pos != end; ++pos) {
tools/lldb/source/Target/Thread.cpp
  262   for (auto plan : m_plan_stack)
  265   for (auto plan : m_discarded_plan_stack)
  268   for (auto plan : m_completed_plan_stack)
 1210   for (ThreadPlanSP plan_sp : m_plan_stack) {
 1521   for (ThreadPlanSP plan_sp : plan_stack) {
 2204   for (LanguageRuntime *runtime : GetProcess()->GetLanguageRuntimes()) {
 2219   for (LanguageRuntime *runtime : GetProcess()->GetLanguageRuntimes()) {
tools/lldb/source/Target/ThreadList.cpp
  244     for (lldb::ThreadSP thread_sp : m_threads) {
  297   for (pos = threads_copy.begin(); pos != end; ++pos) {
  302   for (pos = threads_copy.begin(); pos != end; ++pos) {
  347     for (pos = threads_copy.begin(); pos != end; ++pos) {
  371   for (pos = m_threads.begin(); pos != end; ++pos) {
  402   for (pos = m_threads.begin(); pos != end; ++pos) {
  421   for (pos = m_threads.begin(); pos != end; ++pos) {
  470   for (pos = m_threads.begin(); pos != end; ++pos)
  480   for (pos = m_threads.begin(); pos != end; ++pos)
  503   for (pos = m_threads.begin(); pos != end; ++pos) {
  535   for (pos = m_threads.begin(); pos != end; ++pos) {
  554   for (pos = m_threads.begin(); pos != end; ++pos) {
  582     for (pos = m_threads.begin(); pos != end; ++pos) {
  606     for (pos = m_threads.begin(); pos != end; ++pos) {
  622   for (pos = m_threads.begin(); pos != end; ++pos) {
  634   for (pos = m_threads.begin(); pos != end; ++pos) {
  717     for (rhs_pos = rhs.m_threads.begin(); rhs_pos != rhs_end; ++rhs_pos) {
  738   for (pos = m_threads.begin(); pos != end; ++pos)
tools/lldb/source/Target/ThreadPlanRunToAddress.cpp
   53   for (pos = m_addresses.begin(); pos != end; ++pos)
tools/lldb/source/Target/ThreadPlanStepOut.cpp
  220   for (StackFrameSP frame_sp : m_stepped_past_frames) {
tools/lldb/source/Target/ThreadPlanStepThrough.cpp
   90     for (LanguageRuntime *runtime :
tools/lldb/source/Utility/Args.cpp
  174   for (const std::string &arg : list)
  183   for (auto &entry : rhs.m_entries) {
  199   for (auto &entry : m_entries) {
  294   for (auto &entry : rhs.m_entries) {
  616   for (char c : arg) {
tools/lldb/source/Utility/CompletionRequest.cpp
   73   for (const Completion &completion : m_results)
   79   for (const Completion &completion : m_results)
tools/lldb/source/Utility/Listener.cpp
  198   if (iter != end_iter)
tools/lldb/source/Utility/Reproducer.cpp
  231   return (it != m_files.end()) && (*it == file);
  261   for (auto &recorder : m_data_recorders) {
  323   for (auto &file : files) {
tools/lldb/source/Utility/StringLexer.cpp
   44   for (auto c : token) {
tools/lldb/source/Utility/StringList.cpp
   72   for (const auto &s : m_strings) {
  233   for (const auto &s : m_strings) {
tools/lldb/source/Utility/StructuredData.cpp
   90   for (json::Value &value : *array) {
  138   for (const auto &item_sp : m_items) {
tools/lldb/source/Utility/Timer.cpp
  146   for (const auto &stats : sorted)
tools/lldb/source/Utility/VMRange.cpp
   28          }) != coll.end();
   35          }) != coll.end();
tools/lldb/tools/driver/Driver.cpp
  164   for (const auto &command_entry : *command_set) {
tools/lldb/tools/lldb-test/lldb-test.cpp
  164   for (FunctionNameType Flag : FunctionNameFlags)
  271   for (auto entry: result)
  862   for (const auto &File : opts::object::InputFilenames) {
tools/lldb/tools/lldb-vscode/JSONUtils.cpp
  108   for (const auto &value : *json_array) {
tools/lldb/tools/lldb-vscode/VSCode.cpp
   65   for (auto &bp : exception_breakpoints) {
   74   for (auto &bp : exception_breakpoints) {
tools/lldb/tools/lldb-vscode/lldb-vscode.cpp
  429     for (const auto &value : *sourceMap) {
 1094   for (const auto &exc_bp : g_vsc.exception_breakpoints) {
 1579   for (const auto &bp : *breakpoints) {
 1618     for (auto line: remove_lines)
 1705   for (const auto &bp : g_vsc.exception_breakpoints)
 1708   for (const auto &value : *filters) {
 1810   for (const auto &value : *breakpoints) {
 1840   for (const auto &name: remove_names)
tools/lldb/unittests/Editline/EditlineTest.cpp
  161   for (auto &line : lines) {
  199   for (const std::string &line : lines) {
  200     for (auto ch : line) {
  315   for (const std::string &line : el_reported_lines)
tools/lldb/unittests/Symbol/PostfixExpressionTest.cpp
  112   for (const auto &p : parsed)
tools/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp
  122   for (auto *foo : g_foos) {
  126   for (auto *bar : g_bars) {
tools/lldb/unittests/Utility/StringListTest.cpp
  511   for (const std::string &e : s)
  521   for (const std::string &e : s)
tools/lldb/unittests/tools/lldb-server/inferior/thread_inferior.cpp
   35   for (std::thread& t : threads) {
tools/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
   43       for (int Group : Groups)
  126     for (llvm::StringRef Completion : O.Completions)
  156   for (Record *R : Records)
  170   for (CommandOption &CO : Options)
tools/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
  133   for (Record *R : PropertyRecords)
  154   for (Record *R : PropertyRecords)
tools/lldb/utils/TableGen/LLDBTableGenUtils.cpp
   18   for (Record *R : Records)
tools/lli/lli.cpp
  815          JDItr != JDEnd; ++JDItr) {
  823          EMItr != EMEnd; ++EMItr) {
  837          EAItr != EAEnd; ++EAItr) {
  848   for (auto &ObjPath : ExtraObjects) {
  856   for (auto &Arg : InputArgv)
  864   for (auto &ThreadEntryPoint : ThreadEntryPoints) {
  876   for (auto &Arg : Args)
  886   for (auto &AltEntryThread : AltEntryThreads)
tools/llvm-ar/llvm-ar.cpp
  626   for (StringRef Name : Members)
  818       if (MemberI != Members.end() && !CountParam)
  835   for (auto &M : Moved) {
  842     for (auto &Member : Members)
  848   for (auto &Member : Members)
tools/llvm-cat/llvm-cat.cpp
   60     for (const auto &InputFilename : InputFilenames) {
   64       for (auto &BitcodeMod : Mods) {
   74     for (const auto &InputFilename : InputFilenames) {
tools/llvm-cfi-verify/lib/FileAnalysis.cpp
  242   for (uint64_t SourceInstrAddress : TargetRefsKV->second) {
  296   for (const auto &BranchNode : Graph.ConditionalBranchNodes) {
  320   for (const auto &Branch : Graph.ConditionalBranchNodes) {
  568     for (const auto &Addr : ElfObject->getPltAddresses()) {
tools/llvm-cfi-verify/lib/GraphBuilder.cpp
   88   for (auto &BranchNode : ConditionalBranchNodes) {
tools/llvm-config/llvm-config.cpp
  617         for (auto &Lib : MissingLibs)
  629         for (auto &Lib : MissingLibs)
  642       for (auto &Component : DyLibComponents) {
  647       for (auto &Lib : RequiredLibs) {
tools/llvm-cov/CodeCoverage.cpp
  239   for (const auto &Files : LoadedSourceFiles)
  309   for (const auto &Group : Coverage.getInstantiationGroups(SourceFile)) {
  329       for (const auto &CR : Function->CountedRegions)
  350   for (StringRef ObjectFilename : ObjectFilenames)
  403   for (StringRef Filename : Coverage.getUniqueSourceFiles()) {
  417   for (std::string &Filename : SourceFiles) {
  477   for (StringRef Arg : ViewOpts.DemanglerOpts)
  660     for (const std::string &Filename : CovFilenames)
  716       for (const auto &Name : NameFilters)
  721       for (const auto &Regex : NameRegexFilters)
  748     for (const auto &RE : IgnoreFilenameRegexFilters)
  753       for (const std::string &Arch : Arches) {
  767     for (const std::string &File : InputSourceFiles)
  771       for (const std::string &SF : SourceFiles)
  886     for (StringRef Filename : Coverage->getUniqueSourceFiles()) {
  903     for (const auto &SourceFile : SourceFiles)
  921       for (const auto *Function : Functions) {
  951     for (const std::string &SourceFile : SourceFiles)
  957     for (const std::string &SourceFile : SourceFiles)
tools/llvm-cov/CoverageExporterJson.cpp
  129   for (const auto &Segment : FileCoverage)
  195   for (StringRef SF : Coverage.getUniqueSourceFiles()) {
tools/llvm-cov/CoverageExporterLcov.cpp
  111   for (StringRef SF : Coverage.getUniqueSourceFiles()) {
tools/llvm-cov/CoverageFilters.cpp
   62   for (const auto &Filter : Filters) {
   70   for (const auto &Filter : Filters) {
   80   for (const auto &Filter : Filters) {
tools/llvm-cov/CoverageReport.cpp
  327   for (const auto &Group : Coverage->getInstantiationGroups(Filename)) {
  375   for (const auto &FileReport : FileReports)
  384   for (StringRef SF : Coverage.getUniqueSourceFiles()) {
  405   for (const FileCoverageSummary &FCS : FileReports)
  428   for (const FileCoverageSummary &FCS : FileReports) {
  439     for (const FileCoverageSummary &FCS : FileReports)
tools/llvm-cov/CoverageSummaryInfo.cpp
   24   for (auto &CR : Function.CountedRegions) {
tools/llvm-cov/SourceCoverageView.cpp
  205   unsigned FirstLine = StartSegment != EndSegment ? StartSegment->Line : 0;
  226     if (NextESV != EndESV && NextESV->getLine() == LI.line_number() &&
  239     for (; NextESV != EndESV && NextESV->getLine() == LI.line_number();
  255     for (; NextISV != EndISV && NextISV->Line == LI.line_number(); ++NextISV) {
tools/llvm-cov/gcov.cpp
  146   for (const auto &SourceFile : SourceFiles)
tools/llvm-cvtres/llvm-cvtres.cpp
  164   for (const auto &File : InputFiles) {
  188     for (const auto& DupeDiag : Duplicates)
tools/llvm-cxxdump/llvm-cxxdump.cpp
  191   for (auto &P : SymAddr) {
tools/llvm-cxxfilt/llvm-cxxfilt.cpp
  144     for (const auto &Symbol : Decorated)
tools/llvm-dwarfdump/Statistics.cpp
  387     for (auto Range : Ranges)
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  266     for (auto Arch : ArchFilters) {
  316     for (const auto &Entry : CU->dies()) {
  431     for (auto name : Name)
  627   for (const auto &F : InputFilenames) {
  639     for (auto Object : Objects)
  642     for (auto Object : Objects)
tools/llvm-dwp/llvm-dwp.cpp
  251   for (StringRef Types : TypesSections) {
  285   for (const auto &E : IndexEntries)
  306   for (const auto &P : IndexEntries) {
  326   for (const auto &I : Buckets)
  330   for (const auto &I : Buckets)
  730   for (const auto &ExecFilename : ExecFilenames) {
tools/llvm-elfabi/ELFObjHandler.cpp
  137   for (uint64_t Offset : Dyn.NeededLibNames) {
  338   for (uint64_t NeededStrOffset : DynEnt.NeededLibNames) {
tools/llvm-elfabi/ErrorCollector.cpp
   34   for (Error &E : Errors) {
   59   for (Error &E : Errors) {
tools/llvm-exegesis/lib/Analysis.cpp
  147   for (const auto &Measurement : Point.Measurements) {
  191   for (const auto &Measurement : Clustering_.getPoints().front().Measurements) {
  200     for (const size_t PointId : Clusters[I].PointIndices) {
  265   for (const MCInst &Instr : Instructions) {
  302   for (const auto &Measurement :
  309   for (const SchedClassCluster &Cluster : Clusters) {
  318     for (const size_t PointId : Cluster.getPointIds()) {
  322     for (const auto &Stats : Cluster.getCentroid().getStats()) {
  414     for (const auto &Pressure : RSC.IdealizedProcResPressure) {
  444   for (const auto &Measurement : Points[Cluster.PointIndices[0]].Measurements) {
  452   for (const auto &PointId : Cluster.PointIndices) {
  456     for (const auto &Measurement : Points[PointId].Measurements) {
  547   for (const auto &RSCAndPoints : makePointsPerSchedClass()) {
  552     for (const size_t PointId : RSCAndPoints.PointIds) {
tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  146   for (BenchmarkMeasure &BM : InstrBenchmark.Measurements) {
tools/llvm-exegesis/lib/Latency.cpp
   51   for (const unsigned OtherOpcode : Opcodes) {
  128     for (const auto OtherInstr : computeAliasingInstructions(
tools/llvm-exegesis/lib/SnippetGenerator.cpp
   69     for (CodeTemplate &CT : E.get()) {
   74         for (InstructionTemplate &IT : CT.Instructions) {
  102   for (const InstructionTemplate &IT : Instructions) {
tools/llvm-exegesis/lib/SnippetRepetitor.cpp
   67       for (const MCInst &Inst :
   79       for (const auto &LiveIn : Entry.MBB->liveins())
tools/llvm-exegesis/lib/Uops.cpp
  105   for (InstructionTemplate &IT : Instructions) {
  152       for (BitVector &OtherPossibleRegs : PossibleRegsForVar) {
tools/llvm-exegesis/llvm-exegesis.cpp
  251     for (const unsigned Opcode : Opcodes) {
  288   for (const BenchmarkCode &Conf : Configurations) {
tools/llvm-extract/llvm-extract.cpp
  256   for (StringRef StrPair : ExtractBlocks) {
  292     for (GlobalValue *GV : GVs) {
tools/llvm-ifs/llvm-ifs.cpp
  409   for (const std::string &InputFilePath : InputFilenames) {
tools/llvm-jitlink/llvm-jitlink.cpp
  184   for (auto *S : Sections) {
  198     for (auto *Sym : Syms) {
  568   for (const auto &Dylib : Dylibs) {
  596          JLDItr != JLDEnd; ++JLDItr) {
  606     for (auto *JD : S.JDSearchOrder) {
  608       for (auto *JD2 : S.JDSearchOrder) {
  620        InputFileItr != InputFileEnd; ++InputFileItr) {
  635        AbsDefItr != AbsDefEnd; ++AbsDefItr) {
  665     for (auto *JD : S.JDSearchOrder)
  744   for (auto &CheckFile : CheckFiles) {
  775   for (auto &InputArg : InputArgv)
tools/llvm-link/llvm-link.cpp
  226   for (const auto &Import : Imports) {
  282   for (const auto &File : Files) {
  309         for (auto &S : I.second.SummaryList) {
tools/llvm-lipo/llvm-lipo.cpp
  371     for (auto A : InputArgs.getAllArgValues(LIPO_verify_arch))
tools/llvm-lto/llvm-lto.cpp
  331   for (auto &Filename : InputFilenames) {
  341       for (auto &Summary : Summaries.second.SummaryList) {
  367   for (auto &Filename : InputFilenames) {
  386   for (auto &Filename : InputFilenames) {
  414   for (auto &Filename : InputFilenames) {
  604     for (auto &Filename : InputFilenames) {
  641     for (auto &Filename : InputFilenames) {
  668     for (auto &Filename : InputFilenames) {
  697     for (auto &MemBuffer : InputBuffers)
  701     for (auto &Filename : InputFilenames) {
  730     for (auto &MemBuffer : InputBuffers)
  734     for (auto &Filename : InputFilenames) {
  759     for (auto &Filename : InputFilenames) {
  785     for (auto &Filename : InputFilenames) {
  894     for (auto &Filename : InputFilenames) {
tools/llvm-lto2/llvm-lto2.cpp
  181   for (std::string R : SymbolResolutions) {
  286   for (std::string F : InputFilenames) {
tools/llvm-mc/llvm-mc.cpp
  260   for (auto &I: DefineSymbol) {
  400   for (const auto &Arg : DebugPrefixMap) {
tools/llvm-mca/CodeRegion.cpp
  111   for (UniqueCodeRegion &Region : Regions)
tools/llvm-mca/Views/SchedulerStatistics.cpp
   93   for (BufferUsage &BU : Usage) {
tools/llvm-mca/llvm-mca.cpp
  448   for (const std::unique_ptr<mca::CodeRegion> &Region : Regions) {
tools/llvm-mt/llvm-mt.cpp
  138   for (const auto &File : InputFiles) {
tools/llvm-nm/llvm-nm.cpp
  794   for (const NMSymbol &S : SymbolList) {
 1309           for (const NMSymbol &S : SymbolList)
tools/llvm-objcopy/COFF/COFFObjcopy.cpp
  125     for (Section &Sec : Obj.getMutableSections())
  175   for (const auto &Flag : Config.AddSection) {
tools/llvm-objcopy/COFF/Object.cpp
   29   for (Symbol &Sym : Symbols)
   49   for (Symbol &Sym : Symbols)
   51   for (const Section &Sec : Sections) {
   52     for (const Relocation &R : Sec.Relocs) {
   74   for (Section &S : Sections) {
  126   for (Section &Sec : Sections) {
tools/llvm-objcopy/COFF/Reader.cpp
  163   for (Symbol &Sym : Obj.getMutableSymbols()) {
  177   for (Section &Sec : Obj.getMutableSections()) {
  178     for (Relocation &R : Sec.Relocs) {
tools/llvm-objcopy/COFF/Writer.cpp
   27   for (Section &Sec : Obj.getMutableSections()) {
   28     for (Relocation &R : Sec.Relocs) {
   41   for (Symbol &Sym : Obj.getMutableSymbols()) {
   95   for (auto &S : Obj.getMutableSections()) {
  122   for (auto &S : Obj.getMutableSections()) {
  131   for (auto &S : Obj.getMutableSymbols()) {
  145   for (auto &S : Obj.getMutableSymbols()) {
  285     for (const auto &DD : Obj.DataDirectories) {
  310     for (const auto &R : S.Relocs) {
  335       for (const AuxSymbol &AuxSym : S.AuxData) {
tools/llvm-objcopy/ELF/ELFConfig.cpp
  119   for (StringRef Arg : Config.SymbolsToAdd) {
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  691   for (const auto &Flag : Config.AddSection) {
  709   for (const auto &Flag : Config.DumpSection) {
  721   for (const NewSymbolInfo &SI : Config.ELF->SymbolsToAdd) {
tools/llvm-objcopy/ELF/Object.cpp
  643   for (auto &Sym : Symbols)
  712   for (std::unique_ptr<Symbol> &Sym : Symbols)
  729   for (std::unique_ptr<Symbol> &Sym : Symbols) {
  752     for (std::unique_ptr<Symbol> &Sym : Symbols)
  761   for (const std::unique_ptr<Symbol> &Sym : Symbols) {
  784   for (const std::unique_ptr<Symbol> &Symbol : Sec.Symbols) {
  817   for (const Relocation &R : Relocations) {
  868   for (const auto &Reloc : Relocations) {
  895   for (const Relocation &Reloc : Relocations)
  905   for (const Relocation &Reloc : Relocations)
 1189   for (const IHexRecord &R : Records) {
 1833   for (auto &RemoveSec : make_range(Iter, std::end(Sections))) {
 1834     for (auto &Segment : Segments)
 1844   for (auto &KeepSec : make_range(std::begin(Sections), Iter)) {
 1862     for (const SecPtr &Sec : Sections)
 1899   for (Segment *Seg : Segments) {
 2147     for (Segment *Seg : OrderedSegments)
 2175     for (Segment *Segment : OrderedSegments) {
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
   20   for (const auto &LC : O.LoadCommands) {
   48   for (std::unique_ptr<SymbolEntry> &Sym : O.SymTable.Symbols)
   55   for (auto &Symbol : O.SymTable.Symbols)
   76   for (; Iter != End; ++Iter) {
   84   for (; Iter != End; ++Iter) {
  108   for (auto &LC : O.LoadCommands) {
  143     for (auto &Sec : LC.Sections) {
  205   for (auto &LC : O.LoadCommands)
  206     for (auto &Sec : LC.Sections) {
  261   for (auto &LC : O.LoadCommands) {
tools/llvm-objcopy/MachO/MachOReader.cpp
  206   for (auto &LC : O.LoadCommands)
  207     for (auto &Sec : LC.Sections)
  208       for (auto &Reloc : Sec.Relocations)
tools/llvm-objcopy/MachO/MachOWriter.cpp
  113   for (const auto &LC : O.LoadCommands)
  114     for (const auto &S : LC.Sections) {
  150   for (const auto &LC : O.LoadCommands) {
  160       for (const auto &Sec : LC.Sections)
  170       for (const auto &Sec : LC.Sections)
  230   for (const auto &LC : O.LoadCommands)
  231     for (const auto &Sec : LC.Sections) {
  293        Iter != End; Iter++) {
tools/llvm-objcopy/MachO/Object.cpp
   14   for (LoadCommand &LC : LoadCommands)
tools/llvm-objdump/COFFDump.cpp
  177   for (auto &R : Rels) {
tools/llvm-objdump/MachODump.cpp
  414   if (DTI != Dices.end()) {
 1514     if (Reloc != Relocs.end()) {
 1664       if (Reloc != Relocs.end()) {
tools/llvm-objdump/llvm-objdump.cpp
  451   for (StringRef S : FilterSections) {
  460   for (StringRef S : MissingSections)
  762       while ((RelCur != RelEnd) && (RelCur->getOffset() <= Address.Address)) {
  962     for (auto PltEntry : ElfObj->getPltAddresses()) {
 1189       if (Sec != SectionAddresses.begin()) {
 1218       for (const auto &Symb : Symbols) {
 1391           if (RelCur != RelEnd)
 1448               if (It != SectionAddresses.begin()) {
 1472             if (TargetSym != TargetSectionSymbols->begin()) {
 1489           while (RelCur != RelEnd) {
 1598   for (StringRef Opt : DisassemblerOptions)
 1633   for (std::pair<SectionRef, std::vector<SectionRef>> &P : SecToRelSec) {
 1637     for (SectionRef Section : P.second) {
 1673   for (const SectionRef &Section : DynRelSec)
tools/llvm-pdbutil/BytesOutputStyle.cpp
   67   for (auto &Str : opts::bytes::DumpStreamData) {
tools/llvm-pdbutil/DumpOutputStyle.cpp
  339   for (const auto &K : Stats.getStatsSortedBySize()) {
  718   for (const auto &K : TypeStats.getStatsSortedBySize()) {
  872   for (const auto &Stat : UdtTargetStats.getStatsSortedBySize()) {
  898   for (const auto &Stat : NamespacedStatsSorted) {
 1191       for (uint32_t I : SortedIDs) {
 1707     for (StringRef Name : opts::dump::DumpGlobalNames) {
 1718       for (ResultEntryType Result : Results) {
tools/llvm-pdbutil/LinePrinter.h
   77     for (; Begin != End; ++Begin)
tools/llvm-pdbutil/MinimalSymbolDumper.cpp
  472   for (const auto &Entry : EnvBlock.Fields) {
  843   for (const auto &I : Caller.Indices) {
tools/llvm-pdbutil/MinimalTypeDumper.cpp
  478   for (auto &M : Overloads.Methods)
tools/llvm-pdbutil/PrettyTypeDumper.cpp
  247         for (auto &Class : Filtered)
tools/llvm-pdbutil/llvm-pdbutil.cpp
  779     for (auto S : *YamlObj.StringTable)
  795   for (auto F : Info.Features)
  807   for (const auto &MI : Dbi.ModInfos) {
  811     for (auto S : MI.SourceFiles)
  815       for (auto Symbol : ModiStream.Symbols) {
  827     for (auto &SS : CodeViewSubsections) {
  836   for (const auto &R : Tpi.Records) {
  844   for (const auto &R : Ipi.Records) {
  891   if (llvm::find(SymTypes, Search) != SymTypes.end())
  893   if (llvm::find(SymTypes, SymLevel::All) != SymTypes.end())
 1042   for (PDB_SymType ST : SymTypes) {
 1110     for (StringRef Name : opts::pretty::WithName) {
 1239           for (const auto &Func : Funcs) {
 1257           for (const auto &Var : Datas)
 1299   for (const auto &Path : opts::merge::InputFilenames) {
 1349   for (uint64_t Off : opts::explain::Offsets) {
tools/llvm-profdata/llvm-profdata.cpp
  280   for (auto &ErrorPair : Src->Errors)
  356     for (auto &ErrorPair : WC->Errors) {
  660   for (StringRef Filename : InputFilenames)
  662   for (StringRef WeightedFilename : WeightedInputFilenames)
  995     for (auto Entry : PS->getDetailedSummary()) {
tools/llvm-rc/ResourceFileWriter.cpp
  479   for (auto &String : Res->Table) {
  692   for (auto &Acc : Res->Accelerators) {
  853   for (auto Item : Res->ItemEntries) {
 1161   for (auto &Ctl : Res->Controls)
 1204   for (auto &Def : List.Definitions) {
 1279   for (auto Key : StringTableData.BundleList) {
 1303   for (auto &Elem : Res->Contents) {
 1348   for (const std::unique_ptr<VersionInfoStmt> &Item : Blk.Stmts) {
 1386   for (auto &Item : Val.Values)
 1531   for (StringRef ForceInclude : Params.Include) {
tools/llvm-rc/ResourceScriptStmt.cpp
   27   for (const auto &Stmt : Statements) {
   49   for (const auto &Acc : Accelerators) {
   90   for (auto &Item : Definitions)
  121   for (const auto &String : Table)
  166   for (auto &Ctl : Controls)
  173   for (auto &Stmt : Stmts)
  252   for (auto &Item : Contents)
tools/llvm-rc/ResourceScriptStmt.h
  276     for (auto &StmtPtr : Statements)
tools/llvm-rc/llvm-rc.cpp
  130     for (const RCToken &Token : Tokens) {
tools/llvm-readobj/COFFDumper.cpp
  263   for (const auto &Relocation : Relocations) {
  334   for (const auto &Relocation : Relocations) {
 1615   for (const auto &L : Libs) {
tools/llvm-readobj/ELFDumper.cpp
 2186   for (const auto &L : Libs)
 2879     for (const GroupMember &GM : G.Members)
 2889   for (const GroupSection &G : V) {
 2895     for (const GroupMember &GM : G.Members) {
 3050         for (const auto &R : RelrRelas)
 3055       for (const auto &R : AndroidRelas)
 3737     for (const Elf_Rela &Rela : RelrRelas) {
 4567   for (CoreFileMapping &Mapping : Ret.Mappings) {
 4589   for (const CoreFileMapping &Mapping : Note.Mappings) {
 4919   for (const auto &StackSizeMapEntry : StackSizeRelocMap) {
 5210   for (const GroupSection &G : V) {
 5220     for (const GroupMember &GM : G.Members) {
 5292       for (const Elf_Rela &R : RelrRelas)
 5299     for (const Elf_Rela &R :
 5546     for (const Elf_Rela &Rela : RelrRelas)
 5787   for (uint64_t Sym : *V) {
 5831   for (const CoreFileMapping &Mapping : Note.Mappings) {
tools/llvm-readobj/MachODumper.cpp
  718   for (const auto &L : Libs) {
tools/llvm-readobj/ObjDumper.cpp
   86   for (object::SectionRef Section :
  121   for (object::SectionRef Section :
tools/llvm-readobj/WasmDumper.cpp
  180           for (const wasm::WasmInitFunc &F : LinkingData.InitFunctions)
tools/llvm-readobj/llvm-readobj.cpp
  711   for (const std::string &I : opts::InputFilenames)
tools/llvm-reduce/TestRunner.cpp
   23   for (const auto &Arg : TestArgs)
tools/llvm-reduce/deltas/Delta.cpp
   65   for (auto &C : Chunks) {
   78     for (auto C : Chunks) {
  122       for (auto C : Chunks)
tools/llvm-reduce/deltas/ReduceArguments.cpp
   61   for (auto *F : Funcs) {
   74     for (auto *I : InstToDelete) {
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
   57     for (auto Dest : ChunkSucessors)
  118   for (auto &BB : BBsToDelete) {
tools/llvm-reduce/deltas/ReduceFunctions.cpp
   51   for (auto *C : CallsToRemove)
   54   for (auto *F : FuncsToRemove)
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
   47   for (auto *Inst : InstToRemove) {
   52   for (auto *GV : ToRemove)
tools/llvm-reduce/deltas/ReduceInstructions.cpp
   44   for (auto &I : InstToDelete)
tools/llvm-reduce/deltas/ReduceMetadata.cpp
   96   for (auto *NN : NamedNodesToDelete) {
tools/llvm-rtdyld/llvm-rtdyld.cpp
  348   for (const std::string &Dylib : Dylibs) {
  368   for (auto &File : InputFileList) {
  421     for (const auto &P : SymAddr) {
  509     for (auto &File : InputFileList) {
  570   for (auto &Arg : InputArgv)
  583   for (const auto& CheckerFileName : CheckFiles) {
  600   for (StringRef Mapping : SpecificSectionMappings) {
  707   for (const auto &Mapping : DummySymbolMappings) {
  899   for (auto &InputFile : InputFileList) {
tools/llvm-size/llvm-size.cpp
  874   for (StringRef Arch : ArchFlags) {
tools/llvm-stress/llvm-stress.cpp
  701     for (auto &Mod : Modifiers)
  716   for (auto *Instr : BoolInst) {
tools/llvm-strings/llvm-strings.cpp
  109   for (const auto &File : InputFileNames) {
tools/llvm-symbolizer/llvm-symbolizer.cpp
  244       for (DILocal Local : *ResOrErr)
  303   for (const auto &hint : ClDsymHint) {
  326     for (StringRef Address : ClInputAddresses)
tools/llvm-undname/llvm-undname.cpp
  119     for (StringRef S : Symbols) {
tools/llvm-xray/xray-account.cpp
  210     for (auto &E : make_range(I, ThreadStack.end())) {
  330   for (const auto &R : Results)
  443   for (const auto &Record : T) {
tools/llvm-xray/xray-converter.cpp
   89   for (const auto &R : Records) {
  124   for (const auto &R : Records) {
  284   for (const auto &R : Records) {
tools/llvm-xray/xray-extract.cpp
   59   for (const auto &Sled : Sleds) {
tools/llvm-xray/xray-fdr-dump.cpp
   83       for (auto &Ptr : Records)
   95   for (auto &Ptr : Records)
  106     for (auto &B : Blocks) {
  107       for (auto *R : B.Records) {
tools/llvm-xray/xray-graph.cpp
  446   for (const auto &Record : Trace) {
tools/llvm-xray/xray-stacks.cpp
  726   for (const auto &Filename : StackInputs) {
  741     for (const auto &Record : T) {
tools/obj2yaml/dwarf2yaml.cpp
   30       for (auto AbbrvDecl : AbbrvDeclSet.second) {
   72     for (auto Descriptor : Set.descriptors()) {
  125     for (auto DIE : CU->dies()) {
tools/obj2yaml/elf2yaml.cpp
  753   for (uint32_t &V : *S->Bucket)
  757   for (uint32_t &V : *S->Chain)
tools/obj2yaml/macho2yaml.cpp
  449   for (auto &Child : Entry.Children) {
  455   for (auto &Child : Entry.Children) {
tools/obj2yaml/wasm2yaml.cpp
  107     for (const wasm::WasmSymbolInfo &Symbol : Obj.linkingData().SymbolTable) {
  129     for (const wasm::WasmInitFunc &Func : Obj.linkingData().InitFunctions) {
  139     for (auto &E : Info.Languages) {
  145     for (auto &E : Info.Tools) {
  151     for (auto &E : Info.SDKs) {
  314         for (auto &Func : Segment.Functions) {
  327         for (auto &Local : Func.Locals) {
  363     for (const wasm::WasmRelocation &Reloc : WasmSec.Relocations) {
tools/opt/Debugify.cpp
  409   for (const auto &Entry : Map) {
tools/opt/NewPMDriver.cpp
  268   for (auto &PluginFN : PassPlugins) {
tools/opt/PassPrinters.cpp
   82     for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I) {
tools/opt/PrintSCC.cpp
   80            E = nextSCC.end(); I != E; ++I)
  101            E = nextSCC.end(); I != E; ++I)
tools/polly/include/polly/ScopInfo.h
 1377       return std::find(Instructions.begin(), Instructions.end(), Inst) !=
 2829     if (MapIt != RegionToScopMap.end())
tools/polly/include/polly/ScopPass.h
  218     for (auto &S : SI)
tools/polly/lib/Analysis/DependenceInfo.cpp
  931   for (auto &It : SI) {
tools/polly/lib/Analysis/PolyhedralInfo.cpp
   61   for (auto *TopLevelLoop : LI) {
  102   for (auto &It : *SI) {
tools/polly/lib/Analysis/ScopBuilder.cpp
  809   for (LoadInst *LInst : RIL) {
 1548     for (auto *Param : DetectedParams) {
 1648   for (auto *Subscript : Subscripts) {
 1654     for (LoadInst *LInst : AccessILS)
 1664   for (auto V : Sizes)
 1741   for (LoadInst *LInst : AccessILS)
 1861   for (const Loop *L : Loops)
 1875   for (LoadInst *LInst : AccessILS)
 2156   for (auto &Instructions : LeaderToInstList) {
 2244     for (Instruction *Inst : Stmt->getInstructions())
 2353   for (auto Array : scop->arrays()) {
 2430     for (auto &Access : scop->access_functions())
 2744   for (LoadInst *LI : RIL) {
 2997       for (const SCEV *Parameter : scop->parameters()) {
tools/polly/lib/Analysis/ScopDetection.cpp
  314   for (auto RegexStr : RegexList) {
  458   for (LoadInst *Load : RequiredILS) {
  469     for (auto NonAffineRegion : Context.NonAffineSubRegionSet) {
  494   for (auto *V : Values) {
  855   for (const auto &Pair : Context.Accesses[BasePointer]) {
  944     for (const auto &Pair : Context.Accesses[BasePointer]) {
  972   for (const auto &Pair : Context.Accesses[BasePointer]) {
 1041   for (auto &Pair : Context.NonAffineAccesses) {
 1098   for (const Loop *L : Loops)
 1350   for (auto &SubLoop : *L) {
 1377   for (auto &SubLoop : SubLoops)
 1453   for (auto &SubRegion : R) {
 1485   for (auto &SubRegion : R)
 1496   for (auto &SubRegion : R)
 1499   for (Region *CurrentRegion : ToExpand) {
 1690   for (const Region *R : *this) {
 1847   for (const Region *R : ValidRegions)
 1874   for (const Region *R : Result->ValidRegions)
 1912   for (const Region *R : SD.ValidRegions)
tools/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
  633     if (PI != PE)
tools/polly/lib/Analysis/ScopGraphPrinter.cpp
  128     for (const auto &C : String) {
  176     for (const auto &SubRegion : *R)
tools/polly/lib/Analysis/ScopInfo.cpp
 1261   for (Instruction *Inst : Instructions)
 1528   for (const SCEV *Parameter : NewParameters) {
 1557   for (auto *Parameter : Parameters) {
 1565   for (auto Array : Arrays) {
 1590   for (isl::id Id : OutermostSizeIds) {
 1713   for (Instruction *Inst : Stmt.getInstructions())
 1732     for (Instruction *Inst : Stmt.getInstructions())
 1847   for (auto size : Sizes)
 1916   for (const SCEV *Parameter : Parameters) {
 1921   for (isl::id Id : FortranIDs)
 2144   for (const SCEV *Parameter : Parameters)
 2201   for (auto &Array : arrays())
 2208   for (auto &Array : arrays())
 2375   for (Instruction *Inst : Instructions) {
 2388   for (Instruction *Inst : Instructions) {
 2477   for (auto &SAI : arrays()) {
 2730   for (auto &It : SD) {
 2820   for (auto &It : *Result) {
tools/polly/lib/Analysis/ScopPass.cpp
   76   for (auto &Pass : Passes) {
  103     for (auto &S : *SI)
  117   for (auto &S : *SI) {
tools/polly/lib/CodeGen/BlockGenerators.cpp
  462     for (Instruction *Inst : Stmt.getInstructions())
  706     for (Instruction *Inst : Stmt.insts()) {
  817   for (auto &Array : S.arrays()) {
  871   for (const auto &EscapeMapping : EscapeMap) {
  906   for (auto &Array : S.arrays()) {
  942   for (auto &SAI : S.arrays()) {
  991   for (const auto &EscapeMapping : EscapeMap) {
tools/polly/lib/CodeGen/IRBuilder.cpp
   65   for (ScopArrayInfo *Array : S.arrays())
   85     for (const auto &AliasScopePair : AliasScopeMap) {
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  315   for (const auto &I : IDToValue)
  319   for (const auto &I : OutsideLoopIterations)
  326   for (const SCEV *Expr : SCEVs) {
  355   for (Value *V : Values) {
  364   for (const auto &I : IDToValue) {
  613   for (BasicBlock *BB : Nodes)
  674   for (const Loop *L : Loops) {
  725   for (const Loop *L : Loops)
  930   for (Value *IV : IVS) {
 1047     for (auto *Val : Values) {
 1111   for (const SCEV *Param : S.parameters()) {
 1163   for (ScopArrayInfo *Array : S.arrays()) {
 1364     for (auto *Val : Values) {
 1445   for (auto &SAI : S.arrays()) {
tools/polly/lib/CodeGen/LoopGenerators.cpp
  221   for (Value *V : Values)
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
   70   for (auto GetID : BlockIDs) {
   86   for (auto GetId : ThreadIDs) {
  194   for (auto Val : ToPrint) {
tools/polly/lib/Exchange/JSONExporter.cpp
  102   for (auto &SAI : S.arrays()) {
  638   for (auto &SAI : S.arrays()) {
  771        I != E; I++)
tools/polly/lib/Support/ISLTools.cpp
  733   for (const isl::basic_set &BSet : BSets) {
tools/polly/lib/Support/RegisterPasses.cpp
  303   for (auto &Filename : DumpBeforeFile)
  395   for (auto &Filename : DumpAfterFile)
tools/polly/lib/Support/ScopHelper.cpp
  734                    CF->getName()) != DebugFunctions.end();
  753   for (Instruction *Inst : Stmt->getInstructions())
tools/polly/lib/Support/VirtualInstruction.cpp
  214   for (Instruction *Inst : Stmt->getInstructions())
tools/sancov/sancov.cpp
  303   for (const auto &Point : Points) {
  312     for (auto PointPtr : P.second) {
  325           for (const CoveragePoint *Point : P.second) {
  912   for (const auto &Point : Points) {
  924   for (const auto &Point : Coverage.Points) {
  941   for (const auto &Point : Coverage.Points) {
  958   for (const auto &Point : Coverage.Points) {
 1007   for (const auto &FileName : FileNames) {
 1034     for (const auto &CovPoint : Coverage.Points) {
 1059     for (const auto &FileName : FileNames) {
 1118       for (const std::string &CoverageFile : Pair.second) {
 1159     for (const std::string &ObjFile : ClInputFiles) {
unittests/ADT/BitVectorTest.cpp
  821   for (auto &R : setRanges)
unittests/ADT/MapVectorTest.cpp
  138   for (auto P : make_range(MV.begin(), MV.end())) {
unittests/ADT/StatisticTest.cpp
   26   for (const auto &S : Range) {
unittests/Analysis/AliasAnalysisTest.cpp
   55     for (Value *P1 : Pointers)
   56       for (Value *P2 : Pointers)
unittests/Analysis/ScalarEvolutionTest.cpp
  610     for (const auto &LoopSet : LoopSets)
  611       for (auto *S : Exprs) {
unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp
  212   for (uint32_t I : IndicesToVisit) {
  241   for (uint32_t I : IndicesToVisit) {
  270   for (uint32_t I : IndicesToVisit) {
  301   for (uint32_t I : IndicesToVisit) {
  331   for (uint32_t I : IndicesToVisit) {
unittests/DebugInfo/CodeView/TypeIndexDiscoveryTest.cpp
   49       for (const CVSymbol &S : Symbols)
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
 1783   for(auto it = Abbrevs->begin(); it != Abbrevs->end(); ++it) {
unittests/DebugInfo/DWARF/DwarfGenerator.cpp
  316   for (auto Include : Prologue.IncludeDirectories) {
  322   for (auto File : Prologue.FileNames) {
  340   for (auto Include : Prologue.IncludeDirectories) {
  349   for (auto File : Prologue.FileNames) {
  364   for (auto Length : Prologue.StandardOpcodeLengths) {
  484   for (auto &CU : CompileUnits) {
  502   for (auto &CU : CompileUnits) {
  521   for (auto &LT : LineTables)
unittests/DebugInfo/MSF/MSFBuilderTest.cpp
   96   for (auto B : Blocks) {
unittests/DebugInfo/PDB/HashTableTest.cpp
  179     for (StringRef S : Streams)
unittests/FuzzMutate/RandomIRBuilderTest.cpp
  118   for (auto *T: Types) {
unittests/FuzzMutate/ReservoirSamplerTest.cpp
   51     for (int Ys : Counts)
unittests/IR/CFGBuilder.cpp
  122   for (const auto &A : NewArcs) {
  155   for (const auto &U : Updates) {
unittests/IR/DominatorTreeBatchUpdatesTest.cpp
   39   for (const auto &CFGU : In)
unittests/IR/PassBuilderCallbacksTest.cpp
  955       for (auto &E : InnerPipeline) {
unittests/ProfileData/CoverageMappingTest.cpp
  234       for (const auto &OF : OutputFunctions) {
  838   for (const auto &Group : InstantiationGroups)
unittests/Support/AlignmentTest.cpp
   63   for (uint64_t Value : getValidAlignments()) {
   79   for (uint64_t Value : getValidAlignments()) {
  130   for (uint64_t Value : getValidAlignments()) {
  166   for (uint64_t Value : getValidAlignments()) {
  343   for (uint64_t Value : getNonPowerOfTwo()) {
  351   for (uint64_t Value : getValidAlignmentsForDeathTest()) {
  362   for (uint64_t Value : getValidAlignmentsForDeathTest()) {
  374   for (uint64_t Value : getValidAlignmentsForDeathTest()) {
unittests/Support/BinaryStreamTest.cpp
  200   for (auto &Stream : Streams) {
  219   for (const auto &Stream : Streams) {
  363   for (auto &Stream : Streams) {
  422   for (auto &Stream : Streams) {
  444   for (auto &Stream : Streams) {
  490   for (auto &Stream : Streams) {
  505   for (auto &Stream : Streams) {
  514   for (auto &Stream : Streams) {
  535   for (auto &Stream : Streams) {
  573   for (auto &Stream : Streams) {
  595   for (auto &Stream : Streams) {
  597     for (auto Value : Enums)
  629   for (auto &Stream : Streams) {
  632     for (const auto &Value : TestValues)
  666   for (auto &Stream : Streams) {
  669     for (const auto &Value : TestValues)
  704   for (auto &Stream : Streams) {
  726   for (auto &Stream : Streams) {
  766   for (auto &Stream : Streams) {
  793   for (auto &Stream : Streams) {
  819   for (auto &Stream : Streams) {
  883   for (const auto &F : Foos) {
  897   for (const auto &F : Foos) {
unittests/Support/ItaniumManglingCanonicalizerTest.cpp
  285     for (const auto &Equiv : Testcase.Equivalences) {
  297       for (const auto &Class : Testcase.Classes)
  301     for (const auto &Class : Testcase.Classes) {
  303       for (llvm::StringRef Str : Class) {
unittests/Support/JSONTest.cpp
  207   for (auto Invalid : std::vector<std::pair<const char *, const char *>>{
  257   for (Value &E : *A) {
unittests/Support/Path.cpp
  729   for (fs::TempFile &T : TempFiles)
 1139   for (auto &T : Tests) {
unittests/Support/SpecialCaseListTest.cpp
  187   for (auto &Path : Files)
unittests/Support/TargetParserTest.cpp
  598     EXPECT_TRUE(Found != std::end(Features));
  605     EXPECT_TRUE(Found != std::end(Features));
 1090   for (auto Ext : Extensions)
 1102   EXPECT_TRUE(std::find(B, E, "+crc") != E);
 1103   EXPECT_TRUE(std::find(B, E, "+crypto") != E);
 1104   EXPECT_TRUE(std::find(B, E, "+fp-armv8") != E);
 1105   EXPECT_TRUE(std::find(B, E, "+neon") != E);
 1106   EXPECT_TRUE(std::find(B, E, "+fullfp16") != E);
 1107   EXPECT_TRUE(std::find(B, E, "+spe") != E);
 1108   EXPECT_TRUE(std::find(B, E, "+ras") != E);
 1109   EXPECT_TRUE(std::find(B, E, "+lse") != E);
 1110   EXPECT_TRUE(std::find(B, E, "+rdm") != E);
 1111   EXPECT_TRUE(std::find(B, E, "+dotprod") != E);
 1112   EXPECT_TRUE(std::find(B, E, "+rcpc") != E);
 1113   EXPECT_TRUE(std::find(B, E, "+fp16fml") != E);
 1114   EXPECT_TRUE(std::find(B, E, "+sve") != E);
 1115   EXPECT_TRUE(std::find(B, E, "+sve2") != E);
 1116   EXPECT_TRUE(std::find(B, E, "+sve2-aes") != E);
 1117   EXPECT_TRUE(std::find(B, E, "+sve2-sm4") != E);
 1118   EXPECT_TRUE(std::find(B, E, "+sve2-sha3") != E);
 1119   EXPECT_TRUE(std::find(B, E, "+sve2-bitperm") != E);
unittests/Support/TrigramIndexTest.cpp
   26     for (auto &Rule : Rules)
unittests/Support/VirtualFileSystemTest.cpp
  622   for (const std::string &Name : Contents) {
  697     for (const std::string &Name : Contents) {
unittests/Transforms/IPO/LowerTypeTests.cpp
   55     for (auto Offset : T.Offsets)
   67     for (auto Offset : T.Offsets)
   72       if (I != T.Offsets.end() && *I == NonOffset) {
   98     for (auto &&F : T.Fragments)
  102     for (auto &&F : GLB.Fragments)
  144     for (auto &&A : T.Allocs) {
unittests/XRay/FDRBlockIndexerTest.cpp
   59     for (auto &R : B.get())
unittests/XRay/FDRBlockVerifierTest.cpp
   55     for (auto &R : B.get())
   63     for (auto &B : Blocks) {
   64       for (auto *R : B.Records)
   82   for (auto &R : Block)
   96   for (auto &R : Block)
  111   for (auto &R : Block)
unittests/XRay/FDRProducerConsumerTest.cpp
  153   for (auto &P : Records)
  194   for (auto &P : Records)
unittests/XRay/FDRRecordsTest.cpp
   62     for (auto &R : B.get())
   86   for (auto &R : Block)
  130     for (auto &R : B.get())
  139     for (auto &B : Blocks) {
  140       for (auto *R : B.Records)
  154     for (auto &B : Blocks) {
  155       for (auto *R : B.Records)
unittests/XRay/FDRTraceWriterTest.cpp
   53   for (auto &P : L)
   98   for (auto &P : L)
  150   for (auto &P : L)
unittests/tools/llvm-cfi-verify/GraphBuilder.cpp
   68   for (auto It = std::begin(C); It != LastElemIt; ++It) {
   88   for (const auto &Node : Result.ConditionalBranchNodes) {
  101   for (const auto &Orphan : Result.OrphanedNodes) {
unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
  171   for (const auto &CT : CodeTemplates) {
  191   for (const auto &CT : CodeTemplates) {
  262   for (const auto &IT : CT.Instructions) {
usr/include/c++/7.4.0/bits/basic_string.h
  367 	  for (; __k1 != __k2; ++__k1, (void)++__p)
usr/include/c++/7.4.0/bits/basic_string.tcc
  211 	if (__gnu_cxx::__is_null_pointer(__beg) && __beg != __end)
usr/include/c++/7.4.0/bits/hashtable.h
  976 	for (; __f != __l; ++__f)
usr/include/c++/7.4.0/bits/random.tcc
 2750       for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit)
 2965       for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit)
 3181       for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit)
 3241       for (_InputIterator __iter = __begin; __iter != __end; ++__iter)
usr/include/c++/7.4.0/bits/regex.tcc
   60       for (auto& __it : __res)
   86 	  for (auto& __it : __res)
  104 	      __pre.matched = (__pre.first != __pre.second);
  107 	      __suf.matched = (__suf.first != __suf.second);
  113 	  for (auto& __it : __res)
usr/include/c++/7.4.0/bits/regex_automaton.tcc
  165       for (auto __it : this->_M_paren_stack)
  180       for (auto& __it : *this)
usr/include/c++/7.4.0/bits/regex_compiler.tcc
  621 	for (auto& __it : _M_range_set)
  628 	    != _M_equiv_set.end())
  630 	for (auto& __it : _M_neg_class_set)
usr/include/c++/7.4.0/bits/regex_executor.tcc
   47       while (_M_begin != _M_end)
  127 	  for (auto& __task : __old_queue)
  179       if (__rep_count.second == 0 || __rep_count.first != _M_current)
  355 	   __last != _M_end && __tmp != __submatch.second;
  355 	   __last != _M_end && __tmp != __submatch.second;
  362 	  if (__last != _M_current)
  504       if (_M_current != _M_begin
  512         _M_current != _M_end && _M_is_word(*_M_current);
usr/include/c++/7.4.0/bits/stl_algo.h
  748       for (; __first != __last; ++__first)
  868       for (; __first != __last; ++__first)
  951       while (++__next != __last)
  973       while (++__first != __last)
 1060       while (++__next != __last)
 1569 	  for (; __first != __last; ++__first)
 1845       for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
 1866       for (_RandomAccessIterator __i = __first; __i != __last; ++__i)
 1966       if (__first != __last)
 2260       return __i != __last && !(__val < *__i);
 2295       return __i != __last && !bool(__comp(__val, *__i));
 2308       while (__first1 != __last1 && __first2 != __last2)
 2643       while (__first1 != __last1 && __first2 != __last2)
 2643       while (__first1 != __last1 && __first2 != __last2)
 2792       while (__first1 != __last1 && __first2 != __last2)
 2792       while (__first1 != __last1 && __first2 != __last2)
 3193       for (; __first != __last; ++__first)
 3236       for (++__next; __next != __last; __first = __next, (void)++__next)
 3355       while (__first != __last)
 3837 	while (__i != __last)
 3853       for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
 3883       for (; __first != __last; ++__first)
 3966       for (; __first1 != __last1; ++__first1)
 3967 	for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter)
 4305       for (; __first != __last; ++__first, (void)++__result)
 4376       for (; __first != __last; ++__first)
 4408       for (; __first != __last; ++__first)
 4437       for (; __first != __last; ++__first)
 4878       while (__first1 != __last1 && __first2 != __last2)
 4878       while (__first1 != __last1 && __first2 != __last2)
 5089       while (__first1 != __last1 && __first2 != __last2)
 5089       while (__first1 != __last1 && __first2 != __last2)
 5218       while (__first1 != __last1 && __first2 != __last2)
 5218       while (__first1 != __last1 && __first2 != __last2)
 5459       while (__first1 != __last1 && __first2 != __last2)
 5459       while (__first1 != __last1 && __first2 != __last2)
 5588       while (++__first != __last)
 5652       while (++__first != __last)
usr/include/c++/7.4.0/bits/stl_algobase.h
  176       for (; __first1 != __last1; ++__first1, (void)++__first2)
  880       for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2);
  888       return __first1 == __last1 && __first2 != __last2;
 1081       for (; __first1 != __last1; ++__first1, (void)++__first2)
usr/include/c++/7.4.0/bits/stl_construct.h
  107 	  for (; __first != __last; ++__first)
usr/include/c++/7.4.0/bits/stl_list.h
 1728 	  for (; __first != __last; ++__first)
usr/include/c++/7.4.0/bits/stl_numeric.h
   91       for (; __first != __last; ++__first)
  126       for (; __first != __last; ++__first)
  153       for (; __first != __last; ++__first)
  182       for (; __first1 != __last1; ++__first1, (void)++__first2)
usr/include/c++/7.4.0/bits/stl_tree.h
 2451 	for (; __first != __last; ++__first)
usr/include/c++/7.4.0/bits/stl_uninitialized.h
   82 	      for (; __first != __last; ++__first, (void)++__cur)
usr/include/c++/7.4.0/bits/vector.tcc
  156       if (__position + 1 != end())
  168       if (__first != __last)
  170 	  if (__last != end())
  634 	if (__first != __last)
utils/FileCheck/FileCheck.cpp
  299   for (auto DiagItr = Diags.begin(), DiagEnd = Diags.end(); DiagItr != DiagEnd;
  310     if (DiagNext != DiagEnd && DiagItr->CheckTy == DiagNext->CheckTy &&
  428        InputFilePtr != InputFileEnd || AnnotationItr != AnnotationEnd;
  441       for (auto I = AnnotationItr; I != AnnotationEnd && I->InputLine == Line;
  459         for (auto M : FoundAndExpectedMatches) {
  480     while (AnnotationItr != AnnotationEnd &&
  529   for (auto Prefix : CheckPrefixes)
  532   for (auto CheckNot : ImplicitCheckNot)
  536   for (auto G : GlobalDefines) {
utils/TableGen/AsmMatcherEmitter.cpp
  282       for (auto *Super : CI->SuperClasses)
  941   for (Record *Predicate : TheDef->getValueAsListOfDefs("Predicates"))
 1351   for (Record *Rec : AsmOperands) {
 1357   for (Record *Rec : AsmOperands) {
 1446   for (const auto &MI : Matchables) {
 1570   for (auto &II : Matchables) {
 1644   for (Record *Rec : AllTokenAliases) {
 1764   for (const CGIOperandList::OperandInfo &OpInfo : ResultInst->Operands) {
 1968     for (const auto &MI : Infos) {
 2038   for (auto &II : Infos) {
 2554       for (StringRef SC : SuperClasses)
 2629     for (auto AltName : AltNames) {
 2727   for (Record *R : Aliases) {
 2835   for (const OperandMatchEntry &OMI : Info.OperandMatchInfo) {
 2876   for (const OperandMatchEntry &OMI : Info.OperandMatchInfo) {
 3120   for (const auto &Feature : FeatureBitset)
 3153       for (const auto &MI : Info.Matchables)
 3160     for (auto I = Info.Matchables.begin(), E = Info.Matchables.end(); I != E;
 3162       for (auto J = std::next(I); J != E; ++J) {
 3321   for (const auto &MI : Info.Matchables) {
 3336   for (const auto &MI : Info.Matchables) {
 3364   for (const auto &FeatureBitset : FeatureBitsets) {
 3372   for (const auto &FeatureBitset : FeatureBitsets) {
 3376     for (const auto &Feature : FeatureBitset) {
 3435     for (const auto &MI : Info.Matchables) {
utils/TableGen/AsmWriterEmitter.cpp
  126   for (const AsmWriterInst &AWI : SimilarInsts)
  143       for (const AsmWriterInst &AWI : SimilarInsts) {
  180     if (I != UniqueOperandCommands.end()) {
  295   for (AsmWriterInst &AWI : Instructions) {
  308   for (AsmWriterInst &AWI : Instructions) {
  361       for (unsigned Idx : InstIdxs[i]) {
  575     for (const Record *R : AltNameIndices)
  583     for (const Record *R : AltNameIndices) {
  676            I = Conds.begin(), E = Conds.end(); I != E; ++I) {
  677       if (I != Conds.begin()) {
  727     for (const auto &str : Conds)
  781   for (Record *R : AllInstAliases) {
  832       for (auto &ResultInstOpnd : CGA.ResultInst->Operands)
  953       for (auto I = ReqFeatures.cbegin(); I != ReqFeatures.cend(); I++) {
  998     for (auto &LHS : IAPs) {
 1000       for (const auto &RHS : IAPs) {
 1015     for (IAPrinter *IAP : UniqueIAPs) {
utils/TableGen/Attributes.cpp
   47   for (auto A : Attrs)
   63   for (auto A : Attrs) {
  114   for (auto *Rule : CompatRules) {
  128   for (auto *Rule : MergeRules) {
  141   for (const auto *R : Records) {
  154   for (const auto *R : Records) {
utils/TableGen/CTagsEmitter.cpp
   78   for (const Tag &T : Tags)
utils/TableGen/CallingConvEmitter.cpp
   41   for (Record *CC : CCs) {
   59   for (Record *CC : CCs) {
utils/TableGen/CodeEmitterGen.cpp
  336   for (const auto &Feature : FeatureBitset)
  465         IC != EC; ++IC) {
  553     for (Record *Predicate : Inst->TheDef->getValueAsListOfDefs("Predicates")) {
  581   for (const auto &FeatureBitset : FeatureBitsets) {
  589   for (const auto &FeatureBitset : FeatureBitsets) {
  593     for (const auto &Feature : FeatureBitset) {
  615     for (Record *Predicate : Inst->TheDef->getValueAsListOfDefs("Predicates")) {
utils/TableGen/CodeGenDAGPatterns.cpp
   95     if (ASI != AddrSpaces.end())
  478   for (unsigned M : Modes) {
  520   for (unsigned M : Modes) {
  567   for (unsigned M : union_modes(Vec, Elem)) {
  650   for (unsigned M : union_modes(Vec, Sub)) {
  690   for (unsigned M : union_modes(V, W)) {
  724   for (unsigned M : union_modes(A, B)) {
 1399   for (const Predicate &P : Predicates) {
 1660   for (const TypeSetByHwMode &S : Types)
 1663   for (const TreePatternNodePtr &C : Children)
 1670   for (const TypeSetByHwMode &S : Types)
 1673   for (const TreePatternNodePtr &C : Children)
 1680   for (TypeSetByHwMode &S : Types) {
 1686   for (const TreePatternNodePtr &C : Children)
 1708   for (Record *R : ConstraintList)
 1721   for (const SDTypeConstraint &Constraint : TypeConstraints) {
 1762       for (auto T : PFRec->getTrees())
 1837   for (const TreePredicateCall &Pred : PredicateCalls) {
 1848   for (const ScopedName &Name : NamesAsPredicateArg)
 1984       for (auto NewChild : ChildAlternatives[i])
 2059   for (auto Alternative : Frag->getTrees()) {
 2076     for (const TreePredicateCall &Pred : getPredicateCalls())
 2686   for (TreePatternNodePtr &Tree : Trees)
 2923     for (TreePatternNodePtr &Tree : Trees) {
 2982   for (const TreePatternNodePtr &Tree : Trees)
 2999   for (const TreePatternNodePtr &Tree : Trees) {
 3106   for (Record *Frag : Fragments) {
 3161       for (auto T : P->getTrees())
 3167   for (Record *Frag : Fragments) {
 3785   for (Record *Instr : Instrs) {
 3926   for (const PatternToMatch &PTM : ptms()) {
 3986   for (ptm_iterator I = ptm_begin(), E = ptm_end(); I != E; ++I) {
 4128     for (auto T : Pattern.getTrees())
 4182     for (auto T : Pattern.getTrees())
 4194   for (Record *CurPattern : Patterns) {
 4227   for (const TypeSetByHwMode &VTS : N->getExtTypes())
 4257   for (PatternToMatch &P : Copy) {
 4360   for (const auto &Variants : ChildVariants)
 4372       for (unsigned Idx : Idxs) {
 4682       for (auto &P : MatchedPredicates)
utils/TableGen/CodeGenHwModes.cpp
   49   for (const PairType &P : Items)
   58   for (auto I = MRs.begin(), E = MRs.end(); I != E; ++I) {
   65   for (Record *R : MRs) {
   72   for (Record *R : MSs) {
   96   for (const HwMode &M : Modes) {
utils/TableGen/CodeGenInstruction.cpp
  142   for (OperandInfo &OpInfo : OperandList)
  310   for (const CGIOperandList::OperandInfo &Op : Ops) {
utils/TableGen/CodeGenMapTable.cpp
  241   for (Record *CurInstr : InstrDefs) {
  294   for (Record *CurKeyInstr : KeyInstrVec) {
  348         for (Init *Value : KeyValue) {
  516   for (Record *CurMap : InstrMapVec) {
  592   for (Record *CurMap : InstrMapVec) {
utils/TableGen/CodeGenRegisters.cpp
   99     for (Record *Part : Parts)
  192   for (Record *Alias : Aliases) {
  215     if (RegI != RegE) {
  829   for (const auto R : Members) {
  870     for (const auto R : *K.Members)
 1038   for (auto *SuperRegRC : SuperRegRCs) {
 1039     for (const auto &SuperRegClassPair : SuperRegClasses) {
 1124   for (Record *R : Tups) {
 1127     for (Record *RC : TupRegs)
 1192   for (auto *R : RCs) {
 1607     for (auto I = std::next(Regs.begin()), E = Regs.end(); I != E; ++I) {
 1648          E = UberSets.end(); I != E; ++I) {
 1675                       : I->Regs) dbgs()
 1683     for (const auto R : I->Regs) {
 1795   for(;I != E; ++I) {
 1903     for (auto &U : RegUnitSets[USIdx].Units)
 1915     for (auto &U : RegUnitSets[USIdx].Units)
 1961                         : RegUnitSets.back().Units) printRegUnitName(U);
 1974         for (auto &U : RegUnitSets[USIdx].Units)
 1997                     : RCRegUnits) printRegUnitName(U);
 2098     for (const CodeGenRegister *Reg : RC.getMembers()) {
 2176   for (const auto R : RC->getMembers()) {
 2236     for (const auto Super : RC->getMembers()) {
utils/TableGen/CodeGenRegisters.h
  727              I = Units.begin(), E = Units.end(); I != E; ++I)
utils/TableGen/CodeGenSchedule.cpp
  242   for (const Record *R : Decls) {
  258   for (const Record *R : Defs) {
  301     for (const Record *EC : Classes) {
  307       for (const Record *Opcode : Opcodes) {
  325   for (std::pair<APInt, APInt> &MaskPair : OpcodeMasks)
  337     for (const Record *EC : Classes) {
  348       for (const Record *Opcode : Opcodes) {
  396   for (OpcodeMapPair &Info : OpcodeMappings)
  406   for (const Record *R : RV) {
  422   for (STIPredicateFunction &Fn : STIPredicates)
  447   for (const Record *TIIPred : MCPredicates) {
  467   for (Record *RCU : Units) {
  482   for (Record *Queue : Queues) {
  538   for (Record *ProcRecord : ProcRecords)
  573     for (Record *WSRec : Seq)
  579     for (Record *Variant : Vars) {
  582       for (Record *SelDef : Selected)
  604     for (Record *RW : RWs) {
  615   for (Record *InstRWDef : InstRWDefs) {
  618     for (Record *RWDef : RWDefs) {
  629   for (Record *ItinRWDef : ItinRWDefs) {
  632     for (Record *RWDef : RWDefs) {
  645   for (Record *ADef : AliasDefs) {
  663   for (Record *SWDef : SWDefs) {
  668   for (Record *SRDef : SRDefs) {
  673   for (CodeGenSchedRW &CGRW : SchedWrites) {
  680   for (Record *ADef : AliasDefs) {
  702            : RWDefs) {
  732   for (const CodeGenSchedRW &Read : SchedReads) {
  747   for (Record *RWDef : RWDefs) {
  770   for (Record *RWDef : RWDefs) {
  787     for (unsigned I : SchedRW.Sequence) {
  801   for (const Record *Rec : SchedWrite.Aliases) {
  826     for (unsigned Idx : SchedWrite.Sequence) {
  889   for (Record *RWDef : InstRWDefs)
  927         for (IdxIter WI = SC.Writes.begin(), WE = SC.Writes.end(); WI != WE;
  930         for (IdxIter RI = SC.Reads.begin(), RE = SC.Reads.end(); RI != RE; ++RI)
  936     for (Record *RWDef : RWDefs) {
  947         for (unsigned WIdx : Writes)
  949         for (unsigned RIdx : Reads)
  957         for (const CodeGenProcModel &PM : ProcModels) {
  996   for (RecIter I = InstDefs.begin(), E = InstDefs.end(); I != E; ++I) {
  997     if (I != InstDefs.begin())
 1054   for (Record *InstDef : *InstDefs) {
 1082           for (Record *RWD : RWDefs) {
 1119       for (Record *OldRWDef : SchedClasses[OldSCIdx].InstRWs) {
 1145   for (const CodeGenProcModel &PM : make_range(procModelBegin(),procModelEnd()))
 1154   for (CodeGenProcModel &ProcModel : ProcModels) {
 1166     for (Record *ItinData : ItinRecords) {
 1170       for (const CodeGenSchedClass &SC :
 1200   for (Record *RWDef  : ItinRWDefs) {
 1215   for (CodeGenProcModel &ProcModel : ProcModels) {
 1216     for (Record *Pred : ProcModel.ModelDef->getValueAsListOfDefs("UnsupportedFeatures")) {
 1253     for (const Record *Rec : PM.ItinRWDefs) {
 1276     for (; II != IE; ++II) {
 1383   for (Record *Alias : RW.Aliases) {
 1391       for (unsigned SI : ExpandedRWs) {
 1435     for (Record *VarDef : VarDefs)
 1441        AI != AE; ++AI) {
 1455       for (Record *VD : VarDefs)
 1463   for (TransVariant &Variant : Variants) {
 1542          RWI != RWE; ++RWI, ++OperIdx) {
 1559          RWI != RWE; ++RWI) {
 1601            IVI != IVE; ++IVI) {
 1628            TransVec.begin() + StartIdx, E = TransVec.end(); I != E; ++I) {
 1639            TransVec.begin() + StartIdx, E = TransVec.end(); I != E; ++I) {
 1722     for (const PredTransition &Trans : LastTransitions)
 1745     for ( ; RI != RE; ++RI) {
 1770           != CheckUnits.end()) {
 1790   for (Record *RF : RegisterFileDefs) {
 1834   for (const CodeGenSchedClass &SC :
 1843     for (Record *RW : SC.InstRWs) {
 1855   for (Record *WR : WRDefs) {
 1860   for (Record *SWR : SWRDefs) {
 1865   for (Record *RA : RADefs) {
 1870   for (Record *SRA : SRADefs) {
 1879   for (Record *PRG : ProcResGroups) {
 1887   for (Record *PRU : Records.getAllDerivedDefinitions("ProcResourceUnits")) {
 1895   for (CodeGenProcModel &PM : ProcModels) {
 1903                                          RI != RE; ++RI) {
 1911              RI != RE; ++RI) {
 1920              RI != RE; ++RI) { dbgs() << (*RI)->getName() << " "; } dbgs()
 1993          II != IE; ++II) {
 2023        AI != AE; ++AI) {
 2037          SI != SE; ++SI) {
 2065   for (Record *ProcResDef : ProcResourceDefs) {
 2076   for (Record *ProcResGroup : ProcResGroups) {
 2129        WritePRI != WritePRE; ++WritePRI) {
 2153   for (const Record *TheDef : UnsupportedFeaturesDefs) {
 2154     for (const Record *PredDef : Inst.TheDef->getValueAsListOfDefs("Predicates")) {
 2199     for (const CodeGenSchedTransition &Transition : Transitions) {
 2208          TI = TransVec.begin(), TE = TransVec.end(); TI != TE; ++TI) {
utils/TableGen/CodeGenTarget.cpp
  483   for (Record *R : Insts) {
utils/TableGen/DAGISelEmitter.cpp
  144                   I != E; ++I) {
  155        I != E; ++I)
utils/TableGen/DAGISelMatcherEmitter.cpp
  255   for (const auto &It : VecPatterns) {
  269   for (const auto &It : VecIncludeStrings) {
utils/TableGen/DAGISelMatcherGen.cpp
  520   for (const ScopedName &Name : N->getNamesAsPredicateArg()) {
  901     for (Record *Reg : Pattern.getDstRegs()) {
 1044     for (Record *Reg : Pattern.getDstRegs()) {
utils/TableGen/DFAEmitter.cpp
   69       for (state_type &ToState : I->second) {
  254   for (Record *R : Records.getAllDerivedDefinitions("GenericAutomaton")) {
  270   for (Record *T : Records.getAllDerivedDefinitions(TransitionClass)) {
  293     for (Transition &T : Transitions) {
  378   for (const auto &SingleAction : AT) {
utils/TableGen/DFAPacketizerEmitter.cpp
   78     for (auto U : InsnClass)
  407   for (Record *R : ProcItinList)
utils/TableGen/ExegesisEmitter.cpp
   74   for (Record *Def : Records.getAllDerivedDefinitions("ProcPfmCounters")) {
   77     for (const Record *IssueCounter :
  164     for (const Record *Def : PfmCounterDefs) {
  165       for (const Record *ICDef : Def->getValueAsListOfDefs("IssueCounters"))
  175   for (const Record *Def : PfmCounterDefs)
  191   for (Record *Binding : Bindings) {
utils/TableGen/FastISelEmitter.cpp
  452        E = CGP.ptm_end(); I != E; ++I) {
  624        E = ImmediatePredicates.end(); I != E; ++I) {
utils/TableGen/FixedLenDecoderEmitter.cpp
  763   while (I != E) {
 1116   for (const EncodingField &EF : OpInfo) {
 1143   for (const auto &Op : Operands.find(Opc)->second) {
 1992   for (const auto &Op : InOutOperands) {
 2433   for (const auto &NumberedAlias : RK.getAllDerivedDefinitions("AdditionalEncoding"))
utils/TableGen/GICombinerEmitter.cpp
  268   for (Record *R : RulesAndGroups) {
  292     for (const RootInfo &Root : Rule->roots()) {
  428   for (const auto &Rule : Rules)
  446   for (const auto &Combiner : SelectedCombiners) {
utils/TableGen/GlobalISelEmitter.cpp
  202   for (const TreePredicateCall &Call : N->getPredicateCalls()) {
  308   for (const TreePredicateCall &Call : N->getPredicateCalls()) {
  387   for (const auto &Feature : FeatureBitset)
  580     for (auto I = Contents.begin(), E = Contents.end(); I != E;
  585       if (NextI != E) {
 2087     if (I != Operands.end())
 2133     for (const auto &Operand : Operands)
 2281     for (auto &OM : Operands)
 2296   for (auto &OM : Operands) {
 2826         for (auto Def : I->ImplicitDefs) {
 2835         for (auto Use : I->ImplicitUses) {
 2855     for (const auto &Renderer : OperandRenderers)
 2873       for (const auto &MergeInsnID : MergeInsnIDs)
 3137   for (const auto &PM : EpilogueMatchers)
 3399   for (Record *Equiv : RK.getAllDerivedDefinitions("GINodeEquiv"))
 3403   for (Record *Equiv : RK.getAllDerivedDefinitions("GIComplexPatternEquiv")) {
 3411  for (Record *Equiv : RK.getAllDerivedDefinitions("GISDNodeXFormEquiv")) {
 3432   for (const TreePredicateCall &Call : N->getPredicateCalls()) {
 3494   for (const TypeSetByHwMode &VTy : Src->getExtTypes()) {
 3503   for (const TreePredicateCall &Call : Src->getPredicateCalls()) {
 4626   for (const TypeSetByHwMode &VTy : Src->getExtTypes()) {
 4827     for (const auto *Record : MatchedRecords) {
 4843   for (const auto *Record : MatchedRecords) {
 4894       for (Matcher *M : CurrentGroup->matchers())
 4954   for (Matcher *Rule : InputRules)
 4961   for (Matcher *Rule : OptRules)
 4975   while (T != E) {
 4976     while (T != E) {
 4988     if (T != E)
 5024   for (const PatternToMatch &Pat : CGP.ptms()) {
 5066   for (const auto &Rule : Rules)
 5145   for (const auto &TypeObject : TypeObjects) {
 5153   for (const auto &TypeObject : TypeObjects) {
 5163   for (auto &Rule : Rules)
 5185   for (const auto &FeatureBitset : FeatureBitsets) {
 5193   for (const auto &FeatureBitset : FeatureBitsets) {
 5197     for (const auto &Feature : FeatureBitset) {
 5210   for (const auto &Record : ComplexPredicates)
 5233   for (const auto &Record : ComplexPredicates)
 5242   for (const auto &Record : CustomRendererFns)
 5249   for (const auto &Record : CustomRendererFns)
 5332     for (auto &OM : InsnMatcher.operands()) {
 5359   for (auto &OM : Matcher.operands())
 5375   for (auto &OM : Matcher.operands())
 5393   for (auto &OM : Matcher.operands())
 5446     for (const auto &Rule : Matchers)
 5472   for (const auto &M : Matchers)
utils/TableGen/InfoByHwMode.cpp
   34   for (const HwModeSelect::PairType &P : MS.Items) {
  147   for (const HwModeSelect::PairType &P : MS.Items) {
  197   for (const HwModeSelect::PairType &P : MS.Items) {
utils/TableGen/InstrDocsEmitter.cpp
  144       for (auto FlagString : FlagStrings) {
  195       for (Record *Def : II->ImplicitDefs) {
  208       for (Record *Use : II->ImplicitUses) {
  223       for (Record *P : Predicates) {
utils/TableGen/InstrInfoEmitter.cpp
  100   for (Record *U : Uses)
  113   for (auto &Op : Inst.Operands) {
  209     for (const std::string &Info : OperandInfo)
  232     for (const auto &Info : Inst->Operands) {
  309       for (const std::string &Name : Entry.second)
  350     for (const Record *Op : *RecordsToAdd) {
  376       for (const auto &Op : Inst->Operands) {
  445   for (const Record *Rec : TIIPredicates) {
  464   for (const Record *Rec : TIIPredicates) {
  489   for (const Record *Rec : TIIPredicates) {
  791   for (const auto &Class : SchedModels.explicit_classes())
utils/TableGen/IntrinsicEmitter.cpp
  139   for (auto Target : Ints.Targets)
utils/TableGen/OptParserEmitter.cpp
   69                                                 APre != AEPre &&
   70                                                 BPre != BEPre;
  313     for (const std::string &Pref : R.getValueAsListOfStrings("Prefixes")) {
utils/TableGen/PredicateExpander.cpp
  131   for (const Record *Rec : Opcodes) {
  169   for (const Record *Rec : Sequence) {
  231   for (const Record *Opcode : Opcodes) {
  250   for (const Record *Rec : Cases) {
  410   for (const Record *Delegate : Delegates) {
utils/TableGen/PseudoLoweringEmitter.cpp
  223       for (const auto &DestOperand : Dest.Operands) {
utils/TableGen/RISCVCompressInstEmitter.cpp
  471   for (auto &R : ReqFeatures) {
  676     for (const auto &DestOperand : Dest.Operands) {
utils/TableGen/RegisterBankEmitter.cpp
   66     for (const auto &RCDef : getDef().getValueAsListOfDefs("RegisterClasses"))
   76                      }) != RCs.end())
  135   for (const auto &Bank : Banks)
  218   for (const auto &Bank : Banks) {
  222     for (const auto &RC : Bank.register_classes())
  227     for (const auto &RCs : RCsGroupedByWord) {
  229       for (const auto &RC : RCs) {
  242   for (const auto &Bank : Banks) {
  259   for (const auto &Bank : Banks)
  284   for (const auto &V : Records.getAllDerivedDefinitions("RegisterBank")) {
  288     for (const CodeGenRegisterClass *RC :
  304   for (const auto &Class : Records.getAllDerivedDefinitions("RegisterClass")) {
  305     for (const auto &Bank : Banks) {
utils/TableGen/RegisterInfoEmitter.cpp
  352   for (const auto &X : DwarfRegNums) {
  391        I != E; ++I)
  413                I = DwarfRegNums.begin(), E = DwarfRegNums.end(); I != E; ++I) {
  456     assert(AliasIter != DwarfRegNums.end() && AliasIter->first == Alias &&
  463     assert(RegIter != DwarfRegNums.end() && RegIter->first == Reg &&
  479                I = DwarfRegNums.begin(), E = DwarfRegNums.end(); I != E; ++I) {
  654   for (Iter I = Begin; I != End; ++I) {
  910     for (const CodeGenRegister *S : SR)
 1572     for (Record *CSRSet : CSRSets)
 1585     for (Record *CSRSet : CSRSets)
 1638     for (const CodeGenRegister *R : RC.getMembers()) {
utils/TableGen/SDNodeProperties.cpp
   17   for (Record *Property : R->getValueAsListOfDefs("Properties")) {
utils/TableGen/SearchableTableEmitter.cpp
  286   for (const auto &Entry : Enum.Entries)
  333     for (const auto &Entry : Entries) {
  548   for (const auto &FieldName : Key) {
  569   for (auto EntryRec : Items) {
  598   for (auto EntryRec : Items) {
  641   for (auto EnumRec : Records.getAllDerivedDefinitions("GenericEnum")) {
  666   for (auto TableRec : Records.getAllDerivedDefinitions("GenericTable")) {
  673     for (const auto &FieldName : Fields) {
  705   for (Record *IndexRec : Records.getAllDerivedDefinitions("SearchIndex")) {
  766     for (const auto &Field :
  777   for (const auto &Enum : Enums)
utils/TableGen/SequenceToOffsetTable.h
  121              SE = I->first.end(); SI != SE; ++SI) {
utils/TableGen/SubtargetEmitter.cpp
  267   for (Record *Processor : ProcessorList) {
  563          PE = SchedModels.procModelEnd(); PI != PE; ++PI, ++ProcItinListsIter) {
  570     assert(ProcItinListsIter != ProcItinLists.end() && "bad iterator");
  630     for (Record *RUDef : ResUnits) {
  686   for (const CodeGenRegisterFile &RF : ProcModel.RegisterFiles) {
  691     for (const CodeGenRegisterCost &RC : RF.Costs) {
  711   for (const CodeGenRegisterFile &RD : ProcModel.RegisterFiles) {
  794       for (Record *RU : ResUnits) {
  839   for (Record *A : SchedWrite.Aliases) {
  858   for (Record *WR : ProcModel.WriteResDefs) {
  891   for (Record *A : SchedRead.Aliases) {
  910   for (Record *RA : ProcModel.ReadAdvanceDefs) {
  962     for (Record *PR : PM.ProcResourceDefs) {
  967       for( ; SubI != SubE; ++SubI) {
 1005     for (const CodeGenSchedTransition &CGT :
 1032       for (Record *RW : SC.InstRWs) {
 1048       for (Record *I : ProcModel.ItinRWDefs) {
 1068     for (unsigned W : Writes) {
 1086       for (unsigned WS : WriteSeq) {
 1168         for (Record *VW : ValidWrites) {
 1173       for(unsigned W : WriteIDs) {
 1197     if (WPRPos != SchedTables.WriteProcResources.end())
 1210     if (WLPos != SchedTables.WriteLatencies.end()) {
 1233     if (RAPos != SchedTables.ReadAdvanceEntries.end())
 1297          PE = SchedModels.procModelEnd(); PI != PE; ++PI) {
 1438   for (Record *P : Prologs)
 1468     for (const Record *Rec : T.PredTerm) {
 1547   for (const CodeGenSchedTransition &T : SC.Transitions) {
 1575   for (unsigned VC : VariantClasses) {
 1585     for (unsigned PI : ProcIndices) {
 1598       for (const CodeGenSchedTransition &T : SC.Transitions) {
 1706   for (Record *R : Features) {
utils/TableGen/SubtargetFeatureInfo.cpp
   30   for (Record *Pred : AllPredicates) {
utils/TableGen/TableGen.cpp
  209     for (Record *Rec : Records.getAllDerivedDefinitions(Class))
  218     for (Record *Rec : Records.getAllDerivedDefinitions("Set")) {
  222       for (Record *Elt : *Elts)
utils/TableGen/WebAssemblyDisassemblerEmitter.cpp
  114         for (auto &Op : CGI.Operands.OperandList) {
  155   for (auto &Op : OperandTable) {
utils/TableGen/X86DisassemblerTables.cpp
  721            E = ModRMDecision.end(); I != E; ++I) {
utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
   62   for (auto Pair : Table) {
  198   for (const CodeGenInstruction *EVEXInst : EVEXInsts) {
  213       if (Match != VEXInsts[Opcode].end())
utils/TableGen/X86FoldTablesEmitter.cpp
  170     for (const X86FoldTableEntry &E : Table)
  617   for (const CodeGenInstruction *MemInst : MemInsts) {
  631     if (Match != OpcRegInsts.end()) {
utils/benchmark/src/benchmark.cc
  212       for (std::thread& thread : pool) thread.join();
  399   for (const Benchmark::Instance& benchmark : benchmarks) {
  404     for(const auto& Stat : *benchmark.statistics)
  428     for (const auto& benchmark : benchmarks) {
  542     for (auto const& benchmark : benchmarks) Out << benchmark.name << "\n";
utils/benchmark/src/benchmark_register.cc
  131   for (std::unique_ptr<Benchmark>& family : families_) {
  153     for (auto const& args : family->args_) {
  154       for (int num_threads : *thread_counts) {
  174         for (auto const& arg : args) {
  272   for (int64_t i : arglist) {
utils/benchmark/src/complexity.cc
  137     for (const auto& fit : fit_curves) {
  165   for (const Run& run : reports) {
utils/benchmark/src/console_reporter.cc
   73   for (const auto& run : reports) {
utils/benchmark/src/csv_reporter.cc
   50     for (const auto& run : reports) {
   57     for (auto B = elements.begin(); B != elements.end();) {
   59       if (B != elements.end()) Out << ",";
   69     for (const auto& run : reports) {
   80   for (const auto& run : reports) {
utils/benchmark/src/json_reporter.cc
  138   for (auto it = reports.begin(); it != reports.end(); ++it) {
  143     if (++it_cp != reports.end()) {
utils/benchmark/src/reporter.cc
   49     for (auto &CInfo : info.caches) {
utils/benchmark/src/statistics.cc
  112   for(Run const& r : reports) {
  126   for (Run const& run : reports) {
  151   for(const auto& Stat : *reports[0].statistics) {
utils/unittest/googlemock/include/gmock/gmock-matchers.h
 2569            it != lhs_stl_container.end(); ++it) {
 2585            it != expected_.end(); ++it) {
 2827          it != stl_container.end(); ++it, ++i) {
 3128     while (first != last) {
 3186     for (; it != stl_container.end() && exam_pos != count(); ++it, ++exam_pos) {
 3207     for (; it != stl_container.end(); ++it) {
 3370     for (; first != last; ++first) {
 3425     for (; elem_first != elem_last; ++num_elements, ++elem_first) {
 4259        it != rhs_stl_container.end(); ++it) {
utils/unittest/googlemock/src/gmock-matchers.cc
  318   for (Iter it = pairs.begin(); it != pairs.end(); ++it) {
utils/unittest/googletest/include/gtest/gtest-printers.h
  378        it != container.end(); ++it, ++count) {
utils/unittest/googletest/include/gtest/gtest.h
 1522 GTEST_IMPL_CMP_HELPER_(NE, !=);
utils/unittest/googletest/include/gtest/internal/gtest-internal.h
  984   for (Iter it = begin; it != end; ++it) {
utils/unittest/googletest/include/gtest/internal/gtest-param-util.h
  548          test_it != tests_.end(); ++test_it) {
  551                instantiations_.begin(); gen_it != instantiations_.end();
  673          it != test_case_infos_.end(); ++it) {
  686          it != test_case_infos_.end(); ++it) {
  713          it != test_case_infos_.end(); ++it) {
utils/unittest/googletest/include/gtest/internal/gtest-port.h
 2295   while (it != str.begin() && IsSpace(*--it))
utils/unittest/googletest/src/gtest-death-test.cc
  910     for (std::vector<char*>::iterator i = args_.begin(); i != args_.end();
  922          i != arguments.end();
utils/unittest/googletest/src/gtest-internal-inl.h
  287   for (typename Container::const_iterator it = c.begin(); it != c.end(); ++it) {
utils/unittest/googletest/src/gtest.cc
 1232         while (it != edits.end() && *it == kMatch) ++it;
 2143   if (std::find(reserved_names.begin(), reserved_names.end(), property_name) !=
 3526   for (std::string::const_iterator it = str.begin(); it != str.end(); ++it)
 3615   GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) !=