MIR to LLVM in rustc

Hi all, i wonder that compile MIR to LLVM in rustc source code.
I want to know the source code of rustc where the process from MIR to LLVM-IR translation.
(GitHub - rust-lang/rust: Empowering everyone to build reliable and efficient software.) I know that src/compile/rustc_codegen_llvm in the corresponding rustc git has codegen-related source code implemented. I wonder if there is an exact sources code or files where MIR is converted to LLVM to generate ll code.

It's slightly more complicated now, as an additional crate was added to unify some of the logic that would be duplicated between llvm and cranelift backends.

Backend Agnostic Codegen - Guide to Rustc Development may be of interest to you

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.