Repository navigation
perf(llvm): emit proven nonnull and align for kernel refs - #1244
Merged
nihalpasham merged 3 commits intoSep 15, 2026
Merged
Conversation
uurl
force-pushed
the
perf/kernel-reference-validity-attrs
branch
from
September 6, 2026 06:19
e58ecf9 to
5db8942
Compare
Signed-off-by: Raul Estrada <[email protected]>
Signed-off-by: nihalp <[email protected]>
nihalpasham
force-pushed
the
perf/kernel-reference-validity-attrs
branch
from
September 15, 2026 06:07
5db8942 to
969548a
Compare
Signed-off-by: nihalp <[email protected]>
This was referenced Sep 15, 2026
nihalpasham
approved these changes
Sep 15, 2026
nihalpasham
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed and validated c5e94c51: ready after maintainer repair.
- Kept the typed reference facts and added the host-side alignment check before enqueue.
- Empty/ZST slices retain their aligned sentinel; sync and both async routes share the guarantee.
- The example now runs on GPU. Metadata naming and example pins also pass their CI guards.
align 8192 required + address 0x1000 -> reject before launch
empty/ZST slice -> aligned packet sentinel
Workspace/example checks, native and legacy/modern NVVM, GPU memcheck and all seven hosted workflows pass. Author/DCO are preserved and commits are signed. This partially addresses #1098; broader alias attributes remain open.
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.
What this fixes
Emit
nonnullandalignfor kernel reference parameters when typed Rust layout facts and the host launch packet establish those guarantees. This completes the currently unblocked portion of #1098.Shape of the fix
Guardrails
dereferenceable,noaliasandreadonlyremain outside this change. Emit LLVMnonnull/align/dereferenceablefor proven Rust references #1098 stays open for that work; no speedup is claimed.Validation
c5e94c51; PR-only Pages deployment was intentionally skipped.