-
Notifications
You must be signed in to change notification settings - Fork 229
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
Support LLVM 17 #460
Support LLVM 17 #460
Conversation
This includes the following LLVM-C API changes: * Core * Removed functions: * LLVMContextSetOpaquePointers * LLVMConstSelect * Transforms * PassRegistry and pass initialization removed, as they were the part of legacy Pass Manager. This results in complete removal of the following modules: * instcombine * ipo * pass_manager_builder * scalar * util * vectorize * Debug info * New language: * Mojo Fixes: #444
Signed-off-by: Alex Saveau <[email protected]>
@TheDan64 got it working! |
src/values/mod.rs
Outdated
@@ -47,7 +47,7 @@ pub use crate::values::traits::AsValueRef; | |||
pub use crate::values::traits::{AggregateValue, AnyValue, BasicValue, FloatMathValue, IntMathValue, PointerMathValue}; | |||
pub use crate::values::vec_value::VectorValue; | |||
|
|||
#[llvm_versions(12.0..=latest)] | |||
#[llvm_versions(12.0..=16.0)] | |||
use llvm_sys::core::LLVMIsPoison; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is poison no longer supported in LLVM17?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it still is, so I'll revert that later tonight: https://docs.rs/llvm-sys/latest/llvm_sys/?search=LLVMIsPoison
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually that import wasn't even being used so I got rid of it.
Signed-off-by: Alex Saveau <[email protected]>
Thanks! |
Taken from and closes #448, fixes #444.