25 "enable-objc-arc-opts",
cl::desc(
"enable/disable all ARC Optimizations"),
39 if (
const LoadInst *LI = dyn_cast<LoadInst>(Op))
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)
This file defines common analysis utilities used by the ObjC ARC Optimizer.
bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal=false)
Checks whether the given location points to constant memory, or if OrLocal is true whether it points ...
An instruction for reading from memory.
LLVM Value Representation.
initializer< Ty > init(const Ty &Val)
LocationClass< Ty > location(Ty &L)
bool IsPotentialRetainableObjPtr(const Value *Op)
Test whether the given value is possible a retainable object pointer.
bool EnableARCOpts
A handy option to enable/disable all ARC Optimizations.
This is an optimization pass for GlobalISel generic memory operations.