1 //===-- ObjCARC.cpp --------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
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.
14 //===----------------------------------------------------------------------===//
16 #include "llvm/Transforms/ObjCARC.h"
17 #include "llvm-c/Initialization.h"
18 #include "llvm/Analysis/Passes.h"
19 #include "llvm/Analysis/Verifier.h"
20 #include "llvm/IR/DataLayout.h"
21 #include "llvm/InitializePasses.h"
22 #include "llvm/PassManager.h"
26 /// initializeObjCARCOptsPasses - Initialize all passes linked into the
27 /// ObjCARCOpts library.
28 void llvm::initializeObjCARCOpts(PassRegistry &Registry) {
29 initializeObjCARCAliasAnalysisPass(Registry);
30 initializeObjCARCAPElimPass(Registry);
31 initializeObjCARCExpandPass(Registry);
32 initializeObjCARCContractPass(Registry);
33 initializeObjCARCOptPass(Registry);
36 void LLVMInitializeObjCARCOpts(LLVMPassRegistryRef R) {
37 initializeObjCARCOpts(*unwrap(R));