[llvm-exegesis][NFC] Use accessors for Operand.
[llvm-core.git] / lib / Transforms / ObjCARC / ObjCARC.cpp
blobc30aaebd0f4d0d598b5dc060f90a6cede275cf85
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.
14 //===----------------------------------------------------------------------===//
16 #include "ObjCARC.h"
17 #include "llvm-c/Initialization.h"
18 #include "llvm/InitializePasses.h"
20 namespace llvm {
21 class PassRegistry;
24 using namespace llvm;
25 using namespace llvm::objcarc;
27 /// initializeObjCARCOptsPasses - Initialize all passes linked into the
28 /// ObjCARCOpts library.
29 void llvm::initializeObjCARCOpts(PassRegistry &Registry) {
30 initializeObjCARCAAWrapperPassPass(Registry);
31 initializeObjCARCAPElimPass(Registry);
32 initializeObjCARCExpandPass(Registry);
33 initializeObjCARCContractPass(Registry);
34 initializeObjCARCOptPass(Registry);
35 initializePAEvalPass(Registry);
38 void LLVMInitializeObjCARCOpts(LLVMPassRegistryRef R) {
39 initializeObjCARCOpts(*unwrap(R));