mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
986fced5f9
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@901 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
657 B
C++
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
|