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 #448

Closed
wants to merge 1 commit into from
Closed

Support LLVM 17 #448

wants to merge 1 commit into from

Conversation

vadorovsky
Copy link
Contributor

Fixes: #444

Description

Add llvm17-0 feature with LLVM 17 support.

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

Related Issue

#444

How This Has Been Tested

No additional tests apart from the existing ones.

Option<Breaking Changes>

  • Disabled PassManagerBuilder for LLVM 17, as it was removed
  • Disabled the most of PassManager methods, as the corresponding functions were removed.

Checklist

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: TheDan64#444
@Pat-Lafon
Copy link
Contributor

Update the README 🙏 ?

@SUPERCILEX
Copy link
Contributor

Any updates on this?

@TheDan64
Copy link
Owner

@vadorovsky We can merge this once the test suite is fixed to work with other versions

@novafacing
Copy link

Is anything needed other than to add entries for 17-0 to test.yml to enable CI? I can help out if needed.

@SUPERCILEX SUPERCILEX mentioned this pull request Jan 10, 2024
@SUPERCILEX
Copy link
Contributor

I put out a PR that gets us over the edge. Was just an import typo: #460

@SUPERCILEX
Copy link
Contributor

Ah shoot, spoke too soon. All the tests and examples are broken on llvm 17.

@vadorovsky
Copy link
Contributor Author

vadorovsky commented Jan 10, 2024

Whoops, sorry for lack of reaction! I will try to fix the tests later today. I will also add README changes.

@SUPERCILEX
Copy link
Contributor

That'd be great! You can grab my commit here: f5a1771 (#460)

Looks like some From conversions are broken: https://github.com/SUPERCILEX/inkwell/actions/runs/7471632843/job/20332249713

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
5 participants