Added documented rsprofiler interface. Also remove new profiler passes, the
[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 // Random Sampling Profiling Framework
47 ModulePass* createNullProfilerRSPass();
48 FunctionPass* createRSProfilingPass();
49
50
51 //===----------------------------------------------------------------------===//
52 // Support for inserting LLVM code to print values at basic block and function
53 // exits.
54 //
55
56 // Just trace function entry/exit
57 FunctionPass *createTraceValuesPassForBasicBlocks();
58
59 // Trace BB's and methods
60 FunctionPass *createTraceValuesPassForFunction();
61
62 } // End llvm namespace
63
64 #endif