2010-10-07 18:31:27 +00:00
|
|
|
//===-- IPA.cpp -----------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the common initialization routines for the IPA library.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/InitializePasses.h"
|
|
|
|
#include "llvm-c/Initialization.h"
|
2014-01-07 11:48:04 +00:00
|
|
|
#include "llvm/PassRegistry.h"
|
2010-10-07 18:31:27 +00:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
/// initializeIPA - Initialize all passes linked into the IPA library.
|
|
|
|
void llvm::initializeIPA(PassRegistry &Registry) {
|
2013-11-26 04:19:30 +00:00
|
|
|
initializeCallGraphWrapperPassPass(Registry);
|
2013-01-11 17:28:14 +00:00
|
|
|
initializeCallGraphPrinterPass(Registry);
|
|
|
|
initializeCallGraphViewerPass(Registry);
|
2010-10-07 18:31:27 +00:00
|
|
|
initializeGlobalsModRefPass(Registry);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LLVMInitializeIPA(LLVMPassRegistryRef R) {
|
|
|
|
initializeIPA(*unwrap(R));
|
|
|
|
}
|