| Owen Anderson | 98eb3ec | 2010-10-07 18:31:27 +0000 | [diff] [blame] | 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" | 
| Chandler Carruth | 8a8cd2b | 2014-01-07 11:48:04 +0000 | [diff] [blame] | 16 | #include "llvm/PassRegistry.h" | 
| Owen Anderson | 98eb3ec | 2010-10-07 18:31:27 +0000 | [diff] [blame] | 17 |  | 
|  | 18 | using namespace llvm; | 
|  | 19 |  | 
|  | 20 | /// initializeIPA - Initialize all passes linked into the IPA library. | 
|  | 21 | void llvm::initializeIPA(PassRegistry &Registry) { | 
| Chandler Carruth | 6378cf5 | 2013-11-26 04:19:30 +0000 | [diff] [blame] | 22 | initializeCallGraphWrapperPassPass(Registry); | 
| Andrew Trick | 962318f6 | 2013-01-11 17:28:14 +0000 | [diff] [blame] | 23 | initializeCallGraphPrinterPass(Registry); | 
|  | 24 | initializeCallGraphViewerPass(Registry); | 
| Owen Anderson | 98eb3ec | 2010-10-07 18:31:27 +0000 | [diff] [blame] | 25 | initializeFindUsedTypesPass(Registry); | 
|  | 26 | initializeGlobalsModRefPass(Registry); | 
|  | 27 | } | 
|  | 28 |  | 
|  | 29 | void LLVMInitializeIPA(LLVMPassRegistryRef R) { | 
|  | 30 | initializeIPA(*unwrap(R)); | 
|  | 31 | } |