summaryrefslogtreecommitdiff
path: root/chill/include/loop.hh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-17 19:21:10 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-17 19:21:10 -0600
commitdffa5374ca560213452039fe569a70ca21b58a85 (patch)
treeb7ebb146cee60e9973b3f158196d56abd28c0f42 /chill/include/loop.hh
parentbdaf6dc251d98fc1c93165fa8579378204b395e1 (diff)
downloadchill-dffa5374ca560213452039fe569a70ca21b58a85.tar.gz
chill-dffa5374ca560213452039fe569a70ca21b58a85.tar.bz2
chill-dffa5374ca560213452039fe569a70ca21b58a85.zip
added file doc
Diffstat (limited to 'chill/include/loop.hh')
-rw-r--r--chill/include/loop.hh19
1 files changed, 19 insertions, 0 deletions
diff --git a/chill/include/loop.hh b/chill/include/loop.hh
index 2c50d6b..9620489 100644
--- a/chill/include/loop.hh
+++ b/chill/include/loop.hh
@@ -1,6 +1,25 @@
#ifndef LOOP_HH
#define LOOP_HH
+/*!
+ * \file
+ * \brief Core loop transformation functionality.
+ *
+ * "level" (starting from 1) means loop level and it corresponds to "dim"
+ * (starting from 0) in transformed iteration space [c_1,l_1,c_2,l_2,....,
+ * c_n,l_n,c_(n+1)], e.g., l_2 is loop level 2 in generated code, dim 3
+ * in transformed iteration space, and variable 4 in Omega relation.
+ * All c's are constant numbers only and they will not show up as actual loops.
+ *
+ * Formula:
+ *
+ * ~~~
+ * dim = 2*level - 1
+ * var = dim + 1
+ * ~~~
+ */
+
+
#include <omega.h>
#include <code_gen/codegen.h>
#include <code_gen/CG.h>