From dffa5374ca560213452039fe569a70ca21b58a85 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sat, 17 Sep 2016 19:21:10 -0600 Subject: added file doc --- chill/src/chillmodule.cc | 3 --- chill/src/ir_rose_utils.cc | 25 ++----------------------- 2 files changed, 2 insertions(+), 26 deletions(-) (limited to 'chill/src') diff --git a/chill/src/chillmodule.cc b/chill/src/chillmodule.cc index b7012cc..024ac33 100644 --- a/chill/src/chillmodule.cc +++ b/chill/src/chillmodule.cc @@ -1,6 +1,3 @@ - -// chill interface to python - #include "chilldebug.h" #include "chill_run_util.hh" diff --git a/chill/src/ir_rose_utils.cc b/chill/src/ir_rose_utils.cc index fbce2f1..64b0891 100644 --- a/chill/src/ir_rose_utils.cc +++ b/chill/src/ir_rose_utils.cc @@ -4,7 +4,7 @@ All Rights Reserved. Purpose: - SUIF interface utilities. + ROSE interface utilities. Notes: @@ -12,27 +12,13 @@ 01/2006 created by Chun Chen *****************************************************************************/ -//#include -//#include -//#include -//#include -//#include #include "ir_rose_utils.hh" std::vector find_loops(SgNode *tnl) { std::vector result; - - //tree_node_list_iter iter(tnl); - - /*while (!iter.is_empty()) { - tree_node *tn = iter.step(); - if (tn->kind() == TREE_FOR) - result.push_back(static_cast(tn)); - } - */ - + SgStatementPtrList& blockStatements = isSgBasicBlock(tnl)->get_statements(); for(SgStatementPtrList::const_iterator j = blockStatements.begin(); j != blockStatements.end(); j++) if(isSgForStatement(*j)) @@ -60,13 +46,6 @@ std::vector find_deepest_loops(SgStatementPtrList& tnl) { } - - - - - - - std::vector find_deepest_loops(SgNode *tn) { if (isSgForStatement(tn)) { std::vector loops; -- cgit v1.2.3-70-g09d2