diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-19 21:14:58 +0000 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-19 21:14:58 +0000 |
commit | 210f77d2c32f14d2e99577fd3c9842bb19d47e50 (patch) | |
tree | 5edb327c919b8309e301c3440fb6668a0075c8ef /include/ir_rose_utils.hh | |
parent | a66ce5cd670c4d3c0dc449720f5bc45dd4c281b8 (diff) | |
download | chill-210f77d2c32f14d2e99577fd3c9842bb19d47e50.tar.gz chill-210f77d2c32f14d2e99577fd3c9842bb19d47e50.tar.bz2 chill-210f77d2c32f14d2e99577fd3c9842bb19d47e50.zip |
Moved most modules into lib
Diffstat (limited to 'include/ir_rose_utils.hh')
-rw-r--r-- | include/ir_rose_utils.hh | 19 |
1 files changed, 19 insertions, 0 deletions
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 <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 |