summaryrefslogtreecommitdiff
path: root/chill/include/irtools.hh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-17 18:58:56 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-17 18:58:56 -0600
commitbdaf6dc251d98fc1c93165fa8579378204b395e1 (patch)
treeef961130983342c2615a0a84c8f754a017449312 /chill/include/irtools.hh
parent8ef3af85585446d897ae292476f433fb6db20c0c (diff)
downloadchill-bdaf6dc251d98fc1c93165fa8579378204b395e1.tar.gz
chill-bdaf6dc251d98fc1c93165fa8579378204b395e1.tar.bz2
chill-bdaf6dc251d98fc1c93165fa8579378204b395e1.zip
chill doc
Diffstat (limited to 'chill/include/irtools.hh')
-rw-r--r--chill/include/irtools.hh13
1 files changed, 8 insertions, 5 deletions
diff --git a/chill/include/irtools.hh b/chill/include/irtools.hh
index 8dc8e28..205efe1 100644
--- a/chill/include/irtools.hh
+++ b/chill/include/irtools.hh
@@ -7,15 +7,18 @@
#include "ir_code.hh"
#include "dep.hh"
-// IR tree is used to initialize a loop. For a loop node, payload is
-// its mapped iteration space dimension. For a simple block node,
-// payload is its mapped statement number. Normal if-else is splitted
-// into two nodes where the one with odd payload represents then-part and
-// the one with even payload represents else-part.
+//! It is used to initialize a loop.
struct ir_tree_node {
IR_Control *content;
ir_tree_node *parent;
std::vector<ir_tree_node *> children;
+/*!
+ * * For a loop node, payload is its mapped iteration space dimension.
+ * * For a simple block node, payload is its mapped statement number.
+ * * Normal if-else is splitted into two nodes
+ * * the one with odd payload represents then-part and
+ * * the one with even payload represents else-part.
+ */
int payload;
~ir_tree_node() {