2011-02-20 07:57:14 -05:00
|
|
|
//===-- Instrumentation.cpp - TransformUtils Infrastructure ---------------===//
|
|
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
//
|
|
|
|
|
// This file defines the common initialization infrastructure for the
|
|
|
|
|
// Instrumentation library.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
#include "llvm/InitializePasses.h"
|
|
|
|
|
#include "llvm-c/Initialization.h"
|
2014-11-24 04:08:18 -05:00
|
|
|
#include "llvm/PassRegistry.h"
|
2011-02-20 07:57:14 -05:00
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
|
|
/// initializeInstrumentation - Initialize all passes in the TransformUtils
|
|
|
|
|
/// library.
|
|
|
|
|
void llvm::initializeInstrumentation(PassRegistry &Registry) {
|
2012-08-15 15:34:23 -04:00
|
|
|
initializeAddressSanitizerPass(Registry);
|
2013-04-08 14:41:23 -04:00
|
|
|
initializeAddressSanitizerModulePass(Registry);
|
2012-08-15 15:34:23 -04:00
|
|
|
initializeBoundsCheckingPass(Registry);
|
|
|
|
|
initializeGCOVProfilerPass(Registry);
|
2015-01-18 11:17:27 -05:00
|
|
|
initializeInstrProfilingPass(Registry);
|
2013-04-08 14:41:23 -04:00
|
|
|
initializeMemorySanitizerPass(Registry);
|
2012-04-14 09:54:10 -04:00
|
|
|
initializeThreadSanitizerPass(Registry);
|
2015-01-18 11:17:27 -05:00
|
|
|
initializeSanitizerCoverageModulePass(Registry);
|
2013-12-21 19:04:03 -05:00
|
|
|
initializeDataFlowSanitizerPass(Registry);
|
2011-02-20 07:57:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// LLVMInitializeInstrumentation - C binding for
|
|
|
|
|
/// initializeInstrumentation.
|
|
|
|
|
void LLVMInitializeInstrumentation(LLVMPassRegistryRef R) {
|
|
|
|
|
initializeInstrumentation(*unwrap(R));
|
|
|
|
|
}
|