public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* From regno to pseudo?
@ 2009-06-03 16:00 Steven Bosscher
  2009-06-03 17:15 ` Adam Nemet
  2009-06-04 22:24 ` Jeff Law
  0 siblings, 2 replies; 3+ messages in thread
From: Steven Bosscher @ 2009-06-03 16:00 UTC (permalink / raw)
  To: GCC Mailing List

Hello,

Is there a way to get the REG for a given regno?  I am building a
register renumbering map that is just a pair of unsigned int
<old_regno, new_regno>, but I can't figure out how to get the REG for
new_regno without remembering a pointer to it myself. Is there an
easier/better way?

Ciao!
Steven

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: From regno to pseudo?
  2009-06-03 16:00 From regno to pseudo? Steven Bosscher
@ 2009-06-03 17:15 ` Adam Nemet
  2009-06-04 22:24 ` Jeff Law
  1 sibling, 0 replies; 3+ messages in thread
From: Adam Nemet @ 2009-06-03 17:15 UTC (permalink / raw)
  To: Steven Bosscher; +Cc: GCC Mailing List

Steven Bosscher <stevenb.gcc@gmail.com> writes:
> Is there a way to get the REG for a given regno?  I am building a
> register renumbering map that is just a pair of unsigned int
> <old_regno, new_regno>, but I can't figure out how to get the REG for
> new_regno without remembering a pointer to it myself. Is there an
> easier/better way?

regno_reg_rtx in emit-rtl.c?

Adam

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: From regno to pseudo?
  2009-06-03 16:00 From regno to pseudo? Steven Bosscher
  2009-06-03 17:15 ` Adam Nemet
@ 2009-06-04 22:24 ` Jeff Law
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Law @ 2009-06-04 22:24 UTC (permalink / raw)
  To: Steven Bosscher; +Cc: GCC Mailing List

Steven Bosscher wrote:
> Hello,
>
> Is there a way to get the REG for a given regno?  I am building a
> register renumbering map that is just a pair of unsigned int
> <old_regno, new_regno>, but I can't figure out how to get the REG for
> new_regno without remembering a pointer to it myself. Is there an
> easier/better way?
>
> Ciao!
> Steven
>   
regno_reg_rtx[pseudo]

If you're dealing with a hard register, try ORIGINAL_REGNO

Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-04 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-03 16:00 From regno to pseudo? Steven Bosscher
2009-06-03 17:15 ` Adam Nemet
2009-06-04 22:24 ` Jeff Law

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).