This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: transparent way of inserting insns


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]