GPUOcelot
|
A polymorphic base class that represents any node. More...
#include <ControlTree.h>
Public Types | |
typedef std::list< Node * > | NodeList |
typedef std::unordered_set < Node * > | NodeSet |
Public Member Functions | |
const std::string & | label () const |
Get the label. | |
RegionType | rtype () const |
Get the region type. | |
const NodeList & | children () const |
Get the children. | |
NodeSet & | succs () |
Get successors from the abstract flowgraph. | |
NodeSet & | preds () |
Get predecessors from the abstract flowgraph. | |
Node *& | fallthrough () |
Get fallthrough node. | |
virtual | ~Node () |
Destructor (virtual because polymorphic) | |
Protected Member Functions | |
Node (const std::string &label, RegionType rtype, const NodeList &children) | |
Constructor (protected to avoid instantiation) |
A polymorphic base class that represents any node.
typedef std::list<Node*> analysis::ControlTree::Node::NodeList |
typedef std::unordered_set<Node*> analysis::ControlTree::Node::NodeSet |
analysis::ControlTree::Node::~Node | ( | ) | [virtual] |
Destructor (virtual because polymorphic)
analysis::ControlTree::Node::Node | ( | const std::string & | label, |
RegionType | rtype, | ||
const NodeList & | children | ||
) | [protected] |
Constructor (protected to avoid instantiation)
const ControlTree::NodeList & analysis::ControlTree::Node::children | ( | ) | const |
Get the children.
ControlTree::Node *& analysis::ControlTree::Node::fallthrough | ( | ) |
Get fallthrough node.
const std::string & analysis::ControlTree::Node::label | ( | ) | const |
Get the label.
ControlTree::NodeSet & analysis::ControlTree::Node::preds | ( | ) |
Get predecessors from the abstract flowgraph.
ControlTree::RegionType analysis::ControlTree::Node::rtype | ( | ) | const |
Get the region type.
ControlTree::NodeSet & analysis::ControlTree::Node::succs | ( | ) |
Get successors from the abstract flowgraph.