aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite.c
diff options
context:
space:
mode:
authorRoman Gareev <gareevroman@gmail.com>2014-06-29 14:20:35 +0000
committerRoman Gareev <romangareev@gcc.gnu.org>2014-06-29 14:20:35 +0000
commitf6cc31036a59d23ee90bf0884981a7f306fc87fd (patch)
tree95e882342ab8217fe3b1e2dff48e7f7f5620b2d7 /gcc/graphite.c
parent3b37ccd4ff94fb1ea6cf33b75e583c66874ab862 (diff)
downloadgcc-f6cc31036a59d23ee90bf0884981a7f306fc87fd.zip
gcc-f6cc31036a59d23ee90bf0884981a7f306fc87fd.tar.gz
gcc-f6cc31036a59d23ee90bf0884981a7f306fc87fd.tar.bz2
Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
gcc/ * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o. * common.opt: Add new switch fgraphite-code-generator=[isl|cloog]. * flag-types.h: Add new enum fgraphite_generator. * graphite-isl-ast-to-gimple.c: New. * graphite-isl-ast-to-gimple.h: New. * graphite.c (graphite_transform_loops): Add choice of Graphite code generator, which depends on flag_graphite_code_gen. gcc/testsuite/gcc.dg/graphite/isl-codegen-loop-dumping.c: New testcase that checks that the dump is generated. From-SVN: r212124
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r--gcc/graphite.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c
index 16f154c..0e424d0 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -73,6 +73,7 @@ along with GCC; see the file COPYING3. If not see
#include "graphite-poly.h"
#include "graphite-scop-detection.h"
#include "graphite-clast-to-gimple.h"
+#include "graphite-isl-ast-to-gimple.h"
#include "graphite-sese-to-poly.h"
#include "graphite-htab.h"
@@ -299,7 +300,10 @@ graphite_transform_loops (void)
if (POLY_SCOP_P (scop)
&& apply_poly_transforms (scop)
- && graphite_regenerate_ast_cloog (scop, &bb_pbb_mapping))
+ && (((flag_graphite_code_gen == FGRAPHITE_CODE_GEN_ISL)
+ && graphite_regenerate_ast_isl (scop))
+ || ((flag_graphite_code_gen == FGRAPHITE_CODE_GEN_CLOOG)
+ && graphite_regenerate_ast_cloog (scop, &bb_pbb_mapping))))
need_cfg_cleanup_p = true;
}