diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-19 21:56:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-19 21:56:59 +0000 |
commit | c758209153ca0f6da6737f25ada269c573fba456 (patch) | |
tree | 88b334fb5710b2d63089bdb840135dc1e8f7ebfa /lib/Analysis/IPA | |
parent | 7925ed05d0245aca0b0b2ea8d8a0b35b77c5ebd4 (diff) | |
download | llvm-c758209153ca0f6da6737f25ada269c573fba456.tar.gz llvm-c758209153ca0f6da6737f25ada269c573fba456.tar.bz2 llvm-c758209153ca0f6da6737f25ada269c573fba456.tar.xz |
PassInfo keep tracks whether a pass is an analysis pass or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r-- | lib/Analysis/IPA/Andersens.cpp | 5 | ||||
-rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 2 | ||||
-rw-r--r-- | lib/Analysis/IPA/FindUsedTypes.cpp | 2 | ||||
-rw-r--r-- | lib/Analysis/IPA/GlobalsModRef.cpp | 5 |
4 files changed, 8 insertions, 6 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index d77997bb39..b34b50ed64 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -430,7 +430,7 @@ namespace { public: static char ID; - Andersens() : ModulePass((intptr_t)&ID, true) {} + Andersens() : ModulePass((intptr_t)&ID) {} bool runOnModule(Module &M) { InitializeAliasAnalysis(this); @@ -602,7 +602,8 @@ namespace { char Andersens::ID = 0; RegisterPass<Andersens> X("anders-aa", - "Andersen's Interprocedural Alias Analysis"); + "Andersen's Interprocedural Alias Analysis", true, + true); RegisterAnalysisGroup<AliasAnalysis> Y(X); // Initialize Timestamp Counter (static). diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index cb24df6c35..5c5418ba25 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -191,7 +191,7 @@ private: }; RegisterAnalysisGroup<CallGraph> X("Call Graph"); -RegisterPass<BasicCallGraph> Y("basiccg", "Basic CallGraph Construction"); +RegisterPass<BasicCallGraph> Y("basiccg", "Basic CallGraph Construction", false, true); RegisterAnalysisGroup<CallGraph, true> Z(Y); } //End anonymous namespace diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp index 34c126f5d4..4d44e5384d 100644 --- a/lib/Analysis/IPA/FindUsedTypes.cpp +++ b/lib/Analysis/IPA/FindUsedTypes.cpp @@ -23,7 +23,7 @@ using namespace llvm; char FindUsedTypes::ID = 0; static RegisterPass<FindUsedTypes> -X("printusedtypes", "Find Used Types"); +X("printusedtypes", "Find Used Types", true, true); // IncorporateType - Incorporate one type and all of its subtypes into the // collection of used types. diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp index a08db7bf42..17fce9d62a 100644 --- a/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/lib/Analysis/IPA/GlobalsModRef.cpp @@ -84,7 +84,7 @@ namespace { public: static char ID; - GlobalsModRef() : ModulePass((intptr_t)&ID, true) {} + GlobalsModRef() : ModulePass((intptr_t)&ID) {} bool runOnModule(Module &M) { InitializeAliasAnalysis(this); // set up super class @@ -149,7 +149,8 @@ namespace { char GlobalsModRef::ID = 0; RegisterPass<GlobalsModRef> X("globalsmodref-aa", - "Simple mod/ref analysis for globals"); + "Simple mod/ref analysis for globals", true, + true); RegisterAnalysisGroup<AliasAnalysis> Y(X); } |