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
  836     ++Begin;
include/llvm/ADT/ilist.h
  239       return insert(++where, New);
  245     for (const_reference V : L2)
  332     iterator last = first; ++last;
include/llvm/ADT/ilist_iterator.h
  115       : ilist_iterator(++RHS.getReverse()) {}
  168     ++*this;
include/llvm/ADT/iterator.h
  251     ++I;
include/llvm/ADT/simple_ilist.h
  117   iterator begin() { return ++iterator(Sentinel); }
  118   const_iterator begin() const { return ++const_iterator(Sentinel); }
  121   reverse_iterator rbegin() { return ++reverse_iterator(Sentinel); }
  123     return ++const_reverse_iterator(Sentinel);
  175     for (const_reference V : L2)
  284     ++LI;
  299   while (End != end() && ++End != end()) {
  300     ++Center;
  301     ++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
  279     for (BasicBlock::iterator I = Dest->begin(); isa<PHINode>(I); ++I)
  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
  645       ++I;
include/llvm/CodeGen/MachineFunction.h
  696     for (const MachineBasicBlock &MBB : BasicBlocks)
include/llvm/CodeGen/MachineInstrBundle.h
   63     ++I;
   64   ++I;
   72     ++I;
   73   ++I;
  102       if (++InstrI == InstrE || !InstrI->isInsideBundle())
  122       ++InstrE;
include/llvm/CodeGen/MachineInstrBundleIterator.h
   64         ++I;
include/llvm/CodeGen/SlotIndexes.h
  272         return SlotIndex(&*++listEntry()->getIterator(), Slot_Block);
  280       return SlotIndex(&*++listEntry()->getIterator(), getSlot());
  415       while (++I != E)
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/InstIterator.h
   87     ++BI;
  114       ++BB;
include/llvm/IR/PassManager.h
 1299     for (Function &F : M) {
lib/Analysis/AliasAnalysis.cpp
  718   ++E;  // Convert from inclusive to exclusive range.
  720   for (; I != E; ++I) // Check every instruction in range
lib/Analysis/AliasSetTracker.cpp
  516   for (auto &I : BB)
  527   for (const AliasSet &AS : AST) {
  548       for (auto &Access : *Accesses)
  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
  242          ++I) {
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
  314   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I)
  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
  170   for (auto I = IPostDom->begin(); isa<PHINode>(I); ++I) {
  204     for (auto &I : *InfluencedBB) {
  395   for (auto BI = F->begin(), BE = F->end(); BI != BE; ++BI) {
lib/Analysis/Loads.cpp
  461       ++ScanFrom;
  473       ++ScanFrom;
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
  154   for (BasicBlock::iterator I = H->begin(); isa<PHINode>(I); ++I) {
  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
 1586     NewDirtyVal = MemDepResult::getDirty(&*++RemInst->getIterator());
lib/Analysis/MemorySSA.cpp
 1119     for (MemoryAccess &L : *Accesses) {
 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)
 1642         ++InsertPt;
 1930   for (const BasicBlock &BB : F) {
 1943     for (const MemoryAccess &MA : *Accesses) {
 1969   for (BasicBlock &B : F) {
 1978     for (Instruction &I : B) {
 2007       ++ALI;
 2016         ++DLI;
 2029   for (BasicBlock &B : F) {
 2035     for (Instruction &I : B) {
 2100   for (const auto &I : *AL)
lib/Analysis/MemorySSAUpdater.cpp
  160       ++Iter;
  166       for (auto &U : make_range(++MA->getReverseIterator(), End))
  166       for (auto &U : make_range(++MA->getReverseIterator(), End))
  263     assert((!Defs || (++Defs->begin() == Defs->end())) &&
  366     ++Iter;
  468     if (++DefIter != Defs->end()) {
  589   for (const MemoryAccess &MA : *Acc) {
 1092       for (auto &DefToReplaceUses : *DefsList) {
 1157   moveTo(What, Where->getBlock(), ++Where->getIterator());
 1175   for (Instruction &I : make_range(Start->getIterator(), To->end()))
 1181       auto NextIt = ++MUD->getIterator();
 1353       for (MemoryAccess &MA : *Acc)
 1364       ++AB;
 1438                               ++InsertPt->getIterator());
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
   49   for (; II != IE; ++II) {
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
   88   BasicBlock::iterator IP = ++I->getIterator();
   93     ++IP;
   96     ++IP;
  156       ++IP;
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/Bitcode/Reader/BitcodeReader.cpp
  163   for (auto &F : *M) {
 2802           ++BBI;
 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()) {
  962     ++I;
 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
  619   for (; I != MBB->rend(); ++I) {
  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)
  453   for (; MFI != MFE; ++MFI, IsNewBlock = true) {
  600     ++Stop;
  893     while (++FuncletEnd != End) {
 1159     while (++FuncletEnd != End) {
lib/CodeGen/AtomicExpandPass.cpp
 1271     Builder.SetInsertPoint(ExitBB, ++ExitBB->begin());
lib/CodeGen/BranchFolding.cpp
  200   for (MachineBasicBlock &MBB : MF) {
  230   for (const MachineBasicBlock &BB : MF) {
  461   CurMBB.getParent()->insert(++MBBI, NewMBB);
 1085   for (MachineBasicBlock &MBB : MF) {
 1122        I != E; ++I) {
 1183             auto Next = ++PBB->getIterator();
 1347   for (MachineInstr &MI : MBB.instrs())
 1359   for (MachineInstr &MI : MBB.instrs())
 1396   ++FallThrough;
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())) {
  214   MF->insert(++BB.getIterator(), NewBB);
  232   MF->insert(++OrigBB->getIterator(), NewBB);
  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
  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()))
  645   for (auto &Block : llvm::make_range(std::next(F.begin()), F.end()))
  941        &*R != RelocatedBase; ++R)
 1207   for (Instruction &Iter : *Cmp->getParent()) {
 1742   BasicBlock::iterator SplitPt = ++(BasicBlock::iterator(CountZeros));
 2001     do { ++BI; } while (isa<DbgInfoIntrinsic>(BI) || &*BI == BCI);
 2006     while (isa<DbgInfoIntrinsic>(BI)) ++BI;
 2036       do { ++RI; } while (RI != RE && isa<DbgInfoIntrinsic>(&*RI));
 5941   for (BasicBlock::iterator It = ++BasicBlock::iterator(SI);
 5942        It != SI->getParent()->end(); ++It) {
 6005   BasicBlock::iterator SplitPt = ++(BasicBlock::iterator(LastSI));
 7101     for (auto &I : reverse(BB)) {
 7118   for (BasicBlock &BB : F) {
 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) {
  853       ++BBIt;
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)
  147     ++IP;
  151   for (; !CouldBecomeSafePoint(&*IP); ++IP)
  196   for (BasicBlock &BB : F) 
  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
  638   if (++I == E)
  706     if (++I == TrueBBI.BB->getParent()->end())
 1427   for (MachineBasicBlock &MBB : MF)
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/InterferenceCache.cpp
  209     if (++MFI == MF->end())
lib/CodeGen/InterleavedLoadCombinePass.cpp
 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
  684        ++MFI) {
  972   for (MachineBasicBlock &MBB : mf) {
 1364       if (++MBB == MFEnd)
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) {
  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)
  163     ++I;
  214     ++I;
  410   for (const MachineInstr &MI : instrs()) {
  529   getParent()->splice(++NewBefore->getIterator(), getIterator());
  828   ++Fallthrough;
  904          I != E; ++I) {
  924          I != E; ++I) {
  946          I != E; ++I)
  955          I != E; ++I)
  973       for (MachineInstr &MI : NMBB->instrs()) {
 1028          I != E && I->isPHI(); ++I) {
lib/CodeGen/MachineBlockFrequencyInfo.cpp
  136         for (auto MBI = F->begin(); MBI != F->end(); ++MBI, ++O) {
lib/CodeGen/MachineBlockPlacement.cpp
 1172   for (MachineBasicBlock &BB : *F) {
 1655        ++I) {
 2562        ++FI) {
 2602   for (MachineBasicBlock &MBB : *F)
 2615     for (MachineBasicBlock &MBB : *F)
 2644       ++InsertPos;
 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
  301   for (; MBBI != E; ++MBBI, ++BlockNo) {
  356     ++I;
  514   for (const auto &BB : *this) {
lib/CodeGen/MachineInstr.cpp
  570   for (MachineBasicBlock::const_instr_iterator MII = getIterator();; ++MII) {
  602       ++I1;
  603       ++I2;
  745   ++Succ;
  763   ++Succ;
  924     ++I;
lib/CodeGen/MachineInstrBundle.cpp
   49   for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
   59         while (++MII != MIE && MII->isBundledWithPred()) {
   73       ++MII;
  112   for (auto MII = FirstMI; MII != LastMI; ++MII)
  147   for (auto MII = FirstMI; MII != LastMI; ++MII) {
  230   for (auto MII = FirstMI; MII != LastMI; ++MII) {
  249     ++LastMI;
  258   for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
  267     for (++MII; MII != MIE; ) {
  269         ++MII;
lib/CodeGen/MachineLICM.cpp
  760        I != Preheader->instr_end(); ++I) {
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) {
  681       ++MBBI;
  732       ++MBBI;
 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) {
 2610     ++MFI;
 2625       ++MFI;
 2667     ++MFI;
lib/CodeGen/ModuloSchedule.cpp
  713         ++MI;
  720         ++MI;
  758       ++MI;
  806         for (auto &BBJ : make_range(MachineBasicBlock::instr_iterator(MI),
  899          I != E && numAdded > 0; ++I, --numAdded)
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) {
   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/ScheduleDAGInstrs.cpp
 1144         ++I;
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
 4611         ++NI;
 4621           ++NI;
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())
 8413   for (auto &N : allnodes()) {
 8435   for (auto &N : allnodes()) {
 8449   for (auto &N : allnodes()) {
 8546       ++SortedPos;
 8555   for (SDNode &Node : allnodes()) {
 8572         ++SortedPos;
 8581       SDNode *S = &*++I;
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 2120   CurBB->getParent()->insert(++BBI, TmpBB);
 9446   for (const Instruction &I : FuncInfo->Fn->getEntryBlock()) {
10014     MF->insert(++BBI, SuccMBB);
10024   if (++I == FuncInfo.MF->end())
10048   if (++BBI != FuncInfo.MF->end())
10378   ++BBI;
10471   ++BBI;
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  819        I != E; ++I) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  357   for (BasicBlock &BB : Fn) {
  366     for (BasicBlock::iterator I = BB.begin(); (PN = dyn_cast<PHINode>(I)); ++I)
  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) {
 1036       ++ISelPosition;
 1111     ++ISelPosition;
 1296   for (const BasicBlock &BB : *FuncInfo->Fn) {
 1297     for (const Instruction &I : BB) {
lib/CodeGen/ShadowStackGCLowering.cpp
  169   for (Function &F : M) {
  236   for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
  311     ++IP;
  338     ++IP;
lib/CodeGen/ShrinkWrap.cpp
  487   for (MachineBasicBlock &MBB : MF) {
lib/CodeGen/SjLjEHPrepare.cpp
  232     ++AfterAllocaInsPt;
  262   for (BasicBlock &BB : F) {
  263     for (Instruction &Inst : BB) {
  336     for (BasicBlock::iterator PN = UnwindBlock->begin(); isa<PHINode>(PN); ++PN)
  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) {
  157     ++curItr;
  240        itr != indexList.end(); ++itr) {
lib/CodeGen/SpillPlacement.cpp
  210   for (auto &I : mf) {
lib/CodeGen/SplitKit.cpp
  307       ++MFI;
  334       ++MFI;
 1188         ++MBB;
 1216         ++MBB;
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) {
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) {
   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) {
  505       ++MII;
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) {
  801       for (Instruction &I : *BB)
  942       for (Instruction &I : *BB) {
 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/Interpreter/Execution.cpp
  993   for (; PHINode *PN = dyn_cast<PHINode>(SF.CurInst); ++SF.CurInst) {
 1005   for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) {
 1154         ++SF.CurInst;
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)
  189        ++I) {
lib/FuzzMutate/RandomIRBuilder.cpp
   53       IP = ++I->getIterator();
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
  136       ++MovePos->getIterator(), getParent()->getBasicBlockList(),
  197   for (const Instruction &I : *this)
  204   for (const Instruction &I : *this)
  211   for (const Instruction &I : *this) {
  229   if (InsertPt->isEHPad()) ++InsertPt;
  234   for (Instruction &I : *this)
  364       ++II;
  444   for (iterator II = begin(), IE = end(); II != IE; ++II) {
  494     ++It;
lib/IR/Core.cpp
 1149   if (++I == NamedNode->getParent()->named_metadata_end())
 2105   if (++I == GV->getParent()->global_end())
 2231   if (++I == Alias->getParent()->alias_end())
 2283   if (++I == Func->getParent()->end())
 2531   if (++I == GIF->getParent()->ifunc_end())
 2592   for (BasicBlock &BB : *Fn)
 2619   if (++I == Block->getParent()->end())
 2714   if (++I == Instr->getParent()->end())
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) {
  356     ++NMI;
  367   for (Function &F : M)
  370   for (auto &GV : M.globals()) {
  608     ++NMI;
  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/Dominators.cpp
  144   for (; &*I != Def && &*I != User; ++I)
  293   for (; &*I != Def && &*I != UserInst; ++I)
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/Instruction.cpp
   91   moveBefore(*MovePos->getParent(), ++MovePos->getIterator());
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
  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
   65     I = ++MCSection::iterator(Cur);
   73     ++I;
lib/MC/MCMachOStreamer.cpp
  496     for (MCFragment &Frag : Sec) {
lib/MC/MCSection.cpp
   95   for (auto it = begin(), ie = end(); it != ie; ++it) {
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/AArch64CleanupLocalDynamicTLSPass.cpp
  126         BuildMI(*I.getParent(), ++I.getIterator(), I.getDebugLoc(),
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
  191   MF->insert(++MBB.getIterator(), LoadCmpBB);
  192   MF->insert(++LoadCmpBB->getIterator(), StoreBB);
  193   MF->insert(++StoreBB->getIterator(), DoneBB);
  273   MF->insert(++MBB.getIterator(), LoadCmpBB);
  274   MF->insert(++LoadCmpBB->getIterator(), StoreBB);
  275   MF->insert(++StoreBB->getIterator(), DoneBB);
  360   MF->insert(++MBB.getIterator(), LoopBB);
  361   MF->insert(++LoopBB->getIterator(), DoneBB);
  729   for (auto &MBB : MF)
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp
  154     for (Instruction &I : *BB) {
lib/Target/AArch64/AArch64FrameLowering.cpp
  188   for (MachineBasicBlock &MBB : MF) {
lib/Target/AArch64/AArch64ISelLowering.cpp
 1340   MachineFunction::iterator It = ++MBB->getIterator();
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
  413   for (MachineBasicBlock &MBB : MF) {
  671     for (auto &MBB : MF)
  689   for (auto &MBB : MF) {
lib/Target/AArch64/AArch64StackTagging.cpp
  341   for (; Count < ClScanLimit && !BI->isTerminator(); ++BI) {
  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) {
lib/Target/AMDGPU/AMDGPULibCalls.cpp
 1755   for (auto &BB : F) {
 1759       ++I;
 1780   for (auto &BB : F) {
 1784       ++I;
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
  134   for (Function &F : M) {
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  273     MachineBasicBlock::const_instr_iterator I = ++MI->getIterator();
  276       ++I;
  397     MachineBasicBlock::const_instr_iterator I = ++MI->getIterator();
  400       ++I;
lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
  625   for (auto &MFI : MF) {
  719                MII != MIE; ++MII) {
 1420        I != E; ++I) {
 1702   if (++MachineFunction::iterator(MBB) != MachineFunction::iterator(Dest)) {
 1709   for (auto &MFI : MF) {
 1855   MF->splice(MergeIter, CodeBBStartI, ++CodeBBEndI);
 2300     auto CodeBBEndIter = ++(CodeBB->getIterator());
 2526   auto MBBIter = ++(MBB->getIterator());
 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/AMDGPURegisterBankInfo.cpp
  715   ++MBBI;
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) {
  330                     : AvailQueue) dbgs()
lib/Target/AMDGPU/GCNMinRegStrategy.cpp
  134     ++I;
  211   for (auto &C : RQ) {
  252                     : RQ) dbgs()
lib/Target/AMDGPU/GCNNSAReassign.cpp
  241   for (const MachineBasicBlock &MBB : MF) {
lib/Target/AMDGPU/GCNRegBankReassign.cpp
  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()) {
  517         ++MB) {
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
  124     } while ((++BI)->isBundledWithPred());
  352        MBB != MBBe; ++MBB) {
  370        MBB != MBBe; ++MBB) {
lib/Target/AMDGPU/SIAddIMGInit.cpp
   70        ++BI) {
lib/Target/AMDGPU/SIFixSGPRCopies.cpp
  571       for (unsigned I = 0; R != B && I < Threshold; ++R, ++I)
  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) {
  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
 3047   MF->insert(++MachineFunction::iterator(BB), SplitBB);
 3072   ++MBBI;
10717     for (auto &MBB : MF) {
lib/Target/AMDGPU/SIInsertSkips.cpp
  114        MBBI != End && MBBI != ToI; ++MBBI) {
  312   ++MBBI;
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
 1067            &*II != &MI; II = NextI, ++NextI) {
 1386       ++Iter;
 1438     ++Iter;
 1544        ++BI) {
lib/Target/AMDGPU/SIInstrInfo.cpp
 1549          I->isBundledWithSucc(); ++I) {
 4433   ++MBBI;
 5972   while (++I != E && I->isInsideBundle()) {
 6470   for (auto I = std::next(DefMI.getIterator()); I != E; ++I) {
 6509   for (auto I = std::next(DefMI.getIterator()); ; ++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)
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) {
  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()) {
 1739     ++I;
 4048   MachineBasicBlock::const_instr_iterator II = ++MI.getIterator();
 4060     ++II;
 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) {
  899   MachineFunction::iterator MBBI = ++OrigBB->getIterator();
 1029   if (++NextBlock == MF->end()) {
 1289       NewMBB = &*++UserMBB->getIterator();
 1482     NewMBB = &*++WaterBB->getIterator();
 1709   MachineBasicBlock *NextBB = &*++MBB->getIterator();
 2112   ++MBB;
 2426   MachineFunction::iterator MBBI = ++JTBB->getIterator();
lib/Target/ARM/ARMExpandPseudoInsts.cpp
  949   MF->insert(++MBB.getIterator(), LoadCmpBB);
  950   MF->insert(++LoadCmpBB->getIterator(), StoreBB);
  951   MF->insert(++StoreBB->getIterator(), DoneBB);
 1074   MF->insert(++MBB.getIterator(), LoadCmpBB);
 1075   MF->insert(++LoadCmpBB->getIterator(), StoreBB);
 1076   MF->insert(++StoreBB->getIterator(), DoneBB);
 1980   for (MachineBasicBlock &MBB : MF)
lib/Target/ARM/ARMFrameLowering.cpp
 1490   for (auto &MBB : MF) {
 1513   for (auto &MBB : MF) {
lib/Target/ARM/ARMISelLowering.cpp
 9481        ++BB) {
10015   MachineFunction::iterator It = ++BB->getIterator();
10337   MF->insert(++MBB->getIterator(), ContBB);
10482     MachineFunction::iterator It = ++BB->getIterator();
10615     MachineFunction::iterator BBI = ++BB->getIterator();
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
 2013        ++MFI) {
 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)) {
  663     return &*++BasicBlock::iterator(cast<Instruction>(V));
  681       Builder.SetInsertPoint(&*++BasicBlock::iterator(Mul));
  766                           ++BasicBlock::iterator(DomLoad));
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
  189       ++MBIter;
  199     ++MBIter;
  208       ++MBIter;
  269   for (MachineBasicBlock &MBB : Fn)
lib/Target/ARM/Thumb2ITBlockPass.cpp
  276                    ++LastITMI->getIterator());
  299   for (auto &MBB : Fn )
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/BPFISelLowering.cpp
  653   MachineFunction::iterator I = ++BB->getIterator();
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
 1126   for (const MachineBasicBlock &B : MF) {
lib/Target/Hexagon/HexagonAsmPrinter.cpp
  753     for (++MII; MII != MBB->instr_end() && MII->isInsideBundle(); ++MII)
  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()) {
  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) {
 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
  937     for (const MachineBasicBlock &B : MF) {
 1033   for (MachineBasicBlock &B : MF) {
lib/Target/Hexagon/HexagonCopyToCombine.cpp
  482        ++BI) {
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) {
 1350       BB->splice(++BumpI->getIterator(), BB, CmpI->getIterator());
 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())
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)
  343     for (++MII; MII != MBB->instr_end() && MII->isInsideBundle(); ++MII)
  361     for (++MII; MII != MBB->instr_end() && MII->isInsideBundle(); ++MII)
  361     for (++MII; MII != MBB->instr_end() && MII->isInsideBundle(); ++MII)
  607           MachineFunction::iterator(NewTBB) == ++MBB.getIterator()) {
 3087   for (++MII; MII != MIE && MII->isInsideBundle(); ++MII) {
 3087   for (++MII; MII != MIE && MII->isInsideBundle(); ++MII) {
 4347   return nonDbgMICount(++MII, getBundleEnd(BundleHead.getInstrIterator()));
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)
 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) {
  655               for (auto I = std::next(MI.getIterator()); I != jmpPos; ++I) {
lib/Target/Hexagon/HexagonOptAddrMode.cpp
  488   ++InsertPt;
  551   ++InsertPt;
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)
  187   for (++I; I != E && I->isBundledWithPred(); ++I)
  231   for (MachineBasicBlock &MB : MF) {
  245   for (auto &MB : MF) {
 1149   for (auto &B : MF) {
 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) {
  140         for (++MII; MII != MBB.instr_end() && MII->isInsideBundle(); ++MII) {
lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp
  710       for (auto &J : Fragments) {
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
   55          ++FI)
   96        I != MBB.instr_end(); ++I) {
  107         MachineBasicBlock::reverse_instr_iterator RI = ++I.getReverse();
  113         ++RI;
  134       LastFiller = ++I;
  155   for (MachineBasicBlock::reverse_instr_iterator I = ++Slot.getReverse();
  156        I != MBB.instr_rend(); ++I) {
lib/Target/Lanai/LanaiFrameLowering.cpp
   69        ++MBB) {
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/MSP430/MSP430ISelLowering.cpp
 1464   MachineFunction::iterator I = ++BB->getIterator();
 1561   MachineFunction::iterator I = ++BB->getIterator();
lib/Target/Mips/MicroMipsSizeReduction.cpp
  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/Mips16ISelLowering.cpp
  522   MachineFunction::iterator It = ++BB->getIterator();
  585   MachineFunction::iterator It = ++BB->getIterator();
  651   MachineFunction::iterator It = ++BB->getIterator();
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)
  360     MIBundleBuilder(&*MIB).append((++II)->removeFromBundle());
  404   MachineFunction::iterator FallThroughMBB = ++MachineFunction::iterator(MBB);
  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) {
  856   MachineFunction::iterator MBBI = ++OrigBB->getIterator();
  940   MachineFunction::const_iterator NextBlock = ++Water->getIterator();
 1232       NewMBB = &*++UserMBB->getIterator();
 1339     NewMBB = &*++WaterBB->getIterator();
 1609   MachineBasicBlock *NextBB = &*++MBB->getIterator();
 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
  118   MachineFunction::iterator It = ++BB.getIterator();
  254   MachineFunction::iterator It = ++BB.getIterator();
  391   MachineFunction::iterator It = ++BB.getIterator();
  580   MachineFunction::iterator It = ++BB.getIterator();
  688        ++MFI)
lib/Target/Mips/MipsISelLowering.cpp
 1649   MachineFunction::iterator It = ++BB->getIterator();
 1827   MachineFunction::iterator It = ++BB->getIterator();
 4431   MachineFunction::iterator It = ++BB->getIterator();
 4507   MachineFunction::iterator It = ++BB->getIterator();
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) {
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
  102   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
  108          ++BBI) {
  110            ++II) {
lib/Target/NVPTX/NVPTXImageOptimizer.cpp
   60        ++BI) {
   62          I != E; ++I) {
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp
   69   for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE; ++BI) {
   71          ++II) {
lib/Target/NVPTX/NVPTXLowerAlloca.cpp
   69   for (auto &BB : F)
   70     for (auto &I : BB) {
lib/Target/NVPTX/NVPTXLowerArgs.cpp
  189     InsertPt = ++cast<Instruction>(Ptr)->getIterator();
  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
   60        ++BI) {
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
  121        ++MFI) {
  154        ++MFI) {
  298          ++MFI) {
lib/Target/PowerPC/PPCCTRLoops.cpp
  203        I != IE; ++I) {
lib/Target/PowerPC/PPCExpandISEL.cpp
  158   for (MachineBasicBlock &MBB : *MF) {
  347   ++It; // Point to the successor block of MBB.
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) {
 5640     for (SDNode &Node : CurDAG->allnodes()) {
lib/Target/PowerPC/PPCISelLowering.cpp
10333   MachineFunction::iterator It = ++BB->getIterator();
10437   MachineFunction::iterator It = ++BB->getIterator();
10620   MachineFunction::iterator I = ++MBB->getIterator();
10884   MachineFunction::iterator It = ++BB->getIterator();
lib/Target/PowerPC/PPCInstrInfo.cpp
 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) {
 1078   for (MachineBasicBlock &MBB2 : *MF) {
lib/Target/PowerPC/PPCPreEmitPeephole.cpp
   77       for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) {
  108              ++AfterBBI) {
  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()) {
  202   MF->insert(++It, NewMBB);
  711   for (MachineBasicBlock &MBB : *MF) {
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  264        J != JE; ++J) {
lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
  244   for (MachineBasicBlock &MBB : *MF) {
lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
   80   for (auto &MBB : MF)
  370   MF->insert(++MBB.getIterator(), LoopMBB);
  371   MF->insert(++LoopMBB->getIterator(), DoneMBB);
  424   MF->insert(++MBB.getIterator(), LoopHeadMBB);
  425   MF->insert(++LoopHeadMBB->getIterator(), LoopIfBodyMBB);
  426   MF->insert(++LoopIfBodyMBB->getIterator(), LoopTailMBB);
  427   MF->insert(++LoopTailMBB->getIterator(), DoneMBB);
  539   MF->insert(++MBB.getIterator(), LoopHeadMBB);
  540   MF->insert(++LoopHeadMBB->getIterator(), LoopTailMBB);
  541   MF->insert(++LoopTailMBB->getIterator(), DoneMBB);
  641   MF->insert(++MBB.getIterator(), NewMBB);
lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  205   ++Position;
lib/Target/RISCV/RISCVISelLowering.cpp
 1106   MachineFunction::iterator It = ++BB->getIterator();
 1290   MachineFunction::iterator I = ++BB->getIterator();
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/Sparc/SparcISelLowering.cpp
 3135   MachineFunction::iterator It = ++BB->getIterator();
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/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
  655   for (auto &MBB : MF) {
  681   for (auto &MBB : MF) {
  695            --B, ++E) {
  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/WebAssemblyISelLowering.cpp
  360   MachineFunction::iterator It = ++BB->getIterator();
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)
  665   MachineFunction::iterator It = ++MBB->getIterator();
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
   82   ++InsPt;
  405   for (MachineBasicBlock &MBB : MF)
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
  586             ++JmpIt;
  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
  801       ++I;
  824       ++I;
  847       ++I;
  867       ++I;
  893       ++I;
  936       ++I;
 1108     ++I;
lib/Target/X86/X86ISelLowering.cpp
29180   MachineFunction::iterator I = ++MBB->getIterator();
29359     MachineFunction::iterator MBBIter = ++MBB->getIterator();
29527   MachineFunction::iterator MBBIter = ++MBB->getIterator();
29798   MachineFunction::iterator It = ++ThisMBB->getIterator();
29959   MachineFunction::iterator It = ++ThisMBB->getIterator();
30060   MachineFunction::iterator MBBIter = ++BB->getIterator();
30474   MachineFunction::iterator I = ++MBB->getIterator();
30663   MachineFunction::iterator I = ++MBB->getIterator();
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) {
  193       ++MI;
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)
  975   for (MachineBasicBlock &MBB : MF) {
  979       ++MII;
 1056   for (MachineBasicBlock &MBB : MF) {
 1653   for (MachineBasicBlock &MBB : MF) {
 2512   ++InsertPt;
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
   52        ++MFI) {
lib/Target/XCore/XCoreISelLowering.cpp
 1535   MachineFunction::iterator It = ++BB->getIterator();
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)
  813   for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) {
  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/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)
 1104   for (auto &F : M)
 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) {
  125         ++I;
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) {
 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
  155     ++I;
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)
 1092     ++I;
 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) {
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/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
  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/InstCombineAndOrXor.cpp
 2878           Builder.SetInsertPoint(Y->getParent(), ++(Y->getIterator()));
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1484   for (++BI; BI != BE; ++BI) {
 1484   for (++BI; BI != BE; ++BI) {
 3876     for (++BI; &*BI != TI; ++BI) {
 3876     for (++BI; &*BI != TI; ++BI) {
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  207         ++It;
 1426         ++BBI;
 1472     ++BBI;
 1560     for (BasicBlock::iterator I = StoreBB->begin(); &*I != &SI; ++I) {
lib/Transforms/InstCombine/InstCombinePHI.cpp
  496   for (++BBI; BBI != E; ++BBI)
  496   for (++BBI; BBI != E; ++BBI)
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  145         InsertPos = ++pos->getIterator();
lib/Transforms/InstCombine/InstructionCombining.cpp
 2470     for (const Instruction &Inst : *FreeInstrBB) {
 3148          Scan != E; ++Scan)
 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) {
  800     ++i;
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()) {
  704         ++It;
  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)
 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) {
  516   for (Function &F : M) {
  518     for (BasicBlock &BB : F)
  531   for (Function &F : M)
lib/Transforms/Instrumentation/Instrumentation.cpp
   28     ++IP;
   44   for (auto I = IP, E = BB.end(); I != E; ++I) {
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 3361       NextInsn = ++I.getIterator();
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  614   for (auto &BB : F) {
 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
  344   ++It;
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)
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  128   BasicBlock::const_iterator I = ++Call->getIterator();
  130     ++I;
  220        I != E; ++I) {
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  602       ++I;
  604         ++I;
  612           ++I;
 1430   for (Instruction &Inst : *BB) {
 1505   for (BasicBlock &ExitBB : F) {
 2157   for (BasicBlock &BB: F) {
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 :
  248     ++II;
  425   for (auto &BI : *Parent) {
lib/Transforms/Scalar/ConstantHoisting.cpp
  327       for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt)
  502   for (BasicBlock &BB : Fn)
  503     for (Instruction &Inst : BB)
lib/Transforms/Scalar/DCE.cpp
   53     for (auto &BB : F) {
lib/Transforms/Scalar/DeadStoreElimination.cpp
  591   ++FirstBBI;
  619     for (; BI != EI; ++BI) {
  760   for (Instruction &I : Entry) {
 1092       ++BBI;
 1317   for (BasicBlock &BB : F)
lib/Transforms/Scalar/DivRemPairs.cpp
  127   for (auto &BB : F) {
  128     for (auto &I : BB) {
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
 2163       ++BI;
 2189       ++BI;
 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
  858     ++BI;
 1855     for (Instruction &I : make_range(Ctx->getIterator().getReverse(),
 1973   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
 2261   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
 2921     for (auto &I : *BB)
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
 1158     for (Instruction &I : *ClonedBB)
lib/Transforms/Scalar/InferAddressSpaces.cpp
 1008             ++InsertPos;
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)) {
  506   for (; &*I != StopAt; ++I) {
 1431     for (auto I = LoadBB->begin(); &*I != LoadI; ++I)
 2001   for (; PHINode *PN = dyn_cast<PHINode>(BI); ++BI) {
 2009   for (; !BI->isTerminator(); ++BI) {
 2055   for (Instruction &I : *BB) {
 2321   for (; PHINode *PN = dyn_cast<PHINode>(BI); ++BI)
 2325   for (; BI != BB->end(); ++BI) {
 2375   for (Instruction &I : *BB) {
 2454        PHINode *Phi = dyn_cast<PHINode>(BI); ++BI)
 2569        PHINode *PN = dyn_cast<PHINode>(BI); ++BI) {
 2676     for (auto &I : *BB)
 2738   for (auto BI = BB->begin(); &*BI != AfterGuard; ++BI)
lib/Transforms/Scalar/LICM.cpp
  355         for (const auto &MA : *Accesses) {
  435       for (AliasSet &AS : *CurAST) {
  530         ++II;
  548             ++II;
 1048     for (AliasSet &AS : *CurAST) {
 1068       for (const auto &Acc : *Accs) {
 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) {
  881     for (Instruction &I : **BI)
 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) {
  301   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
 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) {
 1444     ++J;
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2078     ++UI;
 2188   for (IVStrideUse &U : IU)
 2421       for (IVUsers::const_iterator UI = IU.begin(), E = IU.end(); UI != E; ++UI)
 2475     if (&*++BasicBlock::iterator(Cond) != TermBr) {
 2656   for (const IVStrideUse &U : IU) {
 3051     for (Instruction &I : *BB) {
 3244   for (const IVStrideUse &U : IU) {
 5108   while (isa<PHINode>(IP)) ++IP;
 5111   while (IP->isEHPad()) ++IP;
 5114   while (isa<DbgInfoIntrinsic>(IP)) ++IP;
 5120     ++IP;
 5406                      ++I) {
 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
  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) {
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  316   for (++BI; !BI->isTerminator(); ++BI) {
  316   for (++BI; !BI->isTerminator(); ++BI) {
  563         for (auto &I : make_range(++LI->getIterator(), SI->getIterator())) {
  563         for (auto &I : make_range(++LI->getIterator(), SI->getIterator())) {
 1339   for (BasicBlock &BB : F) {
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) {
  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)) {
  310     ++RBI;
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) {
 3686   ++StartPoint;
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
   98          II != IE; ++II) {
lib/Transforms/Scalar/PlaceSafepoints.cpp
  216     for (Instruction &I : *Current) {
  409     return &*++I->getIterator();
lib/Transforms/Scalar/Reassociate.cpp
  183     for (Instruction &I : *BB)
  877         InsertPt = ++InstInput->getIterator();
  890         ++InsertPt;
 1093   BasicBlock::iterator InsertPt = ++BO->getIterator();
 2328     for (Instruction &I : *BI) {
 2418         ++II;
lib/Transforms/Scalar/Reg2Mem.cpp
   83   while (isa<AllocaInst>(I)) ++I;
   92   for (BasicBlock &ibb : F)
   94          ++iib) {
  109   for (BasicBlock &ibb : F)
  111          ++iib)
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())
 1903         CallInst::Create(Func, Values, "", &*++Call->getIterator()));
 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)
 2803   computeLiveInValues(BB->rbegin(), ++Inst->getIterator().getReverse(),
lib/Transforms/Scalar/SCCP.cpp
 1436   for (BasicBlock &BB : F) {
 1440     for (Instruction &I : BB) {
 1829   for (BasicBlock &BB : F) {
 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) {
 2163     for (BasicBlock &BB : F) {
lib/Transforms/Scalar/SROA.cpp
 1219     for (BasicBlock::iterator BBI(PN); &*BBI != LI; ++BBI)
 4566        I != E; ++I) {
lib/Transforms/Scalar/Scalarizer.cpp
  324       ++II;
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
 1126   for (BasicBlock &B : F) {
 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/Sink.cpp
  246     for (BasicBlock &I : F)
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  815       ++BBI;
lib/Transforms/Scalar/SpeculativeExecution.cpp
  161   for (auto& B : F) {
  267   for (auto& I : FromBlock) {
  288     ++I;
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) {
  444     ++I;
  521   for (++BBI; &*BBI != Ret; ++BBI) {
  521   for (++BBI; &*BBI != Ret; ++BBI) {
  668     for (BasicBlock &BBI : *F)
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) {
  407     ++SplitIt;
  646     for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++I)
lib/Transforms/Utils/BreakCriticalEdges.cpp
  173   F.getBasicBlockList().insert(++FBBI, NewBB);
  179     for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) {
  363   for (auto &BB : F) {
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) {
  573       for (; (PN = dyn_cast<PHINode>(I)); ++I) {
  595         ++OldI;
  681     if (!BI || BI->isConditional()) { ++I; continue; }
  685       ++I; continue;
  713        I != E; ++I)
  742     for (auto &Inst : *BB)
  845   for (; PHINode *PN = dyn_cast<PHINode>(BI); ++BI)
  862   for (; StopAt != &*BI && BB->getTerminator() != &*BI; ++BI) {
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) {
  588     for (auto &BB : *F) {
  603     for (Instruction &II : *BB) {
  672     for (AfterPHIs = OldPred->begin(); isa<PHINode>(AfterPHIs); ++AfterPHIs) {
  987       ++It;
 1412       for (auto &I : *Block)
 1545   for (BasicBlock::iterator I = header->begin(); isa<PHINode>(I); ++I) {
 1573   for (BasicBlock &BB : *newFunction) {
 1578       ++BlockIt;
 1585     for (Instruction &I : BB)
lib/Transforms/Utils/DemoteRegToStack.cpp
   95     InsertPt = ++I.getIterator();
   96     for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt)
  143   for (; isa<PHINode>(InsertPt) || InsertPt->isEHPad(); ++InsertPt)
lib/Transforms/Utils/EntryExitInstrumenter.cpp
   92     for (BasicBlock &BB : F) {
lib/Transforms/Utils/EscapeEnumerator.cpp
   57   for (BasicBlock &BB : F)
   58     for (Instruction &II : BB)
lib/Transforms/Utils/Evaluator.cpp
  484         ++CurInst;
  507             ++CurInst;
  514           ++CurInst;
  544           ++CurInst;
  548           ++CurInst;
  552           ++CurInst;
  665     ++CurInst;
  725          (PN = dyn_cast<PHINode>(CurInst)); ++CurInst)
lib/Transforms/Utils/FlattenCFG.cpp
  369       for (BasicBlock::iterator BI(PBI2), BE(PTI2); BI != BE; ++BI) {
  377     ++iter1;
  378     ++iter2;
  436   for (BasicBlock::iterator BI(PBI2), BE(PTI2); BI != BE; ++BI) {
lib/Transforms/Utils/FunctionComparator.cpp
  369       for(BasicBlock &BB : F->getBasicBlockList()) {
  784     ++InstL;
  785     ++InstR;
  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
  119       for (; isa<PHINode>(I); ++I) {
  154       for (unsigned i = 0, e = UnwindDestPHIValues.size(); i != e; ++i, ++I) {
  168   BasicBlock::iterator SplitPoint = ++CallerLPad->getIterator();
  179   for (unsigned i = 0, e = UnwindDestPHIValues.size(); i != e; ++i, ++I) {
  598        I != E; ++I)
  615        BB != E; ++BB) {
  653   for (Instruction &I : *UnwindDest) {
  668       ++I;
  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) {
 1717     FirstNewBlock = LastBlock; ++FirstNewBlock;
 1809       for (BasicBlock &NewBlock :
 1811         for (Instruction &I : NewBlock) {
 1848         ++I;
 1882          ++BB) {
 2053          BB != E; ++BB) {
 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
  623     ++BI;
  655     PhiIt = &*++BasicBlock::iterator(cast<Instruction>(PhiIt));
  773   for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
  985       ++BBI;
 1022     for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
 1394   for (auto &FI : F)
 1395     for (Instruction &BI : FI)
 1456   for (auto &I : *BB) {
 2026     for (Instruction &I : *BB) {
 2227   for (BasicBlock &BB : F) {
 2625     ++II;
lib/Transforms/Utils/LoopRotationUtils.cpp
   89   for (I = OrigHeader->begin(); PHINode *PN = dyn_cast<PHINode>(I); ++I)
   95   for (I = OrigHeader->begin(); I != E; ++I) {
  302   for (; PHINode *PN = dyn_cast<PHINode>(I); ++I)
  317        I != E; ++I) {
  388          PHINode *PN = dyn_cast<PHINode>(BI); ++BI)
  530   for (BasicBlock::iterator I = Begin; I != End; ++I) {
lib/Transforms/Utils/LoopSimplify.cpp
  104     if (++BBI != NewBB->getParent()->end() && L->contains(&*BBI)) {
  187     ++I;
  386   Function::iterator InsertPos = ++BackedgeBlocks.back()->getIterator();
  391   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
lib/Transforms/Utils/LoopUnroll.cpp
  112     for (Instruction &I : *BB) {
  422           for (auto &I : *BB)
  546   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
  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/LoopUnrollPeel.cpp
  311     for (auto BI = L->getHeader()->begin(); isa<PHINode>(&*BI); ++BI) {
  535   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
  732   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  375   for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
  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/LoopVersioning.cpp
  134     for (auto I = PHIBlock->begin(); (PN = dyn_cast<PHINode>(I)); ++I) {
  153   for (auto I = PHIBlock->begin(); (PN = dyn_cast<PHINode>(I)); ++I) {
lib/Transforms/Utils/LowerInvoke.cpp
   48   for (BasicBlock &BB : F)
lib/Transforms/Utils/LowerSwitch.cpp
  214        I != IE; ++I) {
  321   F->getBasicBlockList().insert(++OrigBlock->getIterator(), NewNode);
  339   F->getBasicBlockList().insert(++OrigBlock->getIterator(), NewLeaf);
  379   for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++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)
  793     for (BasicBlock::iterator I = BB->begin();; ++I) {
  917         ++PNI;
lib/Transforms/Utils/SSAUpdater.cpp
  413     for (Instruction &I : *BB) {
lib/Transforms/Utils/SimplifyCFG.cpp
  244       for (BasicBlock::iterator BBI = Succ->begin(); isa<PHINode>(BBI); ++BBI) {
  287       for (BasicBlock::iterator BBI = Succ->begin(); isa<PHINode>(BBI); ++BBI) {
 1989        BBI != BBE; ++BBI) {
 2107   for (auto &I : *ThenBB)
 2236     for (BasicBlock::iterator BBI = BB->begin(); &*BBI != BI; ++BBI) {
 2319   for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++NumPhis, ++I)
 2382     for (BasicBlock::iterator I = IfBlock1->begin(); !I->isTerminator(); ++I)
 2395     for (BasicBlock::iterator I = IfBlock2->begin(); !I->isTerminator(); ++I)
 2535   for (Instruction &I : *PB) {
 2615   BasicBlock::iterator CondIt = ++Cond->getIterator();
 2619     ++CondIt;
 2631   for (auto I = BB->begin(); Cond != &*I; ++I) {
 2731     for (auto BonusInst = BB->begin(); Cond != &*BonusInst; ++BonusInst) {
 2868     for (Instruction &I : *BB)
 2884     for (auto &I : *BB)
 2915   for (auto I = Succ->begin(); isa<PHINode>(I); ++I)
 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)
 3322        ++II, ++NumPhis) {
 3650       isa<PHINode>(++BasicBlock::iterator(PHIUse)))
 3793   for (BasicBlock::iterator BBI = EdgeBB->begin(); isa<PHINode>(BBI); ++BBI) {
 3826   while (++I != E)
 3853     while (++I != E)
 3906   while (++I != E)
 3945   while (++I != E) {
 3977          I != IE; ++I) {
 4428   for (auto BBI = ContiguousDest->begin(); isa<PHINode>(BBI); ++BBI) {
 4435   for (auto BBI = OtherDest->begin(); isa<PHINode>(BBI); ++BBI) {
 5759     for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5759     for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5824       for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5824       for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5834     for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5834     for (++I; isa<DbgInfoIntrinsic>(I); ++I)
 5979              i = ++BasicBlock::iterator(I),
 5981          i != UI; ++i)
lib/Transforms/Utils/SimplifyIndVar.cpp
  951   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1175   B.SetInsertPoint(Malloc->getParent(), ++Malloc->getIterator());
 2098     B.SetInsertPoint(ArgInst->getParent(), ++ArgInst->getIterator());
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/VNCoercion.cpp
  426     IRBuilder<> Builder(SrcVal->getParent(), ++BasicBlock::iterator(SrcVal));
lib/Transforms/Utils/ValueMapper.cpp
  950   for (BasicBlock &BB : F)
  951     for (Instruction &I : BB)
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  532        ++BBI) {
  550   for (Instruction &I : *BB) {
  565   return std::make_pair(FirstInstr, ++LastInstr);
  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
 3564         &*++BasicBlock::iterator(cast<Instruction>(PreviousLastPart)));
 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
 3391     BasicBlock::reverse_iterator InstIt = ++Inst->getIterator().getReverse(),
 3406       ++PrevInstIt;
 3601     for (auto &I : make_range(BasicBlock::iterator(Front), BB->end())) {
 3612   Builder.SetInsertPoint(BB, ++LastInst->getIterator());
 4255       Builder.SetInsertPoint(&*++BasicBlock::iterator(I));
 4639       ++ScheduleStart->getIterator().getReverse();
 4659       ++UpIter;
 4673       ++DownIter;
 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/VPlanHCFGBuilder.cpp
  195   for (Instruction &InstRef : *BB) {
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)
  696         ++BBIt;
  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)
  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)
 1049              ++BI)
 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)
  173       ++MI;
  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
  293        ++I)
  296   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
  416          I != E; ++I)
  545     for (BasicBlock &BB : *MiscompiledFunctions[i])
  587        ++I)
  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/CGBlocks.cpp
 1648   ++entry_ptr;
tools/clang/lib/CodeGen/CGCall.cpp
 2756          II != IE; ++II) {
 2761           ++II;
tools/clang/lib/CodeGen/CGException.cpp
  302     for (auto BB = F->begin(), E = F->end(); BB != E; ++BB) {
tools/clang/lib/CodeGen/CGObjC.cpp
 2777                                ++llvm::BasicBlock::iterator(call));
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/CGVTables.cpp
  128   for (auto &BB : Fn->getBasicBlockList()) {
  129     for (auto &I : BB) {
  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) {
  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)
   85     ++FuncPtr;
   86     for (; FuncPtr != M->end(); ++FuncPtr)
   95     ++BBPtr;
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
  495        ++fi) {
  508        bbi != bbe; ++bbi) {
  510          ++ii) {
 1645     ++frame.m_ii;
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
  211       ++LI;
  212       ++RI;
  218     for (LI = L->begin(), RI = R->begin(); LI != LE; ++LI, ++RI)
  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) {
  589     ++LI;
  590     ++RI;
  602       ++LI; ++RI;
  602       ++LI; ++RI;
  608       ++LI;
  614       ++RI;
  624     ++LI;
  625     ++RI;
  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
  207     for (auto &GV : M->globals()) {
  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)
  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
  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) {
  150       ++NextIt;
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  210   for (Instruction &Inst : *BB) {
tools/polly/lib/Support/ScopHelper.cpp
  206     ++I;
  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/CodePreparation.cpp
   66     ++I;
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/IListIteratorTest.cpp
   72   EXPECT_EQ(L.end(), ++L.begin());
   74   EXPECT_EQ(L.rend(), ++L.rbegin());
   90   EXPECT_EQ(&B, &*++L.begin());
   91   EXPECT_EQ(L.end(), ++++L.begin());
   91   EXPECT_EQ(L.end(), ++++L.begin());
   93   EXPECT_EQ(&A, &*++L.rbegin());
   94   EXPECT_EQ(L.rend(), ++++L.rbegin());
   94   EXPECT_EQ(L.rend(), ++++L.rbegin());
   97   EXPECT_EQ(++L.rbegin(), L.begin().getReverse());
   98   EXPECT_EQ(L.rbegin(), (++L.begin()).getReverse());
   99   EXPECT_EQ(++L.begin(), L.rbegin().getReverse());
  100   EXPECT_EQ(L.begin(), (++L.rbegin()).getReverse());
  148   EXPECT_EQ(++L.begin(), iterator(++L.rbegin()));
  148   EXPECT_EQ(++L.begin(), iterator(++L.rbegin()));
  151   EXPECT_EQ(++L.rbegin(), reverse_iterator(++L.begin()));
  151   EXPECT_EQ(++L.rbegin(), reverse_iterator(++L.begin()));
unittests/ADT/IListTest.cpp
  106   L.splice(L.begin(), L, ++L.begin());
  222     for (; First != Last; ++First) {
  296   ++L.begin();
unittests/ADT/SimpleIListTest.cpp
  111   EXPECT_EQ(&B, &*++L.begin());
  136   EXPECT_EQ(B, &*++L.begin());
  153   EXPECT_EQ(&B, &*++L.begin());
  170   EXPECT_EQ(&B, &*++L.begin());
  189   ++ReverseIter;
  191   ++ReverseIter;
  193   ++ReverseIter;
  205   EXPECT_EQ(B, &*++L.begin());
  222   EXPECT_EQ(&B, &*++L.begin());
  375   L1.splice(--L1.end(), L2, ++L2.begin());
  403   L1.splice(--L1.end(), L2, ++L2.begin(), --L2.end());
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) {
  395   succ_iterator S = succ_begin(&*++M->getFunction("test")->begin());
unittests/Analysis/DivergenceAnalysisTest.cpp
   33   for (auto &BB : F) {
  299       for (auto &BB : F) {
unittests/Analysis/GlobalsModRefTest.cpp
   38   ASSERT_NE(++I, funcs.end());
   40   ASSERT_NE(++I, funcs.end());
   42   EXPECT_EQ(++I, funcs.end());
unittests/Analysis/IVDescriptorsTest.cpp
   78         BasicBlock *Header = &*(++FI);
   93           ++BBI;
unittests/Analysis/LazyCallGraphTest.cpp
  396   for (Function &F : M)
unittests/Analysis/LoopInfoTest.cpp
   82     BasicBlock *Header = &*(++FI);
  132     BasicBlock *Header = &*(++FI);
  192   ++I;
  266         ++FI;
  267         BasicBlock *Header = &*(++FI);
  324         ++FI;
  325         BasicBlock *Header = &*(++FI);
  382         ++FI;
  383         BasicBlock *Header = &*(++FI);
  440         ++FI;
  441         BasicBlock *Header = &*(++FI);
  498         ++FI;
  499         BasicBlock *Header = &*(++FI);
  557         ++FI;
  558         BasicBlock *Header = &*(++FI);
  615         ++FI;
  616         BasicBlock *Header = &*(++FI);
  670         ++FI;
  671         BasicBlock *Header = &*(++FI);
  728         ++FI;
  729         BasicBlock *Header = &*(++FI);
  787         ++FI;
  788         BasicBlock *Header = &*(++FI);
  846         ++FI;
  847         BasicBlock *Header = &*(++FI);
  906         ++FI;
  907         BasicBlock *Header = &*(++FI);
  966         ++FI;
  967         BasicBlock *Header = &*(++FI);
 1019         BasicBlock *Header = &*(++FI);
 1075         ++FI;
 1076         BasicBlock *Header = &*(++FI);
 1144         ++FI;
 1145         BasicBlock *Header = &*(++FI);
 1170         ++FI;
 1171         Header = &*(++FI);
 1236         ++FI;
 1237         BasicBlock *Header = &*(++FI);
 1259         PHINode &Instruction_aux = cast<PHINode>(*(++II));
 1261         PHINode &Instruction_loopvariant = cast<PHINode>(*(++II));
 1264         PHINode &Instruction_usedoutside = cast<PHINode>(*(++II));
 1267         PHINode &Instruction_mulopcode = cast<PHINode>(*(++II));
 1301     BasicBlock *Header = &*(++FI);
 1345         ++FI;
 1346         BasicBlock *Header = &*(++FI);
 1347         BasicBlock *Latch = &*(++FI);
 1391     BasicBlock *Header = &*(++FI);
 1434     BasicBlock *Header = &*(++FI);
unittests/Analysis/MemorySSATest.cpp
  409   SideStore->moveBefore(*EntryStore->getParent(), ++EntryStore->getIterator());
unittests/Analysis/ScalarEvolutionTest.cpp
 1542            ++i) {
 1622            ++i) {
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/InstructionsTest.cpp
 1092   ++BBs;
 1093   ++BBs;
 1095   ++BBs;
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)
   36            ++II)
   62     for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
  573   for (Function &F : *M)
unittests/IR/ValueTest.cpp
  137   Instruction *I1 = &*++BB.begin();
  209   BasicBlock *BB2 = &*++F->begin();
  214   Instruction *I1 = &*++EntryBB.begin();
  242   BasicBlock *BB2 = &*++F->begin();
unittests/Transforms/Utils/CloningTest.cpp
  422         BasicBlock *Preheader = &*(++FI);
  423         BasicBlock *Header = &*(++FI);
unittests/Transforms/Utils/CodeExtractorTest.cpp
   26   for (auto &BB : *F)
unittests/Transforms/Utils/LocalTest.cpp
  160   for (const Instruction &I : F->front())
  551     for (const Instruction &I : F->front()) {
usr/include/c++/7.4.0/bits/stl_algo.h
  105 	++__first;
 3236       for (++__next; __next != __last; __first = __next, (void)++__next)
 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
   89 	  ++__first;
  166 	  ++__i;
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) {