diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-12-03 18:05:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-12-03 18:05:13 +0000 |
| commit | bca18d7d96fd6d0df98019074e144f5b270d222c (patch) | |
| tree | 8c4db9cc8fd10557b89821a12787af7574a62a66 /llvm | |
| parent | fb5ae02e1aca43941b806c026e3abb1444783ec1 (diff) | |
| download | bcm5719-llvm-bca18d7d96fd6d0df98019074e144f5b270d222c.tar.gz bcm5719-llvm-bca18d7d96fd6d0df98019074e144f5b270d222c.zip | |
Simplify induction variables pass
llvm-svn: 1406
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Transforms/Scalar/IndVarSimplify.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/include/llvm/Transforms/Scalar/IndVarSimplify.h b/llvm/include/llvm/Transforms/Scalar/IndVarSimplify.h new file mode 100644 index 00000000000..00a43b5ab87 --- /dev/null +++ b/llvm/include/llvm/Transforms/Scalar/IndVarSimplify.h @@ -0,0 +1,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 Pass { + static bool doit(Method *M); + + virtual bool doPerMethodWork(Method *M) { return doit(M); } +}; + +#endif |

