From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13632 invoked by alias); 3 Apr 2003 16:14:24 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 13623 invoked from network); 3 Apr 2003 16:14:23 -0000 Received: from unknown (HELO smtp4.wanadoo.nl) (194.134.35.175) by sources.redhat.com with SMTP; 3 Apr 2003 16:14:23 -0000 Received: from steven.lr-s.tudelft.nl (3eea14fc.cable.wanadoo.nl [62.234.20.252]) by smtp4.wanadoo.nl (Postfix) with ESMTP id C9F763EA6A; Thu, 3 Apr 2003 18:14:21 +0200 (CEST) Subject: Re: Where can I get the output of the front-end. From: Steven Bosscher To: Matthieu Moy Cc: gcc@gcc.gnu.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 03 Apr 2003 18:01:00 -0000 Message-Id: <1049386407.757.12.camel@steven> Mime-Version: 1.0 X-SW-Source: 2003-04/txt/msg00146.txt.bz2 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