Hi all,
I am new to the wasmtime repo and was looking to hack around a bit. I saw how to use clif-util
to compile and run some cranelift IR. However, is there a way to view the IR that cranelift generates while compiling down a full .wasm
file? For example, if I have a program, test.c
that I compile to test.wasm
with WASI sdk, can I intercept the IR generated when running with wasmtime test.wasm
etc? Or, is there a way / tool to take the test.wasm
file and get to the cranelift IR that cranelift would use?
Thanks!
You can give clif-util wasm -p
a try.
That works for me, thanks!
Last updated: Dec 23 2024 at 12:05 UTC