Add missing createXxxPass functions
[oota-llvm.git] / include / llvm / Transforms / Instrumentation.h
1 //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This files defines constructor functions for instrumentation passes.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_H
15 #define LLVM_TRANSFORMS_INSTRUMENTATION_H
16
17 namespace llvm {
18
19 class ModulePass;
20 class FunctionPass;
21
22 // Reoptimizer support pass: add instrumentation calls to back-edges of loops
23 FunctionPass *createLoopInstrumentationPass ();
24
25 // Reoptimizer support pass: combine multiple back-edges w/ same target into one
26 FunctionPass *createCombineBranchesPass();
27
28 // Reoptimizer support pass: emit table of global functions
29 ModulePass *createEmitFunctionTablePass ();
30
31 // Reoptimizer support pass: insert function profiling instrumentation
32 ModulePass *createFunctionProfilerPass();
33
34 // Reoptimizer support pass: insert block profiling instrumentation
35 ModulePass *createBlockProfilerPass();
36
37 // Reoptimizer support pass: insert edge profiling instrumentation
38 ModulePass *createEdgeProfilerPass();
39
40 // Reoptimizer support pass: insert basic block tracing instrumentation
41 ModulePass *createTraceBasicBlockPass();
42
43 // Reoptimizer support pass: insert counting of execute paths instrumentation
44 FunctionPass *createProfilePathsPass();
45
46 //===----------------------------------------------------------------------===//
47 // Support for inserting LLVM code to print values at basic block and function
48 // exits.
49 //
50
51 // Just trace function entry/exit
52 FunctionPass *createTraceValuesPassForBasicBlocks();
53
54 // Trace BB's and methods
55 FunctionPass *createTraceValuesPassForFunction();
56
57 } // End llvm namespace
58
59 #endif