feat: migrate codegen to LLVM 22 - #608
Draft
baszalmstra wants to merge 3 commits into
Draft
Conversation
baszalmstra
marked this pull request as draft
September 6, 2026 13:54
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## bas/typed-callables #608 +/- ##
=======================================================
+ Coverage 87.46% 87.56% +0.10%
=======================================================
Files 254 254
Lines 26946 27050 +104
=======================================================
+ Hits 23567 23687 +120
+ Misses 3379 3363 -16 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
baszalmstra
force-pushed
the
bas/opaque-pointers
branch
from
September 6, 2026 14:10
513e734 to
1bdb29c
Compare
baszalmstra
force-pushed
the
bas/opaque-pointers
branch
from
September 6, 2026 14:27
1bdb29c to
6ddd678
Compare
baszalmstra
force-pushed
the
bas/opaque-pointers
branch
from
September 6, 2026 15:29
6ddd678 to
a072fce
Compare
baszalmstra
force-pushed
the
bas/opaque-pointers
branch
from
September 6, 2026 17:00
83be616 to
c0d86a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
LLVM 14's typed pointers encode pointee meaning in pointer types. LLVM 22 is the newest release supported by Inkwell 0.10 and uses opaque pointers, so Mun must carry load, GEP, and indirect-call types explicitly in its own codegen model.
What
ptrand LLVM 22 GEP flagsDepends on mun-lang/lld-rs#10.
Testing
pixi run checkwithRUSTFLAGS=-Dwarningspixi run clippywithRUSTFLAGS=-Dwarningspixi run cargo test -p mun_codegen --libpixi run cargo test -p mun_codegen --test abi