diff -Naur gcc-5.2.0.orig/gcc/config.in gcc-5.2.0/gcc/config.in
old
|
new
|
|
1313 | 1313 | #endif |
1314 | 1314 | |
1315 | 1315 | |
| 1316 | /* Define if isl_options_set_schedule_serialize_sccs exists. */ |
| 1317 | #ifndef USED_FOR_TARGET |
| 1318 | #undef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS |
| 1319 | #endif |
| 1320 | |
| 1321 | |
1316 | 1322 | /* Define if isl_schedule_constraints_compute_schedule exists. */ |
1317 | 1323 | #ifndef USED_FOR_TARGET |
1318 | 1324 | #undef HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE |
diff -Naur gcc-5.2.0.orig/gcc/configure gcc-5.2.0/gcc/configure
old
|
new
|
|
28245 | 28245 | |
28246 | 28246 | # Check whether isl_schedule_constraints_compute_schedule is available; |
28247 | 28247 | # it's new in ISL-0.13. |
| 28248 | # Check whether isl_options_set_schedule_serialize_sccs is available; |
| 28249 | # it's new in ISL-0.15. |
28248 | 28250 | if test "x${ISLLIBS}" != "x" ; then |
28249 | 28251 | saved_CFLAGS="$CFLAGS" |
28250 | 28252 | CFLAGS="$CFLAGS $ISLINC" |
… |
… |
|
28274 | 28276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5 |
28275 | 28277 | $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; } |
28276 | 28278 | |
| 28279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5 |
| 28280 | $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; } |
| 28281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28282 | /* end confdefs.h. */ |
| 28283 | #include <isl/schedule.h> |
| 28284 | int |
| 28285 | main () |
| 28286 | { |
| 28287 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
| 28288 | ; |
| 28289 | return 0; |
| 28290 | } |
| 28291 | _ACEOF |
| 28292 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 28293 | ac_has_isl_options_set_schedule_serialize_sccs=yes |
| 28294 | else |
| 28295 | ac_has_isl_options_set_schedule_serialize_sccs=no |
| 28296 | fi |
| 28297 | rm -f core conftest.err conftest.$ac_objext \ |
| 28298 | conftest$ac_exeext conftest.$ac_ext |
| 28299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 |
| 28300 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } |
| 28301 | |
28277 | 28302 | LIBS="$saved_LIBS" |
28278 | 28303 | CFLAGS="$saved_CFLAGS" |
28279 | 28304 | |
… |
… |
|
28282 | 28307 | $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h |
28283 | 28308 | |
28284 | 28309 | fi |
| 28310 | |
| 28311 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then |
| 28312 | |
| 28313 | $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h |
| 28314 | |
| 28315 | fi |
28285 | 28316 | fi |
28286 | 28317 | |
28287 | 28318 | # Check for plugin support |
diff -Naur gcc-5.2.0.orig/gcc/configure.ac gcc-5.2.0/gcc/configure.ac
old
|
new
|
|
5693 | 5693 | |
5694 | 5694 | # Check whether isl_schedule_constraints_compute_schedule is available; |
5695 | 5695 | # it's new in ISL-0.13. |
| 5696 | # Check whether isl_options_set_schedule_serialize_sccs is available; |
| 5697 | # it's new in ISL-0.15. |
5696 | 5698 | if test "x${ISLLIBS}" != "x" ; then |
5697 | 5699 | saved_CFLAGS="$CFLAGS" |
5698 | 5700 | CFLAGS="$CFLAGS $ISLINC" |
… |
… |
|
5706 | 5708 | [ac_has_isl_schedule_constraints_compute_schedule=no]) |
5707 | 5709 | AC_MSG_RESULT($ac_has_isl_schedule_constraints_compute_schedule) |
5708 | 5710 | |
| 5711 | AC_MSG_CHECKING([Checking for isl_options_set_schedule_serialize_sccs]) |
| 5712 | AC_TRY_LINK([#include <isl/schedule.h>], |
| 5713 | [isl_options_set_schedule_serialize_sccs (NULL, 0);], |
| 5714 | [ac_has_isl_options_set_schedule_serialize_sccs=yes], |
| 5715 | [ac_has_isl_options_set_schedule_serialize_sccs=no]) |
| 5716 | AC_MSG_RESULT($ac_has_isl_options_set_schedule_serialize_sccs) |
| 5717 | |
5709 | 5718 | LIBS="$saved_LIBS" |
5710 | 5719 | CFLAGS="$saved_CFLAGS" |
5711 | 5720 | |
… |
… |
|
5713 | 5722 | AC_DEFINE(HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE, 1, |
5714 | 5723 | [Define if isl_schedule_constraints_compute_schedule exists.]) |
5715 | 5724 | fi |
| 5725 | |
| 5726 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then |
| 5727 | AC_DEFINE(HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS, 1, |
| 5728 | [Define if isl_options_set_schedule_serialize_sccs exists.]) |
| 5729 | fi |
5716 | 5730 | fi |
5717 | 5731 | |
5718 | 5732 | GCC_ENABLE_PLUGINS |
diff -Naur gcc-5.2.0.orig/gcc/graphite-blocking.c gcc-5.2.0/gcc/graphite-blocking.c
old
|
new
|
|
24 | 24 | #include "config.h" |
25 | 25 | |
26 | 26 | #ifdef HAVE_isl |
| 27 | #include <isl/constraint.h> |
27 | 28 | #include <isl/set.h> |
28 | 29 | #include <isl/map.h> |
29 | 30 | #include <isl/union_map.h> |
diff -Naur gcc-5.2.0.orig/gcc/graphite-dependences.c gcc-5.2.0/gcc/graphite-dependences.c
old
|
new
|
|
22 | 22 | #include "config.h" |
23 | 23 | |
24 | 24 | #ifdef HAVE_isl |
| 25 | #include <isl/constraint.h> |
25 | 26 | #include <isl/set.h> |
26 | 27 | #include <isl/map.h> |
27 | 28 | #include <isl/union_map.h> |
… |
… |
|
227 | 228 | /* Helper function used on each MAP of a isl_union_map. Computes the |
228 | 229 | maximal output dimension. */ |
229 | 230 | |
230 | | static int |
| 231 | static isl_stat |
231 | 232 | max_number_of_out_dimensions (__isl_take isl_map *map, void *user) |
232 | 233 | { |
233 | 234 | int global_max = *((int *) user); |
… |
… |
|
239 | 240 | |
240 | 241 | isl_map_free (map); |
241 | 242 | isl_space_free (space); |
242 | | return 0; |
| 243 | return isl_stat_ok; |
243 | 244 | } |
244 | 245 | |
245 | 246 | /* Extends the output dimension of MAP to MAX dimensions. */ |
… |
… |
|
263 | 264 | |
264 | 265 | /* Helper function for extend_schedule. */ |
265 | 266 | |
266 | | static int |
| 267 | static isl_stat |
267 | 268 | extend_schedule_1 (__isl_take isl_map *map, void *user) |
268 | 269 | { |
269 | 270 | struct extend_schedule_str *str = (struct extend_schedule_str *) user; |
270 | 271 | str->umap = isl_union_map_add_map (str->umap, extend_map (map, str->max)); |
271 | | return 0; |
| 272 | return isl_stat_ok; |
272 | 273 | } |
273 | 274 | |
274 | 275 | /* Return a relation that has uniform output dimensions. */ |
… |
… |
|
277 | 278 | extend_schedule (__isl_take isl_union_map *x) |
278 | 279 | { |
279 | 280 | int max = 0; |
280 | | int res; |
| 281 | isl_stat res; |
281 | 282 | struct extend_schedule_str str; |
282 | 283 | |
283 | 284 | res = isl_union_map_foreach_map (x, max_number_of_out_dimensions, (void *) &max); |
284 | | gcc_assert (res == 0); |
| 285 | gcc_assert (res == isl_stat_ok); |
285 | 286 | |
286 | 287 | str.max = max; |
287 | 288 | str.umap = isl_union_map_empty (isl_union_map_get_space (x)); |
288 | 289 | res = isl_union_map_foreach_map (x, extend_schedule_1, (void *) &str); |
289 | | gcc_assert (res == 0); |
| 290 | gcc_assert (res == isl_stat_ok); |
290 | 291 | |
291 | 292 | isl_union_map_free (x); |
292 | 293 | return str.umap; |
diff -Naur gcc-5.2.0.orig/gcc/graphite-interchange.c gcc-5.2.0/gcc/graphite-interchange.c
old
|
new
|
|
24 | 24 | #include "config.h" |
25 | 25 | |
26 | 26 | #ifdef HAVE_isl |
| 27 | #include <isl/constraint.h> |
27 | 28 | #include <isl/aff.h> |
28 | 29 | #include <isl/set.h> |
29 | 30 | #include <isl/map.h> |
diff -Naur gcc-5.2.0.orig/gcc/graphite-isl-ast-to-gimple.c gcc-5.2.0/gcc/graphite-isl-ast-to-gimple.c
old
|
new
|
|
21 | 21 | #include "config.h" |
22 | 22 | |
23 | 23 | #ifdef HAVE_isl |
| 24 | #include <isl/constraint.h> |
24 | 25 | #include <isl/set.h> |
| 26 | #include <isl/union_set.h> |
25 | 27 | #include <isl/map.h> |
26 | 28 | #include <isl/union_map.h> |
27 | 29 | #include <isl/ast_build.h> |
diff -Naur gcc-5.2.0.orig/gcc/graphite-optimize-isl.c gcc-5.2.0/gcc/graphite-optimize-isl.c
old
|
new
|
|
21 | 21 | #include "config.h" |
22 | 22 | |
23 | 23 | #ifdef HAVE_isl |
| 24 | #include <isl/constraint.h> |
24 | 25 | #include <isl/set.h> |
| 26 | #include <isl/union_set.h> |
25 | 27 | #include <isl/map.h> |
26 | 28 | #include <isl/union_map.h> |
27 | 29 | #include <isl/schedule.h> |
… |
… |
|
530 | 532 | return ScheduleMap; |
531 | 533 | } |
532 | 534 | |
533 | | static int |
| 535 | static isl_stat |
534 | 536 | getSingleMap (__isl_take isl_map *map, void *user) |
535 | 537 | { |
536 | 538 | isl_map **singleMap = (isl_map **) user; |
537 | 539 | *singleMap = map; |
538 | 540 | |
539 | | return 0; |
| 541 | return isl_stat_ok; |
540 | 542 | } |
541 | 543 | |
542 | 544 | static void |
… |
… |
|
608 | 610 | |
609 | 611 | isl_options_set_schedule_max_constant_term (scop->ctx, CONSTANT_BOUND); |
610 | 612 | isl_options_set_schedule_maximize_band_depth (scop->ctx, 1); |
| 613 | #ifdef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS |
| 614 | isl_options_set_schedule_serialize_sccs (scop->ctx, 1); |
| 615 | #else |
611 | 616 | isl_options_set_schedule_fuse (scop->ctx, ISL_SCHEDULE_FUSE_MIN); |
| 617 | #endif |
612 | 618 | isl_options_set_on_error (scop->ctx, ISL_ON_ERROR_CONTINUE); |
613 | 619 | |
614 | 620 | #ifdef HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE |
diff -Naur gcc-5.2.0.orig/gcc/graphite-poly.c gcc-5.2.0/gcc/graphite-poly.c
old
|
new
|
|
22 | 22 | #include "config.h" |
23 | 23 | |
24 | 24 | #ifdef HAVE_isl |
| 25 | #include <isl/constraint.h> |
25 | 26 | #include <isl/set.h> |
26 | 27 | #include <isl/map.h> |
27 | 28 | #include <isl/union_map.h> |
diff -Naur gcc-5.2.0.orig/gcc/graphite-poly.h gcc-5.2.0/gcc/graphite-poly.h
old
|
new
|
|
22 | 22 | #ifndef GCC_GRAPHITE_POLY_H |
23 | 23 | #define GCC_GRAPHITE_POLY_H |
24 | 24 | |
| 25 | #ifndef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS |
| 26 | # define isl_stat int |
| 27 | # define isl_stat_ok 0 |
| 28 | #endif |
| 29 | |
25 | 30 | typedef struct poly_dr *poly_dr_p; |
26 | 31 | |
27 | 32 | typedef struct poly_bb *poly_bb_p; |
diff -Naur gcc-5.2.0.orig/gcc/graphite-scop-detection.c gcc-5.2.0/gcc/graphite-scop-detection.c
old
|
new
|
|
22 | 22 | #include "config.h" |
23 | 23 | |
24 | 24 | #ifdef HAVE_isl |
| 25 | #include <isl/constraint.h> |
25 | 26 | #include <isl/set.h> |
26 | 27 | #include <isl/map.h> |
27 | 28 | #include <isl/union_map.h> |
diff -Naur gcc-5.2.0.orig/gcc/graphite-sese-to-poly.c gcc-5.2.0/gcc/graphite-sese-to-poly.c
old
|
new
|
|
21 | 21 | #include "config.h" |
22 | 22 | |
23 | 23 | #ifdef HAVE_isl |
| 24 | #include <isl/constraint.h> |
24 | 25 | #include <isl/set.h> |
25 | 26 | #include <isl/map.h> |
26 | 27 | #include <isl/union_map.h> |
diff -Naur gcc-5.2.0.orig/gcc/graphite.c gcc-5.2.0/gcc/graphite.c
old
|
new
|
|
35 | 35 | #include "config.h" |
36 | 36 | |
37 | 37 | #ifdef HAVE_isl |
| 38 | #include <isl/constraint.h> |
38 | 39 | #include <isl/set.h> |
39 | 40 | #include <isl/map.h> |
40 | 41 | #include <isl/options.h> |