public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: RICHU NORMAN <richunorman@cusat.ac.in>
To: gcc@gcc.gnu.org
Subject: How can I add comments to files generated in rtl dump?
Date: Wed, 18 May 2022 15:53:30 +0530	[thread overview]
Message-ID: <CAPhpueVDMZgAqrd57tU7F5BLWNb90qKr8T-6iB8au__Tgq4tgg@mail.gmail.com> (raw)

Hi,
I have added the new instruction in opcode and invoked it using
asm_volatile .The new instruction is generated in the object dump.
Now I  wrote an RTL template for the same instruction in a .md file and
some cost value calculation in cfile.Then I run the sample c code that
invokes the instruction defined in .md file.
I examined the files generated in -fdump-rtl-all. But the added instruction
is not generated .
*How can I add comments to files generated in rtl dump?*
 I have added fprintf (dump_file, "Test hello world\n"); to *gcc/cfgrtl.cc *and
observed *.expand file .But I could not find the test word in that file .

-- 
Richu Norman
Research Scholar
Department of Computer Science
Cochin University of Science and Technology
Ph : (+91)-8848455627

                 reply	other threads:[~2022-05-18 10:23 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=CAPhpueVDMZgAqrd57tU7F5BLWNb90qKr8T-6iB8au__Tgq4tgg@mail.gmail.com \
    --to=richunorman@cusat.ac.in \
    --cc=gcc@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).