LLVM
8.0.1
|
This class provides a symbol table of name/value pairs. More...
#include "llvm/IR/ValueSymbolTable.h"
Public Types | |
Types | |
using | ValueMap = StringMap< Value * > |
A mapping of names to values. More... | |
using | iterator = ValueMap::iterator |
An iterator over a ValueMap. More... | |
using | const_iterator = ValueMap::const_iterator |
A const_iterator over a ValueMap. More... | |
Public Member Functions | |
Constructors | |
ValueSymbolTable () | |
~ValueSymbolTable () | |
Accessors | |
Value * | lookup (StringRef Name) const |
This method finds the value with the given Name in the the symbol table. More... | |
bool | empty () const |
unsigned | size () const |
The number of name/type pairs is returned. More... | |
void | dump () const |
This function can be used from the debugger to display the content of the symbol table while debugging. More... | |
Iteration | |
iterator | begin () |
Get an iterator that from the beginning of the symbol table. More... | |
const_iterator | begin () const |
Get a const_iterator that from the beginning of the symbol table. More... | |
iterator | end () |
Get an iterator to the end of the symbol table. More... | |
const_iterator | end () const |
Get a const_iterator to the end of the symbol table. More... | |
This class provides a symbol table of name/value pairs.
It is essentially a std::map<std::string,Value*> but has a controlled interface provided by LLVM as well as ensuring uniqueness of names.
Definition at line 38 of file ValueSymbolTable.h.
A const_iterator over a ValueMap.
Definition at line 58 of file ValueSymbolTable.h.
An iterator over a ValueMap.
Definition at line 55 of file ValueSymbolTable.h.
using llvm::ValueSymbolTable::ValueMap = StringMap<Value*> |
A mapping of names to values.
Definition at line 52 of file ValueSymbolTable.h.
|
inline |
Definition at line 64 of file ValueSymbolTable.h.
References ~ValueSymbolTable().
ValueSymbolTable::~ValueSymbolTable | ( | ) |
Definition at line 34 of file ValueSymbolTable.cpp.
References assert(), llvm::StringRef::begin(), llvm::dbgs(), llvm::StringMapEntry< ValueTy >::Destroy(), llvm::StringRef::end(), llvm::Value::getName(), llvm::Module::getTargetTriple(), llvm::Value::getValueName(), llvm::Value::hasName(), llvm::StringMap< ValueTy, AllocatorTy >::insert(), Name, llvm::StringMap< ValueTy, AllocatorTy >::remove(), llvm::SmallVectorImpl< T >::resize(), llvm::Value::setValueName(), llvm::SmallVectorBase::size(), and VI.
Referenced by ValueSymbolTable().
|
inline |
Get an iterator that from the beginning of the symbol table.
Definition at line 94 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::begin().
Referenced by llvm::ValueEnumerator::print(), and StripSymtab().
|
inline |
Get a const_iterator that from the beginning of the symbol table.
Definition at line 97 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::begin().
LLVM_DUMP_METHOD void ValueSymbolTable::dump | ( | ) | const |
This function can be used from the debugger to display the content of the symbol table while debugging.
Print out symbol table on stderr
Definition at line 119 of file ValueSymbolTable.cpp.
References I.
Referenced by size().
|
inline |
Definition at line 79 of file ValueSymbolTable.h.
References llvm::StringMapImpl::empty().
Referenced by emitSignedInt64().
|
inline |
Get an iterator to the end of the symbol table.
Definition at line 100 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::end().
Referenced by llvm::ValueEnumerator::print(), and StripSymtab().
|
inline |
Get a const_iterator to the end of the symbol table.
Definition at line 103 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::end(), and Name.
This method finds the value with the given Name
in the the symbol table.
Name
Lookup a named Value. Definition at line 75 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::lookup().
Referenced by createGlobalFwdRef(), FunctionNumber(), llvm::AMDGPULibFunc::getFunction(), llvm::Module::getNamedValue(), llvm::AMDGPULibFunc::getOrInsertFunction(), llvm::MIRParserImpl::initializeFrameInfo(), and toString().
|
inline |
The number of name/type pairs is returned.
Definition at line 82 of file ValueSymbolTable.h.
References dump(), and llvm::StringMapImpl::size().
|
friend |
Definition at line 39 of file ValueSymbolTable.h.
|
friend |
Definition at line 40 of file ValueSymbolTable.h.
|
friend |
Definition at line 41 of file ValueSymbolTable.h.
|
friend |
Definition at line 42 of file ValueSymbolTable.h.
|
friend |
Definition at line 43 of file ValueSymbolTable.h.
|
friend |
Definition at line 44 of file ValueSymbolTable.h.
|
friend |
Definition at line 45 of file ValueSymbolTable.h.
|
friend |
Definition at line 46 of file ValueSymbolTable.h.