Use BranchProbability instead of floating points in IfConverter.
[llvm/stm8.git] / lib / Transforms / Instrumentation / Instrumentation.cpp
blob71adc1ec6de080caf7476057aef634253619e966
1 //===-- Instrumentation.cpp - TransformUtils Infrastructure ---------------===//
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 the common initialization infrastructure for the
11 // Instrumentation library.
13 //===----------------------------------------------------------------------===//
15 #include "llvm/InitializePasses.h"
16 #include "llvm-c/Initialization.h"
18 using namespace llvm;
20 /// initializeInstrumentation - Initialize all passes in the TransformUtils
21 /// library.
22 void llvm::initializeInstrumentation(PassRegistry &Registry) {
23 initializeEdgeProfilerPass(Registry);
24 initializeOptimalEdgeProfilerPass(Registry);
25 initializePathProfilerPass(Registry);
26 initializeGCOVProfilerPass(Registry);
29 /// LLVMInitializeInstrumentation - C binding for
30 /// initializeInstrumentation.
31 void LLVMInitializeInstrumentation(LLVMPassRegistryRef R) {
32 initializeInstrumentation(*unwrap(R));