6b507f77555d1904915d16e983f3ec308c9900f5
[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_PASS
20 #define MODULE_PASS(NAME, CREATE_PASS)
21 #endif
22 MODULE_PASS("print", PrintModulePass(dbgs()))
23 MODULE_PASS("print-cg", LazyCallGraphPrinterPass(dbgs()))
24 #undef MODULE_PASS
25
26 #ifndef FUNCTION_PASS
27 #define FUNCTION_PASS(NAME, CREATE_PASS)
28 #endif
29 FUNCTION_PASS("print", PrintFunctionPass(dbgs()))
30 #undef FUNCTION_PASS