[DAGCombiner] SCALAR_TO_VECTOR(EXTRACT_VECTOR_ELT(V,C)) -> VECTOR_SHUFFLE
[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 MODULE_ANALYSIS("targetlibinfo", TargetLibraryAnalysis())
25 #undef MODULE_ANALYSIS
26
27 #ifndef MODULE_PASS
28 #define MODULE_PASS(NAME, CREATE_PASS)
29 #endif
30 MODULE_PASS("invalidate<all>", InvalidateAllAnalysesPass())
31 MODULE_PASS("no-op-module", NoOpModulePass())
32 MODULE_PASS("print", PrintModulePass(dbgs()))
33 MODULE_PASS("print-cg", LazyCallGraphPrinterPass(dbgs()))
34 MODULE_PASS("verify", VerifierPass())
35 #undef MODULE_PASS
36
37 #ifndef CGSCC_ANALYSIS
38 #define CGSCC_ANALYSIS(NAME, CREATE_PASS)
39 #endif
40 CGSCC_ANALYSIS("no-op-cgscc", NoOpCGSCCAnalysis())
41 #undef CGSCC_ANALYSIS
42
43 #ifndef CGSCC_PASS
44 #define CGSCC_PASS(NAME, CREATE_PASS)
45 #endif
46 CGSCC_PASS("invalidate<all>", InvalidateAllAnalysesPass())
47 CGSCC_PASS("no-op-cgscc", NoOpCGSCCPass())
48 #undef CGSCC_PASS
49
50 #ifndef FUNCTION_ANALYSIS
51 #define FUNCTION_ANALYSIS(NAME, CREATE_PASS)
52 #endif
53 FUNCTION_ANALYSIS("assumptions", AssumptionAnalysis())
54 FUNCTION_ANALYSIS("domtree", DominatorTreeAnalysis())
55 FUNCTION_ANALYSIS("loops", LoopAnalysis())
56 FUNCTION_ANALYSIS("no-op-function", NoOpFunctionAnalysis())
57 FUNCTION_ANALYSIS("targetlibinfo", TargetLibraryAnalysis())
58 FUNCTION_ANALYSIS("targetir",
59                   TM ? TM->getTargetIRAnalysis() : TargetIRAnalysis())
60 #undef FUNCTION_ANALYSIS
61
62 #ifndef FUNCTION_PASS
63 #define FUNCTION_PASS(NAME, CREATE_PASS)
64 #endif
65 FUNCTION_PASS("early-cse", EarlyCSEPass())
66 FUNCTION_PASS("instcombine", InstCombinePass())
67 FUNCTION_PASS("invalidate<all>", InvalidateAllAnalysesPass())
68 FUNCTION_PASS("no-op-function", NoOpFunctionPass())
69 FUNCTION_PASS("lower-expect", LowerExpectIntrinsicPass())
70 FUNCTION_PASS("print", PrintFunctionPass(dbgs()))
71 FUNCTION_PASS("print<assumptions>", AssumptionPrinterPass(dbgs()))
72 FUNCTION_PASS("print<domtree>", DominatorTreePrinterPass(dbgs()))
73 FUNCTION_PASS("print<loops>", LoopPrinterPass(dbgs()))
74 FUNCTION_PASS("simplify-cfg", SimplifyCFGPass())
75 FUNCTION_PASS("verify", VerifierPass())
76 FUNCTION_PASS("verify<domtree>", DominatorTreeVerifierPass())
77 #undef FUNCTION_PASS