Hello,
I'm wondering if there's an easy way to inspect the code generated during compilation, e.g., the LLVM IR. Does this require using a custom roc
compiler build? My use case is to be able to understand whether two possible algorithm implementations would result in a functionally identical executable.
Thanks!
--debug
will dump llvm ir
It can be quite verbose and hard to follow
Also, it requires a tool called debugir if you want more debug info and compilation to finish.
But you will get a raw dump even without the tool
Sounds like enough to get me started. Thanks!
Also, feel free to ask direct questions here, we may already know the answers to some of your optimization related questions. Of course, won't be as exact as running the llvm optimization and comparing, but it should be pretty close.
Last updated: Jul 05 2025 at 12:14 UTC