|
LLVM
10.0.0
|
This class summarizes several per-pointer runtime properties which are propagated through the flow graph. More...
#include "Transforms/ObjCARC/PtrState.h"
Public Member Functions | |
| bool | IsKnownSafe () const |
| void | SetKnownSafe (const bool NewValue) |
| bool | IsTailCallRelease () const |
| void | SetTailCallRelease (const bool NewValue) |
| bool | IsTrackingImpreciseReleases () const |
| const MDNode * | GetReleaseMetadata () const |
| void | SetReleaseMetadata (MDNode *NewValue) |
| bool | IsCFGHazardAfflicted () const |
| void | SetCFGHazardAfflicted (const bool NewValue) |
| void | SetKnownPositiveRefCount () |
| void | ClearKnownPositiveRefCount () |
| bool | HasKnownPositiveRefCount () const |
| void | SetSeq (Sequence NewSeq) |
| Sequence | GetSeq () const |
| void | ClearSequenceProgress () |
| void | ResetSequenceProgress (Sequence NewSeq) |
| void | Merge (const PtrState &Other, bool TopDown) |
| void | InsertCall (Instruction *I) |
| void | InsertReverseInsertPt (Instruction *I) |
| void | ClearReverseInsertPts () |
| bool | HasReverseInsertPts () const |
| const RRInfo & | GetRRInfo () const |
Protected Member Functions | |
| PtrState () | |
Protected Attributes | |
| bool | KnownPositiveRefCount = false |
| True if the reference count is known to be incremented. More... | |
| 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. More... | |
| unsigned char | Seq: 8 |
| The current position in the sequence. More... | |
| RRInfo | RRI |
| Unidirectional information about the current sequence. More... | |
This class summarizes several per-pointer runtime properties which are propagated through the flow graph.
Definition at line 101 of file PtrState.h.
|
inlineprotected |
Definition at line 116 of file PtrState.h.
| void PtrState::ClearKnownPositiveRefCount | ( | ) |
Definition at line 132 of file PtrState.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
|
inline |
Definition at line 161 of file PtrState.h.
References llvm::objcarc::RRInfo::ReverseInsertPts.
|
inline |
Definition at line 152 of file PtrState.h.
References llvm::objcarc::RRInfo::Merge(), Other, and llvm::objcarc::S_None.
Referenced by CheckForCanReleaseCFGHazard(), and CheckForUseCFGHazard().
Definition at line 133 of file PtrState.h.
References llvm::objcarc::RRInfo::ReleaseMetadata.
Definition at line 165 of file PtrState.h.
Referenced by CheckForCanReleaseCFGHazard().
|
inline |
Definition at line 150 of file PtrState.h.
Referenced by CheckForCanReleaseCFGHazard(), Merge(), and llvm::operator<<().
|
inline |
Definition at line 146 of file PtrState.h.
Referenced by llvm::operator<<().
|
inline |
Definition at line 163 of file PtrState.h.
References llvm::objcarc::RRInfo::ReverseInsertPts.
|
inline |
Definition at line 157 of file PtrState.h.
References llvm::objcarc::RRInfo::Calls.
|
inline |
Definition at line 159 of file PtrState.h.
References llvm::objcarc::RRInfo::ReverseInsertPts.
|
inline |
Definition at line 137 of file PtrState.h.
References llvm::objcarc::RRInfo::CFGHazardAfflicted.
Referenced by llvm::operator<<().
|
inline |
Definition at line 119 of file PtrState.h.
References llvm::objcarc::RRInfo::KnownSafe.
Referenced by CheckForCanReleaseCFGHazard(), CheckForUseCFGHazard(), and llvm::operator<<().
|
inline |
Definition at line 123 of file PtrState.h.
References llvm::objcarc::RRInfo::IsTailCallRelease.
|
inline |
Definition at line 129 of file PtrState.h.
References llvm::objcarc::RRInfo::ReleaseMetadata.
Referenced by llvm::operator<<().
Definition at line 150 of file PtrState.cpp.
References GetSeq(), KnownPositiveRefCount, MergeSeqs(), Partial, RRI, and llvm::objcarc::S_None.
| void PtrState::ResetSequenceProgress | ( | Sequence | NewSeq | ) |
Definition at line 143 of file PtrState.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
Definition at line 139 of file PtrState.h.
References llvm::objcarc::RRInfo::CFGHazardAfflicted.
Referenced by CheckForCanReleaseCFGHazard(), and CheckForUseCFGHazard().
| void PtrState::SetKnownPositiveRefCount | ( | ) |
Definition at line 127 of file PtrState.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
Definition at line 121 of file PtrState.h.
References llvm::objcarc::RRInfo::KnownSafe.
|
inline |
Definition at line 135 of file PtrState.h.
References llvm::objcarc::RRInfo::ReleaseMetadata.
| void PtrState::SetSeq | ( | Sequence | NewSeq | ) |
Definition at line 137 of file PtrState.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
Definition at line 125 of file PtrState.h.
References llvm::objcarc::RRInfo::IsTailCallRelease.
True if the reference count is known to be incremented.
Definition at line 104 of file PtrState.h.
Referenced by Merge().
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.
Definition at line 108 of file PtrState.h.
Referenced by Merge().
|
protected |
Unidirectional information about the current sequence.
Definition at line 114 of file PtrState.h.
Referenced by Merge().
The current position in the sequence.
Definition at line 111 of file PtrState.h.
1.8.13