#include <OutputExprTreeVisitor.hpp>


Public Member Functions | |
| OutputExprTreeVisitor (IRHandlesIRInterface &ir) | |
| ~OutputExprTreeVisitor () | |
| void | visitExprTreeBefore (ExprTree &) |
| called before root noded in the expression tree is visited | |
| void | visitExprTreeAfter (ExprTree &) |
| called after root noded in the expression tree is visited | |
| void | visitNode (ExprTree::Node &) |
| void | visitOpNode (ExprTree::OpNode &n) |
| void | visitCallNode (ExprTree::CallNode &n) |
| void | visitMemRefNode (ExprTree::MemRefNode &n) |
| void | visitConstSymNode (ExprTree::ConstSymNode &n) |
| void | visitConstValNode (ExprTree::ConstValNode &n) |
| void | output (IRHandlesIRInterface &) |
| bool | getIsConst () |
Private Attributes | |
| bool | mIsConst |
| int | mId |
| IRHandlesIRInterface & | mIR |
Definition at line 33 of file OutputExprTreeVisitor.hpp.
| OA::OutputExprTreeVisitor::OutputExprTreeVisitor | ( | IRHandlesIRInterface & | ir | ) |
Definition at line 22 of file OutputExprTreeVisitor.cpp.
References mId.
| OA::OutputExprTreeVisitor::~OutputExprTreeVisitor | ( | ) | [inline] |
Definition at line 36 of file OutputExprTreeVisitor.hpp.
| bool OA::OutputExprTreeVisitor::getIsConst | ( | ) | [inline] |
Definition at line 56 of file OutputExprTreeVisitor.hpp.
References mIsConst.
| void OA::OutputExprTreeVisitor::output | ( | IRHandlesIRInterface & | ) | [virtual] |
Implements OA::Annotation.
Definition at line 109 of file OutputExprTreeVisitor.cpp.
| void OA::OutputExprTreeVisitor::visitCallNode | ( | ExprTree::CallNode & | n | ) | [virtual] |
Reimplemented from OA::ExprTreeVisitor.
Definition at line 69 of file OutputExprTreeVisitor.cpp.
References OA::ExprTree::CallNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

| void OA::OutputExprTreeVisitor::visitConstSymNode | ( | ExprTree::ConstSymNode & | n | ) | [virtual] |
Reimplemented from OA::ExprTreeVisitor.
Definition at line 89 of file OutputExprTreeVisitor.cpp.
References OA::ExprTree::ConstSymNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

| void OA::OutputExprTreeVisitor::visitConstValNode | ( | ExprTree::ConstValNode & | n | ) | [virtual] |
Reimplemented from OA::ExprTreeVisitor.
Definition at line 99 of file OutputExprTreeVisitor.cpp.
References OA::ExprTree::ConstValNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

| void OA::OutputExprTreeVisitor::visitExprTreeAfter | ( | ExprTree & | ) | [inline, virtual] |
called after root noded in the expression tree is visited
Implements OA::ExprTreeVisitor.
Definition at line 39 of file OutputExprTreeVisitor.hpp.
| void OA::OutputExprTreeVisitor::visitExprTreeBefore | ( | ExprTree & | ) | [inline, virtual] |
called before root noded in the expression tree is visited
Implements OA::ExprTreeVisitor.
Definition at line 38 of file OutputExprTreeVisitor.hpp.
| void OA::OutputExprTreeVisitor::visitMemRefNode | ( | ExprTree::MemRefNode & | n | ) | [virtual] |
Reimplemented from OA::ExprTreeVisitor.
Definition at line 79 of file OutputExprTreeVisitor.cpp.
References OA::ExprTree::MemRefNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

| void OA::OutputExprTreeVisitor::visitNode | ( | ExprTree::Node & | ) | [virtual] |
if we don't know how to handle a node then the default action is to change the eval result to NULL
Implements OA::ExprTreeVisitor.
Definition at line 30 of file OutputExprTreeVisitor.cpp.
| void OA::OutputExprTreeVisitor::visitOpNode | ( | ExprTree::OpNode & | n | ) | [virtual] |
Reimplemented from OA::ExprTreeVisitor.
Definition at line 35 of file OutputExprTreeVisitor.cpp.
References OA::ExprTree::ChildNodesIterator::current(), OA::ExprTree::OpNode::getHandle(), OA::Tree::ChildNodesIterator::isValid(), mId, mIR, OA::Tree::Node::num_children(), OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

int OA::OutputExprTreeVisitor::mId [private] |
Definition at line 61 of file OutputExprTreeVisitor.hpp.
Referenced by OutputExprTreeVisitor(), visitCallNode(), visitConstSymNode(), visitConstValNode(), visitMemRefNode(), and visitOpNode().
Definition at line 62 of file OutputExprTreeVisitor.hpp.
Referenced by visitCallNode(), visitConstSymNode(), visitConstValNode(), visitMemRefNode(), and visitOpNode().
bool OA::OutputExprTreeVisitor::mIsConst [private] |
Definition at line 60 of file OutputExprTreeVisitor.hpp.
Referenced by getIsConst().
1.6.1