diff options
author | Owen Anderson <resistor@mac.com> | 2010-10-07 18:31:27 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-10-07 18:31:27 +0000 |
commit | 1c8820d8d858aafcccbfa6b8820cadd915a6049b (patch) | |
tree | 9a4a4597e41e04afd46c74c2539acee1b067b25b | |
parent | 861f4c38de1654515377222c05d544b1442bdd00 (diff) | |
download | external_llvm-1c8820d8d858aafcccbfa6b8820cadd915a6049b.zip external_llvm-1c8820d8d858aafcccbfa6b8820cadd915a6049b.tar.gz external_llvm-1c8820d8d858aafcccbfa6b8820cadd915a6049b.tar.bz2 |
Add an implementation of the initialization routine for IPA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115947 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/IPA/IPA.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/IPA.cpp b/lib/Analysis/IPA/IPA.cpp new file mode 100644 index 0000000..0ba2e04 --- /dev/null +++ b/lib/Analysis/IPA/IPA.cpp @@ -0,0 +1,29 @@ +//===-- 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" + +using namespace llvm; + +/// initializeIPA - Initialize all passes linked into the IPA library. +void llvm::initializeIPA(PassRegistry &Registry) { + initializeBasicCallGraphPass(Registry); + initializeCallGraphAnalysisGroup(Registry); + initializeFindUsedTypesPass(Registry); + initializeGlobalsModRefPass(Registry); +} + +void LLVMInitializeIPA(LLVMPassRegistryRef R) { + initializeIPA(*unwrap(R)); +} |