class ValueSymbolTable

Declaration

class ValueSymbolTable { /* full declaration omitted */ };

Description

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.

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:37

Method Overview

  • public ValueSymbolTable()
  • public inline llvm::ValueSymbolTable::iterator begin()
  • public inline llvm::ValueSymbolTable::const_iterator begin() const
  • public void dump() const
  • public inline bool empty() const
  • public inline llvm::ValueSymbolTable::iterator end()
  • public inline llvm::ValueSymbolTable::const_iterator end() const
  • public llvm::Value * lookup(llvm::StringRef Name) const
  • public inline unsigned int size() const
  • public ~ValueSymbolTable()

Methods

ValueSymbolTable()

Description

@ } @ {

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:63

inline llvm::ValueSymbolTable::iterator begin()

Description

Get an iterator that from the beginning of the symbol table.

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:93

inline llvm::ValueSymbolTable::const_iterator
begin() const

Description

Get a const_iterator that from the beginning of the symbol table.

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:96

void dump() const

Description

This function can be used from the debugger to display the content of the symbol table while debugging. Print out symbol table on stderr

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:86

inline bool empty() const

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:78

Returns

true iff the symbol table is empty Determine if the symbol table is empty

inline llvm::ValueSymbolTable::iterator end()

Description

Get an iterator to the end of the symbol table.

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:99

inline llvm::ValueSymbolTable::const_iterator
end() const

Description

Get a const_iterator to the end of the symbol table.

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:102

llvm::Value* lookup(llvm::StringRef Name) const

Description

This method finds the value with the given \p Name in the the symbol table.

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:74

Parameters

llvm::StringRef Name

Returns

the value associated with the \p Name Lookup a named Value.

inline unsigned int size() const

Description

The number of name/type pairs is returned.

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:81

~ValueSymbolTable()

Declared at: llvm/include/llvm/IR/ValueSymbolTable.h:64