|
LLVM
3.7.0
|
#include <PtrState.h>
Additional Inherited Members | |
Protected Member Functions inherited from llvm::objcarc::PtrState | |
| PtrState () | |
Protected Attributes inherited from llvm::objcarc::PtrState | |
| bool | KnownPositiveRefCount |
| True if the reference count is known to be incremented. More... | |
| bool | Partial |
| True if we've seen an opportunity for partial RR elimination, such as pushing calls into a CFG triangle or into one side of a CFG diamond. More... | |
| unsigned char | Seq: 8 |
| The current position in the sequence. More... | |
| RRInfo | RRI |
| Unidirectional information about the current sequence. More... | |
Definition at line 167 of file PtrState.h.
|
inline |
Definition at line 168 of file PtrState.h.
| bool BottomUpPtrState::HandlePotentialAlterRefCount | ( | Instruction * | Inst, |
| const Value * | Ptr, | ||
| ProvenanceAnalysis & | PA, | ||
| ARCInstKind | Class | ||
| ) |
Definition at line 215 of file PtrState.cpp.
References llvm::objcarc::CanAlterRefCount(), llvm::dbgs(), DEBUG, llvm::objcarc::PtrState::GetSeq(), llvm_unreachable, llvm::objcarc::S_CanRelease, llvm::objcarc::S_MovableRelease, llvm::objcarc::S_None, llvm::objcarc::S_Release, llvm::objcarc::S_Retain, llvm::objcarc::S_Stop, llvm::objcarc::S_Use, and llvm::objcarc::PtrState::SetSeq().
| void BottomUpPtrState::HandlePotentialUse | ( | BasicBlock * | BB, |
| Instruction * | Inst, | ||
| const Value * | Ptr, | ||
| ProvenanceAnalysis & | PA, | ||
| ARCInstKind | Class | ||
| ) |
Definition at line 243 of file PtrState.cpp.
References llvm::objcarc::CanUse(), llvm::dbgs(), DEBUG, llvm::BasicBlock::getFirstInsertionPt(), llvm::objcarc::PtrState::GetSeq(), llvm::objcarc::PtrState::HasReverseInsertPts(), llvm::objcarc::PtrState::InsertReverseInsertPt(), llvm::objcarc::IsUser(), llvm_unreachable, llvm::objcarc::S_CanRelease, llvm::objcarc::S_MovableRelease, llvm::objcarc::S_None, llvm::objcarc::S_Release, llvm::objcarc::S_Retain, llvm::objcarc::S_Stop, llvm::objcarc::S_Use, llvm::objcarc::PtrState::Seq, and llvm::objcarc::PtrState::SetSeq().
| bool BottomUpPtrState::InitBottomUp | ( | ARCMDKindCache & | Cache, |
| Instruction * | I | ||
| ) |
(Re-)Initialize this bottom up pointer returning true if we detected a pointer with nested releases.
Definition at line 165 of file PtrState.cpp.
References llvm::dbgs(), DEBUG, llvm::objcarc::ARCMDKindCache::get(), llvm::Instruction::getMetadata(), llvm::objcarc::PtrState::GetSeq(), llvm::objcarc::PtrState::HasKnownPositiveRefCount(), llvm::objcarc::ImpreciseRelease, llvm::objcarc::PtrState::InsertCall(), llvm::objcarc::PtrState::ResetSequenceProgress(), llvm::objcarc::S_MovableRelease, llvm::objcarc::S_Release, llvm::objcarc::PtrState::SetKnownPositiveRefCount(), llvm::objcarc::PtrState::SetKnownSafe(), llvm::objcarc::PtrState::SetReleaseMetadata(), and llvm::objcarc::PtrState::SetTailCallRelease().
| bool BottomUpPtrState::MatchWithRetain | ( | ) |
Return true if this set of releases can be paired with a release.
Modifies state appropriately to reflect that the matching occured if it is successful.
It is assumed that one has already checked that the RCIdentity of the retain and the RCIdentity of this ptr state are the same.
Definition at line 191 of file PtrState.cpp.
References llvm::objcarc::PtrState::ClearReverseInsertPts(), llvm::objcarc::PtrState::GetSeq(), llvm::objcarc::PtrState::IsTrackingImpreciseReleases(), llvm_unreachable, llvm::objcarc::S_CanRelease, llvm::objcarc::S_MovableRelease, llvm::objcarc::S_None, llvm::objcarc::S_Release, llvm::objcarc::S_Retain, llvm::objcarc::S_Stop, llvm::objcarc::S_Use, and llvm::objcarc::PtrState::SetKnownPositiveRefCount().
1.8.6