1 //===-- IPA.cpp -----------------------------------------------------------===//
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 implements the common initialization routines for the IPA library.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/InitializePasses.h"
15 #include "llvm-c/Initialization.h"
19 /// initializeIPA - Initialize all passes linked into the IPA library.
20 void llvm::initializeIPA(PassRegistry
&Registry
) {
21 initializeBasicCallGraphPass(Registry
);
22 initializeCallGraphAnalysisGroup(Registry
);
23 initializeFindUsedTypesPass(Registry
);
24 initializeGlobalsModRefPass(Registry
);
27 void LLVMInitializeIPA(LLVMPassRegistryRef R
) {
28 initializeIPA(*unwrap(R
));