Commit 0ba82567 by Sebastian Pop Committed by Sebastian Pop

Fix pretty printers.

2010-09-09  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
	(print_scop_header): Removed.  Inlined in the only call place...
	(print_scop): ... here.

From-SVN: r164798
parent 69ac2bb6
2010-09-30 Sebastian Pop <sebastian.pop@amd.com> 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
(print_scop_header): Removed. Inlined in the only call place...
(print_scop): ... here.
2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT. * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
2010-09-30 Sebastian Pop <sebastian.pop@amd.com> 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2010-09-09 Sebastian Pop <sebastian.pop@amd.com> 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
(print_scop_header): Removed. Inlined in the only call place...
(print_scop): ... here.
2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT. * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
2010-09-02 Vladimir Kargov <kargov@gmail.com> 2010-09-02 Vladimir Kargov <kargov@gmail.com>
......
...@@ -1249,13 +1249,16 @@ print_pbb_body (FILE *file, poly_bb_p pbb, int verbosity, ...@@ -1249,13 +1249,16 @@ print_pbb_body (FILE *file, poly_bb_p pbb, int verbosity,
fprintf (file, "# Body (\n"); fprintf (file, "# Body (\n");
if (!statement_body_provided) if (!statement_body_provided)
{ {
if (verbosity > 0) if (verbosity > 0)
fprintf (file, "# Statement body is not provided\n"); fprintf (file, "# Statement body is not provided\n");
fprintf (file, "0\n"); fprintf (file, "0\n");
return;
} if (verbosity > 1)
fprintf (file, "#)\n");
return;
}
if (verbosity > 0) if (verbosity > 0)
fprintf (file, "# Statement body is provided\n"); fprintf (file, "# Statement body is provided\n");
...@@ -1394,12 +1397,14 @@ print_scop_context (FILE *file, scop_p scop, int verbosity) ...@@ -1394,12 +1397,14 @@ print_scop_context (FILE *file, scop_p scop, int verbosity)
fprintf (file, "# )\n"); fprintf (file, "# )\n");
} }
/* Print to FILE the SCOP header: context, parameters, and statements /* Print to FILE the SCOP, at some VERBOSITY level. */
number. */
static void void
print_scop_header (FILE *file, scop_p scop, int verbosity) print_scop (FILE *file, scop_p scop, int verbosity)
{ {
int i;
poly_bb_p pbb;
fprintf (file, "SCoP 1\n#(\n"); fprintf (file, "SCoP 1\n#(\n");
fprintf (file, "# Language\nGimple\n"); fprintf (file, "# Language\nGimple\n");
openscop_print_scop_context (file, scop, verbosity); openscop_print_scop_context (file, scop, verbosity);
...@@ -1409,17 +1414,6 @@ print_scop_header (FILE *file, scop_p scop, int verbosity) ...@@ -1409,17 +1414,6 @@ print_scop_header (FILE *file, scop_p scop, int verbosity)
fprintf (file, "# Number of statements\n"); fprintf (file, "# Number of statements\n");
fprintf (file, "%d\n",VEC_length (poly_bb_p, SCOP_BBS (scop))); fprintf (file, "%d\n",VEC_length (poly_bb_p, SCOP_BBS (scop)));
}
/* Print to FILE the SCOP, at some VERBOSITY level. */
void
print_scop (FILE *file, scop_p scop, int verbosity)
{
int i;
poly_bb_p pbb;
print_scop_header (file, scop, verbosity);
FOR_EACH_VEC_ELT (poly_bb_p, SCOP_BBS (scop), i, pbb) FOR_EACH_VEC_ELT (poly_bb_p, SCOP_BBS (scop), i, pbb)
print_pbb (file, pbb, verbosity); print_pbb (file, pbb, verbosity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment