public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Access RTX register information
@ 2020-05-05 22:57 eashan gupta
  2020-05-05 23:06 ` Jeff Law
  0 siblings, 1 reply; 5+ messages in thread
From: eashan gupta @ 2020-05-05 22:57 UTC (permalink / raw)
  To: gcc-help

Hi,
Is it possible to access the variable name if we have an RTX which is a reg
that corresponds to a variable declared by the user?

I have found the macro REG_USERVAR_P (RTX) in rtl.h which returns the
boolean "1 if RTX is a reg that corresponds to a variable declared by the
user." But I am unable to get a suitable macro to get the variable name the
reg corresponds to.

On dumping the rtl output using the command:

print_rtl_single(stdout, in_rtx);

I get output:

(reg/v:SI 68 [ c ])

where "c" was the variable name defined by me. How do I access "c" given
the rtx statement, "in_rtx"?

Thank you very much in advance.
Eashan

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

end of thread, other threads:[~2020-05-07 12:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 22:57 Access RTX register information eashan gupta
2020-05-05 23:06 ` Jeff Law
2020-05-05 23:42   ` eashan gupta
2020-05-06 17:35     ` Jeff Law
2020-05-07 12:51       ` eashan gupta

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