[llvm-commits] [llvm] r115947 - /llvm/trunk/lib/Analysis/IPA/IPA.cpp

Owen Anderson resistor at mac.com
Thu Oct 7 11:31:27 PDT 2010


Author: resistor
Date: Thu Oct  7 13:31:27 2010
New Revision: 115947

URL: http://llvm.org/viewvc/llvm-project?rev=115947&view=rev
Log:
Add an implementation of the initialization routine for IPA.

Added:
    llvm/trunk/lib/Analysis/IPA/IPA.cpp

Added: llvm/trunk/lib/Analysis/IPA/IPA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/IPA.cpp?rev=115947&view=auto
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/IPA.cpp (added)
+++ llvm/trunk/lib/Analysis/IPA/IPA.cpp Thu Oct  7 13:31:27 2010
@@ -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));
+}





More information about the llvm-commits mailing list