Re: a question about code instrumentation in RTL level

2006-07-17 Thread Jim Wilson
sean yang wrote: The GCC internals explicitly introduced code manipulation APIs in TREE representation (bsi_insert_before, bsi_remove etc). But I did not see the equivalent for RTL representation. There is emit_insn_after, emit_insn_before. There is also the sequence stuff: start_sequence, en

a question about code instrumentation in RTL level

2006-07-16 Thread sean yang
The GCC internals explicitly introduced code manipulation APIs in TREE representation (bsi_insert_before, bsi_remove etc). But I did not see the equivalent for RTL representation. Say, I want to enable a counter for a n-depth-nested loop. For example, I want to add a counter instruction to cou