Stream: general

Topic: How to get CLIR text dump with JITModule?


view this post on Zulip Tianyu Geng (Nov 13 2023 at 23:28):

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?

view this post on Zulip bjorn3 (Nov 14 2023 at 11:16):

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.

view this post on Zulip Tianyu Geng (Nov 14 2023 at 18:01):

Ah! Thank you! ctx.func.display() does the trick!


Last updated: Oct 23 2024 at 20:03 UTC