LLVM 20.0.0git
|
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. | |
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) | |
~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. | |
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::map<std::string,Value*> but has a controlled interface provided by LLVM as well as ensuring uniqueness of names.
Definition at line 39 of file ValueSymbolTable.h.
A const_iterator over a ValueMap.
Definition at line 60 of file ValueSymbolTable.h.
An iterator over a ValueMap.
Definition at line 57 of file ValueSymbolTable.h.
using llvm::ValueSymbolTable::ValueMap = StringMap<Value*> |
A mapping of names to values.
Definition at line 54 of file ValueSymbolTable.h.
|
inline |
Definition at line 66 of file ValueSymbolTable.h.
ValueSymbolTable::~ValueSymbolTable | ( | ) |
Definition at line 33 of file ValueSymbolTable.cpp.
References assert(), and llvm::dbgs().
|
inline |
Get an iterator that from the beginning of the symbol table.
Definition at line 101 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::begin().
|
inline |
Get a const_iterator that from the beginning of the symbol table.
Definition at line 104 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 133 of file ValueSymbolTable.cpp.
References I.
|
inline |
Definition at line 86 of file ValueSymbolTable.h.
References llvm::StringMapImpl::empty().
|
inline |
Get an iterator to the end of the symbol table.
Definition at line 107 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::end().
|
inline |
Get a const_iterator to the end of the symbol table.
Definition at line 110 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::end().
This method finds the value with the given Name
in the the symbol table.
Name
Lookup a named Value. Definition at line 77 of file ValueSymbolTable.h.
References llvm::StringMap< ValueTy, AllocatorTy >::lookup(), and Name.
Referenced by parseIRValue().
|
inline |
The number of name/type pairs is returned.
Definition at line 89 of file ValueSymbolTable.h.
References llvm::StringMapImpl::size().
Referenced by llvm::Module::getNumNamedValues().
|
friend |
Definition at line 1 of file ValueSymbolTable.h.
|
friend |
Definition at line 1 of file ValueSymbolTable.h.
|
friend |
Definition at line 1 of file ValueSymbolTable.h.
|
friend |
Definition at line 1 of file ValueSymbolTable.h.
|
friend |
Definition at line 1 of file ValueSymbolTable.h.
|
friend |
Definition at line 1 of file ValueSymbolTable.h.
|
friend |
Definition at line 1 of file ValueSymbolTable.h.
|
friend |
Definition at line 48 of file ValueSymbolTable.h.