MimIR 0.1
MimIR is my Intermediate Representation
|
Represents a node of a loop nesting forest. More...
#include <mim/analyses/looptree.h>
Public Member Functions | |
Base (Head *parent, int depth, View< const CFNode * >) | |
virtual | ~Base ()=default |
int | depth () const |
const Head * | parent () const |
auto | cf_nodes () const |
size_t | num_cf_nodes () const |
Protected Attributes | |
Head * | parent_ |
Vector< const CFNode * > | cf_nodes_ |
int | depth_ |
Represents a node of a loop nesting forest.
A LoopTree::Base consists of a set of header CFNodes. The header CFNodes are the set of CFNodes not dominated by any other CFNode within the loop. The root node is a LoopTree::Head without any CFNodes but further children and depth_ -1
. Thus, the forest is pooled into a tree.
Definition at line 25 of file looptree.h.
mim::LoopTree< forward >::Base::Base | ( | Head * | parent, |
int | depth, | ||
View< const CFNode * > | cf_nodes ) |
Definition at line 191 of file looptree.cpp.
References mim::LoopTree< forward >::Base::parent_.
|
virtualdefault |
|
inline |
Definition at line 32 of file looptree.h.
References mim::LoopTree< forward >::Base::cf_nodes_.
Referenced by mim::LoopTree< forward >::Leaf::cf_node(), and mim::LoopTree< forward >::Base::num_cf_nodes().
|
inline |
Definition at line 30 of file looptree.h.
References mim::LoopTree< forward >::Base::depth_.
|
inline |
Definition at line 33 of file looptree.h.
References mim::LoopTree< forward >::Base::cf_nodes().
|
inline |
Definition at line 31 of file looptree.h.
References mim::LoopTree< forward >::Base::parent_.
|
protected |
Definition at line 37 of file looptree.h.
Referenced by mim::LoopTree< forward >::Base::cf_nodes().
|
protected |
Definition at line 38 of file looptree.h.
Referenced by mim::LoopTree< forward >::Base::depth().
|
protected |
Definition at line 36 of file looptree.h.
Referenced by mim::LoopTree< forward >::Base::Base(), mim::LoopTree< forward >::Head::is_root(), and mim::LoopTree< forward >::Base::parent().