1 //===- llvm/Analysis/LoopDependenceAnalysis.h --------------- -*- C++ -*---===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // LoopDependenceAnalysis is an LLVM pass that analyses dependences in memory
13 // Please note that this is work in progress and the interface is subject to
16 // TODO: adapt as interface progresses
18 //===----------------------------------------------------------------------===//
20 #ifndef LLVM_ANALYSIS_LOOP_DEPENDENCE_ANALYSIS_H
21 #define LLVM_ANALYSIS_LOOP_DEPENDENCE_ANALYSIS_H
23 #include "llvm/Analysis/LoopPass.h"
29 class ScalarEvolution;
31 class LoopDependenceAnalysis : public LoopPass {
36 static char ID; // Class identification, replacement for typeinfo
37 LoopDependenceAnalysis() : LoopPass(&ID) {}
39 bool runOnLoop(Loop*, LPPassManager&);
41 virtual void getAnalysisUsage(AnalysisUsage&) const;
42 }; // class LoopDependenceAnalysis
45 // createLoopDependenceAnalysisPass - This creates an instance of the
46 // LoopDependenceAnalysis pass.
48 LoopPass *createLoopDependenceAnalysisPass();
52 #endif /* LLVM_ANALYSIS_LOOP_DEPENDENCE_ANALYSIS_H */