llvm.org GIT mirror llvm / 4f4c28f
Restore isCFGOnly property of various analysis passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48579 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 12 years ago
20 changed file(s) with 26 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
115115
116116 char AliasAnalysisCounter::ID = 0;
117117 RegisterPass
118 X("count-aa", "Count Alias Analysis Query Responses", true, true);
118 X("count-aa", "Count Alias Analysis Query Responses", false, true);
119119 RegisterAnalysisGroup Y(X);
120120 }
121121
7575
7676 char AAEval::ID = 0;
7777 RegisterPass
78 X("aa-eval", "Exhaustive Alias Analysis Precision Evaluator", true, true);
78 X("aa-eval", "Exhaustive Alias Analysis Precision Evaluator", false, true);
7979 }
8080
8181 FunctionPass *llvm::createAAEvalPass() { return new AAEval(); }
122122 };
123123
124124 char AliasDebugger::ID = 0;
125 RegisterPass X("debug-aa", "AA use debugger", true, true);
125 RegisterPass X("debug-aa", "AA use debugger", false, true);
126126 RegisterAnalysisGroup Y(X);
127127 }
128128
568568 }
569569 };
570570 char AliasSetPrinter::ID = 0;
571 RegisterPass X("print-alias-sets", "Alias Set Printer", true, true);
572 }
571 RegisterPass X("print-alias-sets", "Alias Set Printer", false, true);
572 }
127127 // Register this pass...
128128 char BasicAliasAnalysis::ID = 0;
129129 RegisterPass
130 X("basicaa", "Basic Alias Analysis (default AA impl)", true, true);
130 X("basicaa", "Basic Alias Analysis (default AA impl)", false, true);
131131
132132 // Declare that we implement the AliasAnalysis interface
133133 RegisterAnalysisGroup Y(X);
107107
108108 char CFGViewer::ID = 0;
109109 RegisterPass V0("view-cfg",
110 "View CFG of function", true, true);
110 "View CFG of function", false, true);
111111
112112 struct VISIBILITY_HIDDEN CFGOnlyViewer : public FunctionPass {
113113 static char ID; // Pass identifcation, replacement for typeid
129129
130130 char CFGOnlyViewer::ID = 0;
131131 RegisterPass V1("view-cfg-only",
132 "View CFG of function (with no function bodies)", true, true);
132 "View CFG of function (with no function bodies)", false, true);
133133
134134 struct VISIBILITY_HIDDEN CFGPrinter : public FunctionPass {
135135 static char ID; // Pass identification, replacement for typeid
158158
159159 char CFGPrinter::ID = 0;
160160 RegisterPass P1("print-cfg",
161 "Print CFG of function to 'dot' file", true, true);
161 "Print CFG of function to 'dot' file", false, true);
162162
163163 struct VISIBILITY_HIDDEN CFGOnlyPrinter : public CFGPrinter {
164164 static char ID; // Pass identification, replacement for typeid
180180 char CFGOnlyPrinter::ID = 0;
181181 RegisterPass
182182 P2("print-cfg-only",
183 "Print CFG of function to 'dot' file (with no function bodies)", true, true);
183 "Print CFG of function to 'dot' file (with no function bodies)", false, true);
184184 }
185185
186186 /// viewCFG - This function is meant for use from the debugger. You can just
601601
602602 char Andersens::ID = 0;
603603 RegisterPass X("anders-aa",
604 "Andersen's Interprocedural Alias Analysis", true,
604 "Andersen's Interprocedural Alias Analysis", false,
605605 true);
606606 RegisterAnalysisGroup Y(X);
607607
2222
2323 char FindUsedTypes::ID = 0;
2424 static RegisterPass
25 X("printusedtypes", "Find Used Types", true, true);
25 X("printusedtypes", "Find Used Types", false, true);
2626
2727 // IncorporateType - Incorporate one type and all of its subtypes into the
2828 // collection of used types.
148148
149149 char GlobalsModRef::ID = 0;
150150 RegisterPass X("globalsmodref-aa",
151 "Simple mod/ref analysis for globals", true,
151 "Simple mod/ref analysis for globals", false,
152152 true);
153153 RegisterAnalysisGroup Y(X);
154154 }
6464
6565 char InstCount::ID = 0;
6666 RegisterPass X("instcount",
67 "Counts the various types of Instructions", true, true);
67 "Counts the various types of Instructions", false, true);
6868 }
6969
7070 FunctionPass *llvm::createInstCountPass() { return new InstCount(); }
1616
1717 char IntervalPartition::ID = 0;
1818 static RegisterPass
19 X("intervals", "Interval Partition Construction", true, true);
19 X("intervals", "Interval Partition Construction", false, true);
2020
2121 //===----------------------------------------------------------------------===//
2222 // IntervalPartition Implementation
8484
8585 char LoadVN::ID = 0;
8686 // Register this pass...
87 RegisterPass X("load-vn", "Load Value Numbering", true, true);
87 RegisterPass X("load-vn", "Load Value Numbering", false, true);
8888
8989 // Declare that we implement the ValueNumbering interface
9090 RegisterAnalysisGroup Y(X);
2828
2929 char LoopInfo::ID = 0;
3030 static RegisterPass
31 X("loops", "Natural Loop Construction", true, true);
31 X("loops", "Natural Loop Construction", false, true);
3232
3333 //===----------------------------------------------------------------------===//
3434 // Loop implementation
4747
4848 // Register this pass...
4949 static RegisterPass X("memdep",
50 "Memory Dependence Analysis", true, true);
50 "Memory Dependence Analysis", false, true);
5151
5252 void MemoryDependenceAnalysis::ping(Instruction *D) {
5353 for (depMapType::iterator I = depGraphLocal.begin(), E = depGraphLocal.end();
2525 char PostDominatorTree::ID = 0;
2626 char PostDominanceFrontier::ID = 0;
2727 static RegisterPass
28 F("postdomtree", "Post-Dominator Tree Construction", true, true);
28 F("postdomtree", "Post-Dominator Tree Construction", false, true);
2929
3030 bool PostDominatorTree::runOnFunction(Function &F) {
3131 DT->recalculate(F);
3737 //===----------------------------------------------------------------------===//
3838
3939 static RegisterPass
40 H("postdomfrontier", "Post-Dominance Frontier Construction", true, true);
40 H("postdomfrontier", "Post-Dominance Frontier Construction", false, true);
4141
4242 const DominanceFrontier::DomSetType &
4343 PostDominanceFrontier::calculate(const PostDominatorTree &DT,
9292 char NoProfileInfo::ID = 0;
9393 // Register this pass...
9494 RegisterPass
95 X("no-profile", "No Profile Information", true, true);
95 X("no-profile", "No Profile Information", false, true);
9696
9797 // Declare that we implement the ProfileInfo interface
9898 RegisterAnalysisGroup Y(X);
5151
5252 char LoaderPass::ID = 0;
5353 RegisterPass
54 X("profile-loader", "Load profile information from llvmprof.out", true, true);
54 X("profile-loader", "Load profile information from llvmprof.out", false, true);
5555
5656 RegisterAnalysisGroup Y(X);
5757 } // End of anonymous namespace
102102
103103 namespace {
104104 RegisterPass
105 R("scalar-evolution", "Scalar Evolution Analysis", true, true);
105 R("scalar-evolution", "Scalar Evolution Analysis", false, true);
106106 }
107107 char ScalarEvolution::ID = 0;
108108
6767 char BasicVN::ID = 0;
6868 // Register this pass...
6969 RegisterPass
70 X("basicvn", "Basic Value Numbering (default GVN impl)", true, true);
70 X("basicvn", "Basic Value Numbering (default GVN impl)", false, true);
7171
7272 // Declare that we implement the ValueNumbering interface
7373 RegisterAnalysisGroup Y(X);
5353
5454 char DominatorTree::ID = 0;
5555 static RegisterPass
56 E("domtree", "Dominator Tree Construction", true, true);
56 E("domtree", "Dominator Tree Construction", false, true);
5757
5858 bool DominatorTree::runOnFunction(Function &F) {
5959 DT->recalculate(F);
6767
6868 char DominanceFrontier::ID = 0;
6969 static RegisterPass
70 G("domfrontier", "Dominance Frontier Construction", true, true);
70 G("domfrontier", "Dominance Frontier Construction", false, true);
7171
7272 // NewBB is split and now it has one successor. Update dominace frontier to
7373 // reflect this change.