[clang] [HLSL] Add support for the HLSL matrix type (PR #159446)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 23 08:30:39 PDT 2025


================
@@ -243,6 +243,7 @@ ENUM_LANGOPT(HLSLVersion, HLSLLangStd, 16, HLSL_Unset, NotCompatible, "HLSL Vers
 LANGOPT(HLSLStrictAvailability, 1, 0, NotCompatible,
         "Strict availability diagnostic mode for HLSL built-in functions.")
 LANGOPT(HLSLSpvUseUnknownImageFormat, 1, 0, NotCompatible, "For storage images and texel buffers, sets the default format to 'Unknown' when not specified via the `vk::image_format` attribute. If this option is not used, the format is inferred from the resource's data type.")
+VALUE_LANGOPT(HLSLMaxMatrixDimension, 32, 4, NotCompatible, "maximum allowed matrix dimension")
----------------
llvm-beanz wrote:

Does this need to be a language option? Since it is just for HLSL it will always be 4.

https://github.com/llvm/llvm-project/pull/159446


More information about the cfe-commits mailing list