mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
967a04442d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1596 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
905 B
C++
28 lines
905 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 cfg { class IntervalPartition; }
|
|
|
|
struct InductionVariableCannonicalize : public MethodPass {
|
|
// doInductionVariableCannonicalize - Simplify induction variables in loops
|
|
//
|
|
static bool doIt(Method *M, cfg::IntervalPartition &IP);
|
|
|
|
virtual bool runOnMethod(Method *M);
|
|
|
|
// getAnalysisUsageInfo - Declare that we need IntervalPartitions
|
|
void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
|
|
Pass::AnalysisSet &Destroyed,
|
|
Pass::AnalysisSet &Provided);
|
|
};
|
|
|
|
#endif
|