Add accessor function prototypes for reoptimizer support passes.
[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 ModulePass *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 FunctionPass *createEmitFunctionTablePass ();
30
31
32 //===----------------------------------------------------------------------===//
33 // Support for inserting LLVM code to print values at basic block and function
34 // exits.
35 //
36
37 // Just trace function entry/exit
38 FunctionPass *createTraceValuesPassForBasicBlocks();
39
40 // Trace BB's and methods
41 FunctionPass *createTraceValuesPassForFunction();
42
43 } // End llvm namespace
44
45 #endif