LLVM: llvm::objcarc::BottomUpPtrState Struct Reference (original) (raw)
#include "[Transforms/ObjCARC/PtrState.h](PtrState%5F8h%5Fsource.html)"
Inheritance diagram for llvm::objcarc::BottomUpPtrState:
| Additional Inherited Members | |
|---|---|
| Protected Member Functions inherited from llvm::objcarc::PtrState | |
| PtrState () | |
| Protected Attributes inherited from llvm::objcarc::PtrState | |
| bool | KnownPositiveRefCount = false |
| True if the reference count is known to be incremented. | |
| bool | Partial = false |
| 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. | |
| unsigned char | Seq: 8 |
| The current position in the sequence. | |
| RRInfo | RRI |
| Unidirectional information about the current sequence. |
Detailed Description
Constructor & Destructor Documentation
| llvm::objcarc::BottomUpPtrState::BottomUpPtrState ( ) | default |
|---|
References I.
Member Function Documentation
◆ HandlePotentialAlterRefCount()
Definition at line 226 of file PtrState.cpp.
References llvm::objcarc::CanDecrementRefCount(), llvm::dbgs(), llvm::objcarc::PtrState::GetSeq(), LLVM_DEBUG, llvm_unreachable, llvm::objcarc::S_CanRelease, llvm::objcarc::S_MovableRelease, llvm::objcarc::S_None, llvm::objcarc::S_Retain, llvm::objcarc::S_Stop, llvm::objcarc::S_Use, and llvm::objcarc::PtrState::SetSeq().
◆ HandlePotentialUse()
Definition at line 253 of file PtrState.cpp.
References assert(), llvm::objcarc::Call, llvm::objcarc::CanUse(), llvm::dbgs(), llvm::dyn_cast(), llvm::BasicBlock::end(), llvm::objcarc::GetBasicARCInstKind(), llvm::BasicBlock::getFirstInsertionPt(), llvm::ilist_node_impl< OptionsT >::getIterator(), llvm::objcarc::getreturnRVOperand(), llvm::objcarc::PtrState::GetSeq(), llvm::objcarc::hasAttachedCallOpBundle(), llvm::objcarc::PtrState::HasReverseInsertPts(), llvm::objcarc::PtrState::InsertReverseInsertPt(), llvm::isa(), LLVM_DEBUG, llvm_unreachable, llvm::objcarc::S_CanRelease, llvm::objcarc::S_MovableRelease, llvm::objcarc::S_None, llvm::objcarc::S_Retain, llvm::objcarc::S_Stop, llvm::objcarc::S_Use, llvm::objcarc::PtrState::SetCFGHazardAfflicted(), llvm::objcarc::PtrState::SetSeq(), and llvm::skipDebugIntrinsics().
◆ InitBottomUp()
(Re-)Initialize this bottom up pointer returning true if we detected a pointer with nested releases.
Definition at line 174 of file PtrState.cpp.
References llvm::cast(), llvm::dbgs(), llvm::objcarc::PtrState::GetSeq(), llvm::objcarc::PtrState::HasKnownPositiveRefCount(), I, llvm::objcarc::ImpreciseRelease, llvm::objcarc::PtrState::InsertCall(), llvm::objcarc::PtrState::InsertReverseInsertPt(), LLVM_DEBUG, llvm::objcarc::PtrState::ResetSequenceProgress(), llvm::objcarc::S_MovableRelease, llvm::objcarc::S_Stop, llvm::objcarc::PtrState::SetKnownPositiveRefCount(), llvm::objcarc::PtrState::SetKnownSafe(), llvm::objcarc::PtrState::SetReleaseMetadata(), and llvm::objcarc::PtrState::SetTailCallRelease().
◆ MatchWithRetain()
| bool BottomUpPtrState::MatchWithRetain | ( | ) |
|---|
Return true if this set of releases can be paired with a release.
Modifies state appropriately to reflect that the matching occurred 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 203 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_Retain, llvm::objcarc::S_Stop, llvm::objcarc::S_Use, and llvm::objcarc::PtrState::SetKnownPositiveRefCount().
The documentation for this struct was generated from the following files:
- lib/Transforms/ObjCARC/PtrState.h
- lib/Transforms/ObjCARC/PtrState.cpp