This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SIMPLE: A language-independent tree IR
On Mon, 2002-01-07 at 04:45, Fergus Henderson wrote:
> Just to clarify:
>
> The idea of a language-independent tree IR in which all side-effects
> are *_STMT nodes rather than *_EXPR nodes ("SIMPLE trees") sounds fine,
> but I don't think language front-ends should use that tree IR;
> instead they should generate a different form of tree IR
> which allows *_EXPR nodes with side effects ("INITIAL trees")
> and then some language-independent pass can convert from
> INITIAL trees to SIMPLE trees.
>
> Is that what you all had in mind?
>
Absolutely.
Front-ends generate their own trees. A subsequent pass converts those
into li-trees. This pass will be very similar to the current tree->rtl
pass.
Diego.