Once the files have been completely parsed, how can I traverse through
all global declarations (e.g. types and variables) ? I can find the
functions by traversing the call graph but would like to know how to
do the same for types and variables. Also is there a way to find a
decl from its UID
Hi,
I was trying to convert the gcc C-Gimple form to the internal AST
representation used in our research compiler. I was able to transform most
of the nodes of the GIMPLE tree but was not able to find out a way to
retrieve the global declarations from the GIMPLE tree. For example is there
a way
On Feb 13, 2006, at 11:52 AM, Daniel Berlin wrote:
cgraph's varpool should have these.
Look at ipa-type-escape.c for the varpool_nodes_queue walking code.
Thanks for the guidance. I'm using gcc-4.0.2 sources and I could get
the global variables by the cgraph_varpool_nodes. This is what I wa
On Mon, 2006-02-13 at 11:48 +0900, Arquimedes Canedo wrote:
> Dear developers,
>
> I am trying to get all global declarations in GIMPLE level just
> before RTL expansion. I have tried to copy the scope instead of
> pop_scope() to catch the global declarat
Dear developers,
I am trying to get all global declarations in GIMPLE level just
before RTL expansion. I have tried to copy the scope instead of
pop_scope() to catch the global declarations in the way
c_write_global_declarations() does it but I've failed. It seems the
structures ar