Stream: general

Topic: how to inspect cranelift IR?


view this post on Zulip Joseph Johnston (Jul 26 2024 at 23:08):

I'm able to build with rustc_codegen_cranelift but I don't know how to get the intermediate cranelift IR. It's not in the ".d" file...

Cranelift based backend for rustc. Contribute to rust-lang/rustc_codegen_cranelift development by creating an account on GitHub.

view this post on Zulip bjorn3 (Jul 27 2024 at 08:18):

Pass --emit llvm-ir to rustc. For cg_clif that will emit the clif ir in a directory named crate_name.clif next to the rlib/executable output.

view this post on Zulip Joseph Johnston (Jul 27 2024 at 14:40):

thanks!


Last updated: Oct 23 2024 at 20:03 UTC