LLVM API Documentation
#include <ValueSymbolTable.h>
Collaboration diagram for llvm::ValueSymbolTable:

Public Types | |
Types | |
| typedef StringMap< Value * > | ValueMap |
| A mapping of names to values. | |
| typedef ValueMap::iterator | iterator |
| An iterator over a ValueMap. | |
| typedef ValueMap::const_iterator | const_iterator |
| A const_iterator over a ValueMap. | |
Public Member Functions | |
Constructors | |
| ValueSymbolTable () | |
| ~ValueSymbolTable () | |
Accessors | |
| Value * | lookup (const std::string &name) const |
| Lookup a named Value. | |
| Value * | lookup (const char *NameBegin, const char *NameEnd) const |
| bool | empty () const |
| Determine if the symbol table is empty. | |
| unsigned | size () const |
| The number of name/type pairs is returned. | |
| void | dump () const |
| Print out symbol table on stderr. | |
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. | |
Friends | |
| class | Value |
| class | SymbolTableListTraits<Argument, Function> |
| class | SymbolTableListTraits<BasicBlock, Function> |
| class | SymbolTableListTraits<Instruction, BasicBlock> |
| class | SymbolTableListTraits<Function, Module> |
| class | SymbolTableListTraits<GlobalVariable, Module> |
| class | SymbolTableListTraits<GlobalAlias, Module> |
Definition at line 32 of file ValueSymbolTable.h.
|
|
A const_iterator over a ValueMap.
Definition at line 50 of file ValueSymbolTable.h. |
|
|
An iterator over a ValueMap.
Definition at line 47 of file ValueSymbolTable.h. Referenced by ~ValueSymbolTable(). |
|
|
A mapping of names to values.
Definition at line 44 of file ValueSymbolTable.h. |
|
|
Definition at line 57 of file ValueSymbolTable.h. |
|
|
Definition at line 23 of file ValueSymbolTable.cpp. References llvm::StringMap< ValueTy, AllocatorTy >::begin(), llvm::StringMapImpl::empty(), llvm::StringMap< ValueTy, AllocatorTy >::end(), and iterator. |
|
|
Get a const_iterator that from the beginning of the symbol table.
Definition at line 92 of file ValueSymbolTable.h. |
|
|
Get an iterator that from the beginning of the symbol table.
Definition at line 89 of file ValueSymbolTable.h. Referenced by dump(), StripSymtab(), and WriteValueSymbolTable(). |
|
|
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 128 of file ValueSymbolTable.cpp. References begin(), const_iterator, llvm::Value::dump(), end(), and llvm::StringMapEntry< ValueTy >::getValue(). |
|
|
Determine if the symbol table is empty.
Definition at line 74 of file ValueSymbolTable.h. Referenced by WriteValueSymbolTable(). |
|
|
Get a const_iterator to the end of the symbol table.
Definition at line 98 of file ValueSymbolTable.h. |
|
|
Get an iterator to the end of the symbol table.
Definition at line 95 of file ValueSymbolTable.h. Referenced by dump(), StripSymtab(), and WriteValueSymbolTable(). |
|
||||||||||||
|
Definition at line 42 of file ValueSymbolTable.cpp. References const_iterator, llvm::StringMap< ValueTy, AllocatorTy >::end(), and llvm::StringMap< ValueTy, AllocatorTy >::find(). |
|
|
Lookup a named Value.
This method finds the value with the given
Definition at line 35 of file ValueSymbolTable.cpp. References const_iterator, llvm::StringMap< ValueTy, AllocatorTy >::end(), and llvm::StringMap< ValueTy, AllocatorTy >::find(). Referenced by ForceRenaming(), Module::getFunction(), Module::getGlobalVariable(), Module::getNamedAlias(), Module::getOrInsertFunction(), LinkFunctionProtos(), and LinkGlobals(). |
|
|
The number of name/type pairs is returned.
Definition at line 77 of file ValueSymbolTable.h. |
|
|
Definition at line 34 of file ValueSymbolTable.h. |
|
|
Definition at line 35 of file ValueSymbolTable.h. |
|
|
Definition at line 37 of file ValueSymbolTable.h. |
|
|
Definition at line 39 of file ValueSymbolTable.h. |
|
|
Definition at line 38 of file ValueSymbolTable.h. |
|
|
Definition at line 36 of file ValueSymbolTable.h. |
|
|
Definition at line 33 of file ValueSymbolTable.h. |