LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ObjCARC.cpp
Go to the documentation of this file.
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"
21 
22 namespace llvm {
23  class PassRegistry;
24 }
25 
26 using namespace llvm;
27 using namespace llvm::objcarc;
28 
29 /// \brief A handy option to enable/disable all ARC Optimizations.
32 EnableARCOptimizations("enable-objc-arc-opts",
33  cl::desc("enable/disable all ARC Optimizations"),
35  cl::init(true));
36 
37 /// initializeObjCARCOptsPasses - Initialize all passes linked into the
38 /// ObjCARCOpts library.
44  initializeObjCARCOptPass(Registry);
45 }
46 
49 }
void initializeObjCARCAPElimPass(PassRegistry &)
void initializeObjCARCOptPass(PassRegistry &)
LLVMContext ** unwrap(LLVMContextRef *Tys)
Definition: LLVMContext.h:119
void initializeObjCARCOpts(PassRegistry &)
Definition: ObjCARC.cpp:39
void initializeObjCARCAliasAnalysisPass(PassRegistry &)
void initializeObjCARCContractPass(PassRegistry &)
static cl::opt< bool, true > EnableARCOptimizations("enable-objc-arc-opts", cl::desc("enable/disable all ARC Optimizations"), cl::location(EnableARCOpts), cl::init(true))
bool EnableARCOpts
A handy option to enable/disable all ARC Optimizations.
Definition: ObjCARC.cpp:30
initializer< Ty > init(const Ty &Val)
Definition: CommandLine.h:314
struct LLVMOpaquePassRegistry * LLVMPassRegistryRef
Definition: Core.h:128
void LLVMInitializeObjCARCOpts(LLVMPassRegistryRef R)
Definition: ObjCARC.cpp:47
LocationClass< Ty > location(Ty &L)
Definition: CommandLine.h:333
void initializeObjCARCExpandPass(PassRegistry &)