#include <include/hllcode.h>
Inheritance diagram for IfThenSyntaxNode:
Definition at line 245 of file hllcode.h.
Public Member Functions | |
virtual void | addSuccessors (SyntaxNode *root, std::vector< SyntaxNode * > &successors) |
virtual SyntaxNode * | clone () |
virtual bool | endsWithGoto () |
virtual int | evaluate (SyntaxNode *root) |
virtual SyntaxNode * | findNodeFor (PBB bb) |
Exp * | getCond () |
virtual SyntaxNode * | getEnclosingLoop (SyntaxNode *pFor, SyntaxNode *cur=NULL) |
virtual int | getNumOutEdges () |
virtual SyntaxNode * | getOutEdge (SyntaxNode *root, int n) |
IfThenSyntaxNode () | |
virtual bool | isBranch () |
virtual bool | isGoto () |
virtual void | printAST (SyntaxNode *root, std::ostream &os) |
virtual SyntaxNode * | replace (SyntaxNode *from, SyntaxNode *to) |
void | setCond (Exp *e) |
void | setThen (SyntaxNode *n) |
virtual | ~IfThenSyntaxNode () |
Protected Attributes | |
Exp * | cond |
SyntaxNode * | pThen |
|
Definition at line 405 of file syntax.cpp. Referenced by clone(). |
|
Definition at line 410 of file syntax.cpp. References pThen. |
|
Reimplemented from SyntaxNode. Definition at line 429 of file syntax.cpp. References SyntaxNode::addSuccessors(), and pThen. |
|
Implements SyntaxNode. Definition at line 435 of file syntax.cpp. References SyntaxNode::clone(), Exp::clone(), cond, SyntaxNode::correspond, IfThenSyntaxNode(), SyntaxNode::pbb, and pThen. |
|
Implements SyntaxNode. |
|
Implements SyntaxNode. Definition at line 422 of file syntax.cpp. References SyntaxNode::evaluate(), and pThen. |
|
Implements SyntaxNode. Definition at line 456 of file syntax.cpp. References SyntaxNode::findNodeFor(), SyntaxNode::pbb, and pThen. |
|
Definition at line 272 of file hllcode.h. References cond. |
|
Implements SyntaxNode. Definition at line 266 of file hllcode.h. References SyntaxNode::getEnclosingLoop(), and pThen. |
|
Implements SyntaxNode. |
|
Implements SyntaxNode. Definition at line 416 of file syntax.cpp. References SyntaxNode::findNodeFor(), BasicBlock::getOutEdge(), SyntaxNode::pbb, and pThen. |
|
Reimplemented from SyntaxNode. |
|
Reimplemented from SyntaxNode. |
|
Implements SyntaxNode. Definition at line 463 of file syntax.cpp. References cond, SyntaxNode::findNodeFor(), SyntaxNode::getNumber(), BasicBlock::getOutEdge(), SyntaxNode::pbb, SyntaxNode::printAST(), and pThen. |
|
Implements SyntaxNode. Definition at line 445 of file syntax.cpp. References SyntaxNode::correspond, SyntaxNode::getCorrespond(), pThen, and to. |
|
Definition at line 271 of file hllcode.h. References cond. |
|
Definition at line 273 of file hllcode.h. References pThen. |
|
Definition at line 248 of file hllcode.h. Referenced by clone(), getCond(), printAST(), and setCond(). |
|
Definition at line 247 of file hllcode.h. Referenced by addSuccessors(), clone(), evaluate(), findNodeFor(), getEnclosingLoop(), getOutEdge(), printAST(), replace(), setThen(), and ~IfThenSyntaxNode(). |