summaryrefslogtreecommitdiff
path: root/chill/include/ir_rose_utils.hh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-17 03:22:53 +0000
committerTuowen Zhao <ztuowen@gmail.com>2016-09-17 03:22:53 +0000
commit75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5 (patch)
tree498ac06b4cf78568b807fafd2619856afff69c28 /chill/include/ir_rose_utils.hh
parent29efa7b1a0d089e02a70f73f348f11878955287c (diff)
downloadchill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.tar.gz
chill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.tar.bz2
chill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.zip
cmake build
Diffstat (limited to 'chill/include/ir_rose_utils.hh')
-rw-r--r--chill/include/ir_rose_utils.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/chill/include/ir_rose_utils.hh b/chill/include/ir_rose_utils.hh
new file mode 100644
index 0000000..9e98aee
--- /dev/null
+++ b/chill/include/ir_rose_utils.hh
@@ -0,0 +1,18 @@
+#ifndef IR_ROSE_UTILS_HH
+#define IR_ROSE_UTILS_HH
+#include <vector>
+#include <rose.h>
+#include "sageBuilder.h"
+
+
+
+std::vector<SgForStatement *> find_deepest_loops(SgNode *tnl);
+std::vector<SgForStatement *> find_loops(SgNode *tnl);
+
+
+
+SgNode* loop_body_at_level(SgNode* tnl, int level);
+SgNode* loop_body_at_level(SgForStatement* loop, int level);
+void swap_node_for_node_list(SgNode* tn, SgNode* new_tnl);
+
+#endif