Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:41

0001 //===- IndVarSimplify.h - Induction Variable Simplification -----*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This file provides the interface for the Induction Variable
0010 // Simplification pass.
0011 //
0012 //===----------------------------------------------------------------------===//
0013 
0014 #ifndef LLVM_TRANSFORMS_SCALAR_INDVARSIMPLIFY_H
0015 #define LLVM_TRANSFORMS_SCALAR_INDVARSIMPLIFY_H
0016 
0017 #include "llvm/Analysis/LoopAnalysisManager.h"
0018 #include "llvm/IR/PassManager.h"
0019 
0020 namespace llvm {
0021 
0022 class Loop;
0023 class LPMUpdater;
0024 
0025 class IndVarSimplifyPass : public PassInfoMixin<IndVarSimplifyPass> {
0026   /// Perform IV widening during the pass.
0027   bool WidenIndVars;
0028 
0029 public:
0030   IndVarSimplifyPass(bool WidenIndVars = true) : WidenIndVars(WidenIndVars) {}
0031   PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
0032                         LoopStandardAnalysisResults &AR, LPMUpdater &U);
0033 };
0034 
0035 } // end namespace llvm
0036 
0037 #endif // LLVM_TRANSFORMS_SCALAR_INDVARSIMPLIFY_H