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/PassRegistry.h"
17 #include "llvm-c/Initialization.h"
21 /// initializeInstrumentation - Initialize all passes in the TransformUtils
23 void llvm::initializeInstrumentation(PassRegistry &Registry) {
24 initializeAddressSanitizerPass(Registry);
25 initializeAddressSanitizerModulePass(Registry);
26 initializeBoundsCheckingPass(Registry);
27 initializeEdgeProfilerPass(Registry);
28 initializeGCOVProfilerPass(Registry);
29 initializeOptimalEdgeProfilerPass(Registry);
30 initializePathProfilerPass(Registry);
31 initializeMemorySanitizerPass(Registry);
32 initializeThreadSanitizerPass(Registry);
35 /// LLVMInitializeInstrumentation - C binding for
36 /// initializeInstrumentation.
37 void LLVMInitializeInstrumentation(LLVMPassRegistryRef R) {
38 initializeInstrumentation(*unwrap(R));