From bdaf6dc251d98fc1c93165fa8579378204b395e1 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sat, 17 Sep 2016 18:58:56 -0600 Subject: chill doc --- chill/include/irtools.hh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'chill/include/irtools.hh') 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 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() { -- cgit v1.2.3-70-g09d2