Access RTX register information
Thu May 7 12:51:23 GMT 2020
Yes, thanks for replying.
The above command works but it returns an IDENTIFIER_NODE so it
to give the name of the variable.
On Wed, May 6, 2020 at 11:05 PM Jeff Law <firstname.lastname@example.org> wrote:
> On Wed, 2020-05-06 at 05:12 +0530, eashan gupta wrote:
> > Hi,
> > Thanks a lot for replying.
> > I have tried tracing the print_rtl_single too following the REG_EXPR but
> > ends up in the code of printing the complete tree.
> Right. It's that tree structure that will have the name emebedded in it.
> > Is it possible to access this information directly, ie get the variable
> > stored in a string instead of printing it out?
> Probably something like DECL_NAME (REG_EXPR (object)) or
> (REG_EXPR (object))
> > I am not too familiar with the code for the tree and it would be very
> > to me if I could get the method to get the variable name
> stored/extracted from
> > the tree.
> You're almost certainly going to need to refer to tree.h and tree.def to
> understand how to dig out the information you want.
More information about the Gcc-help