Repository navigation
fix(intrinsics): decouple ABI IDs from canonical variant order - #1038
Merged
Merged
Conversation
Signed-off-by: Raul Estrada <[email protected]>
Collaborator
|
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.
Partially addresses #604: this unblocks the compact-admission families (scalar_math, packed_conversion, tcgen05, TMA reduction). The register_mma float/FP8/sparse and cluster-sreg families still derive ABI IDs positionally, so #604 stays open for those.
Summary
Canonical compact-family variant lists currently serve two independent roles: they define the closed semantic set and, in several families, implicitly assign ABI IDs from variant position.
This change separates those responsibilities.
Canonical lists continue to enforce semantic membership, completeness, and ordering, while compact admission entries carry the explicit ABI ID. The global append-only ABI ledger remains responsible for validating historical ABI identity and uniqueness.
Changes
Remove positional ABI derivation from:
Semantic recipe construction remains closed over the canonical variant sets, but recipes no longer derive or own ABI IDs from their position.
Admission expansion now propagates each variant's explicit
abi_id.Policy validation continues to validate the semantic identity independently of ABI numbering, while the global ABI ledger remains the authority for stable ABI identity.
Behavior
Before:
After:
This allows a future family variant to use the next globally available ABI ID even when that ID is non-contiguous with previous members of the family.
Tests
Regression coverage verifies that compact admissions still reject semantic reordering while accepting a valid non-contiguous ABI ID at the expansion layer.
Existing ABI protection remains enforced by the global ledger.
Validation performed:
Results: