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

References

examples/Kaleidoscope/include/KaleidoscopeJIT.h
  106     for (auto H : make_range(ModuleKeys.rbegin(), ModuleKeys.rend()))
include/llvm/ADT/STLExtras.h
  322     while (this->I != End && !Pred(*this->I))
include/llvm/ADT/StringExtras.h
  320   for (IteratorT I = Begin; I != End; ++I)
  324   while (++Begin != End) {
include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1141   for (auto L = Loops.rbegin(), E = Loops.rend(); L != E; ++L) {
include/llvm/Analysis/CFG.h
  158   for (NodeT Node : RPOTraversal) {
include/llvm/Analysis/CGSCCPassManager.h
  800       for (LazyCallGraph::SCC &C : llvm::reverse(*RC))
include/llvm/Analysis/LoopInfoImpl.h
  574   for (LoopT *RootL : reverse(*this)) {
include/llvm/IR/LegacyPassManagers.h
  401          I != E; ++I)
include/llvm/Option/ArgList.h
   49     for (; Current != End; ++Current) {
include/llvm/Transforms/InstCombine/InstCombineWorklist.h
   62     for (Instruction *I : reverse(List)) {
include/llvm/Transforms/Scalar/LoopPassManager.h
  121   for (Loop *RootL : reverse(Loops)) {
include/llvm/Transforms/Utils/SSAUpdaterImpl.h
  246              E = BlockList->rend(); I != E; ++I) {
  300              E = BlockList->rend(); I != E; ++I) {
  355            E = BlockList->rend(); I != E; ++I) {
lib/Analysis/BranchProbabilityInfo.cpp
  551       for (Instruction *I : llvm::reverse(InstChain)) {
lib/Analysis/CGSCCPassManager.cpp
  408   for (SCC &NewC : llvm::reverse(make_range(std::next(NewSCCRange.begin()),
  565     for (RefSCC *NewRC : llvm::reverse(make_range(std::next(NewRefSCCs.begin()),
  688       for (SCC &MovedC : llvm::reverse(make_range(RC->begin() + InitialSCCIndex,
lib/Analysis/ConstantFolding.cpp
  664         for (unsigned char C : reverse(Str.bytes())) {
lib/Analysis/LazyCallGraph.cpp
 1581   for (Node *RootN : Roots) {
 1670   for (Node *N : Nodes) {
lib/Analysis/LoopAnalysisManager.cpp
   93   for (Loop *L : reverse(PreOrderLoops)) {
lib/Analysis/LoopPass.cpp
  130   for (Loop *I : reverse(*L))
  182   for (Loop *L : reverse(*LI))
lib/Analysis/MemoryDependenceAnalysis.cpp
 1457     for (NonLocalDepEntry &I : llvm::reverse(*Cache)) {
lib/Analysis/ScalarEvolution.cpp
 8036   for (auto &LS : reverse(ValuesAtScopes[V]))
11653   for (auto &V : make_range(Values2.rbegin(), Values2.rend())) {
11760   for (auto &V : make_range(Values2.rbegin(), Values2.rend())) {
lib/Analysis/ScalarEvolutionExpander.cpp
  697        E(S->op_begin()); I != E; ++I)
  767        E(S->op_begin()); I != E; ++I)
 1026   for (auto I = IVIncs.rbegin(), E = IVIncs.rend(); I != E; ++I) {
lib/Analysis/SyncDependenceAnalysis.cpp
  166     for (const auto *Block : FuncRPOT) {
  241       for (const auto * RpoBlock : FuncRPOT) {
  252     assert(ItBeginRPO != ItEndRPO);
  256     while ((++ItBlockRPO != ItEndRPO) &&
lib/Analysis/SyntheticCountsUtils.cpp
   99   for (auto &SCC : reverse(SCCs))
lib/Analysis/VectorUtils.cpp
  816   for (BasicBlock *BB : make_range(DFS.beginRPO(), DFS.endRPO()))
  916        BI != E; ++BI) {
  938     for (auto AI = std::next(BI); AI != E; ++AI) {
lib/Bitcode/Reader/BitcodeReader.cpp
 6391         for (auto I = F.Mods.rbegin(), E = F.Mods.rend(); I != E; ++I) {
lib/CodeGen/AntiDepBreaker.h
   72     for (const auto &DV : make_range(DbgValues.crbegin(), DbgValues.crend())) {
lib/CodeGen/AsmPrinter/ARMException.cpp
  109   for (const GlobalValue *GV : reverse(TypeInfos)) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1508     for (const GlobalAlias *AncestorAlias : llvm::reverse(AliasStack))
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  323   for (StringRef QualifiedNameComponent :
lib/CodeGen/AsmPrinter/DIEHash.cpp
   99        I != E; ++I) {
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  729   for (auto Var : reverse(Input)) {
 1306   for (auto &Btr : reverse(ExprRefedBaseTypes)) {
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
 1477     if (PrevEntry != DebugLoc.rend() && PrevEntry->MergeRanges(*CurEntry))
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  753   for (const DIScope *Ctx : make_range(Parents.rbegin(), Parents.rend())) {
lib/CodeGen/AsmPrinter/EHStreamer.cpp
  628   for (const GlobalValue *GV : make_range(TypeInfos.rbegin(),
lib/CodeGen/CodeGenPrepare.cpp
 6080   for (auto It = ASI.rbegin(); It != ASI.rend(); ++It) {
 6182   for (Use *U : reverse(OpsToSink)) {
lib/CodeGen/GlobalISel/IRTranslator.cpp
 2329     for (const BasicBlock *BB : RPOT) {
lib/CodeGen/GlobalISel/Legalizer.cpp
  164   for (auto *MBB : RPOT) {
lib/CodeGen/GlobalISel/RegBankSelect.cpp
  680   for (MachineBasicBlock *MBB : RPOT) {
lib/CodeGen/InlineSpiller.cpp
 1308   for (; RIt != Orders.rend(); RIt++)
 1352   for (; RIt != Orders.rend(); RIt++) {
lib/CodeGen/LiveDebugValues.cpp
 1349   for (auto RI = RPOT.begin(), RE = RPOT.end(); RI != RE; ++RI) {
lib/CodeGen/LoopTraversal.cpp
   32   for (MachineBasicBlock *MBB : RPOT) {
   66   for (MachineBasicBlock *MBB : RPOT) {
lib/CodeGen/MIRCanonicalizerPass.cpp
   91   for (auto MBB : RPOT) {
lib/CodeGen/MIRNamerPass.cpp
   60     for (auto &MBB : RPOT)
lib/CodeGen/MachineBlockPlacement.cpp
 1241     for (MachineBasicBlock *src : reverse(Chain.Edges)) {
lib/CodeGen/MachinePipeliner.cpp
 1403        I != E; ++I) {
 2818            I != E; ++I)
lib/CodeGen/MachineScheduler.cpp
  860          I = BotRoots.rbegin(), E = BotRoots.rend(); I != E; ++I) {
lib/CodeGen/ModuloSchedule.cpp
  707        MBB != MBE; ++MBB)
 1426   while (DefaultI != Defaults.rend())
 1655   for (MachineBasicBlock *B : reverse(Blocks)) {
 1663   for (MachineBasicBlock *B : reverse(Blocks))
 1769   for (auto PI = Prologs.rbegin(), EI = Epilogs.rbegin(); PI != Prologs.rend();
lib/CodeGen/PrologEpilogInserter.cpp
  572     for (const CalleeSavedInfo &CI : reverse(CSI)) {
lib/CodeGen/ScheduleDAG.cpp
  581          : make_range(SU->Succs.rbegin(), SU->Succs.rend())) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 1400   for (const BasicBlock *LLVMBB : RPOT) {
lib/CodeGen/SwiftErrorValueTracking.cpp
  158   for (MachineBasicBlock *MBB : RPOT) {
lib/CodeGen/VirtRegMap.cpp
  449     for (MachineInstr *BundledMI : llvm::reverse(MIs)) {
lib/CodeGen/WinEHPrepare.cpp
  553            CBI != CBE; ++CBI, FollowerState = CatchState) {
  582        Entry != End; ++Entry) {
lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp
  232   for (uint32_t Offset : reverse(SO)) {
lib/ExecutionEngine/MCJIT/MCJIT.cpp
  644   if (I != EventListeners.rend()) {
lib/ExecutionEngine/Orc/OrcCBindingsStack.h
  440     if (I != EventListeners.rend()) {
lib/IR/DebugLoc.cpp
  107   for (const DILocation *MD : reverse(InlinedAtLocations))
lib/IR/SafepointIRVerifier.cpp
  135     for (const BasicBlock *BB : RPOT) {
  582   for (const BasicBlock *BB : RPOT) {
lib/IR/TypeFinder.cpp
  110          I != E; ++I)
lib/MC/MCParser/AsmParser.cpp
  758        it != ie; ++it)
lib/MC/MachObjectWriter.cpp
  968     for (const RelAndSymbol &Rel : make_range(Relocs.rbegin(), Relocs.rend())) {
lib/MCA/Pipeline.cpp
   54   for (auto I = Stages.rbegin(), E = Stages.rend(); I != E && !Err; ++I) {
lib/Support/DynamicLibrary.cpp
   83       for (void *Handle : llvm::reverse(Handles)) {
lib/Support/ScaledNumber.cpp
  298        I != E; ++I) {
lib/Support/Timer.cpp
  337   for (const PrintRecord &Record : make_range(TimersToPrint.rbegin(),
lib/Support/Unix/DynamicLibrary.inc
   18   for (void *Handle : llvm::reverse(Handles))
lib/Support/VirtualFileSystem.cpp
  402   for (iterator I = overlays_begin(), E = overlays_end(); I != E; ++I) {
  413   for (iterator I = overlays_begin(), E = overlays_end(); I != E; ++I) {
  463     assert(CurrentFS != Overlays.overlays_end() && "incrementing past end");
  465     for (auto E = Overlays.overlays_end(); CurrentFS != E; ++CurrentFS) {
lib/TableGen/TGLexer.cpp
 1003        I != E; ++I) {
lib/Target/AArch64/AArch64FrameLowering.cpp
 1994   for (auto RPII = RegPairs.rbegin(), RPIE = RegPairs.rend(); RPII != RPIE;
 2154     for (const RegPairInfo &RPI : reverse(RegPairs))
lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
  217   for (auto *Node : reverse(NodeList)) {
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  654     for (MCPhysReg Reg : reverse(AMDGPU::VGPR_32RegClass.getRegisters())) {
  663       for (MCPhysReg Reg : reverse(AMDGPU::AGPR_32RegClass.getRegisters())) {
  674     for (MCPhysReg Reg : reverse(AMDGPU::SGPR_32RegClass.getRegisters())) {
lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
 2616     for (auto CI = Children->rbegin(), CE = Children->rend(); CI != CE; ++CI) {
lib/Target/AMDGPU/GCNSchedStrategy.cpp
  515     } while (I != E && I->first->getParent() == BB);
  516   } while (I != E);
lib/Target/AMDGPU/R600MachineScheduler.cpp
  321       It != E; ++It) {
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
 1480   for (MachineBasicBlock *MBB :
lib/Target/AMDGPU/SILowerSGPRSpills.cpp
  133     for (const CalleeSavedInfo &CI : reverse(CSI)) {
lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp
  187   for (MachineBasicBlock *MBB : RPOT) {
lib/Target/AMDGPU/SIWholeQuadMode.cpp
  322   for (auto BI = RPOT.begin(), BE = RPOT.end(); BI != BE; ++BI) {
lib/Target/ARM/ARMConstantIslandPass.cpp
 1934   for (ImmBranch &Br : reverse(ImmBranches)) {
lib/Target/ARM/ARMLowOverheadLoops.cpp
  266   for (auto *MBB : reverse(ML->getBlocks())) {
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
 4268   for (auto I = Regs.rbegin(), J = I + 1, E = Regs.rend(); J != E; ++I, ++J) {
11560   for (NearMissInfo &I : reverse(NearMissesIn)) {
lib/Target/ARM/Thumb1FrameLowering.cpp
  920     for (unsigned Reg : llvm::reverse(RegsToPush))
lib/Target/ARM/Thumb2SizeReduction.cpp
 1141        I = RPOT.begin(), E = RPOT.end(); I != E; ++I)
lib/Target/Hexagon/HexagonFrameLowering.cpp
  417   for (RPOTType::rpo_iterator I = RPOT.begin(), E = RPOT.end(); I != E; ++I)
lib/Target/Hexagon/HexagonGenInsert.cpp
 1196   for (RPOTType::rpo_iterator I = RPOT.begin(), E = RPOT.end(); I != E; ++I)
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
 1483   for (SDNode *S : reverse(Queue))
lib/Target/Hexagon/HexagonOptAddrMode.cpp
  176   for (auto I = UNodeList.rbegin(), E = UNodeList.rend(); I != E; ++I) {
  213   for (auto I = UNodeList.rbegin(), E = UNodeList.rend(); I != E; ++I) {
  298   for (auto I = UNodeList.rbegin(), E = UNodeList.rend(); I != E; ++I) {
  352   for (auto I = UNodeList.rbegin(), E = UNodeList.rend(); I != E; ++I) {
  392   for (auto I = UNodeList.rbegin(), E = UNodeList.rend(); I != E; ++I) {
  438   for (auto I = UNodeList.rbegin(), E = UNodeList.rend(); I != E; ++I) {
  613   for (auto I = UNodeList.rbegin(), E = UNodeList.rend(); I != E; ++I) {
  742     for (auto I = UNodeList.rbegin(), E = UNodeList.rend(); I != E; ++I) {
lib/Target/Hexagon/RDFLiveness.cpp
  333   if (B != E)
  338     for (NodeAddr<InstrNode*> I : make_range(B, E)) {
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
  527   for (const auto &R : reverse(Sorted))
lib/Target/PowerPC/PPCISelLowering.cpp
13321     for (; I != E; ++I) {
lib/Target/SystemZ/SystemZTDC.cpp
  347   for (auto &It : reverse(ConvertedInsts)) {
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
 1213   for (auto X : reverse(Stack)) {
lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp
   27   for (MachineInstr *DBI : reverse(DbgValues))
   40   for (MachineInstr *DBI : reverse(DbgValues)) {
lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
  309       for (MachineOperand &MO : reverse(MI.explicit_uses())) {
lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
  673             Worklist.back().begin() != Worklist.back().end()) &&
  700     return Range.begin() != Range.end() && Range.begin()->getParent() == Instr;
  711       for (const MachineOperand &MO : Range)
  915       for (MachineOperand &MO : reverse(MI.explicit_operands())) {
lib/Target/X86/X86CondBrFolding.cpp
  412     for (auto I = BranchPath.rbegin(); I != BranchPath.rend(); ++I, ++Index) {
lib/Target/X86/X86FastISel.cpp
  973     for (const Value *I : reverse(GEPs))
lib/Target/X86/X86FlagsCopyLowering.cpp
  358   for (MachineBasicBlock *MBB : RPOT)
  721   for (MachineInstr &MI :
lib/Target/X86/X86SpeculativeLoadHardening.cpp
 1592   for (MachineInstr &MI : llvm::reverse(llvm::make_range(MBB.begin(), I))) {
lib/Target/X86/X86WinAllocaExpander.cpp
  148   for (MachineBasicBlock *MBB : RPO) {
lib/Target/X86/X86WinEHState.cpp
  673   for (BasicBlock *BB : RPOT) {
  723   for (BasicBlock *BB : RPOT) {
  735   for (BasicBlock *BB : RPOT) {
  764   for (BasicBlock *BB : RPOT) {
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
  378   for (auto I = InstInfoMap.rbegin(), E = InstInfoMap.rend(); I != E; ++I) {
lib/Transforms/IPO/FunctionAttrs.cpp
 1604   for (auto *F : llvm::reverse(Worklist))
lib/Transforms/IPO/HotColdSplitting.cpp
  560   for (BasicBlock *BB : RPOT) {
lib/Transforms/IPO/Inliner.cpp
 1099         for (CallSite &CS : reverse(IFI.InlinedCallSites))
lib/Transforms/InstCombine/InstructionCombining.cpp
 3163   for (auto *DII : reverse(DbgUsers)) {
lib/Transforms/Instrumentation/InstrProfiling.cpp
  469   for (auto *Loop : llvm::reverse(Loops)) {
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
 1220     for (auto &BB : reverse(F)) {
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  376   for (Instruction *I : reverse(Local)) {
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
 1547   for (BasicBlock *BB : llvm::reverse(ReverseCFGPostOrder)) {
 1555   for (BasicBlock *BB : llvm::reverse(PostOrder)) {
lib/Transforms/Scalar/CallSiteSplitting.cpp
  475   for (auto *Pred : make_range(Preds.rbegin(), Preds.rend())) {
lib/Transforms/Scalar/ConstantHoisting.cpp
  266   for (auto RIt = Orders.rbegin(); RIt != Orders.rend(); RIt++) {
lib/Transforms/Scalar/Float2Int.cpp
  241   for (auto &It : reverse(SeenInsts)) {
  512   for (auto &I : reverse(ConvertedInsts))
lib/Transforms/Scalar/GVN.cpp
 1751   for (BasicBlock *BB : RPOT)
 2484   for (BasicBlock *BB : RPOT)
lib/Transforms/Scalar/GVNHoist.cpp
  622       for (std::pair<VNType, Instruction *> &VI : reverse(it1->second)) {
lib/Transforms/Scalar/GVNSink.cpp
  569     for (auto *N : RPOT)
lib/Transforms/Scalar/JumpThreading.cpp
 2745   for (auto *Inst : reverse(ToRemove)) {
lib/Transforms/Scalar/LICM.cpp
  515   for (DomTreeNode *DTN : reverse(Worklist)) {
  820   for (BasicBlock *BB : Worklist) {
  941     for (Instruction *I : reverse(HoistedInstructions)) {
lib/Transforms/Scalar/LoopDistribute.cpp
  232     for (auto *Inst : reverse(Unused)) {
  467          I != E; ++I, --Index, TopPH = NewLoop->getLoopPreheader()) {
lib/Transforms/Scalar/LoopInstSimplify.cpp
   85     for (BasicBlock *BB : RPOT) {
lib/Transforms/Scalar/LoopInterchange.cpp
  884   for (const Instruction &I :
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  192     for (auto I = DFS.beginRPO(), E = DFS.endRPO(); I != E; ++I)
  195     for (auto I = DFS.beginRPO(), E = DFS.endRPO(); I != E; ++I) {
  227     for (auto I = DFS.beginRPO(), E = DFS.endRPO(); I != E; ++I) {
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2783            E(Add->op_begin()); I != E; ++I) {
 3050   for (BasicBlock *BB : reverse(LatchPath)) {
lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
   91   for (BasicBlock *BB : RPOT) {
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  146     for (auto Op : llvm::reverse(Operations)) {
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  526   for (auto *I : llvm::reverse(ToLift)) {
lib/Transforms/Scalar/MergeICmps.cpp
  287   for (Instruction *Inst : reverse(OtherInsts)) {
lib/Transforms/Scalar/NewGVN.cpp
 3427   for (auto &B : RPOT) {
 3433   for (auto &B : RPOT) {
 3872   for (auto *CC : reverse(CongruenceClasses)) {
lib/Transforms/Scalar/Reassociate.cpp
  177   for (BasicBlock *BB : RPOT) {
 2327   for (BasicBlock *BI : RPOT) {
 2409   for (BasicBlock *BI : RPOT) {
lib/Transforms/Scalar/Scalarizer.cpp
  320   for (BasicBlock *BB : RPOT) {
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  618   for (auto I = ExtInsts.rbegin(), E = ExtInsts.rend(); I != E; ++I) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  629   for (unsigned Index : reverse(ExitCaseIndices)) {
  705   for (auto &ExitCase : reverse(ExitCases)) {
  734   for (auto &ExitCase : reverse(ExitCases)) {
 1172   for (Loop *ChildL : llvm::reverse(OrigRootL))
 1180     for (Loop *ChildL : llvm::reverse(*L))
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  701   for (auto *OrigI : llvm::reverse(SpecList)) {
  810   for (auto *BB : ReversePostOrderTraversal<Function *>(&F)) {
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  358          Basis != Candidates.rend() && NumIterations < MaxNumIterations;
lib/Transforms/Scalar/StructurizeCFG.cpp
  340   for (RegionNode *RN : RPOT) {
  347   for (auto I = RPOT.begin(), E = RPOT.end(); I != E; ++I) {
  518   for (RegionNode *RN : reverse(Order)) {
lib/Transforms/Utils/CodeExtractor.cpp
  737       for (unsigned i : reverse(IncomingVals))
lib/Transforms/Utils/LoopUnroll.cpp
  606     for (LoopBlocksDFS::RPOIterator BB = BlockBegin; BB != BlockEnd; ++BB) {
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  133   for (Instruction *I : reverse(Visited)) {
  318     for (LoopBlocksDFS::RPOIterator BB = BlockBegin; BB != BlockEnd; ++BB) {
lib/Transforms/Utils/LoopUnrollPeel.cpp
  485   for (LoopBlocksDFS::RPOIterator BB = BlockBegin; BB != BlockEnd; ++BB) {
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  319   for (LoopBlocksDFS::RPOIterator BB = BlockBegin; BB != BlockEnd; ++BB) {
lib/Transforms/Utils/LowerSwitch.cpp
  237     for (unsigned III : llvm::reverse(Indices))
lib/Transforms/Utils/PredicateInfo.cpp
  537   for (; RevIter != RenameStack.rend(); ++RevIter)
lib/Transforms/Utils/SimplifyCFG.cpp
 1898   for (Instruction &CurI : reverse(BrBB->instructionsWithoutDebug())) {
lib/Transforms/Vectorize/LoopVectorize.cpp
 5335   for (BasicBlock *BB : make_range(DFS.beginRPO(), DFS.endRPO())) {
 7115   for (BasicBlock *BB : make_range(DFS.beginRPO(), DFS.endRPO())) {
lib/Transforms/Vectorize/SLPVectorizer.cpp
 5429   for (auto *SI : llvm::reverse(Heads)) {
 6873   for (auto *I : reverse(Instructions)) {
lib/Transforms/Vectorize/VPlan.cpp
  235     for (VPBlockBase *Block : RPOT) {
  266       for (VPBlockBase *Block : RPOT) {
  726   for (VPBlockBase *Base : RPOT) {
lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
  265   for (BasicBlock *BB : RPO) {
lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp
   30   for (VPBlockBase *Base : RPOT) {
   38   for (VPBlockBase *Base : RPOT) {
lib/Transforms/Vectorize/VPlanPredicator.cpp
  194   for (VPBlockBase *Block : make_range(RPOT.begin(), RPOT.end())) {
  211   for (VPBlockBase *CurrBlock : make_range(RPOT.begin(), RPOT.end())) {
lib/XRay/Profile.cpp
  167   while (It != RootToLeafPath.end()) {
tools/clang/include/clang/AST/Stmt.h
 1413     for (auto *B : llvm::reverse(body())) {
tools/clang/include/clang/Analysis/Analyses/Consumed.h
  217       for (const auto BI : *SortedGraph)
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
  175     for (const auto *CurrBlock : *SortedGraph) {
  204       for (const auto &BI : *CurrBlock) {
tools/clang/include/clang/Analysis/CFG.h
 1382            BI != BE; ++BI) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
  545     bool operator!=(const iterator &X) const { return I != X.I; }
tools/clang/lib/ARCMigrate/TransformActions.cpp
  509   for (const CharRange &I : llvm::reverse(Removals)) {
tools/clang/lib/AST/ASTDiagnostic.cpp
 1393     for (; FromIter != FromEnd && ToIter != ToEnd; ++FromIter, ++ToIter) {
 1393     for (; FromIter != FromEnd && ToIter != ToEnd; ++FromIter, ++ToIter) {
tools/clang/lib/AST/CommentSema.cpp
  490        I != E; ++I) {
tools/clang/lib/AST/Decl.cpp
 1607   for (const DeclContext *DC : llvm::reverse(Contexts)) {
tools/clang/lib/AST/Expr.cpp
  800          I != E; ++I) {
 2346          I != E; ++I) {
tools/clang/lib/AST/ExprConstant.cpp
 5373       for (const CXXBaseSpecifier *Elt : llvm::reverse(ICE->path())) {
 5397   for (std::pair<unsigned, const FieldDecl *> LengthAndField :
 5872   for (const FieldDecl *FD : llvm::reverse(Fields)) {
 5890   for (const CXXBaseSpecifier &Base : llvm::reverse(RD->bases())) {
 8714          PathI != PathE; ++PathI) {
tools/clang/lib/AST/Interp/InterpFrame.cpp
   52   for (PrimType Ty : Func->args_reverse())
   98   for (auto It = Levels.rbegin(); It != Levels.rend(); ++It) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 2482   for (auto I = NestedNames.rbegin(), E = NestedNames.rend(); I != E; ++I)
tools/clang/lib/AST/VTableBuilder.cpp
 1413   for (const CXXRecordDecl *PrimaryBase :
 3053   for (const CXXRecordDecl *Elem :
tools/clang/lib/Analysis/CFG.cpp
 1518     for (auto *I : llvm::reverse(CD->inits())) {
 1797        I != E; ++I)
 1803        I != E; ++I)
 1818        I != E; ++I)
 1846        I != E; ++I) {
 2345        I != E; ++I) {
 2691        I != E; ++I ) {
 2791        I != E; ++I) {
 4859   for (Stmt *S : llvm::reverse(Used)) {
 5080            BI != BEnd; ++BI, ++j ) {
 5626        I != E ; ++I, ++j ) {
tools/clang/lib/Analysis/CFGStmtMap.cpp
   50   for (CFGBlock::iterator I = B->begin(), E = B->end(); I != E; ++I) {
tools/clang/lib/Analysis/CallGraph.cpp
  221          I = RPOT.begin(), E = RPOT.end(); I != E; ++I) {
tools/clang/lib/Analysis/CloneDetection.cpp
  149   for (auto I = IndexesToRemove.rbegin(); I != IndexesToRemove.rend(); ++I) {
tools/clang/lib/Analysis/Consumed.cpp
   64   for (const auto &B : *Block)
 1328   for (const auto *CurrBlock : *SortedGraph) {
 1342     for (const auto &B : *CurrBlock) {
tools/clang/lib/Analysis/LiveVariables.cpp
  572            bi != be; ++bi) {
tools/clang/lib/Analysis/ReachableCode.cpp
  457   for (CFGBlock::const_iterator I = Block->begin(), E = Block->end(); I!=E; ++I)
tools/clang/lib/Analysis/ThreadSafety.cpp
  733   for (const auto *CurrBlock : *SortedGraph) {
  776     for (const auto &BI : *CurrBlock) {
  813   for (const auto *CurrBlock : *SortedGraph) {
  834       for (const auto &BI : *CurrBlock) {
 2363   for (const auto *CurrBlock : *SortedGraph) {
 2463     for (const auto &BI : *CurrBlock) {
tools/clang/lib/Analysis/ThreadSafetyTIL.cpp
  318   for (auto *Block : Blocks.reverse()) {
  329   for (auto *Block : Blocks.reverse()) {
tools/clang/lib/Analysis/UninitializedValues.cpp
  231     if (PO_I != PO_E) {
  265   else if (PO_I != PO_E) {
  857   for (const auto &I : *block) {
tools/clang/lib/Basic/Module.cpp
  193   for (InputIter It = Begin; It != End; ++It) {
  194     if (It != Begin)
tools/clang/lib/CodeGen/CGCall.cpp
 3189   for (const auto &I : llvm::reverse(Cleanups)) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 7535       if (Ty->isAnyPointerType() && std::next(I) != CE) {
 7569     for (; I != CE; ++I) {
 7743         if (Next != CE)
 8322         for (; CI != CE && SI != SE; ++CI, ++SI) {
 8322         for (; CI != CE && SI != SE; ++CI, ++SI) {
 8333           assert((CI != CE || SI != SE) &&
 8333           assert((CI != CE || SI != SE) &&
 8365             for (; CI != CE && SI != SE; ++CI, ++SI) {
 8365             for (; CI != CE && SI != SE; ++CI, ++SI) {
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 2402     for (llvm::Value *Addr :
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  596     if (LastStmt != CS->body_rend())
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  681     return SourceRegions.rend() !=
  733     for (SourceMappingRegion &I : llvm::reverse(RegionStack)) {
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
  254   const auto HasCrypto  = ItRCrypto != ItREnd;
  255   const auto HasNoCrypto = ItRNoCrypto != ItREnd;
tools/clang/lib/Driver/ToolChains/Arch/ARM.cpp
  487   if (CryptoIt != Features.rend()) {
tools/clang/lib/Format/ContinuationIndenter.cpp
 1241        I != E; ++I) {
tools/clang/lib/Format/FormatToken.cpp
  295        I != E; ++I) {
tools/clang/lib/Format/FormatTokenLexer.cpp
  369   for (auto I = Tokens.rbegin() + 1, E = Tokens.rend(); I != E; ++I) {
tools/clang/lib/Format/TokenAnnotator.cpp
 1963     for (FormatToken *Token : llvm::reverse(Tokens))
 2006        I != E; ++I) {
tools/clang/lib/Frontend/DiagnosticRenderer.cpp
  564          I != E; ++I)
  574        I != E; ++I)
  586        I != E; ++I)
tools/clang/lib/Frontend/FrontendAction.cpp
  391       for (auto It = Components.rbegin(), End = Components.rend(); It != End;
tools/clang/lib/Index/IndexBody.cpp
  201     for (DesignatedInitExpr::Designator &D : llvm::reverse(E->designators())) {
  416       for (DesignatedInitExpr::Designator &D : llvm::reverse(E->designators())) {
tools/clang/lib/Lex/PPDirectives.cpp
  764       for (IncludeStackInfo &ISEntry : llvm::reverse(IncludeMacroStack)) {
  827   for (IncludeStackInfo &ISEntry : llvm::reverse(IncludeMacroStack)) {
 1622   for (auto &Component : llvm::reverse(Components)) {
tools/clang/lib/Lex/PPLexerChange.cpp
   55   for (const IncludeStackInfo &ISI : llvm::reverse(IncludeMacroStack)) {
  592   for (const IncludeStackInfo &ISI : llvm::reverse(IncludeMacroStack)) {
tools/clang/lib/Lex/PPMacroExpansion.cpp
  441     for (const IncludeStackInfo &Entry : llvm::reverse(IncludeMacroStack)) {
tools/clang/lib/Parse/ParseObjc.cpp
 1206   for (auto &AL : llvm::reverse(from)) {
tools/clang/lib/Parse/ParseTemplate.cpp
 1482   for (ContainingDC CDC : reverse(DeclContextsToReenter)) {
 1542   for (; I != TemplateParamScopeStack.rend(); ++I)
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  188   for (const auto &B : Block) {
  326     for (CFGElement &E : *B) {
 1270   for (const CFGBlock *B : llvm::reverse(*Cfg)) {
tools/clang/lib/Sema/Sema.cpp
 1828   for (auto *Scope : llvm::reverse(FunctionScopes)) {
 1850     while (I != E && isa<CapturingScopeInfo>(*I) && !isa<LambdaScopeInfo>(*I))
tools/clang/lib/Sema/SemaAttr.cpp
   68   for (auto &PackedInclude : llvm::reverse(PackIncludeStack)) {
  373   for (const auto &StackSlot : llvm::reverse(PackStack.Stack)) {
  446       if (I != Stack.rend()) {
tools/clang/lib/Sema/SemaCast.cpp
 1479         for (CXXBasePathElement &PE : llvm::reverse(Path))
tools/clang/lib/Sema/SemaChecking.cpp
12606       for (auto &M : llvm::reverse(ModAsSideEffect)) {
14727   for (auto I = ReverseMemberChain.rbegin(); I != ReverseMemberChain.rend();
tools/clang/lib/Sema/SemaDecl.cpp
10847       for (const FieldDecl *I : llvm::reverse(Fields))
tools/clang/lib/Sema/SemaDeclAttr.cpp
 8183     for (auto I = Scope->body_rbegin(), E = Scope->body_rend(); I != E; ++I) {
 8345     for (const Stmt *S : llvm::reverse(StmtStack)) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 3505       for (auto I = Fields.rbegin() + 1, E = Fields.rend(); I != E; ++I) {
 9201   for (const DeclaratorChunk &Chunk : llvm::reverse(D.type_objects())) {
tools/clang/lib/Sema/SemaExpr.cpp
 4162            I != E; ++I) {
 4779            I != E; ++I) {
tools/clang/lib/Sema/SemaExprCXX.cpp
 6284   for (unsigned CVR : llvm::reverse(QualifierUnion)) {
tools/clang/lib/Sema/SemaInit.cpp
 3452   for (auto I = Steps.rbegin(); I != Steps.rend(); ++I) {
 7308   for (auto It = Path.rbegin(), End = Path.rend(); It != End; ++It) {
tools/clang/lib/Sema/SemaLookup.cpp
 3671        SM != SMEnd; ++SM) {
 4486   for (DeclContext *C : llvm::reverse(CurContextChain)) {
 4515   for (DeclContext *C : llvm::reverse(DeclChain)) {
 4536   for (DeclContext *C : llvm::reverse(CurContextChain)) {
tools/clang/lib/Sema/SemaOpenMP.cpp
  397     for (const FunctionScopeInfo *FSI : llvm::reverse(SemaRef.FunctionScopes)) {
  749     for (; SI != SE; ++SI) {
  832     for (auto &Elem : *this) {
  997       } while (I != E && !isImplicitTaskingRegion(I->Directive));
 1182   for (const_iterator I = begin() + 1, E = end(); I != E; ++I) {
 1207   for (const_iterator I = begin() + 1, E = end(); I != E; ++I) {
 1229   for (const_iterator E = end(); I != E; ++I) {
 1332            Iter != ParentIterTarget; ++Iter) {
 1378     if (FromParent && I != EndI)
 1424   if (FromParent && I != EndI)
 1448   if (FromParent && StartI != EndI)
 1463   if (FromParent && I != EndI)
 1465   for (; I != EndI; ++I) {
 1486   if (FromParent && StartI != EndI)
 1532        I != E; ++I) {
 1809           assert(EI != EE && "Invalid map expression!");
 2997                 for (const auto &SC : llvm::reverse(StackComponents)) {
 3724   for (OpenMPDirectiveKind ThisCaptureRegion : llvm::reverse(CaptureRegions)) {
14920         for (; CI != CE && SI != SE; ++CI, ++SI) {
14920         for (; CI != CE && SI != SE; ++CI, ++SI) {
14951         for (; SI != SE; ++SI) {
15028             assert(CI != CE && SI != SE);
15028             assert(CI != CE && SI != SE);
15044             if (CI != CE || SI != SE) {
15044             if (CI != CE || SI != SE) {
15048                   CI != CE ? CurComponents.begin() : StackComponents.begin();
15049               auto End = CI != CE ? CurComponents.end() : StackComponents.end();
15077         if (!CurrentRegionOnly && SI != SE)
15083             (!CurrentRegionOnly && CI != CE && SI == SE);
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
  477        Active != ActiveEnd;
  728        Active != ActiveEnd;
tools/clang/lib/Serialization/ASTWriter.cpp
 3752            D != DEnd; ++D)
tools/clang/lib/Serialization/ModuleManager.cpp
  362            M != MEnd; ++M) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
  309          bi != be; ++bi) {
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
  131            ci != ce; ++ci) {
  201   for (CFGBlock::const_iterator I = CB->begin(), E = CB->end(); I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
  199   for (const auto &I : llvm::reverse(PathRange))
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 3018            E = report->getNotes().rend(); I != E; ++I) {
 3029            E = report->getNotes().rend(); I != E; ++I)
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
  685   assert(Src->succ_rbegin() != Src->succ_rend());
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
  396   for (auto I = Adjustments.rbegin(), E = Adjustments.rend(); I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  756          ei = IE->rend(); it != ei; ++it) {
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  678   for (auto I = path.rbegin(), E = path.rend(); I != E; ++I) {
  699   for (auto I = path.rbegin(), E = path.rend(); I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  562          I = RPOT.begin(), E = RPOT.end(); I != E; ++I) {
tools/clang/lib/Tooling/Core/Replacement.cpp
  569   for (auto I = Replaces.rbegin(), E = Replaces.rend(); I != E; ++I) {
  597   for (auto I = Replaces.rbegin(), E = Replaces.rend(); I != E; ++I) {
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
  241     for (StringRef S : llvm::reverse(CmdLine)) {
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
  424   for (const auto &Parent : llvm::reverse(Parents)) {
  442   for (const auto &Parent : llvm::reverse(Parents)) {
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp
  157           for (auto It = Args.rbegin(); It != Args.rend(); ++It) {
  158             if (It != Args.rbegin()) {
tools/clang/tools/extra/clang-doc/Generators.cpp
   80   for (const auto &R : llvm::reverse(Info->Namespace)) {
tools/clang/tools/extra/clang-doc/Serialize.cpp
   48   for (auto R = Namespaces.rbegin(), E = Namespaces.rend(); R != E; ++R)
tools/clang/tools/extra/clang-include-fixer/SymbolIndexManager.cpp
  109       while (IdentiferContext != Names.rend() &&
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
  232   for (const auto &Elem : *Block) {
  331   for (const auto &Elem : *Block) {
tools/clang/tools/extra/clang-tidy/mpi/BufferDerefCheck.cpp
  113       for (auto It = Indirections.rbegin(); It != Indirections.rend(); ++It) {
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
   81   if (Previous != Block->body_rend())
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp
  379       for (auto It = RawOptions.rbegin(); It != RawOptions.rend(); ++It) {
tools/clang/tools/extra/clang-tidy/utils/ExprSequence.cpp
  189     for (const auto &Elem : *B) {
tools/clang/tools/extra/clangd/FileDistance.cpp
  140   for (llvm::hash_code Hash : llvm::reverse(Ancestors)) {
tools/clang/tools/extra/clangd/FindTarget.cpp
  201         for (const DesignatedInitExpr::Designator &D :
tools/clang/tools/libclang/CIndex.cpp
 2474   for (auto &I : llvm::reverse(S->body()))
 2590   for (const DesignatedInitExpr::Designator &D :
tools/clang/unittests/AST/ASTImporterTest.cpp
  398   for (Decl *Di : path.getCycleAtBack()) {
  415   for (Decl *Di : path.getCycleAtBack()) {
  436   for (Decl *Di : path.getCycleAtBack()) {
  450   for (Decl *Di : path.getCycleAtBack()) {
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
 1310     for (const auto &Base : llvm::reverse(Bases)) {
 1457       for (const auto &arg : llvm::reverse(Args)) {
 2257     for (const auto &Super : llvm::reverse(Supers)) {
tools/lld/ELF/SymbolTable.cpp
  243   for (VersionDefinition &v : llvm::reverse(config->versionDefinitions))
tools/lld/ELF/Writer.cpp
 1623   for (InputSectionBase *s : llvm::reverse(inputSections)) {
tools/lld/lib/Driver/DarwinLdDriver.cpp
 1139   for (auto i = Files.rbegin(), e = Files.rend(); i != e; ++i) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  571   for (auto it = seg->sections.rbegin(); it != seg->sections.rend(); ++it) {
tools/lldb/include/lldb/DataFormatters/FormattersContainer.h
  289     for (const auto &pos : llvm::reverse(m_format_map.map())) {
tools/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp
  136         for (iter = sc_to_remove.rbegin(); iter != rend; iter++) {
tools/lldb/source/Interpreter/OptionValueArray.cpp
  227                  pos != end; ++pos) {
tools/lldb/source/Plugins/ObjectFile/PECOFF/PECallFrameInfo.cpp
  497   for (auto it = rows.rbegin(); it != rows.rend(); ++it)
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
 1219         for (auto pos = array_info->element_orders.rbegin(); pos != end;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.cpp
   29         for (pos = begin; pos != end; ++pos) {
   30           if (pos != begin)
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
  982     for (const auto &match : llvm::reverse(matches)) {
tools/lldb/source/Symbol/SymbolContext.cpp
  240     for (pos = begin; pos != end; ++pos) {
tools/lldb/source/Target/StackFrameList.cpp
  386   for (Function *callee : llvm::reverse(path)) {
tools/llvm-cfi-verify/lib/FileAnalysis.cpp
  335     for (auto I = Nodes.rbegin() + 1, E = Nodes.rend(); I != E; ++I) {
tools/llvm-profdata/llvm-profdata.cpp
  976     for (auto &hotfunc : llvm::reverse(SortedHottestFuncs))
tools/llvm-xray/xray-account.cpp
  460       for (const auto &Entry : llvm::reverse(ThreadStack.second))
tools/llvm-xray/xray-graph.cpp
  454       for (const auto &Entry : llvm::reverse(ThreadStack.second))
tools/llvm-xray/xray-stacks.cpp
  460     for (auto *F :
tools/polly/lib/Analysis/ScopBuilder.cpp
  595   for (auto *RN : RTraversal) {
  880   for (auto *RN : RTraversal) {
  996   for (auto *RN : RTraversal) {
 1257   assert(LoopStack.rbegin() != LoopStack.rend());
 1282     assert(std::next(LoopData) != LoopStack.rend());
 1491   for (auto &AS : llvm::reverse(scop->recorded_assumptions())) {
 2042     for (Instruction *Prev : reverse(SeenLeaders)) {
tools/polly/lib/Analysis/ScopInfo.cpp
 2784   for (auto &It : reverse(SI)) {
tools/polly/lib/Transform/Simplify.cpp
  170       for (auto *MA : reverse(Accesses)) {
  251       for (MemoryAccess *MA : reverse(Accesses)) {
unittests/ADT/BumpPtrListTest.cpp
   62   for (int N : llvm::reverse(Ns)) {
   83   for (int N : llvm::reverse(Ns)) {
unittests/ADT/IteratorTest.cpp
  424   for (auto tup : reverse(zipped)) {
unittests/ADT/MapVectorTest.cpp
  144   for (auto P : make_range(MV.rbegin(), MV.rend())) {
  301   for (auto P : make_range(MV.rbegin(), MV.rend())) {
  419   for (auto P : make_range(MV.rbegin(), MV.rend())) {
unittests/ADT/RangeAdapterTest.cpp
  123   for (int i : r)
usr/include/c++/7.4.0/bits/basic_string.h
  367 	  for (; __k1 != __k2; ++__k1, (void)++__p)
usr/include/c++/7.4.0/bits/basic_string.tcc
  211 	if (__gnu_cxx::__is_null_pointer(__beg) && __beg != __end)
usr/include/c++/7.4.0/bits/stl_algo.h
  104       while (__first != __last && !__pred(__first))
 3883       for (; __first != __last; ++__first)
 4305       for (; __first != __last; ++__first, (void)++__result)
usr/include/c++/7.4.0/bits/stl_algobase.h
  293 	  for (; __first != __last; ++__result, (void)++__first)
  799 	  for (; __first1 != __last1; ++__first1, (void)++__first2)
  880       for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2);
  888       return __first1 == __last1 && __first2 != __last2;
usr/include/c++/7.4.0/bits/stl_iterator_base_funcs.h
   87       while (__first != __last)
usr/include/c++/7.4.0/bits/stl_uninitialized.h
   82 	      for (; __first != __last; ++__first, (void)++__cur)
usr/include/c++/7.4.0/bits/vector.tcc
  634 	if (__first != __last)
utils/TableGen/CodeGenRegisters.cpp
  944   for (auto I = RegClasses.rbegin(), E = RegClasses.rend(); I != E; ++I) {
  964     for (auto I2 = std::next(I); I2 != E && testSubClass(&RC, &*I2); ++I2)
utils/TableGen/FastISelEmitter.cpp
  642        PI != PE; ++PI) {
utils/TableGen/FixedLenDecoderEmitter.cpp
  644        I != E; ++I) {
utils/unittest/googlemock/include/gmock/gmock-spec-builders.h
 1484          it != untyped_on_call_specs_.rend(); ++it) {
 1722          it != untyped_expectations_.rend(); ++it) {
utils/unittest/googletest/include/gtest/gtest.h
 1522 GTEST_IMPL_CMP_HELPER_(NE, !=);