1 //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This files defines constructor functions for instrumentation passes.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_H
15 #define LLVM_TRANSFORMS_INSTRUMENTATION_H
22 // Reoptimizer support pass: add instrumentation calls to back-edges of loops
23 FunctionPass *createLoopInstrumentationPass ();
25 // Reoptimizer support pass: combine multiple back-edges w/ same target into one
26 FunctionPass *createCombineBranchesPass();
28 // Reoptimizer support pass: emit table of global functions
29 ModulePass *createEmitFunctionTablePass ();
31 // Reoptimizer support pass: insert function profiling instrumentation
32 ModulePass *createFunctionProfilerPass();
34 // Reoptimizer support pass: insert block profiling instrumentation
35 ModulePass *createBlockProfilerPass();
37 // Reoptimizer support pass: insert edge profiling instrumentation
38 ModulePass *createEdgeProfilerPass();
40 // Reoptimizer support pass: insert basic block tracing instrumentation
41 ModulePass *createTraceBasicBlockPass();
43 // Reoptimizer support pass: insert counting of execute paths instrumentation
44 FunctionPass *createProfilePathsPass();
46 //===----------------------------------------------------------------------===//
47 // Support for inserting LLVM code to print values at basic block and function
51 // Just trace function entry/exit
52 FunctionPass *createTraceValuesPassForBasicBlocks();
54 // Trace BB's and methods
55 FunctionPass *createTraceValuesPassForFunction();
57 } // End llvm namespace