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

References

examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h
  103       for (auto &F : M)
examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h
  145     for (auto &F : *M)
examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
  221     for (auto &F : *M)
examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h
  238     for (auto &F : *M)
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) !=
include/llvm/ADT/ilist.h
  245     for (const_reference V : L2)
  302     while (first != last)
  337     if (first != last) transfer(where, L2, first, last);
include/llvm/ADT/simple_ilist.h
  175     for (const_reference V : L2)
  197     assert(I != end() && "Cannot remove end of list!");
  222     while (First != Last)
  275   while (LI != LE) {
  299   while (End != end() && ++End != end()) {
  299   while (End != end() && ++End != end()) {
include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1342   for (const BlockT &BB : *F) {
include/llvm/Analysis/IVUsers.h
  117     for (IVStrideUse &U : IVUses)
include/llvm/Analysis/SparsePropagation.h
  495       for (Instruction &I : *BB)
include/llvm/CodeGen/BasicTTIImpl.h
  478       for (BasicBlock::iterator J = BB->begin(), JE = BB->end(); J != JE; ++J)
include/llvm/CodeGen/CommandFlags.inc
  373   for (auto &F : M) {
  397       for (auto &B : F)
  398         for (auto &I : B)
include/llvm/CodeGen/MachineBasicBlock.h
  948   while (It != End && It->isDebugInstr())
  959   while (It != Begin && It->isDebugInstr())
include/llvm/CodeGen/MachineFunction.h
  696     for (const MachineBasicBlock &MBB : BasicBlocks)
include/llvm/CodeGen/SlotIndexes.h
  415       while (++I != E)
  627       assert(prevMBB != mbb->getParent()->end() &&
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  397       for (auto &F : SrcM) {
  454     for (auto &GV : SrcM.globals())
  459     for (auto &A : SrcM.aliases())
  500     for (auto &GV : SrcM.globals())
  505     for (auto &A : SrcM.aliases()) {
include/llvm/IR/IRBuilder.h
  142     assert(InsertPt != BB->end() && "Can't read debug loc from end()");
  151     if (IP != TheBB->end())
include/llvm/IR/InstIterator.h
   62     if (BB != BBs->end()) {
include/llvm/IR/InstVisitor.h
   90     while (Start != End)
include/llvm/IR/PassManager.h
 1299     for (Function &F : M) {
lib/Analysis/AliasAnalysis.cpp
  720   for (; I != E; ++I) // Check every instruction in range
lib/Analysis/AliasSetTracker.cpp
  310   for (iterator I = begin(), E = end(); I != E;) {
  337   for (iterator I = begin(), E = end(); I != E;) {
  516   for (auto &I : BB)
  527   for (const AliasSet &AS : AST) {
  548       for (auto &Access : *Accesses)
  613   for (iterator I = begin(), E = end(); I != E; I++)
  703   for (const AliasSet &AS : *this)
lib/Analysis/AssumptionCache.cpp
  176   for (BasicBlock &B : F)
  177     for (Instruction &II : B)
  285     for (const BasicBlock &B : cast<Function>(*I.first))
  286       for (const Instruction &II : B)
lib/Analysis/BranchProbabilityInfo.cpp
  198   for (auto &I : *BB)
  841   for (const auto &BI : *LastF) {
lib/Analysis/CFG.cpp
  241     for (BasicBlock::const_iterator I = A->getIterator(), E = BB->end(); I != E;
lib/Analysis/CFLGraph.h
  637     for (auto &Bb : Fn.getBasicBlockList())
  638       for (auto &Inst : Bb.getInstList())
lib/Analysis/CallGraph.cpp
   34   for (Function &F : M)
   73   for (BasicBlock &BB : *F)
   74     for (Instruction &I : BB) {
lib/Analysis/CallGraphSCCPass.cpp
  286     for (BasicBlock &BB : *F)
  287       for (Instruction &I : BB) {
lib/Analysis/CodeMetrics.cpp
  121   for (const Instruction &I : *BB) {
lib/Analysis/CostModel.cpp
  100   for (BasicBlock &B : *F) {
  101     for (Instruction &Inst : B) {
lib/Analysis/DDG.cpp
  138   for (auto &BB : F.getBasicBlockList())
lib/Analysis/DependenceGraphBuilder.cpp
   42     for (Instruction &I : *BB) {
lib/Analysis/DivergenceAnalysis.cpp
  225     for (auto &I : *UserBlock) {
lib/Analysis/GlobalsModRef.cpp
  288   for (Function &F : M)
  300   for (GlobalVariable &GV : M.globals())
lib/Analysis/GuardUtils.cpp
   29   for (auto &Insn : *DeoptBB) {
lib/Analysis/IVUsers.cpp
  326   for (const IVStrideUse &IVUse : IVUses) {
lib/Analysis/InlineCost.cpp
 1563   for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) {
 2093   for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE; ++BI) {
 2105     for (auto &II : *BI) {
lib/Analysis/InstructionPrecedenceTracking.cpp
   66   for (auto &I : *BB)
   83   for (const Instruction &Insn : *BB)
lib/Analysis/LazyCallGraph.cpp
  100   for (BasicBlock &BB : *F)
  101     for (Instruction &I : BB) {
  157   for (Function &F : M) {
  178   for (auto &A : M.aliases()) {
  192   for (GlobalVariable &GV : M.globals())
 1777   for (Function &F : M)
 1810   for (Function &F : M)
lib/Analysis/LazyValueInfo.cpp
  710     for (Instruction &I : *BB)
  846   for (Instruction &I : make_range(std::next(BBI->getIterator().getReverse()),
lib/Analysis/LegacyDivergenceAnalysis.cpp
  204     for (auto &I : *InfluencedBB) {
  395   for (auto BI = F->begin(), BE = F->end(); BI != BE; ++BI) {
lib/Analysis/Lint.cpp
  684       if (BBI != BB->begin()) break;
lib/Analysis/Loads.cpp
  294   while (BBI != E) {
  392   while (ScanFrom != ScanBB->begin()) {
lib/Analysis/LoopAccessAnalysis.cpp
  710   for (auto &AS : AST) {
  837   for (auto &AS : AST) {
 1816     for (Instruction &I : *BB) {
lib/Analysis/LoopCacheAnalysis.cpp
  519     for (Instruction &I : *BB) {
lib/Analysis/LoopInfo.cpp
  423   for (const Instruction &I : BB) {
  481     for (Instruction &I : *BB)
  561     for (Instruction &I : *BB) {
lib/Analysis/LoopPass.cpp
  108     for (Instruction &I : *BB) {
lib/Analysis/MemoryDependenceAnalysis.cpp
  189   while (ScanIt != BB->begin()) {
  516   while (ScanIt != BB->begin()) {
  878     if (ScanPos != DirtyBB->begin()) {
lib/Analysis/MemorySSA.cpp
 1119     for (MemoryAccess &L : *Accesses) {
 1212   for (auto AI = Accesses->begin(), AE = Accesses->end(); AI != AE;) {
 1244     for (MemoryAccess &MA : *Pair.second)
 1348   for (MemoryAccess &MA : *Accesses) {
 1521   for (BasicBlock &B : F) {
 1525     for (Instruction &I : B) {
 1556   for (auto &BB : F)
 1641       while (InsertPt != Accesses->end() && !isa<MemoryDef>(InsertPt))
 1930   for (const BasicBlock &BB : F) {
 1943     for (const MemoryAccess &MA : *Accesses) {
 1969   for (BasicBlock &B : F) {
 1978     for (Instruction &I : B) {
 2005     while (ALI != AL->end() && AAI != ActualAccesses.end()) {
 2014       while (DLI != DL->end() && ADI != ActualDefs.end()) {
 2029   for (BasicBlock &B : F) {
 2035     for (Instruction &I : B) {
 2100   for (const auto &I : *AL)
lib/Analysis/MemorySSAUpdater.cpp
  161       if (Iter != Defs->rend())
  166       for (auto &U : make_range(++MA->getReverseIterator(), End))
  468     if (++DefIter != Defs->end()) {
  566           assert(DefIt != MSSA->getBlockDefs(DefMUD->getBlock())->begin() &&
  589   for (const MemoryAccess &MA : *Acc) {
 1092       for (auto &DefToReplaceUses : *DefsList) {
 1175   for (Instruction &I : make_range(Start->getIterator(), To->end()))
 1353       for (MemoryAccess &MA : *Acc)
 1362     for (auto AB = Acc->begin(), AE = Acc->end(); AB != AE;) {
 1383   while (BBI != BBE)
lib/Analysis/ModuleSummaryAnalysis.cpp
  271   for (const BasicBlock &BB : F)
  272     for (const Instruction &I : BB) {
  732   for (auto &F : M) {
  756   for (const GlobalVariable &G : M.globals()) {
  764   for (const GlobalAlias &A : M.aliases())
lib/Analysis/MustExecute.cpp
  357   for (Function &F : M) {
  400     for (auto &F : M)
lib/Analysis/OrderedBasicBlock.cpp
   45   if (LastInstFound != IE)
   49   for (; II != IE; ++II) {
   56   assert(II != IE && "Instruction not found?");
   90   if (LastInstFound != BB->end() && I == &*LastInstFound) {
  108   if (LastInstFound != BB->end() && Old == &*LastInstFound)
lib/Analysis/PhiValues.cpp
  152   for (const BasicBlock &BB : F) {
  185   for (const BasicBlock &BB : F)
lib/Analysis/ProfileSummaryInfo.cpp
  153     for (const auto &BB : *F)
  154       for (const auto &I : BB)
  161   for (const auto &BB : *F)
  182     for (const auto &BB : *F)
  183       for (const auto &I : BB)
  190   for (const auto &BB : *F)
  207     for (const auto &BB : *F)
  208       for (const auto &I : BB)
  215   for (const auto &BB : *F)
  381   for (auto &F : M) {
lib/Analysis/ScalarEvolution.cpp
 6117       for (auto &I : *BB) {
12489     for (auto &I : *BB) {
lib/Analysis/ScalarEvolutionExpander.cpp
   61           if (BasicBlock::iterator(CI) != IP || BIP == IP) {
  182   if (IP != BlockBegin) {
  528     if (IP != BlockBegin) {
 1853         while (InsertPt->getIterator() != Builder.GetInsertPoint() &&
lib/Analysis/StackSafetyAnalysis.cpp
  434   for (auto &F : M.functions())
  437   for (auto &A : M.aliases())
  551   for (auto &F : M.functions())
  557   for (auto &A : M.aliases()) {
lib/Analysis/ValueTracking.cpp
  556          IE = Inv->getParent()->end(); I != IE; ++I)
  571        I != IE; ++I)
 4298   for (auto I = BB->begin(), E = BB->end(); I != E; ++I)
 4312   for (const Instruction &LI : *L->getHeader()) {
 4410     for (auto &I : make_range(Begin, End)) {
lib/Analysis/VectorUtils.cpp
  385     for (auto &I : *BB) {
  817     for (auto &I : *BB) {
lib/AsmParser/LLParser.cpp
  235   for (Module::iterator FI = M->begin(), FE = M->end(); FI != FE; )
  241   for (Module::iterator FI = M->begin(), FE = M->end(); FI != FE; ) {
lib/Bitcode/Reader/BitcodeReader.cpp
  163   for (auto &F : *M) {
 2968   for (Function &F : *TheModule) {
 2982   for (GlobalVariable &GV : TheModule->globals())
 5296   for (Function &F : *TheModule) {
lib/Bitcode/Reader/MetadataLoader.cpp
  513     for (auto &GV : TheModule.globals()) {
  533     for (auto &BB : F)
  534       for (auto &I : BB)
lib/Bitcode/Writer/BitcodeWriter.cpp
 1169   for (const GlobalValue &GV : M.globals()) {
 1182   for (const Function &F : M) {
 1261   for (const GlobalVariable &GV : M.globals()) {
 1308   for (const Function &F : M) {
 1345   for (const GlobalAlias &A : M.aliases()) {
 1369   for (const GlobalIFunc &I : M.ifuncs()) {
 1939   for (const NamedMDNode &NMD : M.named_metadata()) {
 2121   for (const Function &F : M)
 2126   for (const GlobalVariable &GV : M.globals())
 2169   for (const BasicBlock &BB : F)
 2170     for (const Instruction &I : BB) {
 3065   for (const Function &F : M) {
 3199   for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
 3201          I != E; ++I) {
 3834   for (const Function &F : M) {
 3854   for (const GlobalVariable &G : M.globals())
 3858   for (const GlobalAlias &A : M.aliases()) {
 4266   for (Module::const_iterator F = M.begin(), E = M.end(); F != E; ++F)
 4570   for (const GlobalVariable &GV : M.globals()) {
 4584   for (const Function &F : M) {
 4598   for (const GlobalAlias &A : M.aliases()) {
 4612   for (const GlobalIFunc &I : M.ifuncs()) {
lib/Bitcode/Writer/ValueEnumerator.cpp
  112   for (const GlobalVariable &G : M.globals())
  116   for (const GlobalAlias &A : M.aliases())
  119   for (const GlobalIFunc &I : M.ifuncs())
  122   for (const Function &F : M) {
  137   for (const Function &F : M)
  139   for (const GlobalAlias &A : M.aliases())
  141   for (const GlobalIFunc &I : M.ifuncs())
  143   for (const GlobalVariable &G : M.globals())
  147   for (const Function &F : M) {
  153     for (const BasicBlock &BB : F)
  157     for (const BasicBlock &BB : F)
  158       for (const Instruction &I : BB)
  163     for (const BasicBlock &BB : F)
  164       for (const Instruction &I : BB)
  273   for (auto I = M.rbegin(), E = M.rend(); I != E; ++I) {
  277     for (const BasicBlock &BB : F)
  281     for (const BasicBlock &BB : F)
  282       for (const Instruction &I : BB)
  286     for (const BasicBlock &BB : F)
  287       for (const Instruction &I : BB)
  293   for (const GlobalVariable &G : M.globals())
  295   for (const Function &F : M)
  297   for (const GlobalAlias &A : M.aliases())
  299   for (const GlobalIFunc &I : M.ifuncs())
  301   for (const GlobalVariable &G : M.globals())
  304   for (const GlobalAlias &A : M.aliases())
  306   for (const GlobalIFunc &I : M.ifuncs())
  308   for (const Function &F : M) {
  327   for (const GlobalVariable &GV : M.globals())
  331   for (const Function & F : M) {
  337   for (const GlobalAlias &GA : M.aliases())
  341   for (const GlobalIFunc &GIF : M.ifuncs())
  348   for (const GlobalVariable &GV : M.globals()) {
  356   for (const GlobalAlias &GA : M.aliases())
  360   for (const GlobalIFunc &GIF : M.ifuncs())
  364   for (const Function &F : M)
  380   for (const GlobalVariable &GV : M.globals()) {
  391   for (const Function &F : M) {
  401     for (const BasicBlock &BB : F)
  402       for (const Instruction &I : BB) {
  557   for (const auto &I : M.named_metadata())
  960   for (const BasicBlock &BB : F) {
  961     for (const Instruction &I : BB)
  981   for (const BasicBlock &BB : F) {
  982     for (const Instruction &I : BB) {
 1023   for (const BasicBlock &BB : *F)
lib/CodeGen/Analysis.cpp
  743   for (const MachineBasicBlock &MBB : MF) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  333     for (auto &F: M.getFunctionList()) {
 1052   for (auto &MBB : *MF) {
 1166   for (const auto &BB : F) {
 1271   for (const auto &G : M.globals()) {
 1396   for (const auto &G : M.globals())
 1403   for (const Function &F : M) {
 1501   for (const auto &Alias : M.aliases()) {
 1512   for (const auto &IFunc : M.ifuncs())
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1407   for (const auto &MBB : *MF) {
 1426   for (const auto &MBB : *MF) {
 2858   for (const auto &MBB : *MF) {
 2983   for (const GlobalVariable &GV : MMI->getModule()->globals()) {
lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
  240   for (const auto &MBB : *MF) {
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  708   for (const MachineBasicBlock &MBB : MF) {
  709     for (const MachineInstr &MI : MBB.instrs()) {
  947   for (const GlobalVariable &Global : M->globals()) {
 1729   for (const auto &MBB : *MF)
lib/CodeGen/AsmPrinter/EHStreamer.cpp
  243   for (const auto &MBB : *Asm->MF) {
lib/CodeGen/AsmPrinter/WinCFGuard.cpp
   47   for (const Function &F : *M)
lib/CodeGen/AsmPrinter/WinException.cpp
   54   for (const Function &F : *M)
  405     assert(Begin != End);
  417     if (MFI != O.MFI)
  453   for (; MFI != MFE; ++MFI, IsNewBlock = true) {
  599   while (Stop != End && !Stop->isEHFuncletEntry())
  891        FuncletStart != End; FuncletStart = FuncletEnd) {
  893     while (++FuncletEnd != End) {
 1155        FuncletStart != End; FuncletStart = FuncletEnd) {
 1159     while (++FuncletEnd != End) {
lib/CodeGen/BranchFolding.cpp
  200   for (MachineBasicBlock &MBB : MF) {
  230   for (const MachineBasicBlock &BB : MF) {
  522   if (I != MF->end() && !TII->analyzeBranch(*CurMBB, TBB, FBB, Cond, true)) {
 1085   for (MachineBasicBlock &MBB : MF) {
 1122        I != E; ++I) {
 1184             if (Next != MF.end())
 1280        I != E; ) {
 1347   for (MachineInstr &MI : MBB.instrs())
 1359   for (MachineInstr &MI : MBB.instrs())
 1400   if (!EHScopeMembership.empty() && FallThrough != MF.end()) {
 1813       if (FallThrough != MF.end() &&
 1833   for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ) {
lib/CodeGen/BranchRelaxation.cpp
  129   for (MachineBasicBlock &MBB : *MF) {
  142   for (auto &MBB : *MF) {
  160   for (MachineBasicBlock &MBB : *MF)
  197   for (auto &MBB : make_range(MachineFunction::iterator(Start), MF->end())) {
  483   for (MachineFunction::iterator I = MF->begin(); I != MF->end(); ++I) {
lib/CodeGen/BreakFalseDeps.cpp
  276   for (MachineBasicBlock &MBB : mf) {
lib/CodeGen/CFGuardLongjmp.cpp
   74   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/CFIInstrInserter.cpp
  137   for (MachineBasicBlock &MBB : MF) {
  151   for (MachineBasicBlock &MBB : MF) {
  250   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/CodeGenPrepare.cpp
  475     for (Function::iterator I = F.begin(); I != F.end(); ) {
  509     for (BasicBlock &BB : F) {
  544     for (BasicBlock &BB : F)
  545       for (Instruction &I : BB)
  568   for (auto &Block : llvm::make_range(std::next(F.begin()), F.end()))
  604   if (BBI != BB->begin()) {
  645   for (auto &Block : llvm::make_range(std::next(F.begin()), F.end()))
 1113       assert(InsertPt != UserBB->end());
 1207   for (Instruction &Iter : *Cmp->getParent()) {
 1387       assert(InsertPt != UserBB->end());
 1567       assert(InsertPt != TruncUserBB->end());
 1580       assert(TruncInsertPt != TruncUserBB->end());
 1668       assert(InsertPt != UserBB->end());
 2036       do { ++RI; } while (RI != RE && isa<DbgInfoIntrinsic>(&*RI));
 2303       HasPrevInstruction = (It != (Inst->getParent()->begin()));
 5636       assert(InsertPt != UserBB->end());
 5942        It != SI->getParent()->end(); ++It) {
 6148       assert(InsertPt != UserBB->end());
 7092   while (CurInstIterator != BB.end()) {
 7101     for (auto &I : reverse(BB)) {
 7118   for (BasicBlock &BB : F) {
 7120     for (BasicBlock::iterator BI = BB.begin(), BE = BB.end(); BI != BE;) {
 7189   for (auto &BB : F) {
lib/CodeGen/DeadMachineInstructionElim.cpp
  109   for (MachineBasicBlock &MBB : make_range(MF.rbegin(), MF.rend())) {
lib/CodeGen/DetectDeadLanes.cpp
  534   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/DwarfEHPrepare.cpp
  186   for (BasicBlock &BB : Fn) {
lib/CodeGen/EdgeBundles.cpp
   44   for (const auto &MBB : *MF) {
   80   for (const auto &MBB : *MF) {
lib/CodeGen/ExpandMemCmp.cpp
  825   for (Instruction& I : BB) {
  846   for (auto BBIt = F.begin(); BBIt != F.end();) {
lib/CodeGen/ExpandPostRAPseudos.cpp
  191        mbbi != mbbe; ++mbbi) {
lib/CodeGen/FinalizeISel.cpp
   52   for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
lib/CodeGen/GCRootLowering.cpp
  108   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
  196   for (BasicBlock &BB : F) 
  197     for (BasicBlock::iterator II = BB.begin(), E = BB.end(); II != E;) {
  275   for (MachineBasicBlock &MBB : MF)
lib/CodeGen/GlobalISel/CSEInfo.cpp
  232   for (auto &MBB : MF) {
lib/CodeGen/GlobalISel/IRTranslator.cpp
  757   if (++BBI != FuncInfo.MF->end())
 2278   for (const BasicBlock &BB: F) {
 2335       for (const Instruction &Inst : *BB) {
lib/CodeGen/GlobalISel/InstructionSelect.cpp
  153   for (MachineBasicBlock &MBB : MF) {
  231   for (const auto &MBB : MF) {
lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  740     for (const MachineBasicBlock &MBB : MF)
lib/CodeGen/GlobalMerge.cpp
  581   for (Function &F : M) {
  582     for (BasicBlock &BB : F) {
  610   for (auto &GV : M.globals()) {
lib/CodeGen/IfConversion.cpp
 1427   for (MachineBasicBlock &MBB : MF)
 1441   while (I != TI) {
lib/CodeGen/ImplicitNullChecks.cpp
  304   for (auto &MBB : MF)
lib/CodeGen/IndirectBrExpandPass.cpp
   93   for (BasicBlock &BB : F)
  117   for (BasicBlock &BB : F) {
lib/CodeGen/InterleavedLoadCombinePass.cpp
 1110   assert(FLI != BB->end());
 1264     for (BasicBlock &BB : F) {
 1265       for (Instruction &I : BB) {
lib/CodeGen/LexicalScopes.cpp
   72   for (const auto &MBB : *MF) {
  289     for (const auto &MBB : *MF)
lib/CodeGen/LiveDebugValues.cpp
  636   for (const MachineBasicBlock &BB : MF) {
 1326   for (auto &MBB : MF) {
 1340   for (auto &MBB : MF)
lib/CodeGen/LiveDebugVariables.cpp
  683   for (MachineFunction::iterator MFI = mf.begin(), MFE = mf.end(); MFI != MFE;
  972   for (MachineBasicBlock &MBB : mf) {
lib/CodeGen/LiveIntervals.cpp
  215   for (const MachineBasicBlock &MBB : *MF) {
  319   for (const MachineBasicBlock &MBB : *MF) {
lib/CodeGen/LiveRangeShrink.cpp
  122   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/LiveVariables.cpp
  668   for(MachineFunction::iterator i = MF->begin(), e = MF->end(); i != e; ++i)
  709   for (const auto &MBB : Fn)
lib/CodeGen/LocalStackSlotAllocation.cpp
  303   for (MachineBasicBlock &BB : Fn) {
lib/CodeGen/LowerEmuTLS.cpp
   75   for (const auto &G : M.globals()) {
lib/CodeGen/MIRCanonicalizerPass.cpp
  248     for (auto BBI = MBB->instr_begin(); BBI != BBE; ++BBI) {
  311   for (MachineInstr &MI : MBB->instrs()) {
lib/CodeGen/MIRParser/MIParser.cpp
 2964   for (auto &BB : F) {
 3012   for (const auto &BB : F) {
 3014     for (const auto &I : BB)
lib/CodeGen/MIRParser/MIRParser.cpp
  321   for (const MachineBasicBlock &MBB : MF) {
  613   for (const MachineBasicBlock &MBB : MF) {
lib/CodeGen/MIRPrinter.cpp
  230   for (const auto &MBB : MF) {
  594     if (NextI != MF.end()) {
  687   for (auto I = MBB.instr_begin(), E = MBB.instr_end(); I != E; ++I) {
lib/CodeGen/MachineBasicBlock.cpp
   98          I = N->instr_begin(), E = N->instr_end(); I != E; ++I)
  151   for (; First != Last; ++First)
  162   while (I != E && I->isPHI())
  211   while (I != B && ((--I)->isTerminator() || I->isDebugInstr()))
  213   while (I != E && !I->isTerminator())
  226   while (I != B) {
  410   for (const MachineInstr &MI : instrs()) {
  904          I != E; ++I) {
  924          I != E; ++I) {
  946          I != E; ++I)
  955          I != E; ++I)
  973       for (MachineInstr &MI : NMBB->instrs()) {
  996       for (instr_iterator I = instr_end(), E = instr_begin(); I != E;) {
 1028          I != E && I->isPHI(); ++I) {
 1172   if (I != instr_end() && I->isBundledWithPred()) {
 1200   while (I != instr_begin()) {
 1294   if (MBBI != instr_end())
lib/CodeGen/MachineBlockFrequencyInfo.cpp
  136         for (auto MBI = F->begin(); MBI != F->end(); ++MBI, ++O) {
lib/CodeGen/MachineBlockPlacement.cpp
 1172   for (MachineBasicBlock &BB : *F) {
 1654   for (MachineFunction::iterator I = PrevUnplacedBlockIt, E = F->end(); I != E;
 2561   for (MachineFunction::iterator FI = F->begin(), FE = F->end(); FI != FE;
 2578       assert(NextFI != FE && "Can't fallthrough past the last block.");
 2602   for (MachineBasicBlock &MBB : *F)
 2615     for (MachineBasicBlock &MBB : *F)
 2641     if (InsertPos != MachineFunction::iterator(ChainBB))
 3066     for (MachineBasicBlock &MBB : MF)
 3071     for (auto MBI = std::next(MF.begin()), MBE = MF.end(); MBI != MBE; ++MBI) {
 3142   for (MachineBasicBlock &MBB : F) {
lib/CodeGen/MachineCombiner.cpp
  655   for (auto &MBB : MF)
lib/CodeGen/MachineCopyPropagation.cpp
  168     for (const MachineInstr &MI :
  305   for (MachineInstr &MI :
  452     for (MachineInstr &KMI :
  650   for (MachineBasicBlock &MBB : MF)
lib/CodeGen/MachineFrameInfo.cpp
  197   for (const MachineBasicBlock &MBB : MF) {
lib/CodeGen/MachineFunction.cpp
  218   for (iterator I = begin(), E = end(); I != E; I = BasicBlocks.erase(I))
  298   if (MBBI != begin())
  301   for (; MBBI != E; ++MBBI, ++BlockNo) {
  514   for (const auto &BB : *this) {
lib/CodeGen/MachineInstrBundle.cpp
   49   for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
   53            MIE = MBB->instr_end(); MII != MIE; ) {
   59         while (++MII != MIE && MII->isBundledWithPred()) {
  112   for (auto MII = FirstMI; MII != LastMI; ++MII)
  127   assert(FirstMI != LastMI && "Empty bundle?");
  147   for (auto MII = FirstMI; MII != LastMI; ++MII) {
  230   for (auto MII = FirstMI; MII != LastMI; ++MII) {
  248   while (LastMI != E && LastMI->isInsideBundle())
  258   for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
  267     for (++MII; MII != MIE; ) {
lib/CodeGen/MachineLICM.cpp
  760        I != Preheader->instr_end(); ++I) {
lib/CodeGen/MachineLoopInfo.cpp
   57   if (TopMBB->getIterator() != Begin) {
   72   if (BotMBB->getIterator() != std::prev(End)) {
lib/CodeGen/MachineOutliner.cpp
 1295   for (Function &F : M) {
 1330     for (MachineBasicBlock &MBB : *MF) {
 1356   for (const Function &F : M) {
 1373   for (const Function &F : M) {
lib/CodeGen/MachineScheduler.cpp
  516        MBB != MBBEnd; ++MBB) {
lib/CodeGen/MachineSink.cpp
  324     for (auto &MBB: MF)
 1346   for (auto &BB : MF)
lib/CodeGen/MachineSizeOpts.cpp
   54   for (const auto &MBB : *MF)
   71   for (const auto &MBB : *MF)
lib/CodeGen/MachineVerifier.cpp
  404        MFI!=MFE; ++MFI) {
  412            MBBE = MFI->instr_end(); MBBI != MBBE; ++MBBI) {
  586   for (const auto &MBB : *MF) {
  627           MBB->getIterator() != MBB->getParent()->begin()) {
 2141   for (const auto &MBB : *MF) {
 2176   for (const auto &MBB : *MF) {
 2273   for (const MachineBasicBlock &MBB : *MF)
 2280   for (const auto &MBB : *MF) {
 2317     for (const auto &MBB : *MF) {
lib/CodeGen/ModuloSchedule.cpp
  710          MI != ME;) {
  806         for (auto &BBJ : make_range(MachineBasicBlock::instr_iterator(MI),
  899          I != E && numAdded > 0; ++I, --numAdded)
 1657          I != std::next(B->getFirstNonPHI()->getReverseIterator());) {
lib/CodeGen/OptimizePHIs.cpp
   85   for (MachineFunction::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I)
lib/CodeGen/PHIElimination.cpp
  160     for (auto &MBB : MF)
  168   for (auto &MBB : MF)
  552   for (const auto &MBB : MF)
lib/CodeGen/PeepholeOptimizer.cpp
 1611   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/PostRAHazardRecognizer.cpp
   78   for (auto &MBB : Fn) {
lib/CodeGen/PostRASchedulerList.cpp
  317   for (auto &MBB : Fn) {
lib/CodeGen/PreISelIntrinsicLowering.cpp
   98   for (Function &F : M) {
lib/CodeGen/ProcessImplicitDefs.cpp
   99   for (++UserMI; UserMI != UserE; ++UserMI) {
  146        MFI != MFE; ++MFI) {
  149          MBBE = MFI->instr_end(); MBBI != MBBE; ++MBBI)
lib/CodeGen/PrologEpilogInserter.cpp
  315   for (MachineFunction::iterator BB = MF.begin(), E = MF.end(); BB != E; ++BB)
  372   for (MachineBasicBlock &MBB : MF) {
  520       for (MachineBasicBlock &MBB : MF) {
 1165   for (auto &BB : MF) {
lib/CodeGen/RegAllocFast.cpp
 1314   for (MachineBasicBlock &MBB : MF)
lib/CodeGen/RegAllocPBQP.cpp
  445     for (const auto &MBB : MF) {
lib/CodeGen/RegUsageInfoPropagate.cpp
  115   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/RegisterCoalescer.cpp
 3641   for (MachineFunction::iterator I = MF->begin(), E = MF->end(); I != E; ++I) {
lib/CodeGen/RegisterScavenging.cpp
  763   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/SafeStackColoring.cpp
  147       for (Instruction &I : *BB) {
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
  817     for (Function::iterator I = F.begin(); I != F.end();) {
  837   while (CurInstIterator != BB.end()) {
lib/CodeGen/ScheduleDAGInstrs.cpp
 1149       } while (I != Bundle);
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 1402   for (SDNode &Node : DAG.allnodes())
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  133   for (const BasicBlock &BB : *Fn) {
  134     for (const Instruction &I : BB) {
  230   for (const BasicBlock &BB : *Fn) {
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
 4606     for (auto NI = allnodes_end(); NI != allnodes_begin();) {
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
   77   for (SDNode &Node : DAG.allnodes()) {
  205   for (SDNode &Node : DAG.allnodes()) {
  429   for (SDNode &Node : DAG.allnodes()) {
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  182        E = std::prev(DAG.allnodes_end()); I != std::next(E); ++I) {
  206        E = std::prev(DAG.allnodes_end()); I != std::next(E); ++I)
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
  720   for (SDNode &Node : DAG->allnodes()) {
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
  309   for (SDNode &NI : DAG->allnodes()) {
  327   for (SDNode &NI : DAG->allnodes()) {
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  685   for (SDNode &Node : allnodes())
  752   assert(N->getIterator() != AllNodes.begin() &&
 8413   for (auto &N : allnodes()) {
 8435   for (auto &N : allnodes()) {
 8449   for (auto &N : allnodes()) {
 8535   for (allnodes_iterator I = allnodes_begin(),E = allnodes_end(); I != E; ) {
 8543       if (Q != SortedPos)
 8545       assert(SortedPos != AllNodes.end() && "Overran node list");
 8555   for (SDNode &Node : allnodes()) {
 8569         if (P->getIterator() != SortedPos)
 8571         assert(SortedPos != AllNodes.end() && "Overran node list");
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 9446   for (const Instruction &I : FuncInfo->Fn->getEntryBlock()) {
10048   if (++BBI != FuncInfo.MF->end())
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  819        I != E; ++I) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  357   for (BasicBlock &BB : Fn) {
  482     for (const BasicBlock &BB : Fn) {
  550     for (MachineBasicBlock &MBB : mf) {
  637   for (const auto &MBB : *MF) {
  722   for (BasicBlock::const_iterator I = Begin; I != End && !SDB->HasTailCall; ++I) {
 1121     while (ISelPosition != CurDAG->allnodes_begin()) {
 1296   for (const BasicBlock &BB : *FuncInfo->Fn) {
 1297     for (const Instruction &I : BB) {
 1452       for (; BI != Begin; --BI) {
 1577     if (Begin != BI)
 1582     if (Begin != BI) {
lib/CodeGen/ShadowStackGCLowering.cpp
  169   for (Function &F : M) {
  236   for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
  237     for (BasicBlock::iterator II = BB->begin(), E = BB->end(); II != E;)
lib/CodeGen/ShrinkWrap.cpp
  487   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/SjLjEHPrepare.cpp
  233   assert(AfterAllocaInsPt != F.front().end());
  262   for (BasicBlock &BB : F) {
  263     for (Instruction &Inst : BB) {
  359   for (BasicBlock &BB : F)
  432   for (BasicBlock &BB : F) {
  435     for (Instruction &I : BB)
  447   for (BasicBlock &BB : F) {
  450     for (Instruction &I : BB) {
lib/CodeGen/SlotIndexes.cpp
   70   for (MachineBasicBlock &MBB : *mf) {
  159   } while (curItr != indexList.end() && curItr->getIndex() <= index);
  200   while (ListI != ListB || MBBI != Begin || (includeStart && !pastStart)) {
  240        itr != indexList.end(); ++itr) {
lib/CodeGen/SpillPlacement.cpp
  210   for (auto &I : mf) {
lib/CodeGen/StackColoring.cpp
  819   for (const MachineBasicBlock &MBB : *MF) {
  962   for (MachineBasicBlock &BB : *MF)
 1078   for (MachineBasicBlock &BB : *MF)
lib/CodeGen/StackMapLivenessAnalysis.cpp
  125   for (auto &MBB : MF) {
lib/CodeGen/StackProtector.cpp
  224   for (const BasicBlock &BB : F)
  225     for (const Instruction &I : BB)
  275   for (const BasicBlock &BB : *F) {
  276     for (const Instruction &I : BB) {
  411   for (Function::iterator I = F->begin(), E = F->end(); I != E;) {
lib/CodeGen/StackSlotColoring.cpp
  160        MBBI != E; ++MBBI) {
  374   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/SwiftErrorValueTracking.cpp
  107   for (const auto &LLVMBB : *Fn)
  108     for (const auto &Inst : LLVMBB) {
  266   for (auto It = Begin; It != End; ++It) {
lib/CodeGen/TailDuplicator.cpp
   96   for (MachineFunction::iterator I = ++MF.begin(), E = MF.end(); I != E; ++I) {
  268   for (MachineFunction::iterator I = ++MF->begin(), E = MF->end(); I != E;) {
lib/CodeGen/TargetInstrInfo.cpp
  151   if (++MachineFunction::iterator(MBB) != MachineFunction::iterator(NewDest))
lib/CodeGen/TwoAddressInstructionPass.cpp
 1695        MBBI != MBBE; ++MBBI) {
lib/CodeGen/UnreachableBlockElim.cpp
  118   for (MachineFunction::iterator I = F.begin(), E = F.end(); I != E; ++I) {
  152     for (auto &I : DeadBlocks[i]->instrs())
  160   for (MachineFunction::iterator I = F.begin(), E = F.end(); I != E; ++I) {
lib/CodeGen/VirtRegMap.cpp
  344   for (MachineBasicBlock &MBB : *MF)
  413          I != E && I->isBundledWithSucc(); ++I) {
  500        MBBI != MBBE; ++MBBI) {
  503            MII = MBBI->instr_begin(), MIE = MBBI->instr_end(); MII != MIE;) {
lib/CodeGen/WasmEHPrepare.cpp
  207   for (BasicBlock &BB : F) {
  355   for (const auto &BB : *F) {
lib/CodeGen/WinEHPrepare.cpp
  176   for (BasicBlock &BB : *F) {
  433   for (const BasicBlock &BB : *Fn) {
  451   for (const BasicBlock &BB : *Fn) {
  507   for (const BasicBlock &BB : *Fn) {
  682   for (BasicBlock &BB : F) {
  693   for (Function::iterator FI = F.begin(), FE = F.end(); FI != FE;) {
  700     for (BasicBlock::iterator BI = BB->begin(), BE = BB->end(); BI != BE;) {
  801       for (Instruction &I : *BB)
  942       for (Instruction &I : *BB) {
 1008   for (Function::iterator FI = F.begin(), FE = F.end(); FI != FE;) {
 1022   for (BasicBlock &BB : F) {
lib/CodeGen/XRayInstrumentation.cpp
   93   for (auto &MBB : MF) {
  126   for (auto &MBB : MF)
  160     for (const auto &MBB : MF)
lib/ExecutionEngine/ExecutionEngine.cpp
 1198       for (const auto &GV : M.globals()) {
 1228     for (const auto &GV : M.globals()) {
 1271     for (const auto &GV : M.globals()) {
lib/ExecutionEngine/ExecutionEngineBindings.cpp
  188     for (auto &F : *Mod) {
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
  194   for (auto &F : M.functions()) {
  226   for (auto &A : M.aliases())
  231     for (auto &G : M.globals())
lib/ExecutionEngine/Orc/SpeculateAnalyses.cpp
   36   for (auto &BB : F)
  140   for (auto &Block : F.getBasicBlockList())
lib/ExecutionEngine/Orc/Speculation.cpp
   86     for (auto &Fn : M.getFunctionList()) {
lib/FuzzMutate/IRMutator.cpp
   40   for (Function &F : M)
  108   for (auto I = BB.getFirstInsertionPt(), E = BB.end(); I != E; ++I)
  188   for (auto I = BB->getFirstInsertionPt(), E = Inst.getIterator(); I != E;
lib/FuzzMutate/RandomIRBuilder.cpp
   54       assert(IP != BB.end() && "guaranteed by the findPointer");
lib/IR/AsmWriter.cpp
  139   for (const GlobalVariable &G : M->globals()) {
  145   for (const GlobalAlias &A : M->aliases()) {
  150   for (const GlobalIFunc &I : M->ifuncs()) {
  155   for (const Function &F : *M) {
  167     for (const BasicBlock &BB : F) {
  169       for (const Instruction &I : BB) {
  278   for (const Function &F : make_range(M->rbegin(), M->rend())) {
  281     for (const BasicBlock &BB : F)
  285     for (const BasicBlock &BB : F)
  286       for (const Instruction &I : BB)
  290     for (const BasicBlock &BB : F)
  291       for (const Instruction &I : BB)
  296   for (const GlobalVariable &G : M->globals())
  298   for (const Function &F : *M)
  300   for (const GlobalAlias &A : M->aliases())
  302   for (const GlobalIFunc &I : M->ifuncs())
  304   for (const GlobalVariable &G : M->globals())
  307   for (const GlobalAlias &A : M->aliases())
  309   for (const GlobalIFunc &I : M->ifuncs())
  311   for (const Function &F : *M)
  933   for (const GlobalVariable &Var : TheModule->globals()) {
  942   for (const GlobalAlias &A : TheModule->aliases()) {
  947   for (const GlobalIFunc &I : TheModule->ifuncs()) {
  953   for (const NamedMDNode &NMD : TheModule->named_metadata()) {
  958   for (const Function &F : *TheModule) {
  994   for (auto &BB : *TheFunction) {
  998     for (auto &I : BB) {
 1060   for (auto &BB : F) {
 1061     for (auto &I : BB)
 2629   for (const GlobalVariable &GV : M->globals()) {
 2635   for (const GlobalAlias &GA : M->aliases())
 2640   for (const GlobalIFunc &GI : M->ifuncs())
 2647   for (const Function &F : *M)
 2660   for (const NamedMDNode &Node : M->named_metadata())
 3532     for (const BasicBlock &BB : *F)
 3607   for (const Instruction &I : *BB) {
lib/IR/AutoUpgrade.cpp
 4061   for (auto &GV : M.globals()) {
lib/IR/BasicBlock.cpp
  197   for (const Instruction &I : *this)
  204   for (const Instruction &I : *this)
  211   for (const Instruction &I : *this) {
  234   for (Instruction &I : *this)
  416   assert(I != InstList.end() &&
  444   for (iterator II = begin(), IE = end(); II != IE; ++II) {
lib/IR/Core.cpp
 2592   for (BasicBlock &BB : *Fn)
lib/IR/DebugInfo.cpp
   65   for (auto &F : M.functions()) {
   70     for (const BasicBlock &BB : F)
   71       for (const Instruction &I : BB)
  321   for (BasicBlock &BB : F) {
  322     for (auto II = BB.begin(), End = BB.end(); II != End;) {
  354          NME = M.named_metadata_end(); NMI != NME;) {
  367   for (Function &F : M)
  370   for (auto &GV : M.globals()) {
  606        NMI != NME;) {
  615   for (auto &GV : M.globals())
  631   for (auto &F : M) {
  638     for (auto &BB : F) {
  639       for (auto &I : BB) {
  666   for (auto &NMD : M.getNamedMDList()) {
lib/IR/Function.cpp
  211   for (const BasicBlock &BB : BasicBlocks)
  362   for (BasicBlock &BB : *this)
lib/IR/IRPrintingPasses.cpp
   36     for(const auto &F : M.functions()) {
lib/IR/LegacyPassManager.cpp
  150   for (Function &F : M) {
 1389   for (BasicBlock &BB : F) {
 1683   for (Function &F : M)
lib/IR/Module.cpp
  440   for (Function &F : *this)
  443   for (GlobalVariable &GV : globals())
  446   for (GlobalAlias &GA : aliases())
  449   for (GlobalIFunc &GIF : ifuncs())
  477   for (Function &F : FunctionList)
lib/IR/PassManager.cpp
   55   for (Function &F : M) {
lib/IR/SafepointIRVerifier.cpp
  129     for (const BasicBlock &BB : F)
  540   for (const BasicBlock &BB : F)
  543       for (const auto &I : BB)
  590     for (const Instruction &I : *BB) {
  654   for (const Instruction &I : *BB) {
lib/IR/SymbolTableListTraitsImpl.h
   48     for (auto I = ItemList.begin(); I != ItemList.end(); ++I)
   55     for (auto I = ItemList.begin(); I != ItemList.end(); ++I)
   94     for (; first != last; ++first) {
  106     for (; first != last; ++first)
lib/IR/TypeFinder.cpp
   35   for (const auto &G : M.globals()) {
   42   for (const auto &A : M.aliases()) {
   50   for (const Function &FI : M) {
   60     for (const BasicBlock &BB : FI)
   61       for (const Instruction &I : BB) {
   79   for (const auto &NMD : M.named_metadata())
lib/IR/Value.cpp
  148   for (; BI != BE && UI != UE; ++BI, ++UI) {
lib/IR/Verifier.cpp
  336     for (const BasicBlock &BB : F) {
  367     for (const Function &F : M)
  374     for (const GlobalVariable &GV : M.globals())
  377     for (const GlobalAlias &GA : M.aliases())
  380     for (const NamedMDNode &NMD : M.named_metadata())
 2361   for (auto &BB : F)
 2362     for (auto &I : BB) {
 2427   for (auto &I : BB)
 5126   for (const Function &F : M)
 5170     for (Function &F : M)
lib/LTO/LTO.cpp
  681   for (GlobalVariable &GV : M.globals())
  686   for (auto &GA : M.aliases())
lib/LTO/LTOCodeGenerator.cpp
  402   for (auto &GV : TheModule)
  404   for (auto &GV : TheModule.globals())
  406   for (auto &GV : TheModule.aliases())
  452     for (auto &GV : *MergedModule)
  454     for (auto &GV : MergedModule->globals())
  456     for (auto &GV : MergedModule->aliases())
lib/LTO/UpdateCompilerUsed.cpp
   35     for (Function &F : TheModule)
   37     for (GlobalVariable &GV : TheModule.globals())
   39     for (GlobalAlias &GA : TheModule.aliases())
   73     for (const Function &F : TheModule) {
lib/Linker/IRMover.cpp
  744   for (GlobalValue &SGV : SrcM->globals()) {
  760   for (GlobalValue &SGV : *SrcM)
  774   for (GlobalValue &SGV : SrcM->aliases())
 1180   for (const NamedMDNode &NMD : SrcM->named_metadata()) {
lib/Linker/LinkModules.cpp
  486   for (auto I = DstM.alias_begin(), E = DstM.alias_end(); I != E;) {
  491   for (auto I = DstM.global_begin(), E = DstM.global_end(); I != E;) {
  496   for (auto I = DstM.begin(), E = DstM.end(); I != E;) {
  501   for (GlobalVariable &GV : SrcM->globals())
  506   for (Function &SF : *SrcM)
  511   for (GlobalAlias &GA : SrcM->aliases())
  518   for (GlobalVariable &GV : SrcM->globals())
  522   for (Function &SF : *SrcM)
  526   for (GlobalAlias &GA : SrcM->aliases())
lib/MC/MCAssembler.cpp
  675     for (const MCFragment &F : *Sec) {
  715   for (const MCFragment &F : *Sec)
  781     for (MCFragment &Frag : *Sec)
  807     for (MCFragment &Frag : Sec) {
 1065   for (MCSection::iterator I = Sec.begin(), IE = Sec.end(); I != IE; ++I) {
lib/MC/MCFragment.cpp
   71     assert(I != Sec->end() && "Layout bookkeeping error");
lib/MC/MCMachOStreamer.cpp
  496     for (MCFragment &Frag : Sec) {
lib/MC/MCObjectStreamer.cpp
  140   if (CurInsertionPoint != getCurrentSectionOnly()->getFragmentList().begin())
lib/MC/MCSection.cpp
   95   for (auto it = begin(), ie = end(); it != ie; ++it) {
   96     if (it != begin())
lib/MC/WasmObjectWriter.cpp
  592   for (const MCFragment &Frag : DataSection) {
lib/ProfileData/InstrProf.cpp
  337   for (Function &F : M) {
lib/ProfileData/SampleProfReader.cpp
  508   for (auto &F : M)
  888   for (auto &F : M)
lib/Target/AArch64/AArch64A53Fix835769.cpp
  122   for (auto &MBB : F) {
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
  323   for (auto &MBB : F) {
lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp
  402   for (MachineFunction::iterator I = mf.begin(), E = mf.end(); I != E; ++I)
lib/Target/AArch64/AArch64BranchTargets.cpp
   78   for (MachineBasicBlock &MBB : MF) {
lib/Target/AArch64/AArch64CollectLOH.cpp
  511   for (const MachineBasicBlock &MBB : MF) {
lib/Target/AArch64/AArch64CompressJumpTables.cpp
   78   for (MachineBasicBlock &MBB : *MF) {
  149   for (MachineBasicBlock &MBB : *MF) {
lib/Target/AArch64/AArch64CondBrTuning.cpp
  304   for (MachineBasicBlock &MBB : MF) {
lib/Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp
  196   for (auto &MBB : MF)
lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
  729   for (auto &MBB : MF)
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp
  154     for (Instruction &I : *BB) {
lib/Target/AArch64/AArch64FastISel.cpp
 3454   for (auto Itr = std::prev(Start); Itr != End; --Itr) {
lib/Target/AArch64/AArch64FrameLowering.cpp
  188   for (MachineBasicBlock &MBB : MF) {
lib/Target/AArch64/AArch64InstrInfo.cpp
 1420        I != E; ++I) {
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
  963       for (MachineInstr &MI : make_range(StoreI->getIterator(),
 1037   for (MachineInstr &MI : make_range(StoreI->getIterator(),
 1831   for (auto &MBB : Fn)
lib/Target/AArch64/AArch64PBQPRegAlloc.cpp
  333   for (const auto &MBB: MF) {
lib/Target/AArch64/AArch64PromoteConstant.cpp
  126     for (auto &MF : M) {
lib/Target/AArch64/AArch64RedundantCopyElimination.cpp
  485   for (MachineBasicBlock &MBB : MF)
lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
  710       for (MachineBasicBlock &MBB : MF) {
lib/Target/AArch64/AArch64SpeculationHardening.cpp
  265     if (MBB.instr_end() != MBB.instr_begin())
  413   for (MachineBasicBlock &MBB : MF) {
  671     for (auto &MBB : MF)
  689   for (auto &MBB : MF) {
lib/Target/AArch64/AArch64StackTagging.cpp
  504   for (const Instruction &I : *ABB) {
  528   for (auto &BB : *F) {
  529     for (BasicBlock::iterator IT = BB.begin(); IT != BB.end(); ++IT) {
lib/Target/AArch64/AArch64StackTaggingPreRA.cpp
  190   for (auto &BB : *MF) {
lib/Target/AArch64/AArch64StorePairSuppress.cpp
  144   for (auto &MBB : MF) {
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  729       for (auto &I : *BB) {
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
   93   for (GlobalAlias &A : M.aliases()) {
  119   for (GlobalVariable &GV : M.globals()) {
  132     for (Function &F : M) {
lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
  275   for (BasicBlock &BB : F) {
  276     for (Instruction &I : BB) {
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  576   for (const MachineBasicBlock &MBB : MF) {
  696   for (const MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
 1039   for (BasicBlock &BB : F) {
 1041     for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; I = Next) {
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  485   while (Position != CurDAG->allnodes_begin()) {
 2715     while (Position != CurDAG->allnodes_end()) {
lib/Target/AMDGPU/AMDGPULibCalls.cpp
 1328     for (int I = MaxScan; I > 0 && BBI != CBB->begin(); --BBI, --I) {
 1755   for (auto &BB : F) {
 1756     for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ) {
 1780   for (auto &BB : F) {
 1781     for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ) {
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
  134   for (Function &F : M) {
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  274     while (I != MBB->instr_end() && I->isInsideBundle()) {
  398     while (I != MBB->instr_end() && I->isInsideBundle()) {
lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
  625   for (auto &MFI : MF) {
  719                MII != MIE; ++MII) {
 1420        I != E; ++I) {
 1698   bool HasTerminator = Terminator != MBB->instr_end();
 1702   if (++MachineFunction::iterator(MBB) != MachineFunction::iterator(Dest)) {
 1709   for (auto &MFI : MF) {
 2301     if (CodeBBEndIter != MergeIter) {
 2804   for (auto &MBBI : MF) {
 2858   for (auto &MBBI : MF) {
 2861          I != E; ++I) {
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
  109   for (auto &F : M.functions()) {
lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
  211   for (auto &B : F) {
  213     for (auto &I : B) {
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  167   for (Instruction &I : EntryBB) {
  650   for (GlobalVariable &GV : Mod->globals()) {
lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp
  169   for (auto &F : M.functions())
  194     for (auto &F : M.functions()) {
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  265   for (BasicBlock &BB : F) {
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  112     for (const Instruction &I : *BB) {
lib/Target/AMDGPU/GCNDPPCombine.cpp
  565   for (auto &MBB : MF) {
lib/Target/AMDGPU/GCNHazardRecognizer.cpp
  209   for (; MI != E && MI->isInsideBundle(); ++MI) {
  367   for (auto E = MBB->instr_rend(); I != E; ++I) {
lib/Target/AMDGPU/GCNILPSched.cpp
  245   for (auto I = std::next(AvailQueue.begin()), E = AvailQueue.end(); I != E; ++I) {
  258   for(auto I = PendingQueue.begin(), E = PendingQueue.end(); I != E;) {
  330                     : AvailQueue) dbgs()
lib/Target/AMDGPU/GCNMinRegStrategy.cpp
  211   for (auto &C : RQ) {
  252                     : RQ) dbgs()
lib/Target/AMDGPU/GCNNSAReassign.cpp
  241   for (const MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/GCNRegBankReassign.cpp
  408   for (unsigned S = StallCycles; S && Def != B && Defs != 3; --S) {
  686   for (MachineBasicBlock &MBB : MF) {
  693     for (MachineInstr &MI : MBB.instrs()) {
lib/Target/AMDGPU/R600AsmPrinter.cpp
   51   for (const MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/R600ClauseMergePass.cpp
  190                                                   BB != BB_E; ++BB) {
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp
  426         while (++BI != E && BI->isBundledWithPred()) {
  516     for (MachineFunction::iterator MB = MF.begin(), ME = MF.end(); MB != ME;
lib/Target/AMDGPU/R600EmitClauseMarkers.cpp
  321                                                     BB != BB_E; ++BB) {
lib/Target/AMDGPU/R600ExpandSpecialInstrs.cpp
   89                                                   BB != BB_E; ++BB) {
lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
  342        MBB != MBBe; ++MBB) {
lib/Target/AMDGPU/R600Packetizer.cpp
  352        MBB != MBBe; ++MBB) {
  370        MBB != MBBe; ++MBB) {
lib/Target/AMDGPU/SIAddIMGInit.cpp
   69   for (MachineFunction::iterator BI = MF.begin(), BE = MF.end(); BI != BE;
lib/Target/AMDGPU/SIFixSGPRCopies.cpp
  598                                                   BI != BE; ++BI) {
lib/Target/AMDGPU/SIFixVGPRCopies.cpp
   54   for (MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/SIFixupVectorISel.cpp
  229   for (MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/SIFormMemoryClauses.cpp
  325   for (MachineBasicBlock &MBB : MF) {
  327     for (auto I = MBB.instr_begin(), E = MBB.instr_end(); I != E; I = Next) {
  344       for ( ; Next != E && Length < FuncMaxClause; ++Next) {
  365       for (auto BI = I; BI != Next; ++BI) {
lib/Target/AMDGPU/SIFrameLowering.cpp
  461   for (MachineBasicBlock &OtherBB : MF) {
lib/Target/AMDGPU/SIISelLowering.cpp
10717     for (auto &MBB : MF) {
lib/Target/AMDGPU/SIInsertSkips.cpp
  114        MBBI != End && MBBI != ToI; ++MBBI) {
  114        MBBI != End && MBBI != ToI; ++MBBI) {
  446        BI != BE; BI = NextBB) {
  493           if (NextBB != BE && skipIfDead(MI, *NextBB)) {
  511         if (BI != --MF.end() || I != MBB.getFirstTerminator()) {
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
 1376        Iter != E;) {
 1543   for (MachineFunction::iterator BI = MF.begin(), BE = MF.end(); BI != BE;
lib/Target/AMDGPU/SIInstrInfo.cpp
 5972   while (++I != E && I->isInsideBundle()) {
 6470   for (auto I = std::next(DefMI.getIterator()); I != E; ++I) {
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
 1688   for (MachineInstr &MI : MBB.instrs()) {
 1850   for (MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/SILowerControlFlow.cpp
  457   for (auto I = Def->getIterator(); I != MI.getIterator(); ++I)
  526        BI != BE; BI = NextBB) {
lib/Target/AMDGPU/SILowerI1Copies.cpp
  504   for (MachineBasicBlock &MBB : *MF) {
  552   for (MachineBasicBlock &MBB : *MF) {
  672   for (MachineBasicBlock &MBB : *MF) {
lib/Target/AMDGPU/SILowerSGPRSpills.cpp
  176   for (MachineBasicBlock &MBB : MF) {
  269     for (MachineBasicBlock &MBB : MF) {
  303     for (MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
  309       for (MachineBasicBlock &BB : MF)
lib/Target/AMDGPU/SIMemoryLegalizer.cpp
 1290   for (auto &MBB : MF) {
lib/Target/AMDGPU/SIModeRegister.cpp
  384   for (MachineBasicBlock &BB : MF)
  390   for (MachineBasicBlock &BB : MF)
  399   for (MachineBasicBlock &BB : MF)
lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
  287   for (MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
  308   for (MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/SIPeepholeSDWA.cpp
  918        I != E; ++I) {
 1216   for (MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp
  121   for (MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/SIShrinkInstructions.cpp
  493     for (auto IY = MovY.getIterator(); I != E && I != IY; ++I) {
  493     for (auto IY = MovY.getIterator(); I != E && I != IY; ++I) {
  561                                                   BI != BE; ++BI) {
lib/Target/ARC/ARCBranchFinalize.cpp
  153   for (auto &MBB : MF) {
lib/Target/ARC/ARCExpandPseudos.cpp
   80   for (auto &MBB : MF) {
lib/Target/ARC/ARCOptAddrMode.cpp
  496   for (auto &MBB : MF)
lib/Target/ARM/A15SDOptimizer.cpp
  675   for (MachineBasicBlock &MBB : Fn) {
lib/Target/ARM/ARMBaseInstrInfo.cpp
  486     while (++I != E && I->isInsideBundle()) {
  761   while (++I != E && I->isInsideBundle()) {
 4054   while (II != E && II->isInsideBundle()) {
 4638     while (++I != E && I->isInsideBundle()) {
lib/Target/ARM/ARMBasicBlockInfo.h
  126     for (MachineBasicBlock &MBB : MF)
lib/Target/ARM/ARMCodeGenPrepare.cpp
 1022   for (BasicBlock &BB : F) {
 1024     for (auto &I : Insts) {
lib/Target/ARM/ARMConstantIslandPass.cpp
  562   for (MachineBasicBlock &MBB : *MF) {
  678   for (MachineBasicBlock &MBB : *MF) {
  702   for (MachineBasicBlock &MBB : *MF) {
 2114   return MBB != MF->end() && MBB->begin() != MBB->end() &&
lib/Target/ARM/ARMExpandPseudoInsts.cpp
 1980   for (MachineBasicBlock &MBB : MF)
lib/Target/ARM/ARMFrameLowering.cpp
 1490   for (auto &MBB : MF) {
 1513   for (auto &MBB : MF) {
lib/Target/ARM/ARMISelDAGToDAG.cpp
  352        E = CurDAG->allnodes_end(); I != E; ) {
lib/Target/ARM/ARMISelLowering.cpp
 9480   for (MachineFunction::iterator BB = MF->begin(), E = MF->end(); BB != E;
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
 2012   for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
 2096   for (MachineBasicBlock &MFI : Fn)
lib/Target/ARM/ARMLowOverheadLoops.cpp
  518   for (auto &MBB : *MF) {
lib/Target/ARM/ARMOptimizeBarriersPass.cpp
   62   for (auto &MBB : MF) {
lib/Target/ARM/ARMParallelDSP.cpp
  359   for (auto &I : *BB) {
  516   for (auto &BB : F) {
  521     for (Instruction &I : reverse(BB)) {
lib/Target/ARM/ARMTargetTransformInfo.cpp
  974       for (auto &I : *BB) {
 1039     for (auto &I : *BB) {
lib/Target/ARM/MLxExpansionPass.cpp
  384   for (MachineBasicBlock &MBB : Fn)
lib/Target/ARM/MVETailPredication.cpp
  135     for (auto &I : *BB) {
  163     for (auto &I : *BB) {
  294     for (auto &I : *BB) {
  407       for (auto &I : *Exit) {
lib/Target/ARM/MVEVPTBlockPass.cpp
  173   while (MBIter != EndIter) {
  200     while (MBIter != EndIter && VPTInstCnt < 4) {
  269   for (MachineBasicBlock &MBB : Fn)
lib/Target/ARM/Thumb2ITBlockPass.cpp
  299   for (auto &MBB : Fn )
lib/Target/ARM/Thumb2SizeReduction.cpp
 1057   for (; MII != E; MII = NextMII) {
 1071     bool NextInSameBundle = NextMII != E && NextMII->isBundledWithPred();
lib/Target/AVR/AVRExpandPseudoInsts.cpp
  120   for (Block &MBB : MF) {
lib/Target/AVR/AVRFrameLowering.cpp
  120        I != E; ++I) {
  460     for (const MachineBasicBlock &BB : MF) {
  521     for (MachineBasicBlock &MBB : MF) {
lib/Target/AVR/AVRISelLowering.cpp
 1496   for (I = BB->getIterator(); I != F->end() && &(*I) != BB; ++I);
 1497   if (I != F->end()) ++I;
 1650   for (I = MF->begin(); I != MF->end() && &(*I) != MBB; ++I);
 1651   if (I != MF->end()) ++I;
lib/Target/AVR/AVRRelaxMemOperations.cpp
   66   for (Block &MBB : MF) {
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  308   for (Function &F : M)
  309     for (auto &BB : F)
  310       for (auto &I : BB) {
  493   for (auto &BB : F)
  494     for (auto &I : BB) {
  913   for (Function &F : M) {
lib/Target/BPF/BPFISelDAGToDAG.cpp
  329        I != E;) {
lib/Target/BPF/BPFMIChecking.cpp
  157   for (MachineBasicBlock &MBB : *MF) {
lib/Target/BPF/BPFMIPeephole.cpp
  123   for (MachineBasicBlock &MBB : *MF) {
  240   for (MachineBasicBlock &MBB : *MF) {
  361   for (MachineBasicBlock &MBB : *MF) {
lib/Target/BPF/BPFMISimplifyPatchable.cpp
   80   for (MachineBasicBlock &MBB : *MF) {
lib/Target/BPF/BTFDebug.cpp
 1057   for (const GlobalVariable &Global : M->globals()) {
lib/Target/Hexagon/BitTracker.cpp
  968       if (Next != MF.end())
 1089       if (Next != MF.end() && B.isSuccessor(&*Next)) {
 1126   for (const MachineBasicBlock &B : MF) {
lib/Target/Hexagon/HexagonAsmPrinter.cpp
  753     for (++MII; MII != MBB->instr_end() && MII->isInsideBundle(); ++MII)
lib/Target/Hexagon/HexagonBitSimplify.cpp
 2809     for (auto &B : MF)
 3325   for (auto &B : MF) {
lib/Target/Hexagon/HexagonBranchRelaxation.cpp
  107   for (auto &B : MF) {
  115     for (auto &MI : B.instrs()) {
  180     assert(SecondTerm != B.instr_end() &&
  197   for (auto &B : MF) {
lib/Target/Hexagon/HexagonCFGOptimizer.cpp
  121        MBBb != MBBe; ++MBBb) {
lib/Target/Hexagon/HexagonCommonGEP.cpp
  420     for (BasicBlock::iterator J = B->begin(), F = B->end(); J != F; ++J) {
 1210       if (FirstUse != LastB->end())
 1261     for (reverse_iterator I = IL.rbegin(), E = IL.rend(); I != E; ++I)
 1276   for (Function::iterator A = F.begin(), Z = F.end(); A != Z; ++A)
 1277     for (BasicBlock::iterator I = A->begin(), E = A->end(); I != E; ++I)
lib/Target/Hexagon/HexagonConstExtenders.cpp
 1246   for (MachineBasicBlock &MBB : MF) {
lib/Target/Hexagon/HexagonConstPropagation.cpp
  759       if (Next != MF.end())
  834     if (NextI != MB->getParent()->end())
  937     for (const MachineBasicBlock &B : MF) {
 1033   for (MachineBasicBlock &B : MF) {
lib/Target/Hexagon/HexagonCopyToCombine.cpp
  481   for (MachineFunction::iterator BI = MF.begin(), BE = MF.end(); BI != BE;
lib/Target/Hexagon/HexagonEarlyIfConv.cpp
  257   MachineBasicBlock *NextB = (NextBI != MFN->end()) ? &*NextBI : nullptr;
lib/Target/Hexagon/HexagonExpandCondsets.cpp
 1267   for (auto &B : MF)
 1312   for (auto &B : MF)
lib/Target/Hexagon/HexagonFixupHwLoops.cpp
  116   for (const MachineBasicBlock &MBB : MF) {
  132   for (MachineBasicBlock &MBB : MF) {
lib/Target/Hexagon/HexagonFrameLowering.cpp
  423   for (auto &I : MF) {
  440   for (auto &I : MF)
  523     for (auto &B : MF)
  527     for (auto &B : MF)
  531     for (auto &B : MF) {
  612   for (auto &MBB : MF)
  859       while (++T != End && T->isBundled()) {
  872   for (auto &B : MF) {
 1888   for (auto &B : MF) {
 2053   for (auto &B : MF) {
 2195     for (auto &B : MF) {
 2228   for (auto &B : MF) {
 2400   for (auto &B : MF)
 2501   for (const MachineBasicBlock &B : MF) {
lib/Target/Hexagon/HexagonGenInsert.cpp
  597   for (mf_iterator A = MFN->begin(), Z = MFN->end(); A != Z; ++A) {
lib/Target/Hexagon/HexagonGenMux.cpp
  383   for (auto &I : MF)
lib/Target/Hexagon/HexagonGenPredicate.cpp
  206   for (MachineFunction::iterator A = MF.begin(), Z = MF.end(); A != Z; ++A) {
  468   for (MachineBasicBlock &MBB : MF) {
lib/Target/Hexagon/HexagonHardwareLoops.cpp
  428        I != E && I->isPHI(); ++I) {
 1331   for (instr_iterator I(BumpI), E = BB->instr_end(); I != E; ++I)
 1339   for (instr_iterator I = NextIt, E = BB->instr_end(); I != E; ++I) {
 1629        I != E && I->isPHI(); ++I) {
 1899          I != E && I->isPHI(); ++I) {
 1947          I != E && I->isPHI(); ++I) {
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
 1212     for (SDNode &N : CurDAG->allnodes())
 2233   for (auto I = CurDAG->allnodes_begin(), E = CurDAG->allnodes_end(); I != E;) {
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
 1383   for (SDNode &S : DAG.allnodes())
lib/Target/Hexagon/HexagonInstrInfo.cpp
  135   for (; MIB != MIE; ++MIB) {
  166     for (auto I = PB->instr_rbegin(), E = PB->instr_rend(); I != E; ++I) {
  343     for (++MII; MII != MBB->instr_end() && MII->isInsideBundle(); ++MII)
  361     for (++MII; MII != MBB->instr_end() && MII->isInsideBundle(); ++MII)
  416   } while (I != MBB.instr_begin());
 3087   for (++MII; MII != MIE && MII->isInsideBundle(); ++MII) {
 3250   } while (I != MBB.instr_begin());
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  629   for (auto I = BB->begin(), E = BB->end(); I != E && isa<PHINode>(I); ++I) {
 1075   for (Instruction &In : *LoopB)
 1090   for (auto I = ExitB->begin(); I != End; ++I) {
 1305   for (Instruction &I : *LoopB) {
 1391   for (auto I = LoopB->begin(), E = LoopB->end(); I != E; ++I) {
 1449   for (auto P = ExitB->begin(), Q = ExitB->end(); P != Q; ++P) {
 1469   for (auto &I : *LoopB)
 1473   for (auto I = LoopB->begin(), N = I; I != LoopB->end(); I = N) {
 1812   for (Instruction &In : *LoopB) {
 1847     for (Instruction &In : *LoopB) {
 1869   for (Instruction &In : *LoopB) {
 1989     for (auto &I : *B)
 2001   for (Instruction &I : *BB)
 2181     for (auto &In : *Header) {
 2333     for (auto &In : *B) {
lib/Target/Hexagon/HexagonNewValueJump.cpp
  473        MBBb != MBBe; ++MBBb) {
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
  102   for (auto &B : F) {
  103     for (auto &I : B) {
lib/Target/Hexagon/HexagonPeephole.cpp
  124        MBBb != MBBe; ++MBBb) {
lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp
   72   for (MachineBasicBlock &B : Fn) {
lib/Target/Hexagon/HexagonStoreWidening.cpp
  599   for (auto &B : MFn)
lib/Target/Hexagon/HexagonVExtract.cpp
  109   for (MachineBasicBlock &MBB : MF) {
lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
  187   for (++I; I != E && I->isBundledWithPred(); ++I)
  231   for (MachineBasicBlock &MB : MF) {
  245   for (auto &MB : MF) {
 1149   for (auto &B : MF) {
 1152     for (auto I = B.instr_begin(), E = B.instr_end(); I != E; I = NextI) {
 1788     for (auto &I : make_range(HII->expandVGatherPseudo(*MI), NextMI))
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  729   for (auto I = BB->begin(), E = BB->end(); I != E && isa<PHINode>(I); ++I) {
lib/Target/Hexagon/HexagonVectorPrint.cpp
  136   for (auto &MBB : Fn)
  140         for (++MII; MII != MBB.instr_end() && MII->isInsideBundle(); ++MII) {
  173       while (MBB->instr_end() != MII && MII->isInsideBundle())
lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp
  710       for (auto &J : Fragments) {
  717                K != Fragments.begin() && Size >= HEXAGON_PACKET_SIZE;) {
lib/Target/Hexagon/RDFGraph.cpp
  873   for (MachineBasicBlock &B : MF) {
lib/Target/Hexagon/RDFLiveness.cpp
  699   for (MachineBasicBlock &B : MF) {
  810     for (MachineBasicBlock &B : MF) {
  836   for (auto &B : DFG.getMF()) {
  853   for (auto &B : DFG.getMF())
lib/Target/Hexagon/RDFRegisters.cpp
   77   for (const MachineBasicBlock &B : mf)
lib/Target/Lanai/LanaiAsmPrinter.cpp
  208   } while ((++I != E) && I->isInsideBundle());
lib/Target/Lanai/LanaiDelaySlotFiller.cpp
   54     for (MachineFunction::iterator FI = MF.begin(), FE = MF.end(); FI != FE;
   96        I != MBB.instr_end(); ++I) {
  156        I != MBB.instr_rend(); ++I) {
lib/Target/Lanai/LanaiFrameLowering.cpp
   68   for (MachineFunction::iterator MBB = MF.begin(), E = MF.end(); MBB != E;
lib/Target/Lanai/LanaiMemAluCombiner.cpp
  415   for (MfIterator MFI = MF.begin(); MFI != MF.end(); ++MFI) {
lib/Target/MSP430/MSP430BranchSelector.cpp
   96   for (auto &MBB : make_range(Begin, MF->end())) {
  118   for (auto MBB = MF->begin(), E = MF->end(); MBB != E; ++MBB) {
lib/Target/MSP430/MSP430FrameLowering.cpp
   75          I != E; ++I)
lib/Target/Mips/MicroMipsSizeReduction.cpp
  678   for (; MII != E; MII = NextMII) {
  789   for (; I != E; ++I)
lib/Target/Mips/Mips16HardFloat.cpp
  382   for (auto &BB: F)
  383     for (auto &I: BB) {
  516   for (Module::iterator F = M.begin(), E = M.end(); F != E; ++F) {
lib/Target/Mips/MipsAsmPrinter.cpp
  284   } while ((++I != E) && I->isInsideBundle()); // Delay slot check
 1286   for (auto &MBB : MF) {
lib/Target/Mips/MipsBranchExpansion.cpp
  286   for (auto &MBB : *MFp)
  298          MI != MBB->instr_end(); ++MI)
  739   for (MachineFunction::iterator FI = MFp->begin(); FI != MFp->end(); ++FI) {
lib/Target/Mips/MipsConstantIslandPass.cpp
  646   for (MachineFunction::iterator I = MF->begin(), E = MF->end(); I != E; ++I)
  653   for (MachineBasicBlock &MBB : *MF) {
 1643          MF->begin(), E = MF->end(); B != E; ++B) {
 1645         B->instr_begin(), EB = B->instr_end(); I != EB; ++I) {
lib/Target/Mips/MipsDelaySlotFiller.cpp
  224            FI != FE; ++FI)
lib/Target/Mips/MipsExpandPseudo.cpp
  687   for (MachineFunction::iterator MFI = MF.begin(), E = MF.end(); MFI != E;
lib/Target/Mips/MipsOs16.cpp
   76   for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
   78          I != E; ++I) {
  121   for (auto &F : M) {
lib/Target/Mips/MipsSEFrameLowering.cpp
  107   for (auto &MBB : MF) {
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
  159   for (auto &MBB: MF) {
lib/Target/NVPTX/NVPTXAllocaHoisting.cpp
   45   for (Function::iterator E = function.end(); I != E; ++I) {
   46     for (BasicBlock::iterator BI = I->begin(), BE = I->end(); BI != BE;) {
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  703   for (Module::const_iterator FI = M.begin(), FE = M.end(); FI != FE; ++FI) {
  828   for (const GlobalVariable &I : M.globals())
  910        I != E; ++I)
lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
   53   for (GlobalVariable &GV : M.globals()) {
   65   for (Function &F : M.functions())
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
   78        I != E;) {
  102   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
  107     for (Function::iterator BBI = I->begin(), BBE = I->end(); BBI != BBE;
  109       for (BasicBlock::iterator II = BBI->begin(), IE = BBI->end(); II != IE;
lib/Target/NVPTX/NVPTXImageOptimizer.cpp
   59   for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE;
   62          I != E; ++I) {
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp
   69   for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE; ++BI) {
   70     for (BasicBlock::iterator II = BI->begin(), IE = BI->end(); II != IE;
lib/Target/NVPTX/NVPTXLowerAlloca.cpp
   69   for (auto &BB : F)
   70     for (auto &I : BB) {
lib/Target/NVPTX/NVPTXLowerArgs.cpp
  190     assert(InsertPt != InsertPt->getParent()->end() &&
  211     for (auto &B : F) {
  212       for (auto &I : B) {
lib/Target/NVPTX/NVPTXPeephole.cpp
  132   for (auto &MBB : MF) {
lib/Target/NVPTX/NVPTXPrologEpilogPass.cpp
   58   for (MachineBasicBlock &MBB : MF) {
   90   for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
lib/Target/NVPTX/NVPTXProxyRegErasure.cpp
   69   for (auto &BB : MF) {
  102   for (auto &BB : MF) {
lib/Target/NVPTX/NVPTXReplaceImageHandles.cpp
   59   for (MachineFunction::iterator BI = MF.begin(), BE = MF.end(); BI != BE;
lib/Target/PowerPC/PPCAsmPrinter.cpp
 1612   for (const Function &F : M) {
lib/Target/PowerPC/PPCBoolRetToInt.cpp
  131     for (auto &BB : F)
  132       for (auto &I : BB)
  201     for (auto &BB : F) {
  202       for (auto &I : BB) {
lib/Target/PowerPC/PPCBranchCoalescing.cpp
  731   for (MachineBasicBlock &MBB : MF) {
lib/Target/PowerPC/PPCBranchSelector.cpp
  120   for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
  153   for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
  297     for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
lib/Target/PowerPC/PPCCTRLoops.cpp
  203        I != IE; ++I) {
lib/Target/PowerPC/PPCEarlyReturn.cpp
  184       for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E;) {
lib/Target/PowerPC/PPCExpandISEL.cpp
  158   for (MachineBasicBlock &MBB : *MF) {
lib/Target/PowerPC/PPCFrameLowering.cpp
  306   for (MachineFunction::iterator I = MF->begin(), E = MF->end(); I != E; ++I) {
  360        UsedRegMask != 0 && BI != BE; ++BI) {
  569        BI != BE; ++BI)
 1856     for (MachineBasicBlock &MBB : MF) {
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  411   for (MachineFunction::iterator BB = Fn.begin(), E = Fn.end(); BB != E; ++BB) {
 5528   while (Position != CurDAG->allnodes_begin()) {
 5640     for (SDNode &Node : CurDAG->allnodes()) {
 6220   while (Position != CurDAG->allnodes_begin()) {
 6376   while (Position != CurDAG->allnodes_begin()) {
lib/Target/PowerPC/PPCInstrInfo.cpp
 4032         if (II != MBB->instr_begin() &&
 4255   for (auto &I : PreHeader.instrs())
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  245     for (auto &J : *BB) {
lib/Target/PowerPC/PPCMIPeephole.cpp
  276       for (MachineBasicBlock &MBB : *MF) {
  296   for (MachineBasicBlock &MBB : *MF) {
  947         BII != BB.instr_end() &&
 1078   for (MachineBasicBlock &MBB2 : *MF) {
lib/Target/PowerPC/PPCPreEmitPeephole.cpp
   77       for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) {
  107         for (auto AfterBBI = std::next(BBI); AfterBBI != MBB.instr_end();
  172       for (MachineBasicBlock &MBB : MF) {
lib/Target/PowerPC/PPCQPXLoadSplat.cpp
   64   for (auto MFI = MF.begin(), MFIE = MF.end(); MFI != MFIE; ++MFI) {
lib/Target/PowerPC/PPCReduceCRLogicals.cpp
   57   for (auto &MI : Successor->instrs()) {
   90   for (auto &MI : Successor->instrs()) {
  711   for (MachineBasicBlock &MBB : *MF) {
lib/Target/PowerPC/PPCTLSDynamicCall.cpp
  158       for (MachineFunction::iterator I = MF.begin(); I != MF.end();) {
lib/Target/PowerPC/PPCTOCRegDeps.cpp
  134       for (MachineFunction::iterator I = MF.begin(); I != MF.end();) {
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  264        J != JE; ++J) {
lib/Target/PowerPC/PPCVSXCopy.cpp
  151       for (MachineFunction::iterator I = MF.begin(); I != MF.end();) {
lib/Target/PowerPC/PPCVSXFMAMutate.cpp
  363       for (MachineFunction::iterator I = MF.begin(); I != MF.end();) {
lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
  244   for (MachineBasicBlock &MBB : *MF) {
lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
   80   for (auto &MBB : MF)
lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  207   while (Position != CurDAG->allnodes_begin()) {
lib/Target/RISCV/RISCVISelLowering.cpp
 1330   while (SelectMBBI != SelectEnd) {
lib/Target/RISCV/RISCVMergeBaseOffset.cpp
  264   for (MachineBasicBlock &MBB : Fn) {
lib/Target/Sparc/DelaySlotFiller.cpp
   57            FI != FE; ++FI)
lib/Target/Sparc/LeonPasses.cpp
   46   for (auto MFI = MF.begin(), E = MF.end(); MFI != E; ++MFI) {
   81   for (auto MFI = MF.begin(), E = MF.end(); MFI != E; ++MFI) {
  133   for (auto MFI = MF.begin(), E = MF.end(); MFI != E; ++MFI) {
lib/Target/Sparc/SparcAsmPrinter.cpp
  270   } while ((++I != E) && I->isInsideBundle()); // Delay slot check.
lib/Target/Sparc/SparcFrameLowering.cpp
  354        MBB != E; ++MBB) {
lib/Target/SystemZ/SystemZElimCompare.cpp
  631   for (auto &MBB : F)
lib/Target/SystemZ/SystemZFrameLowering.cpp
  431     for (auto I = std::next(MF.begin()), E = MF.end(); I != E; ++I)
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
 1892        I != E;) {
lib/Target/SystemZ/SystemZPostRewrite.cpp
  267   for (auto &MBB : MF)
lib/Target/SystemZ/SystemZShortenInst.cpp
  375   for (auto &MBB : F)
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  247     for (auto &I : *BB) {
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
   67   for (Function &F : M) {
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
   98   for (const auto &F : M) {
  135   for (const auto &G : M.globals()) {
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
  248   for (MachineBasicBlock &MBB : MF) {
  366   for (auto &MBB : MF) {
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
  247   for (MachineFunction::iterator I(LayoutPred), E(Header); I != E; --I) {
  478   for (MachineFunction::iterator I(LayoutPred), E(Header); I != E; --I) {
  655   for (auto &MBB : MF) {
  681   for (auto &MBB : MF) {
  871   for (auto &MBB : reverse(MF)) {
  912   for (auto &MBB : reverse(MF)) {
 1173   for (auto &MBB : reverse(MF)) {
 1243   for (MachineBasicBlock &MBB : reverse(MF)) {
 1276   for (auto &MBB : MF)
 1280   for (auto &MBB : MF) {
 1300   for (auto &MBB : reverse(MF)) {
lib/Target/WebAssembly/WebAssemblyCallIndirectFixup.cpp
  110   for (MachineBasicBlock &MBB : MF) {
lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
  227   for (MachineBasicBlock &MBB : MF) {
  384   for (const MachineBasicBlock &MBB : MF) {
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
  246   for (Function &F : M) {
lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp
  490   for (auto &MBB : MF) {
lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
  164   while (I != MBB.instr_begin()) {
lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
  129   for (auto &MBB : MF) {
  147   for (auto &MBB : MF) {
  187   for (auto &MBB : MF) {
  241   for (auto &MBB : MF) {
  259   for (auto &MBB : MF) {
  371   for (auto &MBB : MF) {
lib/Target/WebAssembly/WebAssemblyLowerBrUnless.cpp
   65   for (auto &MBB : MF) {
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  604   for (BasicBlock &BB : F) {
  605     for (Instruction &I : BB) {
  666     for (Function &F : M) {
  749   for (BasicBlock &BB : F) {
  788   for (BasicBlock &BB : F) {
  790     for (Instruction &I : BB) {
  808   for (BasicBlock &BB : F) {
  809     for (Instruction &I : BB) {
  828   for (BasicBlock &BB : F) {
  953   for (BasicBlock &BB : F)
  959     for (Instruction &I : *BB) {
  985              I != IE; ++I) {
  996              I != IE; ++I) {
 1053   for (BasicBlock &BB : F) {
lib/Target/WebAssembly/WebAssemblyMemIntrinsicResults.cpp
  198   for (auto &MBB : MF) {
lib/Target/WebAssembly/WebAssemblyPeephole.cpp
  147   for (auto &MBB : MF)
lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
  785   for (MachineBasicBlock &MBB : MF) {
  904     for (MachineBasicBlock &MBB : MF)
  911   for (MachineBasicBlock &MBB : MF) {
lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
   85   for (auto &MBB : MF) {
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
  186     for (auto &F : M)
  216     for (auto &F : M)
  240     for (auto &F : M) {
  241       for (auto &B : F) {
  242         for (auto &I : B) {
  257     for (auto &F : M)
  265     for (auto &GV : M.globals()) {
lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
  537   for (auto &MBB : MF)
lib/Target/X86/X86AvoidTrailingCall.cpp
   69   for (MachineBasicBlock &MBB : MF) {
   79     for (MachineBasicBlock &RMBB :
lib/Target/X86/X86CallFrameOptimization.cpp
  168   for (MachineBasicBlock &BB : MF) {
  257   for (auto &MBB : MF)
lib/Target/X86/X86CmovConversion.cpp
  182     for (auto &MBB : MF)
  599   for (auto I = First->getIterator(), E = Last->getIterator(); I != E; I++) {
lib/Target/X86/X86CondBrFolding.cpp
  190        MI != ME && MI->isPHI(); ++MI)
  393   for (auto &MBB : MF)
  396   for (auto &MBB : MF) {
lib/Target/X86/X86DiscriminateMemOps.cpp
  108   for (auto &MBB : MF) {
  127   for (auto &MBB : MF) {
lib/Target/X86/X86EvexToVex.cpp
  105   for (MachineBasicBlock &MBB : MF) {
lib/Target/X86/X86ExpandPseudo.cpp
  405   for (MachineBasicBlock &MBB : MF)
lib/Target/X86/X86FastISel.cpp
  275   for (auto Itr = std::prev(Start); Itr != End; --Itr) {
lib/Target/X86/X86FixupBWInsts.cpp
  164   for (auto &MBB : MF)
lib/Target/X86/X86FixupLEAs.cpp
  210   for (MachineBasicBlock &MBB : MF) {
lib/Target/X86/X86FixupSetCC.cpp
  102   for (auto &MBB : MF) {
lib/Target/X86/X86FlagsCopyLowering.cpp
  492       if (DefIt.base() != TestMBB->instr_begin()) {
  539            MII != MIE;) {
  587           } while (JmpIt != UseMBB.instr_end() &&
  700   for (MachineBasicBlock &MBB : MF)
lib/Target/X86/X86FloatingPoint.cpp
  378     for (MachineBasicBlock &BB : MF)
  397   for (MachineBasicBlock &MBB : MF) {
lib/Target/X86/X86FrameLowering.cpp
 2618     for (auto &MBB : MF) {
 3117   for (auto &MBB : MF) {
lib/Target/X86/X86ISelDAGToDAG.cpp
  791        E = CurDAG->allnodes_end(); I != E; ) {
 1162   while (Position != CurDAG->allnodes_begin()) {
lib/Target/X86/X86ISelLowering.cpp
30946   for (auto &MBB : *MF) {
lib/Target/X86/X86IndirectBranchTracking.cpp
  124   for (auto &MBB : MF) {
lib/Target/X86/X86InsertPrefetch.cpp
  190   for (auto &MBB : MF) {
  191     for (auto MI = MBB.instr_begin(); MI != MBB.instr_end();) {
lib/Target/X86/X86OptimizeLEAs.cpp
  686   for (auto &MBB : MF) {
lib/Target/X86/X86SpeculativeLoadHardening.cpp
  330   for (auto &MBB : MF)
  372   for (MachineBasicBlock &MBB : MF) {
  517     for (MachineBasicBlock &MBB : MF) {
  570   for (MachineBasicBlock &MBB : MF) {
  603   for (MachineBasicBlock &MBB : MF) {
  851   for (MachineBasicBlock &MBB : MF)
  852     for (auto MII = MBB.instr_begin(), MIE = MBB.instr_end(); MII != MIE;) {
  975   for (MachineBasicBlock &MBB : MF) {
  978     while (MII != MBB.instr_rend() && MII->isDebugInstr())
 1056   for (MachineBasicBlock &MBB : MF) {
 1653   for (MachineBasicBlock &MBB : MF) {
lib/Target/X86/X86VZeroUpper.cpp
  316   for (MachineBasicBlock &MBB : MF)
lib/Target/X86/X86WinAllocaExpander.cpp
  138   for (MachineBasicBlock &MBB : MF)
lib/Target/X86/X86WinEHState.cpp
  165   for (BasicBlock &BB : F) {
  367   for (BasicBlock &BB : *F) {
  678     for (Instruction &I : *BB) {
  745     for (Instruction &I : *BB) {
  765     for (Instruction &I : *BB) {
lib/Target/XCore/XCoreFrameToArgsOffsetElim.cpp
   51   for (MachineFunction::iterator MFI = MF.begin(), E = MF.end(); MFI != E;
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  226   for (GlobalVariable &GV : M.globals())
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  324   for (BasicBlock &BB : F) {
  334     for (Instruction &I : make_range(BB.rbegin(), BB.rend())) {
  343     for (BasicBlock &BB : F)
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
  391   for (auto &BB : F) {
  395     for (auto &I : BB)
lib/Transforms/CFGuard/CFGuard.cpp
  267   for (BasicBlock &BB : F.getBasicBlockList()) {
  268     for (Instruction &I : BB.getInstList()) {
lib/Transforms/Coroutines/CoroElide.cpp
  100   for (Instruction &I : F->getEntryBlock())
  157   for (BasicBlock &B : *F) {
lib/Transforms/Coroutines/CoroFrame.cpp
   51     for (BasicBlock &BB : F)
  930   for (BasicBlock &BB : F)
 1306   for (auto &Inst : F.getEntryBlock()) {
lib/Transforms/IPO/AlwaysInliner.cpp
   48   for (Function &F : M)
lib/Transforms/IPO/ArgumentPromotion.cpp
  627   for (Instruction &I : EntryBlock)
  922   for (BasicBlock &BB : *F)
lib/Transforms/IPO/Attributor.cpp
 2224     for (BasicBlock &BB : F)
 2289     for (const Instruction &I : BB)
 4630     for (Function &F : M)
 4933   for (Function &F : M)
 4936   for (Function &F : M) {
lib/Transforms/IPO/BlockExtractor.cpp
  136   for (BasicBlock &BB : F) {
  137     for (Instruction &I : BB) {
  170   for (Function &F : M) {
  227     for (Function &F : M)
lib/Transforms/IPO/CalledValuePropagation.cpp
  377   for (Function &F : M)
lib/Transforms/IPO/ConstantMerge.cpp
  156          GVI != E; ) {
  202          GVI != E; ) {
lib/Transforms/IPO/DeadArgumentElimination.cpp
  139   for (BasicBlock &BB : Fn) {
  140     for (Instruction &I : BB) {
  518   for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
 1033     for (BasicBlock &BB : *NF)
 1093   for (Module::iterator I = M.begin(), E = M.end(); I != E; ) {
 1104   for (auto &F : M)
 1109   for (Module::iterator I = M.begin(), E = M.end(); I != E; ) {
 1118   for (auto &F : M)
lib/Transforms/IPO/ElimAvailExtern.cpp
   36   for (GlobalVariable &GV : M.globals()) {
   52   for (Function &F : M) {
lib/Transforms/IPO/ExtractGV.cpp
   84            I != E; ++I) {
  104       for (Function &F : M) {
  123            I != E;) {
lib/Transforms/IPO/ForceFunctionAttrs.cpp
   94   for (Function &F : M.functions())
  113     for (Function &F : M.functions())
lib/Transforms/IPO/FunctionAttrs.cpp
  593       for (BasicBlock &BB : *F)
  639   for (Instruction &I : Entry) {
  863   for (BasicBlock &BB : *F)
  976   for (BasicBlock &BB : *F)
 1368   for (auto &BB : *F)
lib/Transforms/IPO/FunctionImport.cpp
 1000   for (auto &GV : TheModule)
 1002   for (auto &GV : TheModule.globals())
 1004   for (auto &GV : TheModule.aliases())
 1065   for (auto &GV : M.globals())
 1107     for (Function &F : *SrcModule) {
 1129     for (GlobalVariable &GV : SrcModule->globals()) {
 1143     for (GlobalAlias &GA : SrcModule->aliases()) {
lib/Transforms/IPO/GlobalDCE.cpp
   88   for (auto &I : Entry) {
  168   for (GlobalVariable &GV : M.globals()) {
  293   for (Function &F : M)
  296   for (GlobalVariable &GV : M.globals())
  299   for (GlobalAlias &GA : M.aliases())
  321   for (GlobalAlias &GA : M.aliases()) {
  331   for (GlobalIFunc &GIF : M.ifuncs()) {
  356   for (GlobalVariable &GV : M.globals())
  369   for (Function &F : M)
  378   for (GlobalAlias &GA : M.aliases())
  386   for (GlobalIFunc &GIF : M.ifuncs())
lib/Transforms/IPO/GlobalOpt.cpp
 2156   for (BasicBlock &BB : *F)
 2217   for (BasicBlock &BB : F) {
 2218     for (Instruction &I : BB) {
 2256   for (Module::iterator FI = M.begin(), E = M.end(); FI != E;) {
 2263   for (Module::iterator FI = M.begin(), E = M.end(); FI != E; ) {
 2358        GVI != E; ) {
 2761        I != E;) {
 2858   for (auto &I : Fn.getEntryBlock()) {
 2924     for (const GlobalVariable &GV : M.globals())
 2928     for (Function &F : M)
 2932     for (GlobalAlias &GA : M.aliases())
lib/Transforms/IPO/GlobalSplit.cpp
  153   for (auto I = M.global_begin(); I != M.global_end();) {
lib/Transforms/IPO/HotColdSplitting.cpp
  110   for (Instruction &I : BB)
  639   for (auto It = M.begin(), End = M.end(); It != End; ++It) {
lib/Transforms/IPO/IPConstantPropagation.cpp
  178   for (BasicBlock &BB : F)
  297     for (Function &F : M)
lib/Transforms/IPO/InferFunctionAttrs.cpp
   25   for (Function &F : M.functions())
lib/Transforms/IPO/Inliner.cpp
  562     for (BasicBlock &BB : *F)
  563       for (Instruction &I : BB) {
lib/Transforms/IPO/Internalize.cpp
  159     for (Function &F : M)
  161     for (GlobalVariable &GV : M.globals())
  163     for (GlobalAlias &GA : M.aliases())
  181   for (Function &I : M) {
  214   for (auto &GV : M.globals()) {
  224   for (auto &GA : M.aliases()) {
lib/Transforms/IPO/LowerTypeTests.cpp
 1784     for (auto &F : M) {
lib/Transforms/IPO/MergeFunctions.cpp
  398   for (Function &Func : M) {
  532        BBI != BBE; ++BBI) {
  556        BI != BIE; ++BI) {
  637        BI != BE; ++BI) {
lib/Transforms/IPO/PartialInlining.cpp
  451   for (auto &BB : *F)
  901     for (BasicBlock &BB : *OutlinedFunc)
 1026     while (I != BB->end()) {
 1068   while (I != PreReturn->end()) {
 1205   for (BasicBlock &BB : *ClonedFunc)
 1456   for (Function &F : M)
lib/Transforms/IPO/PruneEH.cpp
  108       for (const BasicBlock &BB : *F) {
  116         for (const Instruction &I : BB) {
  190   for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) {
  204     for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; )
  237   for (BasicBlock::iterator I = BB->end(), E = BB->begin(); I != E; ) {
lib/Transforms/IPO/SampleProfile.cpp
  211     for (const auto &F : CurrentModule) {
  724   for (auto &I : BB->getInstList()) {
  743   for (const auto &BB : F) {
  917     for (auto &BB : F) {
  920       for (auto &I : BB.getInstList()) {
 1087   for (auto &BB : F) {
 1124   for (auto &BI : F) {
 1171   for (const auto &BI : F) {
 1317   for (auto &BI : F) {
 1375   for (auto &BI : F) {
 1420   for (auto &BI : F) {
 1424       for (auto &I : BB->getInstList()) {
 1748   for (auto &F : M)
lib/Transforms/IPO/StripDeadPrototypes.cpp
   32   for (Module::iterator I = M.begin(), E = M.end(); I != E; ) {
   44        I != E; ) {
lib/Transforms/IPO/StripSymbols.cpp
  211        I != E; ++I) {
  217   for (Function &I : M) {
  318   for (GlobalVariable &GV : M.globals()) {
lib/Transforms/IPO/SyntheticCountsPropagation.cpp
   75   for (Function &F : M) {
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  144   for (auto I = M.begin(), E = M.end(); I != E;) {
  165   for (auto I = M.global_begin(), E = M.global_end(); I != E;) {
  253   for (GlobalVariable &GV : M.globals())
  288   for (Function &F : *MergedM)
  298   for (auto &F : M)
  347   for (auto &A : M.aliases()) {
lib/Transforms/IPO/WholeProgramDevirt.cpp
  784   for (GlobalVariable &GV : M.globals()) {
 1541   for (const Function &Fn : FL) {
 1924   for (GlobalVariable &GV : M.globals())
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1484   for (++BI; BI != BE; ++BI) {
 4186        I != E;) {
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
 1410   for (unsigned ScanInsts = 6; BBI != SI.getParent()->begin() && ScanInsts;
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  612   while (BBI != BBFront) {
lib/Transforms/InstCombine/InstCombinePHI.cpp
  184        II != EI; II++, NumPhis++) {
  496   for (++BBI; BBI != E; ++BBI)
lib/Transforms/InstCombine/InstructionCombining.cpp
 2470     for (const Instruction &Inst : *FreeInstrBB) {
 2500        It != End;) {
 3148          Scan != E; ++Scan)
 3388     for (BasicBlock::iterator BBI = BB->begin(), E = BB->end(); BBI != E; ) {
 3494   for (BasicBlock &BB : F) {
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1771   for (auto &BB : GlobalInit.getBasicBlockList())
 2219   for (auto &G : M.globals()) {
 2596   for (Instruction &I : F.getEntryBlock()) {
 2653   for (auto &BB : F) {
 2657     for (auto &Inst : BB) {
lib/Transforms/Instrumentation/CFGMST.h
  120     for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
lib/Transforms/Instrumentation/CGProfile.cpp
   40   for (auto &F : M) {
   47     for (auto &BB : F) {
   51       for (auto &I : BB) {
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  734   for (Instruction &I : *EntryBB) {
  825       for (Instruction &I : *BB) {
 1590     for (Instruction &I : *BB) {
 1791     for (Instruction &I : *NewBlocks[i])
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  784   for (Function &i : M) {
  798   for (Module::alias_iterator i = M.alias_begin(), e = M.alias_end(); i != e;) {
 1692       assert(CS->getIterator() != CS->getParent()->end());
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  351       for (auto &BB : *F) {
  379       for (BasicBlock &I : *F) {
  422       for (BasicBlock &I : *F) {
  438       for (BasicBlock &I : *F)
  595   for (auto &BB : F) {
  596     for (auto &I : BB) {
  633   for (auto &F : M->functions()) {
  691     for (auto &F : M->functions()) {
  718       for (auto &BB : F) {
  729         for (auto &I : BB) {
  777     for (auto &F : M->functions()) {
  788       for (auto &BB : F) {
  810       for (auto &BB : F) {
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  353   for (Function &F : M)
 1117   for (auto &BB : F) {
 1118     for (auto &Inst : BB) {
 1211     for (auto &BB : F)
 1212       for (auto &Inst : BB)
 1230          II != IE;) {
 1403   for (GlobalVariable &GV : M.globals()) {
 1443   for (Function &F : M) {
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  395   for (auto &F : M) {
lib/Transforms/Instrumentation/InstrOrderFile.cpp
   70     for (Function &F : M) {
  163     for (Function &F : M) {
lib/Transforms/Instrumentation/InstrProfiling.cpp
  412   for (BasicBlock &BB : *F) {
  413     for (auto I = BB.begin(), E = BB.end(); I != E;) {
  516   for (Function &F : M) {
  518     for (BasicBlock &BB : F)
  519       for (auto I = BB.begin(), E = BB.end(); I != E; I++)
  531   for (Function &F : M)
lib/Transforms/Instrumentation/Instrumentation.cpp
   44   for (auto I = IP, E = BB.end(); I != E; ++I) {
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 3362       assert(NextInsn != I.getParent()->end());
 3376       assert(NextInsn != NormalDest->end() &&
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  614   for (auto &BB : F) {
  822     assert(Builder.GetInsertPoint() != InstrBB->end() &&
  852       assert(Builder.GetInsertPoint() != Cand.InsertPt->getParent()->end() &&
 1262   for (auto &BB : F) {
 1272   for (auto &BB : F) {
 1292   for (auto &BB : F) {
 1335   for (auto &BB : F) {
 1450   for (Function &F : M)
 1453   for (GlobalVariable &GV : M.globals())
 1456   for (GlobalAlias &GA : M.aliases())
 1471   for (auto &F : M) {
 1564   for (auto &F : M) {
 1797     for (auto BI = Node->begin(); BI != Node->end(); ++BI) {
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  345   assert(It != DefaultBB->end());
lib/Transforms/Instrumentation/PoisonChecking.cpp
  261   for (BasicBlock &BB : F)
  273   for (BasicBlock &BB : F)
  274     for (Instruction &I : BB) {
  301   for (BasicBlock &BB : F)
  319   for (auto &F : M)
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  451   for (auto &F : M)
  604   for (auto &BB : F) {
  607     for (auto &Inst : BB) {
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  454   for (auto &BB : F) {
  455     for (auto &Inst : BB) {
lib/Transforms/ObjCARC/ObjCARCAPElim.cpp
   74     for (const BasicBlock &BB : *Callee) {
   75       for (const Instruction &I : BB)
   94   for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ) {
  170     if (std::next(F->begin()) != F->end())
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  220        I != E; ++I) {
  299   while (I != Begin && GetBasicARCInstKind(&*I) != ARCInstKind::Retain) {
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  634   if (I != Begin) {
  637     while (I != Begin && IsNoopInstruction(&*I));
 1295   for (BasicBlock::iterator I = BB->end(), E = BB->begin(); I != E; --I) {
 1430   for (Instruction &Inst : *BB) {
 1505   for (BasicBlock &ExitBB : F) {
 1912          J != B; --J) {
 2157   for (BasicBlock &BB: F) {
lib/Transforms/ObjCARC/PtrState.cpp
  279     if (InsertAfter != BB->end())
lib/Transforms/Scalar/ADCE.cpp
  224   for (auto &BB : F) {
  235     for (Instruction &I : *BBInfo.second.BB)
  640   for (auto &BB : F) {
lib/Transforms/Scalar/CallSiteSplitting.cpp
  212   for (auto &InstBeforeCall :
  395   while (I != TailBB->rend()) {
  425   for (auto &BI : *Parent) {
  513   for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE;) {
  521     while (II != IE && &*II != BB.getTerminator()) {
lib/Transforms/Scalar/ConstantHoisting.cpp
  502   for (BasicBlock &BB : Fn)
  503     for (Instruction &Inst : BB)
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  839     for (BasicBlock::iterator BI = BB->begin(), BE = BB->end(); BI != BE;) {
lib/Transforms/Scalar/DCE.cpp
   53     for (auto &BB : F) {
   54       for (BasicBlock::iterator DI = BB.begin(); DI != BB.end(); ) {
lib/Transforms/Scalar/DeadStoreElimination.cpp
  619     for (; BI != EI; ++BI) {
  760   for (Instruction &I : Entry) {
  779   for (BasicBlock::iterator BBI = BB.end(); BBI != BB.begin(); ){
 1086   for (BasicBlock::iterator BBI = BB.begin(), BBE = BB.end(); BBI != BBE; ) {
 1317   for (BasicBlock &BB : F)
lib/Transforms/Scalar/DivRemPairs.cpp
  127   for (auto &BB : F) {
  128     for (auto &I : BB) {
lib/Transforms/Scalar/EarlyCSE.cpp
  899   for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E;) {
lib/Transforms/Scalar/FlattenCFGPass.cpp
   62   for (auto &BB : F)
lib/Transforms/Scalar/Float2Int.cpp
  123   for (BasicBlock &BB : F) {
  129     for (Instruction &I : BB) {
lib/Transforms/Scalar/GVN.cpp
 2102   for (Function::iterator FI = F.begin(), FE = F.end(); FI != FE; ) {
 2157        BI != BE;) {
 2435          BI != BE;) {
 2643     for (Instruction &Inst : *BB) {
lib/Transforms/Scalar/GVNHoist.cpp
  273       for (auto &Inst : *BB)
  395     for (const MemoryAccess &MA : *Acc)
 1087       for (Instruction &I1 : *BB) {
lib/Transforms/Scalar/GVNSink.cpp
  540          I != E && !I->isTerminator(); ++I) {
lib/Transforms/Scalar/GuardWidening.cpp
  327     for (auto &I : *BB)
  392       for (auto &I : *CurBB) {
lib/Transforms/Scalar/IndVarSimplify.cpp
 1855     for (Instruction &I : make_range(Ctx->getIterator().getReverse(),
 2576   while (I != Preheader->begin()) {
 2631     if (I != Preheader->begin()) {
 2635       } while (isa<DbgInfoIntrinsic>(I) && I != Preheader->begin());
 2921     for (auto &I : *BB)
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
 1158     for (Instruction &I : *ClonedBB)
lib/Transforms/Scalar/InstSimplifyPass.cpp
   36     for (BasicBlock &BB : F) {
   43       for (Instruction &I : BB) {
lib/Transforms/Scalar/JumpThreading.cpp
  383   for (auto &BB : F)
  394     for (auto &BB : F) {
  458   for (Instruction &I : reverse(*BB)) {
 1345   if (BBIt != LoadBB->begin())
 2055   for (Instruction &I : *BB) {
 2325   for (; BI != BB->end(); ++BI) {
 2375   for (Instruction &I : *BB) {
 2676     for (auto &I : *BB)
lib/Transforms/Scalar/LICM.cpp
  355         for (const auto &MA : *Accesses) {
  435       for (AliasSet &AS : *CurAST) {
  522     for (BasicBlock::iterator II = BB->end(); II != BB->begin();) {
  630         assert(It != F->end() && "Could not find successor in function");
  826     for (BasicBlock::iterator II = BB->begin(), E = BB->end(); II != E;) {
 1048     for (AliasSet &AS : *CurAST) {
 1068       for (const auto &Acc : *Accs) {
 1187       assert(Begin != CurAST->end() && "must contain FI");
 1188       if (std::next(Begin) != CurAST->end())
 1239           for (const auto &MA : *Accesses)
 2266     for (Instruction &I : *BB) {
 2322       for (const auto &MA : *Accesses)
lib/Transforms/Scalar/LoopDataPrefetch.cpp
  227     for (auto &I : *BB)
  252     for (auto &I : *BB) {
lib/Transforms/Scalar/LoopDistribute.cpp
  219       for (auto &Inst : *Block)
lib/Transforms/Scalar/LoopFuse.cpp
  186       for (Instruction &I : *BB) {
 1022       for (Instruction &I : *BB)
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  581   for (Instruction &I : *BB) {
  642   for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E;) {
  881     for (Instruction &I : **BI)
 1343          Iter != IterE; Iter++) {
 1468        Iter != IterE; Iter++) {
 2017     for (Instruction &I : *LoopBB) {
lib/Transforms/Scalar/LoopInstSimplify.cpp
   86       for (Instruction &I : *BB) {
lib/Transforms/Scalar/LoopInterchange.cpp
   94     for (Instruction &I : *BB) {
 1033     for (Instruction &Ins : *BB) {
lib/Transforms/Scalar/LoopPredication.cpp
  998     for (auto &I : *BB)
lib/Transforms/Scalar/LoopRerollPass.cpp
  576        IE = Header->getFirstInsertionPt(); I != IE; ++I) {
  655        IE = Header->getFirstInsertionPt(); I != IE; ++I) {
 1013   for (auto &I : *L->getHeader()) {
 1311         for (auto &K : AST) {
 1436        J != JE;) {
lib/Transforms/Scalar/LoopSink.cpp
  297   for (auto II = Preheader->rbegin(), E = Preheader->rend(); II != E;) {
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2076        UI != E; /* empty */) {
 2188   for (IVStrideUse &U : IU)
 2421       for (IVUsers::const_iterator UI = IU.begin(), E = IU.end(); UI != E; ++UI)
 2656   for (const IVStrideUse &U : IU) {
 3051     for (Instruction &I : *BB) {
 3244   for (const IVStrideUse &U : IU) {
 5119   while (Rewriter.isInsertedInstruction(&*IP) && IP != LowestIP)
 5512   for (const IVStrideUse &U : IU) {
lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
  258     for (Instruction &I : *BB) {
lib/Transforms/Scalar/LoopUnrollPass.cpp
  478     for (Instruction &I : *L->getHeader()) {
  514       for (Instruction &I : *BB) {
  620     for (Instruction &I : *ExitBB) {
lib/Transforms/Scalar/LoopUnswitch.cpp
  683     for (auto &I : *BB) {
  812          BBI != E; ++BBI)
  858   for (Instruction &I : *BB)
 1089     for (Instruction &I : *CurrentBB)
 1343     for (Instruction &I : *NewBlocks[i]) {
lib/Transforms/Scalar/LoopVersioningLICM.cpp
  281   for (const auto &I : *CurAST) {
  393     for (auto &Inst : *Block) {
  547     for (auto &Inst : *Block) {
lib/Transforms/Scalar/LowerAtomic.cpp
  119   for (BasicBlock::iterator DI = BB.begin(), DE = BB.end(); DI != DE;) {
  140   for (BasicBlock &BB : F) {
lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
   92     for (Instruction &I: *BB) {
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  324   for (BasicBlock &BB : F) {
  337     for (auto BI = BB.rbegin(), BE = BB.rend(); BI != BE;) {
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  469   for (auto I = --SI->getIterator(), E = P->getIterator(); I != E; --I) {
  563         for (auto &I : make_range(++LI->getIterator(), SI->getIterator())) {
  633              I != E; --I) {
 1339   for (BasicBlock &BB : F) {
 1347     for (BasicBlock::iterator BI = BB.begin(), BE = BB.end(); BI != BE;) {
 1369         if (BI != BB.begin())
lib/Transforms/Scalar/MergeICmps.cpp
  276   for (Instruction &Inst : *BB) {
  295   for (Instruction &Inst : *BB) {
  313   for (const Instruction &Inst : *BB) {
  881   for (auto BBIt = ++F.begin(); BBIt != F.end(); ++BBIt) {
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
  174   for (const Instruction &Inst :
  190   for (Instruction &Inst : reverse(*BB1)) {
  307        RBI != RBE;) {
  356   for (Function::iterator FI = F.begin(), FE = F.end(); FI != FE;) {
lib/Transforms/Scalar/NaryReassociate.cpp
  235     for (auto I = BB->begin(); I != BB->end(); ++I) {
lib/Transforms/Scalar/NewGVN.cpp
 2880       for (const auto &Def : *MemoryBlockDefs) {
 2897     for (auto &I : *BB) {
 2985   for (auto &I : *B) {
 3689   for (BasicBlock::reverse_iterator I(StartPoint); I != BB->rend();) {
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
   94   for (Function::iterator BB = F.begin(), BE = F.end(); BB != BE;) {
   98          II != IE; ++II) {
lib/Transforms/Scalar/PlaceSafepoints.cpp
  216     for (Instruction &I : *Current) {
  271        BBI != BBE0 && BBI != BBE1; BBI++) {
  271        BBI != BBE0 && BBI != BBE1; BBI++) {
  648   assert(After != OrigBB->end() && "must have successor");
lib/Transforms/Scalar/Reassociate.cpp
  183     for (Instruction &I : *BB)
  884       while (InsertPt != BB->end() && (isa<PHINode>(InsertPt) ||
 2328     for (Instruction &I : *BI) {
 2412     for (BasicBlock::iterator II = BI->begin(), IE = BI->end(); II != IE;)
lib/Transforms/Scalar/Reg2Mem.cpp
   92   for (BasicBlock &ibb : F)
   93     for (BasicBlock::iterator iib = ibb.begin(), iie = ibb.end(); iib != iie;
  109   for (BasicBlock &ibb : F)
  110     for (BasicBlock::iterator iib = ibb.begin(), iie = ibb.end(); iib != iie;
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  131   for (Function &F : M) {
  175     for (Function &F : M) {
 1693   for (Instruction &I : F.getEntryBlock())
 1872   for (auto &I : F.getEntryBlock())
 2509   for (Function &F : M)
 2512   for (Function &F : M)
 2562   for (BasicBlock &BB : F)
 2588   for (BasicBlock &BB : F) {
 2641   for (auto &I : make_range(Begin, End)) {
 2673     for (auto &I : *Succ) {
 2689   for (Instruction &I : *BB)
 2729   for (BasicBlock &BB : F) {
 2786   for (BasicBlock &BB : F)
lib/Transforms/Scalar/SCCP.cpp
 1436   for (BasicBlock &BB : F) {
 1440     for (Instruction &I : BB) {
 1829   for (BasicBlock &BB : F) {
 1842     for (BasicBlock::iterator BI = BB.begin(), E = BB.end(); BI != E;) {
 1955   for (BasicBlock &BB : F) {
 2012   for (Function &F : M) {
 2041   for (GlobalVariable &G : M.globals()) {
 2053     for (Function &F : M)
 2067   for (Function &F : M) {
 2082     for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
 2094       for (BasicBlock::iterator BI = BB->begin(), E = BB->end(); BI != E; ) {
 2163     for (BasicBlock &BB : F) {
 2164       for (BasicBlock::iterator BI = BB.begin(), E = BB.end(); BI != E;) {
lib/Transforms/Scalar/SROA.cpp
 4566        I != E; ++I) {
lib/Transforms/Scalar/Scalarizer.cpp
  321     for (BasicBlock::iterator II = BB->begin(), IE = BB->end(); II != IE;) {
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
 1126   for (BasicBlock &B : F) {
 1127     for (BasicBlock::iterator I = B.begin(), IE = B.end(); I != IE;)
 1203     for (auto I = BB->begin(); I != BB->end(); ) {
 1212   for (BasicBlock &B : F) {
 1213     for (Instruction &I : B) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  161   for (Instruction &I : ExitBB) {
  876         if (!isa<MemoryPhi>(*Defs->begin()) || (++Defs->begin() != Defs->end()))
 1067     for (Instruction &I : *ClonedBB) {
 2547       for (auto &I : *BB)
 2636     for (auto &I : *BB) {
lib/Transforms/Scalar/SimplifyCFGPass.cpp
   78   for (Function::iterator BBI = F.begin(), E = F.end(); BBI != E; ) {
   92       while (isa<DbgInfoIntrinsic>(I) && I != BB.begin())
   95           (!isa<PHINode>(I) || I != BB.begin() || Ret->getNumOperands() == 0 ||
  162     for (Function::iterator BBIt = F.begin(); BBIt != F.end(); ) {
lib/Transforms/Scalar/Sink.cpp
  246     for (BasicBlock &I : F)
lib/Transforms/Scalar/SpeculativeExecution.cpp
  161   for (auto& B : F) {
  267   for (auto& I : FromBlock) {
  284   for (auto I = FromBlock.begin(); I != FromBlock.end();) {
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  716     for (auto &I : *(Node->getBlock()))
lib/Transforms/Scalar/StructurizeCFG.cpp
  910     for (Instruction &I : *BB) {
lib/Transforms/Scalar/TailRecursionElimination.cpp
  200   for (auto &BB : F) {
  201     for (auto &I : BB)
  235     for (auto &I : *BB) {
  400   for (BasicBlock &BBI : *F) {
  584              NEBI = NewEntry->begin(); OEBI != E; )
  668     for (BasicBlock &BBI : *F)
  781   for (Function::iterator BBI = F.begin(), E = F.end(); BBI != E; /*in loop*/) {
lib/Transforms/Utils/AddDiscriminators.cpp
  188   for (BasicBlock &B : F) {
  189     for (auto &I : B.getInstList()) {
  231   for (BasicBlock &B : F) {
  233     for (auto &I : B.getInstList()) {
lib/Transforms/Utils/BasicBlockUtils.cpp
  127   for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
  392   for (BasicBlock &BB : F) {
lib/Transforms/Utils/BreakCriticalEdges.cpp
  363   for (auto &BB : F) {
  441     while (Indirect != End) {
lib/Transforms/Utils/CanonicalizeAliases.cpp
   65   for (auto &GA : M.aliases())
lib/Transforms/Utils/CloneFunction.cpp
   53   for (const Instruction &I : *BB) {
  165        BI != BE; ++BI) {
  207        BB != BE; ++BB)
  209     for (Instruction &II : *BB)
  334        II != IE; ++II) {
  493   for (const BasicBlock &BI : *OldFunc) {
  653   while (I != NewFunc->end()) {
  673     if (I != Begin && (pred_begin(&*I) == pred_end(&*I) ||
  713        I != E; ++I)
  742     for (auto &Inst : *BB)
lib/Transforms/Utils/CloneModule.cpp
   62        I != E; ++I) {
   75   for (const Function &I : M) {
   85        I != E; ++I) {
  119        I != E; ++I) {
  143   for (const Function &I : M) {
  174        I != E; ++I) {
  187        I != E; ++I) {
lib/Transforms/Utils/CodeExtractor.cpp
   97   for (Instruction const &Inst : BB)
  118   for (BasicBlock::const_iterator I = BB.begin(), E = BB.end(); I != E; ++I) {
  309   for (BasicBlock &BB : F) {
  375   for (BasicBlock &BB : *Func) {
  407     while (I != BB->end()) {
  588     for (auto &BB : *F) {
  603     for (Instruction &II : *BB) {
  985     for (auto It = BB->begin(), End = BB->end(); It != End;) {
 1412       for (auto &I : *Block)
 1573   for (BasicBlock &BB : *newFunction) {
 1576     while (BlockIt != BB.end()) {
 1585     for (Instruction &I : BB)
lib/Transforms/Utils/EntryExitInstrumenter.cpp
   92     for (BasicBlock &BB : F) {
lib/Transforms/Utils/EscapeEnumerator.cpp
   34   while (StateBB != StateE) {
   57   for (BasicBlock &BB : F)
   58     for (Instruction &II : BB)
lib/Transforms/Utils/FlattenCFG.cpp
  191            BI != BE;) {
  346       if (iter2 != end2)
  369       for (BasicBlock::iterator BI(PBI2), BE(PTI2); BI != BE; ++BI) {
  436   for (BasicBlock::iterator BI(PBI2), BE(PTI2); BI != BE; ++BI) {
lib/Transforms/Utils/FunctionComparator.cpp
  369       for(BasicBlock &BB : F->getBasicBlockList()) {
  786   } while (InstL != InstLE && InstR != InstRE);
  786   } while (InstL != InstLE && InstR != InstRE);
  788   if (InstL != InstLE && InstR == InstRE)
  790   if (InstL == InstLE && InstR != InstRE)
  937     for (auto &Inst : *BB) {
lib/Transforms/Utils/FunctionImportUtils.cpp
  292   for (GlobalVariable &GV : M.globals())
  294   for (Function &SF : M)
  296   for (GlobalAlias &GA : M.aliases())
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp
   63   for (const auto &F : M.functions()) {
lib/Transforms/Utils/InlineFunction.cpp
  526   for (BasicBlock::iterator BBI = BB->begin(), E = BB->end(); BBI != E; ) {
  598        I != E; ++I)
  615        BB != E; ++BB) {
  653   for (Instruction &I : *UnwindDest) {
  676        BB != E; ++BB) {
  753          BB != E; ++BB)
  822   for (const BasicBlock &I : *CalledFunc)
  823     for (const Instruction &J : I) {
 1408   for (; FI != Fn->end(); ++FI) {
 1410          BI != BE; ++BI) {
 1521   for (BasicBlock &BB : *Callee)
 1524       for (Instruction &I : BB)
 1635             for (const BasicBlock &CalledBB : *CalledFunc) {
 1643           for (const BasicBlock &CalledBB : *CalledFunc) {
 1809       for (BasicBlock &NewBlock :
 1811         for (Instruction &I : NewBlock) {
 1825          E = FirstNewBlock->end(); I != E; ) {
 1881     for (Function::iterator BB = FirstNewBlock, E = Caller->end(); BB != E;
 1883       for (auto II = BB->begin(); II != BB->end();) {
 2053          BB != E; ++BB) {
 2056       for (BasicBlock::iterator BBI = BB->begin(), E = BB->end(); BBI != E;) {
 2214     for (BasicBlock &NewBB :
 2216       for (Instruction &I : NewBB)
lib/Transforms/Utils/InstructionNamer.cpp
   38       for (BasicBlock &BB : F) {
   42         for (Instruction &I : BB)
lib/Transforms/Utils/LCSSA.cpp
  353     for (Instruction &I : *BB) {
lib/Transforms/Utils/Local.cpp
  620        BI != E;) {
 1219   if (PrevI != I->getParent()->getInstList().begin()) {
 1374   if (InsertionPt != BB->end())
 1394   for (auto &FI : F)
 1395     for (Instruction &BI : FI)
 1456   for (auto &I : *BB) {
 1482         assert(InsertionPt != Parent->end() && "Ill-formed basic block");
 1930   while (BBI != BBE) {
 2026     for (Instruction &I : *BB) {
 2227   for (BasicBlock &BB : F) {
 2614   for (BasicBlock::iterator II = BB->begin(), IE = BB->end(); II != IE;) {
lib/Transforms/Utils/LoopRotationUtils.cpp
   95   for (I = OrigHeader->begin(); I != E; ++I) {
  317        I != E; ++I) {
  324   while (I != E) {
  530   for (BasicBlock::iterator I = Begin; I != End; ++I) {
lib/Transforms/Utils/LoopSimplify.cpp
  104     if (++BBI != NewBB->getParent()->end() && L->contains(&*BBI)) {
lib/Transforms/Utils/LoopUnroll.cpp
  112     for (Instruction &I : *BB) {
  220     for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E;) {
  422           for (auto &I : *BB)
  589       for (Instruction &I : *BB)
  685       for (Instruction &I : *NewBlock) {
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  300       for (Instruction &I : *BB)
  382       for (Instruction &I : *NewBlock) {
  594     for (Instruction &I : *BB) {
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  802    for (auto &II : *BB) {
  879     for (Instruction &I : *BB) {
lib/Transforms/Utils/LoopUtils.cpp
  126     for (auto &Inst : *Block) {
  612     for (Instruction &I : *Block) {
lib/Transforms/Utils/LowerInvoke.cpp
   48   for (BasicBlock &BB : F)
lib/Transforms/Utils/LowerSwitch.cpp
  161   for (Function::iterator I = F.begin(), E = F.end(); I != E; ) {
  214        I != IE; ++I) {
lib/Transforms/Utils/Mem2Reg.cpp
   45     for (BasicBlock::iterator I = BB.begin(), E = --BB.end(); I != E; ++I)
lib/Transforms/Utils/MetaRenamer.cpp
   95       for (auto AI = M.alias_begin(), AE = M.alias_end(); AI != AE; ++AI) {
  104       for (auto GI = M.global_begin(), GE = M.global_end(); GI != GE; ++GI) {
  124       for (auto &F : M) {
  149       for (auto &BB : F) {
  152         for (auto &I : BB)
lib/Transforms/Utils/ModuleUtils.cpp
  219     for (Function &F : M.functions())
  225     for (GlobalVariable &GV : M.globals())
  231     for (GlobalAlias &GA : M.aliases())
  264   for (auto &F : *M)
  266   for (auto &GV : M->globals())
  268   for (auto &GA : M->aliases())
  270   for (auto &IF : M->ifuncs())
lib/Transforms/Utils/NameAnonGlobals.cpp
   40     for (auto &F : TheModule) {
   46     for (auto &GV : TheModule.globals()) {
   77   for (auto &GA : M.aliases())
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  211     for (const Instruction &BBI : *BB)
  587       for (auto &BB : F)
lib/Transforms/Utils/SSAUpdater.cpp
  413     for (Instruction &I : *BB) {
lib/Transforms/Utils/SimplifyCFG.cpp
 1989        BBI != BBE; ++BBI) {
 2107   for (auto &I : *ThenBB)
 2535   for (Instruction &I : *PB) {
 2868     for (Instruction &I : *BB)
 2884     for (auto &I : *BB)
 2976   for (auto &I : *QFB->getSinglePredecessor())
 2979   for (auto &I : *QFB)
 2983     for (auto &I : *QTB)
 2987        I != E; ++I)
 3191     for (auto &I : *BB)
 3198     for (auto &I : *BB)
 3826   while (++I != E)
 3853     while (++I != E)
 3906   while (++I != E)
 3945   while (++I != E) {
 3977          I != IE; ++I) {
 4023          I != IE;) {
 4169   while (UI->getIterator() != BB->begin()) {
 5778     for (auto I = OtherPred->begin(), E = OtherPred->end(); I != E;) {
 5981          i != UI; ++i)
lib/Transforms/Utils/SplitModule.cpp
  135       for (const BasicBlock &BB : *F) {
  254     for (Function &F : *M)
  256     for (GlobalVariable &GV : M->globals())
  258     for (GlobalAlias &GA : M->aliases())
  260     for (GlobalIFunc &GIF : M->ifuncs())
lib/Transforms/Utils/SymbolRewriter.cpp
  179   for (auto &C : (M.*Iterator)()) {
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
   51   for (BasicBlock &I : F)
lib/Transforms/Utils/ValueMapper.cpp
  950   for (BasicBlock &BB : F)
  951     for (Instruction &I : BB)
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  531   for (auto BBI = I->getIterator(), E = I->getParent()->end(); BBI != E;
  550   for (Instruction &I : *BB) {
  618   for (Instruction &I : make_range(getBoundaryInstrs(Chain))) {
  745   for (Instruction &I : *BB) {
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  580     for (Instruction &I : *BB) {
  881   for (Instruction &I : *BB) {
  943       for (Instruction &I : *BB)
  955     for (Instruction &I : *BB) {
lib/Transforms/Vectorize/LoopVectorize.cpp
 3202   for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E;) {
 4440     for (auto &I : *BB) {
 4707     for (auto &I : *BB) {
 5529     for (Instruction &I : *BB)
 5944     for (Instruction &I : *BB) {
 6043     for (Instruction &I : *BB) {
 7281   for (auto &Instr : make_range(Begin, End))
lib/Transforms/Vectorize/SLPVectorizer.cpp
 3394     while (InstIt != PrevInstIt) {
 3601     for (auto &I : make_range(BasicBlock::iterator(Front), BB->end())) {
 4448     for (BasicBlock::iterator it = BB->begin(), e = BB->end(); it != e;) {
 4649     if (UpIter != UpperEnd) {
 4661     if (DownIter != LowerEnd) {
 4675     assert((UpIter != UpperEnd || DownIter != LowerEnd) &&
 4675     assert((UpIter != UpperEnd || DownIter != LowerEnd) &&
 5468   for (Instruction &I : *BB) {
 6898     for (Instruction &I : *BB) {
 6949   for (BasicBlock::iterator it = BB->begin(), e = BB->end(); it != e; ++it) {
lib/Transforms/Vectorize/VPlan.cpp
  199   for (VPRecipeBase &Recipe : Recipes)
  589   for (const VPRecipeBase &Recipe : *BasicBlock)
  649   for (auto &Instr : make_range(Begin, End))
  734     for (VPRecipeBase &VPI : *VPBB) {
lib/Transforms/Vectorize/VPlan.h
  733     if (End != Instr->getIterator())
lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
  195   for (Instruction &InstRef : *BB) {
lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp
   46     for (auto I = VPBB->begin(), E = VPBB->end(); I != E;) {
lib/Transforms/Vectorize/VPlanSLP.cpp
  124     for (auto &I : *Parent) {
tools/bugpoint-passes/TestPasses.cpp
   36       for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)
   59       for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)
   87     for (auto &F : M.functions()) {
tools/bugpoint/CrashDebugger.cpp
  165   for (GlobalVariable &I : M->globals())
  260     for (Function &I : *M)
  266     for (GlobalAlias &Alias : M->aliases()) {
  287     for (Function &I : *M) {
  400   for (auto &BB : F)
  463   for (Function &F : M->functions()) {
  464     for (BasicBlock &BB : F) {
  495   for (auto &F : *M) {
  496     for (auto &BB : F)
  583   for (auto &F : *M)
  584     for (auto &BB : F)
  602   for (auto &F : *M) {
  603     for (auto &BB : F)
  692   for (auto &F : *M)
  694     for (Function::iterator BBIt = F.begin(); BBIt != F.end();) {
  775   for (Module::iterator MI = M->begin(), ME = M->end(); MI != ME; ++MI)
  776     for (Function::iterator FI = MI->begin(), FE = MI->end(); FI != FE; ++FI)
  777       for (BasicBlock::iterator I = FI->begin(), E = FI->end(); I != E;) {
  854   for (auto &NamedMD : M->named_metadata())
  918   for (auto &NamedMD : BD.getProgram().named_metadata()) {
  959   for (GlobalVariable &GV : M->globals()) {
  984   for (GlobalVariable &GV : OrigM.globals())
 1009     for (const Function &F : BD.getProgram())
 1010       for (const BasicBlock &BB : F)
 1011         for (const Instruction &I : BB)
 1046          FI != E; ++FI)
 1048         for (Function::const_iterator BI = FI->begin(), E = FI->end(); BI != E;
 1051                I != E; ++I, ++CurInstructionNum) {
 1100   for (Function &F : BD.getProgram())
 1120   for (Function &F : BD.getProgram())
 1154     for (Function &F : BD.getProgram())
 1155       for (BasicBlock &BB : F)
 1176     for (Function &F : BD.getProgram())
 1177       for (BasicBlock &BB : F)
 1189     for (Function &F : BD.getProgram())
 1190       for (BasicBlock &BB : F)
 1228       for (auto &NamedMD : BD.getProgram().named_metadata())
 1240       for (auto &NamedMD : BD.getProgram().named_metadata())
tools/bugpoint/ExtractFunction.cpp
  132   for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
  187          I != E; ++I)
  310   for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
  313        I != E; ++I) {
  334   for (Function &I : *New)
  339   for (GlobalVariable &I : M->globals()) {
  386   for (Function &F : *M)
  387     for (BasicBlock &BB : F)
tools/bugpoint/Miscompilation.cpp
  292   for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E;
  296   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
  416          I != E; ++I)
  545     for (BasicBlock &BB : *MiscompiledFunctions[i])
  586   for (Module::iterator I = Extracted->begin(), E = Extracted->end(); I != E;
  622   for (Function &F : Prog)
  834   for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) {
tools/clang/lib/CodeGen/BackendUtil.cpp
  901     for (Function &F : *TheModule)
tools/clang/lib/CodeGen/CGCall.cpp
 2756          II != IE; ++II) {
tools/clang/lib/CodeGen/CGException.cpp
  302     for (auto BB = F->begin(), E = F->end(); BB != E; ++BB) {
tools/clang/lib/CodeGen/CGObjCMac.cpp
 4213          I = CGF.CurFn->begin(), E = CGF.CurFn->end(); I != E; ++I)
 4271          FI = CGF.CurFn->begin(), FE = CGF.CurFn->end(); FI != FE; ++FI) {
 4277            BI = BB.begin(), BE = BB.end(); BI != BE; ++BI) {
 4317          I = Entry.begin(), E = Entry.end(); I != E; ++I)
tools/clang/lib/CodeGen/CGStmt.cpp
  457   if (BI->getIterator() != BB->begin())
tools/clang/lib/CodeGen/CGVTables.cpp
  128   for (auto &BB : Fn->getBasicBlockList()) {
  129     for (auto &I : BB) {
  207   assert(ThisStore != EntryBB->end() &&
  219     for (llvm::BasicBlock &BB : *Fn) {
tools/clang/lib/CodeGen/CodeGenAction.cpp
  207           for (Function &F : *LM.Module)
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1077   for (llvm::BasicBlock &BB : *F)
 1078     for (llvm::Instruction &I : BB)
tools/clang/unittests/CodeGen/IRMatchers.h
  418   for (const auto &I : *BB) {
  440   for (auto P = ++BasicBlock::const_iterator(I), E = BB->end(); P != E; ++P) {
tools/clang/unittests/CodeGen/IncrementalProcessingTest.cpp
  103   for (const auto& Func: M)
tools/clang/unittests/CodeGen/TBAAMetadataTest.cpp
   80     for (; FuncPtr != M->end(); ++FuncPtr)
   83     assert(FuncPtr != M->end());
   86     for (; FuncPtr != M->end(); ++FuncPtr)
   93     assert(Func.begin() != Func.end());
tools/lld/include/lld/Core/Simple.h
  215     for (SimpleReference &node : _references) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
 1263   for (TrieEdge &edge : _children) {
 1327   for (TrieEdge &edge : _children) {
 1355   for (TrieEdge &edge : _children) {
 1420   for (TrieEdge &edge : _children) {
tools/lldb/source/Expression/IRExecutionUnit.cpp
  329   for (llvm::Function &function : *m_module) {
  385   for (llvm::GlobalVariable &global_var : m_module->getGlobalList()) {
  389   for (llvm::GlobalAlias &global_alias : m_module->getAliasList()) {
tools/lldb/source/Expression/IRInterpreter.cpp
  494   for (Module::iterator fi = module.begin(), fe = module.end(); fi != fe;
  496     if (fi->begin() != fi->end()) {
  508        bbi != bbe; ++bbi) {
  509     for (BasicBlock::iterator ii = bbi->begin(), ie = bbi->end(); ii != ie;
  688   while (frame.m_ii != frame.m_ie && (++num_insts < 4096)) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
 1154   for (const auto &func : module->getFunctionList()) {
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
  207          ii != last_ii; ++ii) {
  224          bbi != last_bbi; ++bbi) {
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  898   for (Instruction &inst : basic_block) {
 1049   for (Instruction &inst : basic_block) {
 1148   for (Instruction &inst : basic_block) {
 1389   for (Instruction &inst : basic_block) {
 1421   for (Instruction &inst : basic_block) {
 1436   for (GlobalVariable &global_var : m_module->globals()) {
 1515   for (Instruction &inst : basic_block) {
 1918   for (llvm::Function &function : *m_module) {
 1919     for (BasicBlock &bb : function) {
 1959   for (llvm::Function &function : *m_module) {
 1960     for (llvm::BasicBlock &bb : function) {
 1980   for (llvm::Function &function : *m_module) {
 1981     for (BasicBlock &bb : function) {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
  131   for (auto &func : module.getFunctionList())
  132     for (auto &block : func.getBasicBlockList())
  133       for (auto &inst : block) {
tools/lli/lli.cpp
  707       for (const auto &F : M) {
tools/llvm-diff/DiffConsumer.cpp
   30   for (Function::iterator FI = F->begin(), FE = F->end(); FI != FE; ++FI) {
   35     for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE; ++BI)
tools/llvm-diff/DifferenceEngine.cpp
  197       assert(LI != LE && RI != R->end());
  197       assert(LI != LE && RI != R->end());
  213     } while (LI != LE); // This is sufficient: we can't get equality of
  218     for (LI = L->begin(), RI = R->begin(); LI != LE; ++LI, ++RI)
  543   for (BasicBlock::iterator RI = RStart; RI != RE; ++RI) {
  550     for (BasicBlock::iterator LI = LStart; LI != LE; ++LI, ++Index) {
  596       assert(LI != LE && RI != RE);
  596       assert(LI != LE && RI != RE);
  606       assert(LI != LE);
  612       assert(RI != RE);
  621   while (LI != LE) {
  622     assert(RI != RE);
  691   for (Module::iterator I = L->begin(), E = L->end(); I != E; ++I) {
  707   for (Module::iterator I = R->begin(), E = R->end(); I != E; ++I) {
tools/llvm-extract/llvm-extract.cpp
  174          GA != E; GA++) {
  207     for (auto &GV : M->globals()) {
  240     for (Module::iterator F = M->begin(), E = M->end(); F != E;
  301       for (auto &BB : *F) {
  302         for (auto &I : BB) {
  327     for (auto &F : *M) {
tools/llvm-reduce/deltas/ReduceArguments.cpp
   49   for (auto &F : *Program)
  109   for (auto &F : *Program)
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
   88   for (auto &F : *Program)
   89     for (auto &BB : F)
   98   for (auto &F : *Program)
   99     for (auto &BB : F) {
  109   for (auto &F : *Program)
  110     for (auto &BB : F) {
  120     for (auto &I : *BB)
  131   for (auto &F : *Program)
  132     for (auto &BB : F) {
tools/llvm-reduce/deltas/ReduceFunctions.cpp
   29   for (auto &F : *Program)
   40   for (auto &F : *Program)
   65   for (auto &F : *Program)
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
   25   for (auto &GV : Program->globals())
   36   for (auto &GV : Program->globals())
   63   for (auto &GV : Program->globals())
tools/llvm-reduce/deltas/ReduceInstructions.cpp
   25   for (auto &F : *Program)
   26     for (auto &BB : F)
   27       for (auto &Inst : BB)
   36   for (auto &F : *Program)
   37     for (auto &BB : F)
   38       for (auto &Inst : BB)
   53   for (auto &F : *Program)
   54     for (auto &BB : F)
tools/llvm-reduce/deltas/ReduceMetadata.cpp
   61   for (auto &GV : Program->globals())
   64   for (auto &F : *Program) {
   66     for (auto &BB : F)
   67       for (auto &Inst : BB)
   72   for (auto &GV : Program->globals())
   75   for (auto &F : *Program) {
   77     for (auto &BB : F)
   78       for (auto &Inst : BB)
   86   for (auto &MD : Program->named_metadata()) {
  119   for (auto &GV : Program->globals())
  123   for (auto &F : *Program) {
  125     for (auto &BB : F)
  126       for (auto &I : BB)
tools/llvm-stress/llvm-stress.cpp
  709   for (auto &Instr : F->front()) {
tools/opt/AnalysisWrappers.cpp
   35       for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
tools/opt/Debugify.cpp
   93   for (Function &F : Functions) {
  105     for (BasicBlock &BB : F) {
  107       for (Instruction &I : BB)
  122       assert(InsertPt != BB.end() && "Expected to find an insertion point");
  237   for (Function &F : Functions) {
tools/opt/opt.cpp
  845     for (Function &F : *M)
tools/polly/lib/Analysis/ScopBuilder.cpp
 1919     for (Instruction &Inst : *BB)
 1968   for (Instruction &Inst : *BB) {
 2101   for (Instruction &Inst : *BB) {
 2128   for (Instruction &Inst : *BB) {
 2142   for (Instruction &Inst : *BB) {
 2182     for (Instruction &Inst : *SR.getEntry())
 2249     for (Instruction &Inst : BB) {
 3380   for (AliasSet &AS : AST) {
 3551     for (auto &Inst : *BB) {
 3588     for (auto &Inst : *S->getRegion().getExit()) {
 3612     for (Instruction &Inst : *BB) {
 3640     for (Instruction &Inst : *R.getExit()) {
tools/polly/lib/Analysis/ScopDetection.cpp
 1554     for (BasicBlock::iterator I = BB->begin(), E = --BB->end(); I != E; ++I)
 1592       for (auto &I : *LBB)
tools/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
  123     for (const Instruction &Inst : *BB) {
  792     for (const Instruction &Inst : *BB)
tools/polly/lib/Analysis/ScopInfo.cpp
 1723       for (Instruction &Inst : *BB)
 2398     for (Instruction &Inst : *BB) {
tools/polly/lib/CodeGen/BlockGenerators.cpp
   87   assert(IP != Builder.GetInsertBlock()->end() &&
  400   for (auto I = NewBB->rbegin(); I != NewBB->rend(); I++) {
  465     for (Instruction &Inst : *BB)
  981       for (auto &Inst : *Stmt.getBasicBlock())
  985         for (auto &Inst : *BB)
 1394   for (Instruction &Inst : *BB)
tools/polly/lib/CodeGen/CodeGeneration.cpp
  107   for (BasicBlock &BB : F) {
  148     while (InstIt != InstEnd) {
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  210   for (Instruction &Inst : *BB) {
 1565   assert(Builder.GetInsertBlock()->end() != Builder.GetInsertPoint() &&
tools/polly/lib/Support/ScopHelper.cpp
  417     for (BasicBlock &I : *R.getEntry()->getParent())
  429   for (Instruction &Inst : BB)
  592       for (BasicBlock &I : *R.getEntry()->getParent())
  738   for (Instruction &Inst : *BB) {
tools/polly/lib/Support/ScopLocation.cpp
   27     for (const Instruction &Inst : *BB) {
tools/polly/lib/Support/VirtualInstruction.cpp
  209         for (Instruction &Inst : *BB)
tools/polly/lib/Transform/RewriteByReferenceParameters.cpp
   82     for (BasicBlock &BB : F)
   83       for (Instruction &Inst : BB)
tools/verify-uselistorder/verify-uselistorder.cpp
  188   for (const GlobalVariable &G : M.globals())
  190   for (const GlobalAlias &A : M.aliases())
  192   for (const GlobalIFunc &IF : M.ifuncs())
  194   for (const Function &F : M)
  198   for (const GlobalVariable &G : M.globals())
  201   for (const GlobalAlias &A : M.aliases())
  203   for (const GlobalIFunc &IF : M.ifuncs())
  205   for (const Function &F : M) {
  215   for (const Function &F : M) {
  218     for (const BasicBlock &BB : F)
  220     for (const BasicBlock &BB : F)
  221       for (const Instruction &I : BB)
  225     for (const BasicBlock &BB : F)
  226       for (const Instruction &I : BB)
  464   for (GlobalVariable &G : M.globals())
  466   for (GlobalAlias &A : M.aliases())
  468   for (GlobalIFunc &IF : M.ifuncs())
  470   for (Function &F : M)
  474   for (GlobalVariable &G : M.globals())
  477   for (GlobalAlias &A : M.aliases())
  479   for (GlobalIFunc &IF : M.ifuncs())
  481   for (Function &F : M) {
  491   for (Function &F : M) {
  494     for (BasicBlock &BB : F)
  496     for (BasicBlock &BB : F)
  497       for (Instruction &I : BB)
  501     for (BasicBlock &BB : F)
  502       for (Instruction &I : BB)
unittests/ADT/IListTest.cpp
  222     for (; First != Last; ++First) {
unittests/Analysis/AliasSetTrackerTest.cpp
   70   for (auto &BB : *Test)
   77   for (auto &Inst : *Test->begin()) {
   79     for (AliasSet &AS : AST) {
unittests/Analysis/CFGTest.cpp
   63     for (auto I = F->begin(), E = F->end(); I != E; ++I) {
unittests/Analysis/DivergenceAnalysisTest.cpp
   33   for (auto &BB : F) {
  299       for (auto &BB : F) {
unittests/Analysis/LazyCallGraphTest.cpp
  396   for (Function &F : M)
unittests/Analysis/UnrollAnalyzerTest.cpp
   42         for (Instruction &I : *BB)
unittests/Analysis/ValueTrackingTest.cpp
  511   for (auto &I : BB) {
unittests/CodeGen/GlobalISel/GISelMITest.h
  129   for (auto &MBB : *MF)
unittests/FuzzMutate/RandomIRBuilderTest.cpp
   68   for (auto I = BB.getFirstInsertionPt(), E = BB.end(); I != E; ++I)
unittests/IR/LegacyPassManagerTest.cpp
  270         for (Module::iterator I=M.begin(),E=M.end(); I != E; ++I) {
unittests/IR/PassManagerTest.cpp
   34     for (Function::iterator BBI = F.begin(), BBE = F.end(); BBI != BBE; ++BBI)
   35       for (BasicBlock::iterator II = BBI->begin(), IE = BBI->end(); II != IE;
   62     for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
  573   for (Function &F : *M)
unittests/Transforms/Utils/CodeExtractorTest.cpp
   26   for (auto &BB : *F)
unittests/Transforms/Utils/LocalTest.cpp
  160   for (const Instruction &I : F->front())
  214     for (Function::iterator I = F.begin(), E = F.end(); I != E;) {
  438     for (Function::iterator I = F.begin(), E = F.end(); I != E;) {
  450     for (Function::iterator I = F.begin(), E = F.end(); I != E;) {
  551     for (const Instruction &I : F->front()) {
usr/include/c++/7.4.0/bits/stl_algo.h
  104       while (__first != __last && !__pred(__first))
 3236       for (++__next; __next != __last; __first = __next, (void)++__next)
 3883       for (; __first != __last; ++__first)
 4305       for (; __first != __last; ++__first, (void)++__result)
 5588       while (++__first != __last)
usr/include/c++/7.4.0/bits/stl_iterator_base_funcs.h
   87       while (__first != __last)
utils/unittest/googlemock/include/gmock/gmock-matchers.h
 3186     for (; it != stl_container.end() && exam_pos != count(); ++it, ++exam_pos) {
 3207     for (; it != stl_container.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, !=);