1 //===-- Instrumentation.cpp - TransformUtils Infrastructure ---------------===//
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 the common initialization infrastructure for the
11 // Instrumentation library.
13 //===----------------------------------------------------------------------===//
15 #include "llvm/InitializePasses.h"
16 #include "llvm-c/Initialization.h"
20 /// initializeInstrumentation - Initialize all passes in the TransformUtils
22 void llvm::initializeInstrumentation(PassRegistry &Registry) {
23 initializeEdgeProfilerPass(Registry);
24 initializeOptimalEdgeProfilerPass(Registry);
25 initializePathProfilerPass(Registry);
26 initializeGCOVProfilerPass(Registry);
27 initializeAddressSanitizerPass(Registry);
30 /// LLVMInitializeInstrumentation - C binding for
31 /// initializeInstrumentation.
32 void LLVMInitializeInstrumentation(LLVMPassRegistryRef R) {
33 initializeInstrumentation(*unwrap(R));