LLVM API Documentation

IPA.cpp
Go to the documentation of this file.
00001 //===-- IPA.cpp -----------------------------------------------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file implements the common initialization routines for the IPA library.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "llvm/InitializePasses.h"
00015 #include "llvm-c/Initialization.h"
00016 #include "llvm/PassRegistry.h"
00017 
00018 using namespace llvm;
00019 
00020 /// initializeIPA - Initialize all passes linked into the IPA library.
00021 void llvm::initializeIPA(PassRegistry &Registry) {
00022   initializeCallGraphWrapperPassPass(Registry);
00023   initializeCallGraphPrinterPass(Registry);
00024   initializeCallGraphViewerPass(Registry);
00025   initializeFindUsedTypesPass(Registry);
00026   initializeGlobalsModRefPass(Registry);
00027 }
00028 
00029 void LLVMInitializeIPA(LLVMPassRegistryRef R) {
00030   initializeIPA(*unwrap(R));
00031 }