mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
50d0b7ec3f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
676 B
C++
25 lines
676 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/Module.h"
|
|
|
|
namespace opt {
|
|
|
|
// DoInductionVariableCannonicalize - Simplify induction variables in loops
|
|
//
|
|
bool DoInductionVariableCannonicalize(Method *M);
|
|
static inline bool DoInductionVariableCannonicalize(Module *M) {
|
|
return M->reduceApply(DoInductionVariableCannonicalize);
|
|
}
|
|
|
|
} // end namespace opt
|
|
|
|
#endif
|