aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Scalar/IndVarSimplify.h
blob: 13f811994b66095d6f5d5bc3f3cb1aa88f34928c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//===- llvm/Transforms/Scalar/IndVarSimplify.h - IV Eliminate ----*- C++ -*--=//
//
// InductionVariableSimplify - Transform induction variables in a program
//   to all use a single cannonical induction variable per loop.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_TRANSFORMS_SCALAR_INDVARSIMPLIFY_H
#define LLVM_TRANSFORMS_SCALAR_INDVARSIMPLIFY_H

#include "llvm/Pass.h"

struct InductionVariableSimplify : public MethodPass {
  static bool doit(Method *M);

  virtual bool runOnMethod(Method *M) { return doit(M); }
};

#endif