From c7fe32e840758baa9ce4f93c321b508a69b98262 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 19 Mar 2008 00:48:41 +0000 Subject: [PATCH] Do not use virtual function to identify an analysis pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48520 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/Dominators.h | 13 ++------ include/llvm/Analysis/FindUsedTypes.h | 6 +--- include/llvm/Analysis/IntervalPartition.h | 5 +-- include/llvm/Analysis/LoopInfo.h | 5 +-- include/llvm/Analysis/LoopPass.h | 2 +- .../llvm/Analysis/MemoryDependenceAnalysis.h | 5 +-- include/llvm/Analysis/PostDominators.h | 8 +---- include/llvm/Analysis/ScalarEvolution.h | 5 +-- include/llvm/CallGraphSCCPass.h | 2 +- include/llvm/Pass.h | 32 +++++++++---------- lib/Analysis/AliasAnalysisCounter.cpp | 5 +-- lib/Analysis/AliasAnalysisEvaluator.cpp | 5 +-- lib/Analysis/AliasDebugger.cpp | 5 +-- lib/Analysis/AliasSetTracker.cpp | 5 +-- lib/Analysis/CFGPrinter.cpp | 19 ++--------- lib/Analysis/IPA/Andersens.cpp | 5 +-- lib/Analysis/IPA/GlobalsModRef.cpp | 5 +-- lib/Analysis/InstCount.cpp | 6 +--- lib/Analysis/LoadValueNumbering.cpp | 5 +-- lib/Analysis/ProfileInfoLoaderPass.cpp | 5 +-- lib/VMCore/PassManager.cpp | 2 +- 21 files changed, 39 insertions(+), 111 deletions(-) diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 8c1a3ed6ea1..1b7fa75e6a2 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -300,9 +300,6 @@ public: // FIXME: Should remove this virtual bool runOnFunction(Function &F) { return false; } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual void releaseMemory() { reset(); } /// getNode - return the (Post)DominatorTree node for the specified basic @@ -667,7 +664,7 @@ public: static char ID; // Pass ID, replacement for typeid DominatorTreeBase* DT; - DominatorTree() : FunctionPass(intptr_t(&ID)) { + DominatorTree() : FunctionPass(intptr_t(&ID), true) { DT = new DominatorTreeBase(false); } @@ -694,9 +691,6 @@ public: return DT->getRootNode(); } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &F); virtual void getAnalysisUsage(AnalysisUsage &AU) const { @@ -843,7 +837,7 @@ protected: public: DominanceFrontierBase(intptr_t ID, bool isPostDom) - : FunctionPass(ID), IsPostDominators(isPostDom) {} + : FunctionPass(ID, true), IsPostDominators(isPostDom) {} /// getRoots - Return the root blocks of the current CFG. This may include /// multiple blocks if we are computing post dominators. For forward @@ -916,9 +910,6 @@ public: return Roots[0]; } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &) { Frontiers.clear(); DominatorTree &DT = getAnalysis(); diff --git a/include/llvm/Analysis/FindUsedTypes.h b/include/llvm/Analysis/FindUsedTypes.h index 605cc07b0a2..6a128c80886 100644 --- a/include/llvm/Analysis/FindUsedTypes.h +++ b/include/llvm/Analysis/FindUsedTypes.h @@ -25,7 +25,7 @@ class FindUsedTypes : public ModulePass { std::set UsedTypes; public: static char ID; // Pass identification, replacement for typeid - FindUsedTypes() : ModulePass((intptr_t)&ID) {} + FindUsedTypes() : ModulePass((intptr_t)&ID, true) {} /// getTypes - After the pass has been run, return the set containing all of /// the types used in the module. @@ -50,10 +50,6 @@ private: void IncorporateValue(const Value *V); public: - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - /// run - This incorporates all types used by the specified module bool runOnModule(Module &M); diff --git a/include/llvm/Analysis/IntervalPartition.h b/include/llvm/Analysis/IntervalPartition.h index 855e3a44c46..42d27feaec4 100644 --- a/include/llvm/Analysis/IntervalPartition.h +++ b/include/llvm/Analysis/IntervalPartition.h @@ -47,10 +47,7 @@ class IntervalPartition : public FunctionPass { public: static char ID; // Pass identification, replacement for typeid - IntervalPartition() : FunctionPass((intptr_t)&ID), RootInterval(0) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + IntervalPartition() : FunctionPass((intptr_t)&ID, true), RootInterval(0) {} // run - Calculate the interval partition for this function virtual bool runOnFunction(Function &F); diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index ab7cb7e03e5..cc2b10eb53f 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -879,7 +879,7 @@ class LoopInfo : public FunctionPass { public: static char ID; // Pass identification, replacement for typeid - LoopInfo() : FunctionPass(intptr_t(&ID)) { + LoopInfo() : FunctionPass(intptr_t(&ID), true) { LI = new LoopInfoBase(); } @@ -919,9 +919,6 @@ public: return LI->isLoopHeader(BB); } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - bool isAnalysis() const { return true; } - /// runOnFunction - Calculate the natural loop information. /// virtual bool runOnFunction(Function &F); diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index 3b5f565f533..8ebbbafb585 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -29,7 +29,7 @@ class PMStack; class LoopPass : public Pass { public: - explicit LoopPass(intptr_t pid) : Pass(pid) {} + explicit LoopPass(intptr_t pid, bool AP = false) : Pass(pid, AP) {} // runOnLoop - This method should be implemented by the subclass to perform // whatever action is necessary for the specfied Loop. diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index d16295b87d0..c683a6b74b8 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -66,10 +66,7 @@ class MemoryDependenceAnalysis : public FunctionPass { static Instruction* const Dirty; static char ID; // Class identification, replacement for typeinfo - MemoryDependenceAnalysis() : FunctionPass((intptr_t)&ID) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + MemoryDependenceAnalysis() : FunctionPass((intptr_t)&ID, true) {} /// Pass Implementation stuff. This doesn't do any analysis. /// diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index c55022b7637..f20f050a9b3 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -25,13 +25,10 @@ struct PostDominatorTree : public FunctionPass { static char ID; // Pass identification, replacement for typeid DominatorTreeBase* DT; - PostDominatorTree() : FunctionPass((intptr_t)&ID) { + PostDominatorTree() : FunctionPass((intptr_t)&ID, true) { DT = new DominatorTreeBase(true); } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &F); virtual void getAnalysisUsage(AnalysisUsage &AU) const { @@ -72,9 +69,6 @@ struct PostDominanceFrontier : public DominanceFrontierBase { PostDominanceFrontier() : DominanceFrontierBase((intptr_t) &ID, true) {} - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &) { Frontiers.clear(); PostDominatorTree &DT = getAnalysis(); diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index d97abe47068..5894d8c3f33 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -192,7 +192,7 @@ namespace llvm { void *Impl; // ScalarEvolution uses the pimpl pattern public: static char ID; // Pass identification, replacement for typeid - ScalarEvolution() : FunctionPass((intptr_t)&ID), Impl(0) {} + ScalarEvolution() : FunctionPass((intptr_t)&ID, true), Impl(0) {} /// getSCEV - Return a SCEV expression handle for the full generality of the /// specified expression. @@ -291,9 +291,6 @@ namespace llvm { /// that no dangling references are left around. void deleteValueFromRecords(Value *V) const; - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &F); virtual void releaseMemory(); virtual void getAnalysisUsage(AnalysisUsage &AU) const; diff --git a/include/llvm/CallGraphSCCPass.h b/include/llvm/CallGraphSCCPass.h index 26005059dee..f2190e67211 100644 --- a/include/llvm/CallGraphSCCPass.h +++ b/include/llvm/CallGraphSCCPass.h @@ -31,7 +31,7 @@ class PMStack; struct CallGraphSCCPass : public Pass { - explicit CallGraphSCCPass(intptr_t pid) : Pass(pid) {} + explicit CallGraphSCCPass(intptr_t pid, bool AP = false) : Pass(pid, AP) {} /// doInitialization - This method is called before the SCC's of the program /// has been processed, allowing the pass to do initialization as necessary. diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 58bdfc010af..07355da2d18 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -73,7 +73,7 @@ enum PassManagerType { class Pass { AnalysisResolver *Resolver; // Used to resolve analysis intptr_t PassID; - + bool isAnalysisPass; // True if this pass is an analysis pass. // AnalysisImpls - This keeps track of which passes implement the interfaces // that are required by the current pass (to implement getAnalysis()). // @@ -82,10 +82,14 @@ class Pass { void operator=(const Pass&); // DO NOT IMPLEMENT Pass(const Pass &); // DO NOT IMPLEMENT public: - explicit Pass(intptr_t pid) : Resolver(0), PassID(pid) {} - explicit Pass(const void *pid) : Resolver(0), PassID((intptr_t)pid) {} + explicit Pass(intptr_t pid, bool AP = false) : Resolver(0), PassID(pid), + isAnalysisPass(AP) {} + explicit Pass(const void *pid, bool AP = false) : Resolver(0), + PassID((intptr_t)pid), + isAnalysisPass(AP) {} virtual ~Pass(); + bool isAnalysis() const { return isAnalysisPass; } /// getPassName - Return a nice clean name for a pass. This usually /// implemented in terms of the name that is registered by one of the /// Registration templates, but can be overloaded directly. @@ -130,11 +134,6 @@ public: return Resolver; } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { - return false; - } - /// getAnalysisUsage - This function should be overriden by passes that need /// analysis information to do their job. If a pass specifies that it uses a /// particular analysis result to this function, it can then use the @@ -232,8 +231,8 @@ public: return PMT_ModulePassManager; } - explicit ModulePass(intptr_t pid) : Pass(pid) {} - explicit ModulePass(const void *pid) : Pass(pid) {} + explicit ModulePass(intptr_t pid, bool AP = false) : Pass(pid, AP) {} + explicit ModulePass(const void *pid, bool AP = false) : Pass(pid, AP) {} // Force out-of-line virtual method. virtual ~ModulePass(); }; @@ -258,8 +257,9 @@ public: /// bool runOnModule(Module &M) { return false; } - explicit ImmutablePass(intptr_t pid) : ModulePass(pid) {} - explicit ImmutablePass(const void *pid) : ModulePass(pid) {} + explicit ImmutablePass(intptr_t pid, bool AP = false) : ModulePass(pid, AP) {} + explicit ImmutablePass(const void *pid, bool AP = false) + : ModulePass(pid, AP) {} // Force out-of-line virtual method. virtual ~ImmutablePass(); @@ -276,8 +276,8 @@ public: /// class FunctionPass : public Pass { public: - explicit FunctionPass(intptr_t pid) : Pass(pid) {} - explicit FunctionPass(const void *pid) : Pass(pid) {} + explicit FunctionPass(intptr_t pid, bool AP = false) : Pass(pid, AP) {} + explicit FunctionPass(const void *pid, bool AP = false) : Pass(pid, AP) {} /// doInitialization - Virtual method overridden by subclasses to do /// any necessary per-module initialization. @@ -328,8 +328,8 @@ public: /// class BasicBlockPass : public Pass { public: - explicit BasicBlockPass(intptr_t pid) : Pass(pid) {} - explicit BasicBlockPass(const void *pid) : Pass(pid) {} + explicit BasicBlockPass(intptr_t pid, bool AP = false) : Pass(pid, AP) {} + explicit BasicBlockPass(const void *pid, bool AP = false) : Pass(pid, AP) {} /// doInitialization - Virtual method overridden by subclasses to do /// any necessary per-module initialization. diff --git a/lib/Analysis/AliasAnalysisCounter.cpp b/lib/Analysis/AliasAnalysisCounter.cpp index 8b35ea8370c..df3a66c6606 100644 --- a/lib/Analysis/AliasAnalysisCounter.cpp +++ b/lib/Analysis/AliasAnalysisCounter.cpp @@ -35,7 +35,7 @@ namespace { Module *M; public: static char ID; // Class identification, replacement for typeinfo - AliasAnalysisCounter() : ModulePass((intptr_t) &ID) { + AliasAnalysisCounter() : ModulePass((intptr_t) &ID, true) { No = May = Must = 0; NoMR = JustRef = JustMod = MR = 0; } @@ -72,9 +72,6 @@ namespace { } } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - bool runOnModule(Module &M) { this->M = &M; InitializeAliasAnalysis(this); diff --git a/lib/Analysis/AliasAnalysisEvaluator.cpp b/lib/Analysis/AliasAnalysisEvaluator.cpp index 51fdec49432..648760a2b73 100644 --- a/lib/Analysis/AliasAnalysisEvaluator.cpp +++ b/lib/Analysis/AliasAnalysisEvaluator.cpp @@ -52,7 +52,7 @@ namespace { public: static char ID; // Pass identification, replacement for typeid - AAEval() : FunctionPass((intptr_t)&ID) {} + AAEval() : FunctionPass((intptr_t)&ID, true) {} virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired(); @@ -70,9 +70,6 @@ namespace { return false; } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - bool runOnFunction(Function &F); bool doFinalization(Module &M); }; diff --git a/lib/Analysis/AliasDebugger.cpp b/lib/Analysis/AliasDebugger.cpp index 6b534e94be1..76dfe073375 100644 --- a/lib/Analysis/AliasDebugger.cpp +++ b/lib/Analysis/AliasDebugger.cpp @@ -41,10 +41,7 @@ namespace { public: static char ID; // Class identification, replacement for typeinfo - AliasDebugger() : ModulePass((intptr_t)&ID) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + AliasDebugger() : ModulePass((intptr_t)&ID, true) {} bool runOnModule(Module &M) { InitializeAliasAnalysis(this); // set up super class diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index 69cf4b309b7..a6f9227fd1c 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -551,16 +551,13 @@ namespace { AliasSetTracker *Tracker; public: static char ID; // Pass identification, replacement for typeid - AliasSetPrinter() : FunctionPass((intptr_t)&ID) {} + AliasSetPrinter() : FunctionPass((intptr_t)&ID, true) {} virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); AU.addRequired(); } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &F) { Tracker = new AliasSetTracker(getAnalysis()); diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp index 7b61ff8ebfe..b4840dc3f14 100644 --- a/lib/Analysis/CFGPrinter.cpp +++ b/lib/Analysis/CFGPrinter.cpp @@ -92,10 +92,7 @@ struct DOTGraphTraits : public DefaultDOTGraphTraits { namespace { struct VISIBILITY_HIDDEN CFGViewer : public FunctionPass { static char ID; // Pass identifcation, replacement for typeid - CFGViewer() : FunctionPass((intptr_t)&ID) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + CFGViewer() : FunctionPass((intptr_t)&ID, true) {} virtual bool runOnFunction(Function &F) { F.viewCFG(); @@ -115,10 +112,7 @@ namespace { struct VISIBILITY_HIDDEN CFGOnlyViewer : public FunctionPass { static char ID; // Pass identifcation, replacement for typeid - CFGOnlyViewer() : FunctionPass((intptr_t)&ID) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + CFGOnlyViewer() : FunctionPass((intptr_t)&ID, true) {} virtual bool runOnFunction(Function &F) { CFGOnly = true; @@ -141,10 +135,7 @@ namespace { struct VISIBILITY_HIDDEN CFGPrinter : public FunctionPass { static char ID; // Pass identification, replacement for typeid CFGPrinter() : FunctionPass((intptr_t)&ID) {} - explicit CFGPrinter(intptr_t pid) : FunctionPass(pid) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + explicit CFGPrinter(intptr_t pid) : FunctionPass(pid, true) {} virtual bool runOnFunction(Function &F) { std::string Filename = "cfg." + F.getName() + ".dot"; @@ -173,10 +164,6 @@ namespace { struct VISIBILITY_HIDDEN CFGOnlyPrinter : public CFGPrinter { static char ID; // Pass identification, replacement for typeid CFGOnlyPrinter() : CFGPrinter((intptr_t)&ID) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &F) { bool OldCFGOnly = CFGOnly; CFGOnly = true; diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index 49c6edd6207..d77997bb397 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -430,10 +430,7 @@ namespace { public: static char ID; - Andersens() : ModulePass((intptr_t)&ID) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + Andersens() : ModulePass((intptr_t)&ID, true) {} bool runOnModule(Module &M) { InitializeAliasAnalysis(this); diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp index 9f0159edb24..a08db7bf420 100644 --- a/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/lib/Analysis/IPA/GlobalsModRef.cpp @@ -84,10 +84,7 @@ namespace { public: static char ID; - GlobalsModRef() : ModulePass((intptr_t)&ID) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + GlobalsModRef() : ModulePass((intptr_t)&ID, true) {} bool runOnModule(Module &M) { InitializeAliasAnalysis(this); // set up super class diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp index 08a27a66b32..2eae5c369ab 100644 --- a/lib/Analysis/InstCount.cpp +++ b/lib/Analysis/InstCount.cpp @@ -51,12 +51,8 @@ namespace { abort(); } public: - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - static char ID; // Pass identification, replacement for typeid - InstCount() : FunctionPass((intptr_t)&ID) {} + InstCount() : FunctionPass((intptr_t)&ID, true) {} virtual bool runOnFunction(Function &F); diff --git a/lib/Analysis/LoadValueNumbering.cpp b/lib/Analysis/LoadValueNumbering.cpp index 6dd55a4a35f..6b8775bb1a8 100644 --- a/lib/Analysis/LoadValueNumbering.cpp +++ b/lib/Analysis/LoadValueNumbering.cpp @@ -41,10 +41,7 @@ namespace { // FIXME: This should not be a FunctionPass. struct VISIBILITY_HIDDEN LoadVN : public FunctionPass, public ValueNumbering { static char ID; // Class identification, replacement for typeinfo - LoadVN() : FunctionPass((intptr_t)&ID) {} - - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } + LoadVN() : FunctionPass((intptr_t)&ID, true) {} /// Pass Implementation stuff. This doesn't do any analysis. /// diff --git a/lib/Analysis/ProfileInfoLoaderPass.cpp b/lib/Analysis/ProfileInfoLoaderPass.cpp index e18625f8e76..12b18f736c2 100644 --- a/lib/Analysis/ProfileInfoLoaderPass.cpp +++ b/lib/Analysis/ProfileInfoLoaderPass.cpp @@ -34,7 +34,7 @@ namespace { public: static char ID; // Class identification, replacement for typeinfo explicit LoaderPass(const std::string &filename = "") - : ModulePass((intptr_t)&ID), Filename(filename) { + : ModulePass((intptr_t)&ID, true), Filename(filename) { if (filename.empty()) Filename = ProfileInfoFilename; } @@ -46,9 +46,6 @@ namespace { return "Profiling information loader"; } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - /// run - Load the profile information from the specified file. virtual bool runOnModule(Module &M); }; diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index b0afaef1317..7db6aa2643d 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -430,7 +430,7 @@ void PMTopLevelManager::schedulePass(Pass *P) { // generate the analysis again. Stale analysis info should not be // available at this point. if (P->isAnalysis() && findAnalysisPass(P->getPassInfo())) - return; + return; AnalysisUsage AnUsage; P->getAnalysisUsage(AnUsage);