Hi everyone,
I'm interested in Wasmtime's JIT and would like to read the IR it generates. I'm looking for information on how to dump the IR generated by the Cranelift JIT compiler. Do any of you know about such options or methods?
You can use wasmtime compile --emit-clif /path/to/some/directory your_program.wasm
.
Thank you for your prompt reply!
Is it correct to assume that the clif generated by wasmtime compile
option (AOT compilation) and the clif generated by JIT compilation are the same?
Yes. In case of JIT compilation Wasmtime effectively does the same as AOT compilation, except that instead of writing the compilation output to a file, it maps it as executable in memory.
Thanks for the explanation! My question has been answered.
bjorn3 has marked this topic as resolved.
Last updated: Nov 22 2024 at 17:03 UTC