llvm-6502/include/llvm/Transforms/Scalar/InductionVars.h
2001-10-18 20:19:09 +00:00

28 lines
657 B
C++

//===-- InductionVars.h - Induction Variable Recognition ---------*- C++ -*--=//
//
// This family of functions is useful for Induction variable recognition,
// removal and optimizations.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_OPT_INDUCTION_VARS_H
#define LLVM_OPT_INDUCTION_VARS_H
#include "llvm/Pass.h"
namespace opt {
struct InductionVariableCannonicalize : public Pass {
// doInductionVariableCannonicalize - Simplify induction variables in loops
//
static bool doIt(Method *M);
virtual bool doPerMethodWork(Method *M) {
return doIt(M);
}
};
} // end namespace opt
#endif