LOOP_EXPR

Devang Patel dpatel@apple.com
Thu Dec 30 02:29:00 GMT 2004


On Dec 28, 2004, at 11:48 AM, Daniel Berlin wrote:

> On Tue, 2004-12-28 at 10:44 -0800, Devang Patel wrote:
>> I see following in c-tree.texi.
>>
>> @item LOOP_EXPR
>> These nodes represent ``infinite'' loops.  The @code{LOOP_EXPR_BODY}
>> represents the body of the loop.  It should be executed forever, 
>> unless
>> an @code{EXIT_EXPR} is encountered.
>
>> @item EXIT_EXPR
>> These nodes represent conditional exits from the nearest enclosing
>> @code{LOOP_EXPR}.  The single operand is the condition; if it is
>> nonzero, then the loop should be exited.  An @code{EXIT_EXPR} will 
>> only
>> appear within a @code{LOOP_EXPR}.
>
> They are in c-tree.texi because they are now GENERIC, not GIMPLEtrees.
> GIMPLE lowers LOOP_EXPRS.
> He asked about using LOOP_EXPR in GIMPLE.
> As the docs say, LOOP_EXPRS are no longer GIMPLE, they are lowered to
> explicit gotos.

I do not see it in .generic output also.

-
Devang



More information about the Gcc-help mailing list