qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TCG IR extraction


From: Richard Henderson
Subject: Re: TCG IR extraction
Date: Thu, 1 Sep 2022 06:28:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 8/31/22 19:11, Tom Clark wrote:
I've done a lot of digging in the source and found the code_gen_buffer and determined that's where the IR generation is being written to

That's not IR generation, but the JIT compiler output.

There's no sequential "byte" format. There's struct TCGOp, which is the double-linked list of operations and its parameters, which are (encoded) TCGTemp and constants, and you need tcg_op_defs[] to interpret them.

See e.g. tcg_optimize() for how to iterate through the list and interpret each 
opcode.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]