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

chore: Update to LLVM 20 #257

Merged
merged 2 commits into from
Feb 19, 2025
Merged

chore: Update to LLVM 20 #257

merged 2 commits into from
Feb 19, 2025

Conversation

tamird
Copy link
Member

@tamird tamird commented Feb 18, 2025

This change is Reviewable

@tamird tamird requested a review from vadorovsky February 18, 2025 15:27
@vadorovsky
Copy link
Member

Hmm... I'm not sure if linking llvm-sys 191.x to LLVM 20 will work. If yes, that's great. If not, we need to bump the LLVM version in llvm-sys first. I've already started preparing that change, I'm planning to make a PR next morning.

Copy link
Member

@vadorovsky vadorovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving in case it works 🙂

@vadorovsky
Copy link
Member

Hum, interesting - the failing tests have just some mismatch in the DI/IR, but overall linking to LLVM 20 seems to work just fine.

On a side note, I opened a PR in llvm-sys.

@tamird tamird force-pushed the llvm-20 branch 2 times, most recently from 8debd49 to 2f13419 Compare February 18, 2025 17:01
Latest Rust nightly switched to LLVM 20, so we need to update in order
to support rustc-llvm-proxy.
@tamird
Copy link
Member Author

tamird commented Feb 18, 2025

@vadorovsky I don't have a Linux machine handy to test on. Could you see if you can find out why the DI is lacking this function?

@vadorovsky
Copy link
Member

@vadorovsky I don't have a Linux machine handy to test on. Could you see if you can find out why the DI is lacking this function?

Sure, I will take care of that

The previous code, which wasn't making any use of the return value of
`my_function`, was optimized out after upgrading to LLVM 20. Using the
return value prevents that.
@tamird tamird merged commit b76efc8 into aya-rs:main Feb 19, 2025
10 checks passed
@tamird tamird deleted the llvm-20 branch February 19, 2025 11:03
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