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

Update to support LLVM 17 #55

Merged
merged 7 commits into from
Jan 27, 2024
Merged

Conversation

Benjins
Copy link
Contributor

@Benjins Benjins commented Jan 27, 2024

Mostly going off of what changes #39 made

This is an initial supporting of LLVM 17 to keep it lighter. The API changes don't seem that substantial, though NSW/NUW/Exact flags are now accessible via the C API. That can be done in a follow-up. The only API change was using LLVMGetArrayLength2 when it's available, since LLVMGetArrayLength is now deprecated

Tested locally using LLVM 17.0.6 and llvm-sys 170.0.1. Will double-check CI when it runs

Other resources:

…ate, and test files. Tests pass, though there is a warning about LLVMGetArrayLength being deprecated
LLVMGetArrayLength has been deprecated. The parameters are the same, but the
return type has changed
@Benjins Benjins mentioned this pull request Jan 27, 2024
@cdisselkoen
Copy link
Owner

Added another tweak -- I see in the LLVM 17 changelog that they removed constexpr select, so I pushed a commit with that

@cdisselkoen
Copy link
Owner

CI passes, in my opinion this is good enough to merge, we can address stuff like NSW/NUW in a followup as you say

@cdisselkoen cdisselkoen merged commit d2b642c into cdisselkoen:main Jan 27, 2024
9 checks passed
@Benjins Benjins deleted the bns-llvm-17-update branch January 27, 2024 14:37
@cdisselkoen
Copy link
Owner

NSW/NUW/Exact will be addressed in #56

@woodruffw woodruffw mentioned this pull request Feb 1, 2024
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.

2 participants