Skip to content

Conversation

@maarquitos14
Copy link
Contributor

#20489 had to be reverted because -spirv-ext=-all is not valid in the SPIR-V BE. All the extensions are disabled by default, so we only need to explicitly enable those we require.

…tel#20489)

SPIR-V backend supports some extensions that our driver doesn't support
yet (e.g. SPV_KHR_float_controls2), resulting in errors. This patch
stops enabling all the SPIR-V backend supported extensions, and instead
enables only a list of selected extensions. The list contains the
intersection of extensions enabled for llvm-spirv with the extensions
supported by the SPIR-V backend.
jsji pushed a commit that referenced this pull request Oct 29, 2025
…ckend.(#20497)

20489 had to be reverted because -spirv-ext=-all is not valid in the SPIR-V BE. All the extensions are disabled by default, so we only need to explicitly enable those we require.
// - handle -Xspirv-translator option to avoid "argument unused during
// compilation" error
// - handle --spirv-ext=+<extension> and --spirv-ext=-<extension> options
// All the extensions disabled by default. We do this because there are some
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: All the extensions are disabled by default.

@maarquitos14
Copy link
Contributor Author

Closing in favour of #20519.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants