Skip to content
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

Merged
merged 3 commits into from
Jan 13, 2024
Merged

Support LLVM 17 #460

merged 3 commits into from
Jan 13, 2024

Conversation

SUPERCILEX
Copy link
Contributor

Taken from and closes #448, fixes #444.

@SUPERCILEX SUPERCILEX mentioned this pull request Jan 10, 2024
1 task
@TheDan64 TheDan64 self-requested a review January 10, 2024 21:43
vadorovsky and others added 2 commits January 10, 2024 15:39
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]>
@SUPERCILEX
Copy link
Contributor Author

@TheDan64 got it working!

@@ -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;
Copy link
Owner

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?

Copy link
Contributor Author

@SUPERCILEX SUPERCILEX Jan 11, 2024

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

Copy link
Contributor Author

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.

@TheDan64
Copy link
Owner

Thanks!

@TheDan64 TheDan64 merged commit b545f7c into TheDan64:master Jan 13, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support llvm 17
3 participants