Skip to content

Drop support for legacy PM with LLVM 15 #96072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nikic opened this issue Apr 15, 2022 · 0 comments · Fixed by #96215
Closed

Drop support for legacy PM with LLVM 15 #96072

nikic opened this issue Apr 15, 2022 · 0 comments · Fixed by #96215
Assignees
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

Comments

@nikic
Copy link
Contributor

nikic commented Apr 15, 2022

Support for the legacy pass manager is being actively removed in LLVM 15. We need to make -Z new-llvm-pass-manager=no error with LLVM 15 (or warn and ignore), and remove references to certain FFI functions either exported by the Rust wrapper or llvm-c.

This would be at least the LLVMRustCreate*Pass family of functions, as well as the LLVMPsasManagerBuilder* family of functions. As the latter are provided by llvm-c, I guess we'd want to use weak symbols for those.

@nikic nikic added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Apr 15, 2022
@nikic nikic self-assigned this Apr 19, 2022
@bors bors closed this as completed in 433f1f4 Apr 25, 2022
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant