mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-23 12:11:58 +00:00
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
This commit is contained in:
parent
861f4c38de
commit
1c8820d8d8
29
lib/Analysis/IPA/IPA.cpp
Normal file
29
lib/Analysis/IPA/IPA.cpp
Normal file
@ -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));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user