Re: Getting local variable from an artificial variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Swaroop Joshi <swaroop@xxxxxxxxxxxxxx> writes:

> C code:
> ...
> p = &r;
> *q = r;
> ...
>
> produces GIMPLE:
> ...
> p = &r;
> r.0 = r;
> *q = r.0;
> ...
>
> Now I want to extract tree r from r.0.
> How can I do this ?

If you are in SSA form, which is true of most of the GIMPLE passes,
then once you have the variable you can call SSA_NAME_DEF_STMT to find
the statement which sets the variable.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux