LLVM: llvm::GVNPass::ValueTable Class Reference (original) (raw)
This class holds the mapping between values and value numbers. More...
#include "[llvm/Transforms/Scalar/GVN.h](GVN%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| LLVM_ABI | ValueTable () |
| LLVM_ABI | ValueTable (const ValueTable &Arg) |
| LLVM_ABI | ValueTable (ValueTable &&Arg) |
| LLVM_ABI | ~ValueTable () |
| LLVM_ABI ValueTable & | operator= (const ValueTable &Arg) |
| LLVM_ABI uint32_t | lookupOrAdd (MemoryAccess *MA) |
| LLVM_ABI uint32_t | lookupOrAdd (Value *V) |
| lookupOrAdd - Returns the value number for the specified value, assigning it a new number if it did not have one before. | |
| LLVM_ABI uint32_t | lookup (Value *V, bool Verify=true) const |
| Returns the value number of the specified value. | |
| LLVM_ABI 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. | |
| LLVM_ABI uint32_t | phiTranslate (const BasicBlock *BB, const BasicBlock *PhiBlock, uint32_t Num, GVNPass &GVN) |
| Wrap phiTranslateImpl to provide caching functionality. | |
| LLVM_ABI void | eraseTranslateCacheEntry (uint32_t Num, const BasicBlock &CurrBlock) |
| Erase stale entry from phiTranslate cache so phiTranslate can be computed again. | |
| LLVM_ABI bool | exists (Value *V) const |
| Returns true if a value number exists for the specified value. | |
| LLVM_ABI void | add (Value *V, uint32_t Num) |
| add - Insert a value into the table with a specified value number. | |
| LLVM_ABI void | clear () |
| Remove all entries from the ValueTable. | |
| LLVM_ABI void | erase (Value *V) |
| Remove a value from the value numbering. | |
| void | setAliasAnalysis (AAResults *A) |
| AAResults * | getAliasAnalysis () const |
| void | setMemDep (MemoryDependenceResults *M, bool MDEnabled=true) |
| void | setMemorySSA (MemorySSA *M, bool MSSAEnabled=false) |
| void | setDomTree (DominatorTree *D) |
| uint32_t | getNextUnusedValueNumber () |
| LLVM_ABI 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 161 of file GVN.h.
| GVNPass::ValueTable::ValueTable ( ) | default |
|---|
◆ ValueTable() [2/3]
◆ ValueTable() [3/3]
| GVNPass::ValueTable::ValueTable ( ValueTable && Arg) | default |
|---|
◆ ~ValueTable()
| GVNPass::ValueTable::~ValueTable ( ) | default |
|---|
◆ add()
◆ clear()
| void GVNPass::ValueTable::clear | ( | ) |
|---|
◆ erase()
| void GVNPass::ValueTable::erase | ( | Value * | V | ) |
|---|
◆ eraseTranslateCacheEntry()
◆ exists()
| bool GVNPass::ValueTable::exists | ( | Value * | V | ) | const |
|---|
Returns true if a value number exists for the specified value.
Definition at line 638 of file GVN.cpp.
◆ getAliasAnalysis()
| AAResults * llvm::GVNPass::ValueTable::getAliasAnalysis ( ) const | inline |
|---|
Definition at line 232 of file GVN.h.
◆ getNextUnusedValueNumber()
| uint32_t llvm::GVNPass::ValueTable::getNextUnusedValueNumber ( ) | inline |
|---|
Definition at line 242 of file GVN.h.
◆ lookup()
Returns the value number of the specified value.
Fails if the value has not yet been numbered.
Definition at line 735 of file GVN.cpp.
References assert(), and Verify.
◆ lookupOrAdd() [1/2]
◆ lookupOrAdd() [2/2]
◆ lookupOrAddCmp()
Returns the value number of the given comparison, assigning it a new number if it did not have one before.
Useful when we deduced the result of a comparison, but don't immediately have an instruction realizing that comparison to hand.
Definition at line 748 of file GVN.cpp.
◆ operator=()
◆ phiTranslate()
◆ setAliasAnalysis()
| void llvm::GVNPass::ValueTable::setAliasAnalysis ( AAResults * A) | inline |
|---|
◆ setDomTree()
| void llvm::GVNPass::ValueTable::setDomTree ( DominatorTree * D) | inline |
|---|
◆ setMemDep()
◆ setMemorySSA()
| void llvm::GVNPass::ValueTable::setMemorySSA ( MemorySSA * M, bool MSSAEnabled = false ) | inline |
|---|
Definition at line 237 of file GVN.h.
◆ verifyRemoved()
| void GVNPass::ValueTable::verifyRemoved | ( | const Value * | V | ) | const |
|---|
verifyRemoved - Verify that the value is removed from all internal data structures.
Definition at line 781 of file GVN.cpp.
References assert().
The documentation for this class was generated from the following files: