[PM/AA] Rebuild LLVM's alias analysis infrastructure in a way compatible
[oota-llvm.git] / lib / Transforms / ObjCARC / ObjCARC.cpp
1 //===-- ObjCARC.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 common infrastructure for libLLVMObjCARCOpts.a, which
11 // implements several scalar transformations over the LLVM intermediate
12 // representation, including the C bindings for that library.
13 //
14 //===----------------------------------------------------------------------===//
15
16 #include "ObjCARC.h"
17 #include "llvm-c/Core.h"
18 #include "llvm-c/Initialization.h"
19 #include "llvm/InitializePasses.h"
20 #include "llvm/Support/CommandLine.h"
21
22 namespace llvm {
23   class PassRegistry;
24 }
25
26 using namespace llvm;
27 using namespace llvm::objcarc;
28
29 /// initializeObjCARCOptsPasses - Initialize all passes linked into the
30 /// ObjCARCOpts library.
31 void llvm::initializeObjCARCOpts(PassRegistry &Registry) {
32   initializeObjCARCAAWrapperPassPass(Registry);
33   initializeObjCARCAPElimPass(Registry);
34   initializeObjCARCExpandPass(Registry);
35   initializeObjCARCContractPass(Registry);
36   initializeObjCARCOptPass(Registry);
37   initializePAEvalPass(Registry);
38 }
39
40 void LLVMInitializeObjCARCOpts(LLVMPassRegistryRef R) {
41   initializeObjCARCOpts(*unwrap(R));
42 }