diff options
author | Devang Patel <dpatel@apple.com> | 2006-11-07 22:35:17 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-11-07 22:35:17 +0000 |
commit | 889739c4d188d28c167644bced9df0f3131317d7 (patch) | |
tree | efc5f268adc540adb1e94ee7dbefbf33db1d4732 /lib/VMCore/PassManager.cpp | |
parent | b30803bc17a5be655b7c4ef356e75ae5524b0931 (diff) |
Introduce PassManagerAnalysisHelper.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index c87d33305a..766f8ce8b4 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -18,6 +18,46 @@ using namespace llvm; +// PassManagerAnalysisHelper implementation + +/// Return TRUE IFF pass P's required analysis set does not required new +/// manager. +bool PassManagerAnalysisHelper::manageablePass(Pass *P) { + + AnalysisUsage AnUsage; + P->getAnalysisUsage(AnUsage); + + // If this pass is not preserving information that is required by the other passes + // managed by this manager then use new manager + // TODO + return true; +} + +/// Return TRUE iff AnalysisID AID is currently available. +bool PassManagerAnalysisHelper::analysisCurrentlyAvailable(AnalysisID AID) { + + // TODO + return false; +} + +/// Augment RequiredSet by adding analysis required by pass P. +void PassManagerAnalysisHelper::noteDownRequiredAnalysis(Pass *P) { + + // TODO +} + +/// Remove AnalysisID from the RequiredSet +void PassManagerAnalysisHelper::removeAnalysis(AnalysisID AID) { + + // TODO +} + +/// Remove Analyss not preserved by Pass P +void PassManagerAnalysisHelper::removeNotPreservedAnalysis(Pass *P) { + + // TODO +} + /// BasicBlockPassManager implementation /// Add pass P into PassVector and return TRUE. If this pass is not |