blob: 1c1816dfd843a266d38cd8c675ca0753f93f0fbb [file] [log] [blame]
Owen Anderson1c8820d2010-10-07 18:31:27 +00001//===-- 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"
Filip Pizlo40be1e82013-05-01 20:59:00 +000015#include "llvm/PassRegistry.h"
Owen Anderson1c8820d2010-10-07 18:31:27 +000016#include "llvm-c/Initialization.h"
17
18using namespace llvm;
19
20/// initializeIPA - Initialize all passes linked into the IPA library.
21void llvm::initializeIPA(PassRegistry &Registry) {
22 initializeBasicCallGraphPass(Registry);
23 initializeCallGraphAnalysisGroup(Registry);
Andrew Tricka125cac2013-01-11 17:28:14 +000024 initializeCallGraphPrinterPass(Registry);
25 initializeCallGraphViewerPass(Registry);
Owen Anderson1c8820d2010-10-07 18:31:27 +000026 initializeFindUsedTypesPass(Registry);
27 initializeGlobalsModRefPass(Registry);
28}
29
30void LLVMInitializeIPA(LLVMPassRegistryRef R) {
31 initializeIPA(*unwrap(R));
32}