diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-10 14:53:16 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-10 14:53:16 +0000 |
commit | d9ac4c34752ce86cb6ce11624ac5497bb95feff2 (patch) | |
tree | b309f9bb6f3719afe5fb62ac88e45fbe20be210b /gcc | |
parent | a765cde058865facb694ad789d4bef9e162babb5 (diff) | |
download | gcc-d9ac4c34752ce86cb6ce11624ac5497bb95feff2.tar.gz |
add dump of data dependences
2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com>
* graphite-dependences.c (scop_get_dependences): Add dump of the
data dependence graph.
* graphite-poly.c (print_isl_union_map): New.
(debug_isl_union_map): New.
* graphite-poly.h (print_isl_union_map): Declare.
(debug_isl_union_map): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228677 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/graphite-dependences.c | 7 | ||||
-rw-r--r-- | gcc/graphite-poly.c | 16 | ||||
-rw-r--r-- | gcc/graphite-poly.h | 2 |
4 files changed, 35 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f29a94c0144..034798b0f7e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,16 @@ 2015-10-10 Aditya Kumar <aditya.k7@samsung.com> Sebastian Pop <s.pop@samsung.com> + * graphite-dependences.c (scop_get_dependences): Add dump of the + data dependence graph. + * graphite-poly.c (print_isl_union_map): New. + (debug_isl_union_map): New. + * graphite-poly.h (print_isl_union_map): Declare. + (debug_isl_union_map): Declare. + +2015-10-10 Aditya Kumar <aditya.k7@samsung.com> + Sebastian Pop <s.pop@samsung.com> + * graphite-poly.c (print_iteration_domain): Remove verbosity. Remove OpenScop formatting. (print_iteration_domains): Same. diff --git a/gcc/graphite-dependences.c b/gcc/graphite-dependences.c index e879429d0b1..aef29acfb3a 100644 --- a/gcc/graphite-dependences.c +++ b/gcc/graphite-dependences.c @@ -355,6 +355,13 @@ scop_get_dependences (scop_p scop) dependences = isl_union_map_union (dependences, isl_union_map_copy (scop->may_waw)); + if (dump_file) + { + fprintf (dump_file, "data dependences (\n"); + print_isl_union_map (dump_file, dependences); + fprintf (dump_file, ")\n"); + } + return dependences; } diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c index c3a14c7fdd5..0d1dc63daf6 100644 --- a/gcc/graphite-poly.c +++ b/gcc/graphite-poly.c @@ -595,6 +595,22 @@ debug_isl_map (isl_map *map) } void +print_isl_union_map (FILE *f, isl_union_map *map) +{ + isl_printer *p = isl_printer_to_file (the_isl_ctx, f); + p = isl_printer_print_union_map (p, map); + p = isl_printer_print_str (p, "\n"); + isl_printer_free (p); +} + +DEBUG_FUNCTION void +debug_isl_union_map (isl_union_map *map) +{ + print_isl_union_map (stderr, map); +} + + +void print_isl_aff (FILE *f, isl_aff *aff) { isl_printer *p = isl_printer_to_file (the_isl_ctx, f); diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h index 6b97b714c3c..63fdb3bb3ff 100644 --- a/gcc/graphite-poly.h +++ b/gcc/graphite-poly.h @@ -298,10 +298,12 @@ extern void debug_iteration_domain (poly_bb_p); extern void debug_iteration_domains (scop_p); extern void print_isl_set (FILE *, isl_set *); extern void print_isl_map (FILE *, isl_map *); +extern void print_isl_union_map (FILE *, isl_union_map *); extern void print_isl_aff (FILE *, isl_aff *); extern void print_isl_constraint (FILE *, isl_constraint *); extern void debug_isl_set (isl_set *); extern void debug_isl_map (isl_map *); +extern void debug_isl_union_map (isl_union_map *); extern void debug_isl_aff (isl_aff *); extern void debug_isl_constraint (isl_constraint *); extern int scop_do_interchange (scop_p); |