aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Pass.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-04-16 20:56:24 +0000
committerDevang Patel <dpatel@apple.com>2007-04-16 20:56:24 +0000
commit6b1df0e863963929634d769f39cbce68f030f051 (patch)
treee0c76edf16eff026234e0aa3495a18eb63d82f18 /include/llvm/Pass.h
parentf4bd76a035f7d85a576c75c7680ed6baddc74674 (diff)
downloadexternal_llvm-6b1df0e863963929634d769f39cbce68f030f051.zip
external_llvm-6b1df0e863963929634d769f39cbce68f030f051.tar.gz
external_llvm-6b1df0e863963929634d769f39cbce68f030f051.tar.bz2
Proivde getAnalysis<FPAnalysis>(Func) support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r--include/llvm/Pass.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index cef4501..5dd3dba 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -197,8 +197,13 @@ public:
AnalysisType &getAnalysis() const; // Defined in PassAnalysisSupport.h
template<typename AnalysisType>
+ AnalysisType &getAnalysis(Function &F); // Defined in PassanalysisSupport.h
+
+ template<typename AnalysisType>
AnalysisType &getAnalysisID(const PassInfo *PI) const;
+ template<typename AnalysisType>
+ AnalysisType &getAnalysisID(const PassInfo *PI, Function &F);
};
inline std::ostream &operator<<(std::ostream &OS, const Pass &P) {