|
LLZK 0.1.0
Veridise's ZK Language IR
|
Builds a tree structure representing the symbol table structure. More...
#include <SymbolDefTree.h>
Public Types | |
| using | iterator = NodeIterator |
| An iterator over the nodes of the tree. | |
Public Member Functions | |
| SymbolDefTree (mlir::SymbolOpInterface root) | |
| const SymbolDefTreeNode * | lookupNode (mlir::SymbolOpInterface symbolOp) const |
| Lookup the node for the given symbol Op, or nullptr if none exists. | |
| const SymbolDefTreeNode * | getRoot () const |
| Returns the symbolic (i.e., no associated op) root node of the tree. | |
| size_t | size () const |
| Return total number of nodes in the tree. | |
| iterator | begin () const |
| iterator | end () const |
| llvm::iterator_range< iterator > | nodeIter () const |
| void | dump () const |
| Dump the tree in a human readable format. | |
| void | print (llvm::raw_ostream &os) const |
| void | dumpToDotFile (std::string filename="") const |
| Dump the tree to file in dot graph format. | |
Builds a tree structure representing the symbol table structure.
There is a node for each Symbol Operation and the parent is the SymbolTable that defines the Symbol.
Definition at line 71 of file SymbolDefTree.h.
| using llzk::SymbolDefTree::iterator = NodeIterator |
An iterator over the nodes of the tree.
Definition at line 117 of file SymbolDefTree.h.
| llzk::SymbolDefTree::SymbolDefTree | ( | mlir::SymbolOpInterface | root | ) |
Definition at line 55 of file SymbolDefTree.cpp.
|
inline |
Definition at line 118 of file SymbolDefTree.h.
|
inline |
Dump the tree in a human readable format.
Definition at line 126 of file SymbolDefTree.h.
| void llzk::SymbolDefTree::dumpToDotFile | ( | std::string | filename = "" | ) | const |
Dump the tree to file in dot graph format.
Definition at line 131 of file SymbolDefTree.cpp.
|
inline |
Definition at line 119 of file SymbolDefTree.h.
|
inline |
Returns the symbolic (i.e., no associated op) root node of the tree.
Definition at line 111 of file SymbolDefTree.h.
| const SymbolDefTreeNode * llzk::SymbolDefTree::lookupNode | ( | mlir::SymbolOpInterface | symbolOp | ) | const |
Lookup the node for the given symbol Op, or nullptr if none exists.
Definition at line 89 of file SymbolDefTree.cpp.
|
inline |
Definition at line 121 of file SymbolDefTree.h.
| void llzk::SymbolDefTree::print | ( | llvm::raw_ostream & | os | ) | const |
Definition at line 109 of file SymbolDefTree.cpp.
|
inline |
Return total number of nodes in the tree.
Definition at line 114 of file SymbolDefTree.h.