[objc-arc] Add the predicate CanDecrementRefCount.
[oota-llvm.git] / lib / Transforms / ObjCARC / DependencyAnalysis.h
index 77e4bdf5021095bbeab419e72b71c6ef6f479e6b..e5f9db9ada1201a41798de0bedfe5e6b53e515e4 100644 (file)
@@ -71,6 +71,11 @@ bool CanUse(const Instruction *Inst, const Value *Ptr, ProvenanceAnalysis &PA,
 bool CanAlterRefCount(const Instruction *Inst, const Value *Ptr,
                       ProvenanceAnalysis &PA, ARCInstKind Class);
 
+/// Returns true if we can not conservatively prove that Inst can not decrement
+/// the reference count of Ptr. Returns false if we can.
+bool CanDecrementRefCount(const Instruction *Inst, const Value *Ptr,
+                          ProvenanceAnalysis &PA, ARCInstKind Class);
+
 } // namespace objcarc
 } // namespace llvm