LLVM: llvm::ValueSymbolTable Class Reference (original) (raw)
This class provides a symbol table of name/value pairs. More...
#include "[llvm/IR/ValueSymbolTable.h](ValueSymbolTable%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| Types | |
| using | ValueMap = StringMap<Value*> |
| A mapping of names to values. | |
| using | iterator = ValueMap::iterator |
| An iterator over a ValueMap. | |
| using | const_iterator = ValueMap::const_iterator |
| A const_iterator over a ValueMap. |
| Public Member Functions | |
|---|---|
| Constructors | |
| ValueSymbolTable (int MaxNameSize=-1) | |
| LLVM_ABI | ~ValueSymbolTable () |
| Accessors | |
| Value * | lookup (StringRef Name) const |
| This method finds the value with the given Name in the the symbol table. | |
| bool | empty () const |
| unsigned | size () const |
| The number of name/type pairs is returned. | |
| LLVM_ABI void | dump () const |
| This function can be used from the debugger to display the content of the symbol table while debugging. | |
| Iteration | |
| iterator | begin () |
| Get an iterator that from the beginning of the symbol table. | |
| const_iterator | begin () const |
| Get a const_iterator that from the beginning of the symbol table. | |
| iterator | end () |
| Get an iterator to the end of the symbol table. | |
| const_iterator | end () const |
| Get a const_iterator to the end of the symbol table. |
This class provides a symbol table of name/value pairs.
It is essentially a std::mapstd::string,Value\* but has a controlled interface provided by LLVM as well as ensuring uniqueness of names.
Definition at line 40 of file ValueSymbolTable.h.
◆ const_iterator
◆ iterator
◆ ValueMap
| llvm::ValueSymbolTable::ValueSymbolTable ( int MaxNameSize = -1) | inline |
|---|
◆ ~ValueSymbolTable()
| ValueSymbolTable::~ValueSymbolTable | ( | ) |
|---|
◆ begin() [1/2]
| iterator llvm::ValueSymbolTable::begin ( ) | inline |
|---|
Get an iterator that from the beginning of the symbol table.
Definition at line 102 of file ValueSymbolTable.h.
◆ begin() [2/2]
| const_iterator llvm::ValueSymbolTable::begin ( ) const | inline |
|---|
◆ dump()
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 132 of file ValueSymbolTable.cpp.
References I, and LLVM_DUMP_METHOD.
◆ empty()
| bool llvm::ValueSymbolTable::empty ( ) const | inline |
|---|
Returns
true iff the symbol table is empty Determine if the symbol table is empty
Definition at line 87 of file ValueSymbolTable.h.
◆ end() [1/2]
| iterator llvm::ValueSymbolTable::end ( ) | inline |
|---|
◆ end() [2/2]
| const_iterator llvm::ValueSymbolTable::end ( ) const | inline |
|---|
◆ lookup()
This method finds the value with the given Name in the the symbol table.
Returns
the value associated with the Name Lookup a named Value.
Definition at line 78 of file ValueSymbolTable.h.
References Value.
Referenced by parseIRValue().
◆ size()
| unsigned llvm::ValueSymbolTable::size ( ) const | inline |
|---|
◆ SymbolTableListTraits< Argument >
◆ SymbolTableListTraits< BasicBlock >
◆ SymbolTableListTraits< Function >
◆ SymbolTableListTraits< GlobalAlias >
◆ SymbolTableListTraits< GlobalIFunc >
◆ SymbolTableListTraits< GlobalVariable >
◆ SymbolTableListTraits< Instruction, ilist_iterator_bits< true >, ilist_parent< BasicBlock > >
◆ Value
The documentation for this class was generated from the following files:
- include/llvm/IR/ValueSymbolTable.h
- lib/IR/ValueSymbolTable.cpp