[PM] Port domtree to the new pass manager (at last).
[oota-llvm.git] / tools / opt / PassRegistry.def
1 //===- PassRegistry.def - Registry of passes --------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file is used as the registry of passes that are part of the core LLVM
11 // libraries. This file describes both transformation passes and analyses
12 // Analyses are registered while transformation passes have names registered
13 // that can be used when providing a textual pass pipeline.
14 //
15 //===----------------------------------------------------------------------===//
16
17 // NOTE: NO INCLUDE GUARD DESIRED!
18
19 #ifndef MODULE_ANALYSIS
20 #define MODULE_ANALYSIS(NAME, CREATE_PASS)
21 #endif
22 MODULE_ANALYSIS("lcg", LazyCallGraphAnalysis())
23 MODULE_ANALYSIS("no-op-module", NoOpModuleAnalysis())
24 #undef MODULE_ANALYSIS
25
26 #ifndef MODULE_PASS
27 #define MODULE_PASS(NAME, CREATE_PASS)
28 #endif
29 MODULE_PASS("invalidate<all>", InvalidateAllAnalysesPass())
30 MODULE_PASS("no-op-module", NoOpModulePass())
31 MODULE_PASS("print", PrintModulePass(dbgs()))
32 MODULE_PASS("print-cg", LazyCallGraphPrinterPass(dbgs()))
33 MODULE_PASS("verify", VerifierPass())
34 #undef MODULE_PASS
35
36 #ifndef CGSCC_ANALYSIS
37 #define CGSCC_ANALYSIS(NAME, CREATE_PASS)
38 #endif
39 CGSCC_ANALYSIS("no-op-cgscc", NoOpCGSCCAnalysis())
40 #undef CGSCC_ANALYSIS
41
42 #ifndef CGSCC_PASS
43 #define CGSCC_PASS(NAME, CREATE_PASS)
44 #endif
45 CGSCC_PASS("invalidate<all>", InvalidateAllAnalysesPass())
46 CGSCC_PASS("no-op-cgscc", NoOpCGSCCPass())
47 #undef CGSCC_PASS
48
49 #ifndef FUNCTION_ANALYSIS
50 #define FUNCTION_ANALYSIS(NAME, CREATE_PASS)
51 #endif
52 FUNCTION_ANALYSIS("domtree", DominatorTreeAnalysis())
53 FUNCTION_ANALYSIS("no-op-function", NoOpFunctionAnalysis())
54 #undef FUNCTION_ANALYSIS
55
56 #ifndef FUNCTION_PASS
57 #define FUNCTION_PASS(NAME, CREATE_PASS)
58 #endif
59 FUNCTION_PASS("invalidate<all>", InvalidateAllAnalysesPass())
60 FUNCTION_PASS("no-op-function", NoOpFunctionPass())
61 FUNCTION_PASS("print", PrintFunctionPass(dbgs()))
62 FUNCTION_PASS("print<domtree>", DominatorTreePrinterPass(dbgs()))
63 FUNCTION_PASS("verify", VerifierPass())
64 FUNCTION_PASS("verify<domtree>", DominatorTreeVerifierPass())
65 #undef FUNCTION_PASS