LLVM
10.0.0
lib
Analysis
ObjCARCAnalysisUtils.cpp
Go to the documentation of this file.
1
//===- ObjCARCAnalysisUtils.cpp -------------------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file implements common infrastructure for libLLVMObjCARCOpts.a, which
10
// implements several scalar transformations over the LLVM intermediate
11
// representation, including the C bindings for that library.
12
//
13
//===----------------------------------------------------------------------===//
14
15
#include "
llvm/Analysis/ObjCARCAnalysisUtils.h
"
16
#include "
llvm/Support/CommandLine.h
"
17
18
using namespace
llvm
;
19
using namespace
llvm::objcarc
;
20
21
/// A handy option to enable/disable all ARC Optimizations.
22
bool
llvm::objcarc::EnableARCOpts
;
23
static
cl::opt<bool, true>
EnableARCOptimizations
(
24
"enable-objc-arc-opts"
,
cl::desc
(
"enable/disable all ARC Optimizations"
),
25
cl::location
(
EnableARCOpts
),
cl::init
(
true
),
cl::Hidden
);
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::cl::Hidden
Definition:
CommandLine.h:148
llvm::objcarc
Definition:
ObjCARCAliasAnalysis.h:29
llvm::objcarc::EnableARCOpts
bool EnableARCOpts
A handy option to enable/disable all ARC Optimizations.
Definition:
ObjCARCAnalysisUtils.cpp:22
CommandLine.h
llvm::cl::init
initializer< Ty > init(const Ty &Val)
Definition:
CommandLine.h:435
llvm::cl::desc
Definition:
CommandLine.h:406
ObjCARCAnalysisUtils.h
This file defines common analysis utilities used by the ObjC ARC Optimizer.
EnableARCOptimizations
static cl::opt< bool, true > EnableARCOptimizations("enable-objc-arc-opts", cl::desc("enable/disable all ARC Optimizations"), cl::location(EnableARCOpts), cl::init(true), cl::Hidden)
llvm::cl::opt
Definition:
CommandLine.h:1415
llvm::cl::location
LocationClass< Ty > location(Ty &L)
Definition:
CommandLine.h:451
Generated on Tue Mar 24 2020 13:08:45 for LLVM by
1.8.13