mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 17:40:16 +00:00
Fix typetree generation for differentiated functions Further improvements after https://github.com/rust-lang/rust/pull/158278 This fixes a test failure on main (encountered while working on the PR above) in `tests/codegen-llvm/autodiff/autodiffv2.rs`. Further improvements are split out into https://github.com/rust-lang/rust/pull/158440, with high-level docs available in https://github.com/rust-lang/rustc-dev-guide/pull/2911 Also noticed that I can (probably?) remove the llvm_enzyme cfg at this point, https://github.com/rust-lang/rust/pull/158460
The codegen crate contains the code to convert from MIR into LLVM IR,
and then from LLVM IR into machine code. In general it contains code
that runs towards the end of the compilation process.
For more information about how codegen works, see the rustc dev guide.