LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ValueTable Class Reference

Collaboration diagram for ValueTable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ValueTable ()
uint32_t lookup_or_add (Value *V)
uint32_t lookup (Value *V) const
void add (Value *V, uint32_t num)
 add - Insert a value into the table with a specified value number.
void clear ()
 clear - Remove all entries from the ValueTable
void erase (Value *v)
 erase - Remove a value from the value numbering
unsigned size ()
 size - Return the number of assigned value numbers
void setAliasAnalysis (AliasAnalysis *A)
void setMemDep (MemoryDependenceAnalysis *M)
void setDomTree (DominatorTree *D)
uint32_t getNextUnusedValueNumber ()
 ValueTable ()
uint32_t lookup_or_add (Value *V)
uint32_t lookup (Value *V) const
void add (Value *V, uint32_t num)
void clear ()
void erase (Value *v)
unsigned size ()

Constructor & Destructor Documentation

ValueTable::ValueTable  )  [inline]
 

Definition at line 160 of file GVN.cpp.

ValueTable::ValueTable  )  [inline]
 

Definition at line 153 of file GVNPRE.cpp.


Member Function Documentation

void ValueTable::add Value V,
uint32_t  num
 

void ValueTable::add Value V,
uint32_t  num
 

add - Insert a value into the table with a specified value number.

add - Add the specified value with the given value number, removing its old number, if any

Definition at line 424 of file GVN.cpp.

References llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::insert().

void ValueTable::clear  ) 
 

void ValueTable::clear  ) 
 

clear - Remove all entries from the ValueTable

Definition at line 670 of file GVN.cpp.

References llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::clear().

void ValueTable::erase Value v  ) 
 

void ValueTable::erase Value v  ) 
 

erase - Remove a value from the value numbering

Definition at line 677 of file GVN.cpp.

References llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::erase().

uint32_t ValueTable::getNextUnusedValueNumber  )  [inline]
 

Definition at line 170 of file GVN.cpp.

uint32_t ValueTable::lookup Value V  )  const
 

uint32_t ValueTable::lookup Value V  )  const
 

lookup - Returns the value number of the specified value. Fails if the value has not yet been numbered.

Definition at line 663 of file GVN.cpp.

References llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::end(), and llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::find().

uint32_t ValueTable::lookup_or_add Value V  ) 
 

uint32_t ValueTable::lookup_or_add Value V  ) 
 

lookup_or_add - Returns the value number for the specified value, assigning it a new number if it did not have one before.

Definition at line 430 of file GVN.cpp.

References llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::begin(), llvm::AliasAnalysis::doesNotAccessMemory(), llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::end(), llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::find(), llvm::CallInst::getCalledFunction(), llvm::MemoryDependenceAnalysis::getDependency(), llvm::MemoryDependenceAnalysis::getNonLocalDependency(), llvm::User::getNumOperands(), llvm::User::getOperand(), llvm::Instruction::getParent(), llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::insert(), llvm::AliasAnalysis::onlyReadsMemory(), and llvm::DominatorTree::properlyDominates().

void ValueTable::setAliasAnalysis AliasAnalysis A  )  [inline]
 

Definition at line 167 of file GVN.cpp.

void ValueTable::setDomTree DominatorTree D  )  [inline]
 

Definition at line 169 of file GVN.cpp.

void ValueTable::setMemDep MemoryDependenceAnalysis M  )  [inline]
 

Definition at line 168 of file GVN.cpp.

unsigned ValueTable::size  ) 
 

unsigned ValueTable::size  ) 
 

size - Return the number of assigned value numbers

Definition at line 600 of file GVNPRE.cpp.


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


This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.