[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)
Chris B via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 31 11:17:38 PDT 2025
================
@@ -173,24 +173,78 @@ bool isLegalValidatorVersion(StringRef ValVersionStr, const Driver &D) {
return true;
}
+std::string getSpirvExtOperand(llvm::StringRef SpvExtensionArg) {
+ // The extensions that are commented out are supported in DXC, but the SPIR-V
+ // backend does not know about them yet.
+ static const std::vector<std::string> DxcSupportedExtensions = {
----------------
llvm-beanz wrote:
```suggestion
static const std::vector<StringRef> DxcSupportedExtensions = {
```
https://github.com/llvm/llvm-project/pull/151554
More information about the llvm-commits
mailing list