1 //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines constructor functions for instrumentation passes.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_H
15 #define LLVM_TRANSFORMS_INSTRUMENTATION_H
21 // Insert edge profiling instrumentation
22 ModulePass *createEdgeProfilerPass();
24 // Insert optimal edge profiling instrumentation
25 ModulePass *createOptimalEdgeProfilerPass();
27 // Insert path profiling instrumentation
28 ModulePass *createPathProfilerPass();
30 // Insert GCOV profiling instrumentation
31 ModulePass *createGCOVProfilerPass(bool EmitNotes = true, bool EmitData = true,
32 bool Use402Format = false,
33 bool UseExtraChecksum = false);
35 // Insert AddressSanitizer (address sanity checking) instrumentation
36 ModulePass *createAddressSanitizerPass();
38 } // End llvm namespace