|
| ValueTable () |
|
| ValueTable (const ValueTable &Arg) |
|
| ValueTable (ValueTable &&Arg) |
|
| ~ValueTable () |
|
ValueTable & | operator= (const ValueTable &Arg) |
|
uint32_t | lookupOrAdd (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.
|
|
uint32_t | lookup (Value *V, bool Verify=true) const |
| Returns the value number of the specified value.
|
|
uint32_t | lookupOrAddCmp (unsigned Opcode, CmpInst::Predicate Pred, Value *LHS, Value *RHS) |
| Returns the value number of the given comparison, assigning it a new number if it did not have one before.
|
|
uint32_t | phiTranslate (const BasicBlock *BB, const BasicBlock *PhiBlock, uint32_t Num, GVNPass &Gvn) |
| Wrap phiTranslateImpl to provide caching functionality.
|
|
void | eraseTranslateCacheEntry (uint32_t Num, const BasicBlock &CurrBlock) |
| Erase stale entry from phiTranslate cache so phiTranslate can be computed again.
|
|
bool | exists (Value *V) const |
| Returns true if a value number exists for the specified value.
|
|
void | add (Value *V, uint32_t num) |
| add - Insert a value into the table with a specified value number.
|
|
void | clear () |
| Remove all entries from the ValueTable.
|
|
void | erase (Value *v) |
| Remove a value from the value numbering.
|
|
void | setAliasAnalysis (AAResults *A) |
|
AAResults * | getAliasAnalysis () const |
|
void | setMemDep (MemoryDependenceResults *M) |
|
void | setDomTree (DominatorTree *D) |
|
uint32_t | getNextUnusedValueNumber () |
|
void | verifyRemoved (const Value *) const |
| verifyRemoved - Verify that the value is removed from all internal data structures.
|
|
This class holds the mapping between values and value numbers.
It is used as an efficient mechanism to determine the expression-wise equivalence of two values.
Definition at line 151 of file GVN.h.