]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/llvm/Transforms/Instrumentation.h
Update llvm to r84119.
[FreeBSD/FreeBSD.git] / include / llvm / Transforms / Instrumentation.h
1 //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file 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 // Insert function profiling instrumentation
23 ModulePass *createFunctionProfilerPass();
24
25 // Insert block profiling instrumentation
26 ModulePass *createBlockProfilerPass();
27
28 // Insert edge profiling instrumentation
29 ModulePass *createEdgeProfilerPass();
30
31 // Insert optimal edge profiling instrumentation
32 ModulePass *createOptimalEdgeProfilerPass();
33
34 // Random Sampling Profiling Framework
35 ModulePass* createNullProfilerRSPass();
36 FunctionPass* createRSProfilingPass();
37
38 } // End llvm namespace
39
40 #endif