LLVM  5.0.0
Public Types | Public Member Functions | List of all members
CongruenceClass Class Reference

Public Types

using MemberType = Value
 
using MemberSet = SmallPtrSet< MemberType *, 4 >
 
using MemoryMemberType = MemoryPhi
 
using MemoryMemberSet = SmallPtrSet< const MemoryMemberType *, 2 >
 

Public Member Functions

 CongruenceClass (unsigned ID)
 
 CongruenceClass (unsigned ID, Value *Leader, const Expression *E)
 
unsigned getID () const
 
bool isDead () const
 
Value * getLeader () const
 
void setLeader (Value *Leader)
 
const std::pair< Value
*, unsigned int > & 
getNextLeader () const
 
void resetNextLeader ()
 
void addPossibleNextLeader (std::pair< Value *, unsigned int > LeaderPair)
 
Value * getStoredValue () const
 
void setStoredValue (Value *Leader)
 
const MemoryAccess * getMemoryLeader () const
 
void setMemoryLeader (const MemoryAccess *Leader)
 
const Expression * getDefiningExpr () const
 
bool empty () const
 
unsigned size () const
 
MemberSet::const_iterator begin () const
 
MemberSet::const_iterator end () const
 
void insert (MemberType *M)
 
void erase (MemberType *M)
 
void swap (MemberSet &Other)
 
bool memory_empty () const
 
unsigned memory_size () const
 
MemoryMemberSet::const_iterator memory_begin () const
 
MemoryMemberSet::const_iterator memory_end () const
 
iterator_range
< MemoryMemberSet::const_iterator > 
memory () const
 
void memory_insert (const MemoryMemberType *M)
 
void memory_erase (const MemoryMemberType *M)
 
unsigned getStoreCount () const
 
void incStoreCount ()
 
void decStoreCount ()
 
bool definesNoMemory () const
 
bool isEquivalentTo (const CongruenceClass *Other) const
 

Detailed Description

Definition at line 258 of file NewGVN.cpp.

Member Typedef Documentation

Definition at line 261 of file NewGVN.cpp.

Definition at line 260 of file NewGVN.cpp.

Definition at line 263 of file NewGVN.cpp.

Definition at line 262 of file NewGVN.cpp.

Constructor & Destructor Documentation

CongruenceClass::CongruenceClass ( unsigned  ID)
inlineexplicit

Definition at line 265 of file NewGVN.cpp.

CongruenceClass::CongruenceClass ( unsigned  ID,
Value *  Leader,
const Expression *  E 
)
inline

Definition at line 266 of file NewGVN.cpp.

Member Function Documentation

void CongruenceClass::addPossibleNextLeader ( std::pair< Value *, unsigned int >  LeaderPair)
inline

Definition at line 284 of file NewGVN.cpp.

MemberSet::const_iterator CongruenceClass::begin ( ) const
inline

Definition at line 300 of file NewGVN.cpp.

void CongruenceClass::decStoreCount ( )
inline

Definition at line 324 of file NewGVN.cpp.

References assert().

bool CongruenceClass::definesNoMemory ( ) const
inline

Definition at line 330 of file NewGVN.cpp.

bool CongruenceClass::empty ( ) const
inline

Definition at line 298 of file NewGVN.cpp.

MemberSet::const_iterator CongruenceClass::end ( ) const
inline

Definition at line 301 of file NewGVN.cpp.

void CongruenceClass::erase ( MemberType *  M)
inline

Definition at line 303 of file NewGVN.cpp.

const Expression* CongruenceClass::getDefiningExpr ( ) const
inline

Definition at line 295 of file NewGVN.cpp.

unsigned CongruenceClass::getID ( ) const
inline

Definition at line 268 of file NewGVN.cpp.

Value* CongruenceClass::getLeader ( ) const
inline

Definition at line 277 of file NewGVN.cpp.

const MemoryAccess* CongruenceClass::getMemoryLeader ( ) const
inline

Definition at line 291 of file NewGVN.cpp.

const std::pair<Value *, unsigned int>& CongruenceClass::getNextLeader ( ) const
inline

Definition at line 279 of file NewGVN.cpp.

unsigned CongruenceClass::getStoreCount ( ) const
inline

Definition at line 322 of file NewGVN.cpp.

Value* CongruenceClass::getStoredValue ( ) const
inline

Definition at line 289 of file NewGVN.cpp.

void CongruenceClass::incStoreCount ( )
inline

Definition at line 323 of file NewGVN.cpp.

void CongruenceClass::insert ( MemberType *  M)
inline

Definition at line 302 of file NewGVN.cpp.

bool CongruenceClass::isDead ( ) const
inline

Definition at line 271 of file NewGVN.cpp.

bool CongruenceClass::isEquivalentTo ( const CongruenceClass *  Other) const
inline

Definition at line 335 of file NewGVN.cpp.

iterator_range<MemoryMemberSet::const_iterator> CongruenceClass::memory ( ) const
inline

Definition at line 315 of file NewGVN.cpp.

References llvm::make_range().

MemoryMemberSet::const_iterator CongruenceClass::memory_begin ( ) const
inline

Definition at line 309 of file NewGVN.cpp.

bool CongruenceClass::memory_empty ( ) const
inline

Definition at line 307 of file NewGVN.cpp.

MemoryMemberSet::const_iterator CongruenceClass::memory_end ( ) const
inline

Definition at line 312 of file NewGVN.cpp.

void CongruenceClass::memory_erase ( const MemoryMemberType *  M)
inline

Definition at line 319 of file NewGVN.cpp.

void CongruenceClass::memory_insert ( const MemoryMemberType *  M)
inline

Definition at line 318 of file NewGVN.cpp.

unsigned CongruenceClass::memory_size ( ) const
inline

Definition at line 308 of file NewGVN.cpp.

void CongruenceClass::resetNextLeader ( )
inline

Definition at line 282 of file NewGVN.cpp.

void CongruenceClass::setLeader ( Value *  Leader)
inline

Definition at line 278 of file NewGVN.cpp.

void CongruenceClass::setMemoryLeader ( const MemoryAccess *  Leader)
inline

Definition at line 292 of file NewGVN.cpp.

void CongruenceClass::setStoredValue ( Value *  Leader)
inline

Definition at line 290 of file NewGVN.cpp.

unsigned CongruenceClass::size ( ) const
inline

Definition at line 299 of file NewGVN.cpp.

void CongruenceClass::swap ( MemberSet &  Other)
inline

Definition at line 304 of file NewGVN.cpp.


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