Hi I am trying to debug my IR generation logic by inspecting the generated IR code. But how can I get the text dump? I can't seem to find any methods from JITModule
that can give me the generated IR. Any pointers?
You would have to print this before calling define_function. define_function immediately compiles the function and stores the native code in the JITModule. It doesn't keep the clif ir around.
Ah! Thank you! ctx.func.display()
does the trick!
Last updated: Dec 23 2024 at 13:07 UTC