Repository navigation
feat(dispatch): Validate the dispatch-surface declaration at configure time - #373
Merged
ahuber21 merged 0 commit intoSep 2, 2026
Merged
Conversation
ahuber21
force-pushed
the
dispatch/03-validate-surface
branch
2 times, most recently
from
August 24, 2026 09:44
7200927 to
0a0a6e7
Compare
ahuber21
force-pushed
the
dispatch/03-validate-surface
branch
2 times, most recently
from
August 25, 2026 12:31
135d3cc to
36014f0
Compare
ahuber21
marked this pull request as ready for review
August 25, 2026 12:38
ahuber21
requested review from
ethanglaser,
homksei,
ibhati,
mihaic and
yuejiaointel
as code owners
August 25, 2026 12:38
|
Tick the box to add this pull request to the merge queue (same as
|
ahuber21
force-pushed
the
dispatch/03-validate-surface
branch
from
August 25, 2026 15:23
36014f0 to
a715124
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.
cmake/validate-dispatch-surface.cmakerejects a malformed declaration atconfigure time -- duplicate, zero or non-numeric extents,
svs::Dynamiclistedexplicitly, a malformed level spec, a level with no translation unit. It touches
no build-system state, so it also runs under
cmake -P: fourteen fixtures intests/cmake/dispatch-surface/each state the error they expect, and.github/scripts/check_dispatch_surface.shdrives the validator over all of themplus the default declaration. That script is a pre-commit hook and a CI job, and
needs no compiler and no build tree.
The new
Dispatch Surfaceworkflow adds the two things the script cannot check:that a default configure leaves the committed
dispatch_surface.hbyte-identical, and that a full build against
valid-reduced.cmake-- whichshares no fixed extent with the default nine -- compiles and tests. A build
that quietly fell back to the committed header would fail to compile there
rather than pass by accident.
Gotcha: script mode gets no
cmake_minimum_required, so the validator setsCMP0007 and CMP0057 itself. Without them an empty
|-field vanishes when theentry is split, and
IN_LISTis not an operator.Part 3 of 4 of the ISA dispatching v2 milestone.