Skip to content

[Diag] Warn instead of error on invalid numthreads#6023

Merged
bogner merged 4 commits into
mainfrom
users/bogner/spr/diags-warn-instead-of-error-on-invalid-numthreads
Nov 16, 2023
Merged

[Diag] Warn instead of error on invalid numthreads#6023
bogner merged 4 commits into
mainfrom
users/bogner/spr/diags-warn-instead-of-error-on-invalid-numthreads

Conversation

@bogner
Copy link
Copy Markdown
Collaborator

@bogner bogner commented Nov 15, 2023

If an invalid numthreads attribute isn't used, erroring out on it is a
breaking change that might be annoying to deal with. Instead we make
invalid numthreads a warning and drop the attribute - we can rely on
the existing diagnostics for missing numthreads to error out in cases
that aren't recoverable.

Created using spr 1.3.5
@bogner bogner changed the title [Diags] Warn instead of error on invalid numthreads [Diag] Warn instead of error on invalid numthreads Nov 15, 2023
Comment thread tools/clang/lib/Sema/SemaHLSL.cpp
bogner added a commit to bogner/DirectXShaderCompiler that referenced this pull request Nov 15, 2023
If an invalid numthreads attribute isn't used, erroring out on it is a
breaking change that might be annoying to deal with. Instead we make
invalid numthreads a warning and drop the attribute - we can rely on
the existing diagnostics for missing numthreads to error out in cases
that aren't recoverable.

Pull Request: microsoft#6023
Created using spr 1.3.5

[skip ci]
Created using spr 1.3.5
@bogner bogner changed the base branch from users/bogner/spr/main.diags-warn-instead-of-error-on-invalid-numthreads to main November 16, 2023 09:57
@bogner bogner merged commit cfd47e9 into main Nov 16, 2023
@bogner bogner deleted the users/bogner/spr/diags-warn-instead-of-error-on-invalid-numthreads branch November 16, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants