This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Where can I get the output of the front-end.
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: Matthieu Moy <Matthieu dot Moy at imag dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: 03 Apr 2003 18:13:27 +0200
- Subject: Re: Where can I get the output of the front-end.
- References: <vpqhe9fy340.fsf@ecrins.imag.fr>
Op do 03-04-2003, om 18:09 schreef Matthieu Moy:
> Hi,
>
> I'm still trying to re-use the front-end of GCC to do some code
> analysis. (I'm using the tree-ssa branch)
>
> I begin to understand how the data structures are made, but I don't
> understand *where*, in the programm, they are generated.
>
> What I would like to do is
>
> C++ source -----> SSA tree ---(standard way)----> RTL
> \
> `---(my add-on)---> ...
>
> So, I thought of hacking the ssa -> rtl code, but I can't find which
> function is doing so in gcc !
>
> Any help appreciated, thanks,
Look at tree-optimize.c, or if you want to hook in after the SSA
optimizers are done, grep for TV_EXPAND in c-decl.c.
Greetz
Steven