public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Malcolm <dmalcolm@redhat.com>
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm <dmalcolm@redhat.com>
Subject: [committed] print_rtx_function: update example in comment
Date: Mon, 19 Dec 2016 20:37:00 -0000	[thread overview]
Message-ID: <1482181681-63621-1-git-send-email-dmalcolm@redhat.com> (raw)

The patch updates the example dump in the comment for
print_rtx_function to reflect various changes:
- r241593: addition of insn UIDs
- r241908: removal of trailing "(nil)" and other default values
- r242023: addition of "param" directives
- r243798: change of format of regnos in non-virtual pseudos
(from "$2" to "<2>")

Committed to trunk (as r243812) under the "obvious" rule.

gcc/ChangeLog:
	* print-rtl-function.c (print_rtx_function): Update
	example in comment to reflect current format.
---
 gcc/print-rtl-function.c | 44 +++++++++++++++++++++-----------------------
 1 file changed, 21 insertions(+), 23 deletions(-)

diff --git a/gcc/print-rtl-function.c b/gcc/print-rtl-function.c
index dea84fe..74d8e9c 100644
--- a/gcc/print-rtl-function.c
+++ b/gcc/print-rtl-function.c
@@ -175,38 +175,36 @@ print_param (FILE *outfile, rtx_writer &w, tree arg)
    Example output (with COMPACT==true):
 
    (function "times_two"
+     (param "i"
+       (DECL_RTL (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
+	   (const_int -4)) [1 i+0 S4 A32]))
+       (DECL_RTL_INCOMING (reg:SI di [ i ])))
      (insn-chain
-       (cnote NOTE_INSN_DELETED)
+       (cnote 1 NOTE_INSN_DELETED)
        (block 2
 	 (edge-from entry (flags "FALLTHRU"))
-	 (cnote [bb 2] NOTE_INSN_BASIC_BLOCK)
-	 (cinsn (set (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
+	 (cnote 4 [bb 2] NOTE_INSN_BASIC_BLOCK)
+	 (cinsn 2 (set (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
 			       (const_int -4)) [1 i+0 S4 A32])
-		       (reg:SI di [ i ])) "t.c":2
-		   (nil))
-	 (cnote NOTE_INSN_FUNCTION_BEG)
-	 (cinsn (set (reg:SI %2)
+		       (reg:SI di [ i ])) "t.c":2)
+	 (cnote 3 NOTE_INSN_FUNCTION_BEG)
+	 (cinsn 6 (set (reg:SI <2>)
 		       (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
-			       (const_int -4)) [1 i+0 S4 A32])) "t.c":3
-		   (nil))
-	 (cinsn (parallel [
-			   (set (reg:SI %0 [ _2 ])
-			       (ashift:SI (reg:SI %2)
+			       (const_int -4)) [1 i+0 S4 A32])) "t.c":3)
+	 (cinsn 7 (parallel [
+			   (set (reg:SI <0> [ _2 ])
+			       (ashift:SI (reg:SI <2>)
 				   (const_int 1)))
 			   (clobber (reg:CC flags))
 		       ]) "t.c":3
-		   (expr_list:REG_EQUAL (ashift:SI (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
+		    (expr_list:REG_EQUAL (ashift:SI (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
 				   (const_int -4)) [1 i+0 S4 A32])
-			   (const_int 1))
-		       (nil)))
-	 (cinsn (set (reg:SI %1 [ <retval> ])
-		       (reg:SI %0 [ _2 ])) "t.c":3
-		   (nil))
-	 (cinsn (set (reg/i:SI ax)
-		       (reg:SI %1 [ <retval> ])) "t.c":4
-		   (nil))
-	 (cinsn (use (reg/i:SI ax)) "t.c":4
-		   (nil))
+			   (const_int 1))))
+	 (cinsn 10 (set (reg:SI <1> [ <retval> ])
+		       (reg:SI <0> [ _2 ])) "t.c":3)
+	 (cinsn 14 (set (reg/i:SI ax)
+		       (reg:SI <1> [ <retval> ])) "t.c":4)
+	 (cinsn 15 (use (reg/i:SI ax)) "t.c":4)
 	 (edge-to exit (flags "FALLTHRU"))
        ) ;; block 2
      ) ;; insn-chain
-- 
1.8.5.3

                 reply	other threads:[~2016-12-19 20:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1482181681-63621-1-git-send-email-dmalcolm@redhat.com \
    --to=dmalcolm@redhat.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).