about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder
AgeCommit message (Collapse)AuthorLines
2025-02-24Remove inherent function that has a trait method duplicate of a commonly ↵Oli Scherer-0/+1
imported trait
2025-02-24Generalize BaseTypeCodegenMethodsOli Scherer-1/+2
2025-02-24Avoid some duplication between SimpleCx and CodegenCxOli Scherer-1/+1
2025-02-21update autodiff flagsManuel Drehwald-4/+9
2025-02-10Rollup merge of #136419 - EnzymeAD:autodiff-tests, r=onur-ozkan,jieyouxuMatthias Krüger-32/+14
adding autodiff tests I'd like to get started with upstreaming some tests, even though I'm still waiting for an answer on how to best integrate the enzyme pass. Can we therefore temporarily support the -Z llvm-plugins here without too much effort? And in that case, how would that work? I saw you can do remapping, e.g. `rust-src-base`, but I don't think that will give me the path to libEnzyme.so. Do you have another suggestion? Other than that this test simply checks that the derivative of `x*x` is `2.0 * x`, which in this case is computed as `%0 = fadd fast double %x.0.val, %x.0.val` (I'll add a few more tests and move it to an autodiff folder if we can use the -Z flag) r? ``@jieyouxu`` Locally at least `-Zllvm-plugins=${PWD}/build/x86_64-unknown-linux-gnu/enzyme/build/Enzyme/libEnzyme-19.so` seems to work if I copy the command I get from x.py test and run it manually. However, running x.py test itself fails. Tracking: - https://github.com/rust-lang/rust/issues/124509 Zulip discussion: https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Enzyme.20build.20changes
2025-02-10remove outdated *First autodiff variants for higher-order adManuel Drehwald-2/+0
2025-02-10move second opt run to lto phase and cleanup codeManuel Drehwald-28/+7
2025-02-08Rustfmtbjorn3-10/+16
2025-02-05fix fwd-mode autodiff caseManuel Drehwald-3/+8
2025-01-29upstream rustc_codegen_ssa/rustc_middle changes for enzyme/autodiffManuel Drehwald-7/+7
2025-01-24Make CodegenCx and Builder genericManuel Drehwald-14/+11
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
2025-01-01upstream rustc_codegen_llvm changes for enzyme/autodiffManuel Drehwald-0/+344