From 210f77d2c32f14d2e99577fd3c9842bb19d47e50 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Mon, 19 Sep 2016 21:14:58 +0000 Subject: Moved most modules into lib --- include/ir_rose_utils.hh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/ir_rose_utils.hh (limited to 'include/ir_rose_utils.hh') diff --git a/include/ir_rose_utils.hh b/include/ir_rose_utils.hh new file mode 100644 index 0000000..350aa24 --- /dev/null +++ b/include/ir_rose_utils.hh @@ -0,0 +1,19 @@ +#ifndef IR_ROSE_UTILS_HH +#define IR_ROSE_UTILS_HH + +/*! + * \file + * \brief ROSE interface utilities + */ +#include +#include +#include + +std::vector find_deepest_loops(SgNode *tnl); +std::vector 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 -- cgit v1.2.3-70-g09d2