|
LLVM
5.0.0
|
This class holds the mapping between values and value numbers. More...
#include "llvm/Transforms/Scalar/GVN.h"
Public Member Functions | |
| ValueTable () | |
| ValueTable (const ValueTable &Arg) | |
| ValueTable (ValueTable &&Arg) | |
| ~ValueTable () | |
| 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. More... | |
| uint32_t | lookup (Value *V) const |
| Returns the value number of the specified value. More... | |
| 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. More... | |
| bool | exists (Value *V) const |
| Returns true if a value number exists for the specified value. More... | |
| void | add (Value *V, uint32_t num) |
| add - Insert a value into the table with a specified value number. More... | |
| void | clear () |
| Remove all entries from the ValueTable. More... | |
| void | erase (Value *v) |
| Remove a value from the value numbering. More... | |
| void | setAliasAnalysis (AliasAnalysis *A) |
| AliasAnalysis * | 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. More... | |
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.
|
default |
|
default |
|
default |
| void GVN::ValueTable::clear | ( | ) |
Remove all entries from the ValueTable.
Definition at line 558 of file GVN.cpp.
Referenced by llvm::GVNHoist::run().
| void GVN::ValueTable::erase | ( | Value * | v | ) |
Remove a value from the value numbering.
Definition at line 565 of file GVN.cpp.
Referenced by llvm::GVN::markInstructionForDeletion().
|
inline |
Definition at line 98 of file GVN.h.
Referenced by llvm::GVN::getAliasAnalysis().
|
inline |
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 467 of file GVN.cpp.
References llvm::MCID::Add, llvm::MCID::Call, llvm::Instruction::getOpcode(), if(), llvm::MCID::Select, and VI.
Referenced by llvm::InsnInfo::insert(), llvm::LoadInfo::insert(), llvm::StoreInfo::insert(), and llvm::CallInfo::insert().
| uint32_t GVN::ValueTable::lookupOrAddCmp | ( | unsigned | Opcode, |
| CmpInst::Predicate | Predicate, | ||
| Value * | LHS, | ||
| Value * | RHS | ||
| ) |
|
inline |
|
inline |
|
inline |
Definition at line 99 of file GVN.h.
Referenced by llvm::GVNHoist::run().
1.8.6