LOOP_EXPR

Daniel Berlin dberlin@dberlin.org
Tue Dec 28 19:48:00 GMT 2004


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.

> 
> -
> Devang
> 



More information about the Gcc-help mailing list