Re: Internal Representation

2009-07-09 Thread Ian Lance Taylor
Nicolas COLLIN writes: >> From internal representation. I got the body with DECL_SAVED_TREE >> and I > succeed to get the name of functions and methods called from > CALL_EXPR, using TREE_OPERAND, EXPR_STMT_EXPR, etc... But I can't get > the object on which is called

Internal Representation

2009-07-08 Thread Nicolas COLLIN
Hello, my purpose is to write informations about a function by reading its body from internal representation. I got the body with DECL_SAVED_TREE and I succeed to get the name of functions and methods called from CALL_EXPR, using TREE_OPERAND, EXPR_STMT_EXPR, etc... But I can't get the o

Re: Internal Representation

2009-07-07 Thread Ian Lance Taylor
Nicolas COLLIN writes: > I looked at the part of the documentation about function bodies and I > wonder something : is there a way to get the function calls from it ? > Because I'd like to make a call graph which represent function and the > functions it calls. gcc builds a call graph. See cgra

Re: Internal Representation

2009-07-07 Thread Daniel Berlin
You must be looking at old documentation or something. Call's are represented by GIMPLE_CALL_STMT (or CALL_EXPR in older GCC'en). There has been a callgraph for quite a long time (see cgraph*.c and cgraph*.h) On Tue, Jul 7, 2009 at 7:26 AM, Nicolas COLLIN wrote: > Hello, > I looked at the part of

Internal Representation

2009-07-07 Thread Nicolas COLLIN
Hello, I looked at the part of the documentation about function bodies and I wonder something : is there a way to get the function calls from it ? Because I'd like to make a call graph which represent function and the functions it calls. Thank you. Nicolas COLLIN