This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: transparent way of inserting insns
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Johnny Huynh <huynh at ugrad dot cs dot ualberta dot ca>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 19 May 2004 09:40:02 -0700
- Subject: Re: transparent way of inserting insns
- References: <Pine.GSO.4.56.0405190906120.10502@csu210.cs.ualberta.ca>
On Wed, May 19, 2004 at 09:15:00AM -0600, Johnny Huynh wrote:
> I am trying to add another pass in gcc (for my own purposes) that needs to
> add some simple, non-control insns in a basic block before the register
> allocation pass. Is there a simple,transparent way of doing this?
That sounds somewhat similar to what happens in profiling, where hooks are
inserted to record the execution of every basic block. So perhaps looking
at how profiling works might be a starting point.