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...
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.
thanks!
Last updated: Dec 06 2025 at 05:03 UTC