Skip to content

Remove llvm_enzyme feature outside of bootstrap#158460

Draft
ZuseZ4 wants to merge 1 commit into
rust-lang:mainfrom
ZuseZ4:simplify-enzyme-feature
Draft

Remove llvm_enzyme feature outside of bootstrap#158460
ZuseZ4 wants to merge 1 commit into
rust-lang:mainfrom
ZuseZ4:simplify-enzyme-feature

Conversation

@ZuseZ4

@ZuseZ4 ZuseZ4 commented Jun 27, 2026

Copy link
Copy Markdown
Member

r? bjorn3
I think you were the one who did the last refactoring on how we pass this feature.

We originally introduced and used this compile-time cfg since we were suspecting that some of the work we did for autodiff was causing a compile time regression even when no autodiff was used. It turned out later that we just did extra work due to a bug, which was fixed.

Thanks to the dlopen work our checks are now much simpler. We only do autodiff work if the -Zautodiff=Enable flag was set. If the flag is set we also just check if libEnzyme is in the sysroot, and if we can not find it, we error out.

Blocked on #158333, where I first fix the aforementioned check (I noticed this cleanup chance while working on it).

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants