[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Basic blocks, jump targets and locals
On 11 June 2015 at 21:34, David Malcolm <dmalcolm@redhat.com> wrote:
> BTW, you may want to use gcc_jit_block_add_comment:
> https://gcc.gnu.org/onlinedocs/jit/topics/functions.html#gcc_jit_block_add_comment
>
> which lets you add arbitrary comments as "statements" into the libgccjit
> IR, so it shows up in the various debug dumps. I've found this to be
> hugely valuable when debugging compilation of bytecode into libgccjit.
Cool. I will try that to annotate the blocks with the bytecode
instruction - that will be very useful for debugging.