LLVM  3.7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
llvm::objcarc::PtrState Class Reference

This class summarizes several per-pointer runtime properties which are propogated through the flow graph. More...

#include <PtrState.h>

Inheritance diagram for llvm::objcarc::PtrState:
[legend]
Collaboration diagram for llvm::objcarc::PtrState:
[legend]

Public Member Functions

bool IsKnownSafe () const
 
void SetKnownSafe (const bool NewValue)
 
bool IsTailCallRelease () const
 
void SetTailCallRelease (const bool NewValue)
 
bool IsTrackingImpreciseReleases () const
 
const MDNodeGetReleaseMetadata () 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 RRInfoGetRRInfo () const
 

Protected Member Functions

 PtrState ()
 

Protected Attributes

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...
 

Detailed Description

This class summarizes several per-pointer runtime properties which are propogated through the flow graph.

Definition at line 100 of file PtrState.h.

Constructor & Destructor Documentation

llvm::objcarc::PtrState::PtrState ( )
inlineprotected

Definition at line 115 of file PtrState.h.

Member Function Documentation

void PtrState::ClearKnownPositiveRefCount ( )
void llvm::objcarc::PtrState::ClearReverseInsertPts ( )
inline
void llvm::objcarc::PtrState::ClearSequenceProgress ( )
inline

Definition at line 151 of file PtrState.h.

References ResetSequenceProgress(), and llvm::objcarc::S_None.

Referenced by CheckForUseCFGHazard(), and Merge().

const MDNode* llvm::objcarc::PtrState::GetReleaseMetadata ( ) const
inline

Definition at line 132 of file PtrState.h.

References llvm::objcarc::RRInfo::ReleaseMetadata, and RRI.

const RRInfo& llvm::objcarc::PtrState::GetRRInfo ( ) const
inline

Definition at line 164 of file PtrState.h.

References RRI.

Sequence llvm::objcarc::PtrState::GetSeq ( ) const
inline
bool llvm::objcarc::PtrState::HasKnownPositiveRefCount ( ) const
inline
bool llvm::objcarc::PtrState::HasReverseInsertPts ( ) const
inline
void llvm::objcarc::PtrState::InsertCall ( Instruction I)
inline
void llvm::objcarc::PtrState::InsertReverseInsertPt ( Instruction I)
inline
bool llvm::objcarc::PtrState::IsCFGHazardAfflicted ( ) const
inline

Definition at line 136 of file PtrState.h.

References llvm::objcarc::RRInfo::CFGHazardAfflicted, and RRI.

Referenced by llvm::operator<<().

bool llvm::objcarc::PtrState::IsKnownSafe ( ) const
inline
bool llvm::objcarc::PtrState::IsTailCallRelease ( ) const
inline

Definition at line 122 of file PtrState.h.

References llvm::objcarc::RRInfo::IsTailCallRelease, and RRI.

bool llvm::objcarc::PtrState::IsTrackingImpreciseReleases ( ) const
inline
void PtrState::Merge ( const PtrState Other,
bool  TopDown 
)
void PtrState::ResetSequenceProgress ( Sequence  NewSeq)
void llvm::objcarc::PtrState::SetCFGHazardAfflicted ( const bool  NewValue)
inline

Definition at line 138 of file PtrState.h.

References llvm::objcarc::RRInfo::CFGHazardAfflicted, and RRI.

Referenced by CheckForUseCFGHazard().

void PtrState::SetKnownPositiveRefCount ( )
void llvm::objcarc::PtrState::SetKnownSafe ( const bool  NewValue)
inline
void llvm::objcarc::PtrState::SetReleaseMetadata ( MDNode NewValue)
inline
void PtrState::SetSeq ( Sequence  NewSeq)
void llvm::objcarc::PtrState::SetTailCallRelease ( const bool  NewValue)
inline

Member Data Documentation

bool llvm::objcarc::PtrState::KnownPositiveRefCount
protected

True if the reference count is known to be incremented.

Definition at line 103 of file PtrState.h.

Referenced by ClearKnownPositiveRefCount(), HasKnownPositiveRefCount(), Merge(), and SetKnownPositiveRefCount().

bool llvm::objcarc::PtrState::Partial
protected

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 107 of file PtrState.h.

Referenced by Merge(), and ResetSequenceProgress().

RRInfo llvm::objcarc::PtrState::RRI
protected
unsigned char llvm::objcarc::PtrState::Seq
protected

The current position in the sequence.

Definition at line 110 of file PtrState.h.

Referenced by GetSeq(), llvm::objcarc::BottomUpPtrState::HandlePotentialUse(), Merge(), and SetSeq().


The documentation for this class was generated from the following files: