1 //===- PassRegistry.def - Registry of passes --------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
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.
15 //===----------------------------------------------------------------------===//
17 // NOTE: NO INCLUDE GUARD DESIRED!
19 #ifndef MODULE_ANALYSIS
20 #define MODULE_ANALYSIS(NAME, CREATE_PASS)
22 MODULE_ANALYSIS("lcg", LazyCallGraphAnalysis())
23 #undef MODULE_ANALYSIS
26 #define MODULE_PASS(NAME, CREATE_PASS)
28 MODULE_PASS("print", PrintModulePass(dbgs()))
29 MODULE_PASS("print-cg", LazyCallGraphPrinterPass(dbgs()))
30 MODULE_PASS("verify", VerifierPass())
33 #ifndef CGSCC_ANALYSIS
34 #define CGSCC_ANALYSIS(NAME, CREATE_PASS)
39 #define CGSCC_PASS(NAME, CREATE_PASS)
43 #ifndef FUNCTION_ANALYSIS
44 #define FUNCTION_ANALYSIS(NAME, CREATE_PASS)
46 #undef FUNCTION_ANALYSIS
49 #define FUNCTION_PASS(NAME, CREATE_PASS)
51 FUNCTION_PASS("print", PrintFunctionPass(dbgs()))
52 FUNCTION_PASS("verify", VerifierPass())