wasmtime icon indicating copy to clipboard operation
wasmtime copied to clipboard

Question on how to dump a Cranelift module

Open AribYadi opened this issue 3 years ago • 1 comments

Hi, I need to dump/print a Cranelift module to Cranelift IR for debugging purpose, and I cannot seem to find that feature. There is Function::display however to dump the whole module instead of just a single function. Is there anyway to dump/print the whole module?

AribYadi avatar Aug 14 '22 03:08 AribYadi

No, a Module contains already compiled functions. It doesn't contain clif ir. It should be possible to write a Module wrapper printing all clif ir though.

bjorn3 avatar Aug 14 '22 06:08 bjorn3