summaryrefslogtreecommitdiff
path: root/chill_run.cc
diff options
context:
space:
mode:
authordhuth <derickhuth@gmail.com>2015-04-13 12:09:42 -0600
committerdhuth <derickhuth@gmail.com>2015-04-13 12:09:42 -0600
commitf0909ea6373f7f01271b1a6707e8022188d885fe (patch)
tree889589f71e4f23c42539a4ff0d85ac0588141e3d /chill_run.cc
parentb530622a9b2261b1e8a9c5202285d3928c97b893 (diff)
downloadchill-f0909ea6373f7f01271b1a6707e8022188d885fe.tar.gz
chill-f0909ea6373f7f01271b1a6707e8022188d885fe.tar.bz2
chill-f0909ea6373f7f01271b1a6707e8022188d885fe.zip
--
Diffstat (limited to 'chill_run.cc')
-rw-r--r--chill_run.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chill_run.cc b/chill_run.cc
index 45d2345..a3c9180 100644
--- a/chill_run.cc
+++ b/chill_run.cc
@@ -359,6 +359,7 @@ int main( int argc, char* argv[] )
#endif
#ifdef BUILD_ROSE
((IR_cudaroseCode *)(ir_code))->commit_loop(myloop, lnum);
+ ((IR_roseCode*)(ir_code))->finalizeRose();
#elif BUILD_SUIF
((IR_cudasuifCode *)(ir_code))->commit_loop(myloop, lnum);
#endif
@@ -374,14 +375,16 @@ int main( int argc, char* argv[] )
lnum_end = get_loop_num_end(L);
DEBUG_PRINT("calling ROSE code gen? loop num %d - %d\n", lnum_start, lnum_end);
#endif
-#endif
+
#ifdef BUILD_ROSE
finalize_loop(lnum_start, lnum_end);
//((IR_roseCode*)(ir_cide))->commit_loop(myloop, lnum);
((IR_roseCode*)(ir_code))->finalizeRose();
- //#elif BUILD_SUIF
- //((IR_suifCode*)(ir_code))->commit_loop(myloop, lnum);
+ #elif BUILD_SUIF
+ ((IR_suifCode*)(ir_code))->commit_loop(myloop, lnum);
#endif
+
+#endif
delete ir_code;
}
#ifdef PYTHON