summaryrefslogtreecommitdiff
path: root/include/chillAST/chillASTs.hh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-10-09 20:11:37 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-10-09 20:11:37 -0600
commit2a2752adb4b32715926d3e565444fe2ea959f597 (patch)
tree2577d8aec38c34a47833c89ac5d41026754d6995 /include/chillAST/chillASTs.hh
parent41d53b28284bb6b8a9ef45de4d596734f64c3971 (diff)
downloadchill-2a2752adb4b32715926d3e565444fe2ea959f597.tar.gz
chill-2a2752adb4b32715926d3e565444fe2ea959f597.tar.bz2
chill-2a2752adb4b32715926d3e565444fe2ea959f597.zip
clean up
Diffstat (limited to 'include/chillAST/chillASTs.hh')
-rw-r--r--include/chillAST/chillASTs.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/chillAST/chillASTs.hh b/include/chillAST/chillASTs.hh
index 25e6855..4b50479 100644
--- a/include/chillAST/chillASTs.hh
+++ b/include/chillAST/chillASTs.hh
@@ -514,9 +514,9 @@ public:
// ADD MYSELF!
loops.push_back(this);
- int n = getBody()->children.size();
+ int n = getBody()->getNumChildren();
for (int i = 0; i < n; i++) {
- getBody()->children[i]->get_deep_loops(loops);
+ getBody()->getChild(i)->get_deep_loops(loops);
}
}
@@ -524,10 +524,10 @@ public:
void find_deepest_loops(std::vector<chillAST_ForStmt *> &loops) {
std::vector<chillAST_ForStmt *> b; // deepest loops below me
- int n = getBody()->children.size();
+ int n = getBody()->getNumChildren();
for (int i = 0; i < n; i++) {
std::vector<chillAST_ForStmt *> l; // deepest loops below one child
- getBody()->children[i]->find_deepest_loops(l);
+ getBody()->getChild(i)->find_deepest_loops(l);
if (l.size() > b.size()) { // a deeper nesting than we've seen
b = l;
}