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 ModulePass *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 FunctionPass *createEmitFunctionTablePass ();
32 //===----------------------------------------------------------------------===//
33 // Support for inserting LLVM code to print values at basic block and function
37 // Just trace function entry/exit
38 FunctionPass *createTraceValuesPassForBasicBlocks();
40 // Trace BB's and methods
41 FunctionPass *createTraceValuesPassForFunction();
43 } // End llvm namespace