public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Steven Bosscher" <stevenb.gcc@gmail.com>
To: "Joern Rennecke" <joernr@arc.com>
Cc: "Kaveh R. GHAZI" <ghazi@caip.rutgers.edu>,
	 	"Ian Lance Taylor" <iant@google.com>,
	gcc@gcc.gnu.org
Subject: Re: constified note_stores
Date: Tue, 10 Jun 2008 18:28:00 -0000	[thread overview]
Message-ID: <571f6b510806101127if21b8a5y24bcae574a91589@mail.gmail.com> (raw)
In-Reply-To: <20080610182214.GM32358@elsdt-razorfish.arc.com>

On Tue, Jun 10, 2008 at 8:22 PM, Joern Rennecke <joernr@arc.com> wrote:
> On Tue, Jun 10, 2008 at 01:44:08PM -0400, Kaveh R. GHAZI wrote:
>> I don't understand the point about the asm.
>
> I need to modify the SET_SRC of the individual SETs presented by
> note_stores.  The caller of note_stores can't pass in the SET RTXes,
> since they vary for each call of the callback function; it can only pass
> in a copy of the entire instruction pattern.
> So this would be something like:
>
> write_profile_sections (rtx dest ATTRIBUTE_UNUSED, const_rtx const_x,
>                        void *data)
> {
>  write_profile_sections_data *r = data;
>  htab_t htab = r->htab;
>  rtx x;
>
>  __asm__ ("" : "=rX" (x) : "0" (const_x), "X" (r->pattern));
> ...

Eh, right, just the thought of doing this in GCC is IMVHO Wrong  ;-)

> note_stores isn't very large, and with the assembly cruft thrown in
> and all this pretending to use const types when we aren't, the balance
> is tilted in favour of another note_stores copy.

Actually, hold on a second please.  You're only talking in terms of
solutions.  But what *exactly* are you trying to do?  You ave to
modify the SET_SRC of some SETs.  What do these SET_SRCs look like?
This is important, because if you are only looking at registers, maybe
you can easily access them through DF_INSN_DEFS.

Gr.
Steven

  reply	other threads:[~2008-06-10 18:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 22:43 Joern Rennecke
2008-06-09 23:28 ` Ian Lance Taylor
2008-06-09 23:45   ` Kaveh R. Ghazi
2008-06-10 13:39     ` Joern Rennecke
2008-06-10 14:47       ` Ian Lance Taylor
2008-06-10 17:44       ` Kaveh R. GHAZI
2008-06-10 18:22         ` Joern Rennecke
2008-06-10 18:28           ` Steven Bosscher [this message]
2008-06-10 18:58             ` Joern Rennecke

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=571f6b510806101127if21b8a5y24bcae574a91589@mail.gmail.com \
    --to=stevenb.gcc@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=ghazi@caip.rutgers.edu \
    --cc=iant@google.com \
    --cc=joernr@arc.com \
    /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).