On Tue, Jan 12, 2010 at 11:30 AM, Richard Guenther
wrote:
>
> There is walk_tree.
>
Thanks! Guess I should have guessed that! :)
> Richard.
>
--
Paulo Jorge Matos - pocmatos at gmail.com
http://www.pmatos.net
On Tue, Jan 12, 2010 at 12:13 PM, Paulo J. Matos wrote:
> On Tue, Jan 12, 2010 at 10:43 AM, Richard Guenther
> wrote:
>>
>> Because it talks about trees as used by the C / C++ frontends
>> and it is way out of date anyway.
>>
>
> Thanks, the tree iterator did the trick.
> I was wondering if there
On Tue, Jan 12, 2010 at 10:43 AM, Richard Guenther
wrote:
>
> Because it talks about trees as used by the C / C++ frontends
> and it is way out of date anyway.
>
Thanks, the tree iterator did the trick.
I was wondering if there is a tree-walker which walks through the
whole tree, going through al
On Mon, Jan 11, 2010 at 8:39 PM, Paulo J. Matos wrote:
> On Mon, 2010-01-11 at 17:51 +0100, Richard Guenther wrote:
>> On Mon, Jan 11, 2010 at 4:46 PM, Paulo J. Matos wrote:
>> > Hi all,
>> >
>> > I am using gcc 4.3.4 to loop through the gimple tree to find
>> > CALL_EXPR. This is what I have (ev
On Mon, 2010-01-11 at 17:51 +0100, Richard Guenther wrote:
> On Mon, Jan 11, 2010 at 4:46 PM, Paulo J. Matos wrote:
> > Hi all,
> >
> > I am using gcc 4.3.4 to loop through the gimple tree to find
> > CALL_EXPR. This is what I have (even though I tried several variants,
> > none of which worked):
On Mon, Jan 11, 2010 at 4:46 PM, Paulo J. Matos wrote:
> Hi all,
>
> I am using gcc 4.3.4 to loop through the gimple tree to find
> CALL_EXPR. This is what I have (even though I tried several variants,
> none of which worked):
> tree body_stmt = DECL_SAVED_TREE (current_function_decl);
> while
Hi all,
I am using gcc 4.3.4 to loop through the gimple tree to find
CALL_EXPR. This is what I have (even though I tried several variants,
none of which worked):
tree body_stmt = DECL_SAVED_TREE (current_function_decl);
while (body_stmt) //
{
if (TREE_CODE (body_stmt) == CALL_EXPR)