diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-26 21:12:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-26 21:12:44 +0000 |
commit | 1e43516dcf4aa152432447397334cd43744d63e1 (patch) | |
tree | 0287d82e3bb70e8f2140d9dc67de7d8cabf1d908 /lib/VMCore/Dominators.cpp | |
parent | 5d549083e2dc55cc1aa035f1069480d052717061 (diff) | |
download | external_llvm-1e43516dcf4aa152432447397334cd43744d63e1.zip external_llvm-1e43516dcf4aa152432447397334cd43744d63e1.tar.gz external_llvm-1e43516dcf4aa152432447397334cd43744d63e1.tar.bz2 |
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Remove getPassName implementations from various subclasses
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
-rw-r--r-- | lib/VMCore/Dominators.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 777b3c4..9b35d16 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -18,6 +18,11 @@ using std::set; // DominatorSet Implementation //===----------------------------------------------------------------------===// +static RegisterAnalysis<DominatorSet> +A("domset", "Dominator Set Construction"); +static RegisterAnalysis<PostDominatorSet> +B("postdomset", "Post-Dominator Set Construction"); + AnalysisID DominatorSet::ID(AnalysisID::create<DominatorSet>(), true); AnalysisID PostDominatorSet::ID(AnalysisID::create<PostDominatorSet>(), true); @@ -151,6 +156,11 @@ void PostDominatorSet::getAnalysisUsage(AnalysisUsage &AU) const { // ImmediateDominators Implementation //===----------------------------------------------------------------------===// +static RegisterAnalysis<ImmediateDominators> +C("idom", "Immediate Dominators Construction"); +static RegisterAnalysis<ImmediatePostDominators> +D("postidom", "Immediate Post-Dominators Construction"); + AnalysisID ImmediateDominators::ID(AnalysisID::create<ImmediateDominators>(), true); AnalysisID ImmediatePostDominators::ID(AnalysisID::create<ImmediatePostDominators>(), true); @@ -195,6 +205,11 @@ void ImmediateDominatorsBase::calcIDoms(const DominatorSetBase &DS) { // DominatorTree Implementation //===----------------------------------------------------------------------===// +static RegisterAnalysis<DominatorTree> +E("domtree", "Dominator Tree Construction"); +static RegisterAnalysis<PostDominatorTree> +F("postdomtree", "Post-Dominator Tree Construction"); + AnalysisID DominatorTree::ID(AnalysisID::create<DominatorTree>(), true); AnalysisID PostDominatorTree::ID(AnalysisID::create<PostDominatorTree>(), true); @@ -307,6 +322,11 @@ void PostDominatorTree::calculate(const PostDominatorSet &DS) { // DominanceFrontier Implementation //===----------------------------------------------------------------------===// +static RegisterAnalysis<DominanceFrontier> +G("domfrontier", "Dominance Frontier Construction"); +static RegisterAnalysis<PostDominanceFrontier> +H("postdomfrontier", "Post-Dominance Frontier Construction"); + AnalysisID DominanceFrontier::ID(AnalysisID::create<DominanceFrontier>(), true); AnalysisID PostDominanceFrontier::ID(AnalysisID::create<PostDominanceFrontier>(), true); |