LLVM API Documentation
#include <ValueSymbolTable.h>
Public Types | |
Types | |
typedef StringMap< Value * > | ValueMap |
A mapping of names to values. More... | |
typedef ValueMap::iterator | iterator |
An iterator over a ValueMap. More... | |
typedef ValueMap::const_iterator | const_iterator |
A const_iterator over a ValueMap. More... | |
Public Member Functions | |
Constructors | |
ValueSymbolTable () | |
~ValueSymbolTable () | |
Accessors | |
Value * | lookup (StringRef Name) const |
Lookup a named Value. More... | |
bool | empty () const |
Determine if the symbol table is empty. More... | |
unsigned | size () const |
The number of name/type pairs is returned. More... | |
void | dump () const |
Print out symbol table on stderr. 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 34 of file ValueSymbolTable.h.
A const_iterator over a ValueMap.
Definition at line 52 of file ValueSymbolTable.h.
An iterator over a ValueMap.
Definition at line 49 of file ValueSymbolTable.h.
typedef StringMap<Value*> llvm::ValueSymbolTable::ValueMap |
A mapping of names to values.
Definition at line 46 of file ValueSymbolTable.h.
|
inline |
Definition at line 59 of file ValueSymbolTable.h.
ValueSymbolTable::~ValueSymbolTable | ( | ) |
Definition at line 24 of file ValueSymbolTable.cpp.
References llvm::StringMap< ValueTy, AllocatorTy >::begin(), llvm::dbgs(), llvm::StringMapImpl::empty(), and llvm::StringMap< ValueTy, AllocatorTy >::end().
|
inline |
Get an iterator that from the beginning of the symbol table.
Definition at line 90 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::begin().
Referenced by dump(), StripSymtab(), and WriteValueSymbolTable().
|
inline |
Get a const_iterator that from the beginning of the symbol table.
Definition at line 93 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::begin().
void ValueSymbolTable::dump | ( | ) | const |
Print out symbol table on stderr.
This function can be used from the debugger to display the content of the symbol table while debugging.
Definition at line 110 of file ValueSymbolTable.cpp.
|
inline |
Determine if the symbol table is empty.
Definition at line 75 of file ValueSymbolTable.h.
References llvm::StringMapImpl::empty().
Referenced by WriteValueSymbolTable().
|
inline |
Get an iterator to the end of the symbol table.
Definition at line 96 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::end().
Referenced by dump(), StripSymtab(), and WriteValueSymbolTable().
|
inline |
Get a const_iterator to the end of the symbol table.
Definition at line 99 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::end().
Lookup a named Value.
This method finds the value with the given Name
in the the symbol table.
Name
Definition at line 71 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::lookup().
Referenced by llvm::Module::getNamedValue().
|
inline |
The number of name/type pairs is returned.
Definition at line 78 of file ValueSymbolTable.h.
References llvm::StringMapImpl::size().
|
friend |
Definition at line 36 of file ValueSymbolTable.h.
|
friend |
Definition at line 37 of file ValueSymbolTable.h.
|
friend |
Definition at line 39 of file ValueSymbolTable.h.
|
friend |
Definition at line 41 of file ValueSymbolTable.h.
|
friend |
Definition at line 40 of file ValueSymbolTable.h.
|
friend |
Definition at line 38 of file ValueSymbolTable.h.
|
friend |
Definition at line 35 of file ValueSymbolTable.h.