This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Looping through the gimple for CALL_EXPR
On Tue, Jan 12, 2010 at 12:13 PM, Paulo J. Matos <pocmatos@gmail.com> wrote:
> On Tue, Jan 12, 2010 at 10:43 AM, Richard Guenther
> <richard.guenther@gmail.com> 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 all the possible nested statements and
> expressions instead of just iterating through a list of statements.
> I know tree-pretty-print.c implements ?something to print a tree but I
> am wondering if there's something like an iterator for doing this or
> if I have to implement it myself.
There is walk_tree.
Richard.