Line data Source code
1 : //===-- IPA.cpp -----------------------------------------------------------===//
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 implements the common initialization routines for the IPA library.
11 : //
12 : //===----------------------------------------------------------------------===//
13 :
14 : #include "llvm/InitializePasses.h"
15 : #include "llvm-c/Initialization.h"
16 : #include "llvm/PassRegistry.h"
17 :
18 : using namespace llvm;
19 :
20 : /// initializeIPA - Initialize all passes linked into the IPA library.
21 3901 : void llvm::initializeIPA(PassRegistry &Registry) {
22 3901 : initializeCallGraphWrapperPassPass(Registry);
23 3901 : initializeCallGraphPrinterPass(Registry);
24 3901 : initializeCallGraphViewerPass(Registry);
25 3901 : initializeGlobalsModRefPass(Registry);
26 3901 : }
27 :
28 0 : void LLVMInitializeIPA(LLVMPassRegistryRef R) {
29 0 : initializeIPA(*unwrap(R));
30 0 : }
|