From: Sebastian Pop <sebpop@gmail.com>
To: gcc-patches@gcc.gnu.org
Cc: gcc-graphite@googlegroups.com, Sebastian Pop <sebpop@gmail.com>
Subject: [PATCH 2/8] Fix pretty printers.
Date: Thu, 09 Sep 2010 19:41:00 -0000 [thread overview]
Message-ID: <1284060606-26216-2-git-send-email-sebpop@gmail.com> (raw)
In-Reply-To: <1284060606-26216-1-git-send-email-sebpop@gmail.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.
---
gcc/ChangeLog.graphite | 6 ++++++
gcc/graphite-poly.c | 36 +++++++++++++++---------------------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 028da12..3cc99df 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,11 @@
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.
2010-09-02 Vladimir Kargov <kargov@gmail.com>
diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c
index 2bc0023..a648b45 100644
--- a/gcc/graphite-poly.c
+++ b/gcc/graphite-poly.c
@@ -1247,13 +1247,16 @@ print_pbb_body (FILE *file, poly_bb_p pbb, int verbosity,
fprintf (file, "# Body (\n");
if (!statement_body_provided)
- {
- if (verbosity > 0)
- fprintf (file, "# Statement body is not provided\n");
+ {
+ if (verbosity > 0)
+ fprintf (file, "# Statement body is not provided\n");
- fprintf (file, "0\n");
- return;
- }
+ fprintf (file, "0\n");
+
+ if (verbosity > 1)
+ fprintf (file, "#)\n");
+ return;
+ }
if (verbosity > 0)
fprintf (file, "# Statement body is provided\n");
@@ -1392,12 +1395,14 @@ print_scop_context (FILE *file, scop_p scop, int verbosity)
fprintf (file, "# )\n");
}
-/* Print to FILE the SCOP header: context, parameters, and statements
- number. */
+/* Print to FILE the SCOP, at some VERBOSITY level. */
-static void
-print_scop_header (FILE *file, scop_p scop, int verbosity)
+void
+print_scop (FILE *file, scop_p scop, int verbosity)
{
+ int i;
+ poly_bb_p pbb;
+
fprintf (file, "SCoP 1\n#(\n");
fprintf (file, "# Language\nGimple\n");
openscop_print_scop_context (file, scop, verbosity);
@@ -1407,17 +1412,6 @@ print_scop_header (FILE *file, scop_p scop, int verbosity)
fprintf (file, "# Number of statements\n");
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)
print_pbb (file, pbb, verbosity);
--
1.7.0.4
prev parent reply other threads:[~2010-09-09 19:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 19:31 [PATCH 1/8] Use FOR_EACH_VEC_ELT Sebastian Pop
2010-09-09 19:31 ` [PATCH 4/8] Outline lst_niter_for_loop Sebastian Pop
2010-09-09 19:31 ` [PATCH 8/8] New pass: loop flattening Sebastian Pop
2010-09-09 19:45 ` Nathan Froyd
2010-09-09 19:46 ` Sebastian Pop
2010-09-09 20:20 ` Sebastian Pop
2010-09-09 19:31 ` [PATCH 7/8] Add cloog_checksum Sebastian Pop
2010-09-09 19:31 ` [PATCH 5/8] Fix lst_update_scattering Sebastian Pop
2010-09-09 19:36 ` [PATCH 3/8] Call fatal_error when the transform read from file is not legal Sebastian Pop
2010-09-09 19:40 ` [PATCH 6/8] Fix pbb_number_of_iterations_at_time Sebastian Pop
2010-09-09 19:41 ` Sebastian Pop [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1284060606-26216-2-git-send-email-sebpop@gmail.com \
--to=sebpop@gmail.com \
--cc=gcc-graphite@googlegroups.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).