[clang] [HLSL] Add support for the HLSL matrix type (PR #159446)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 23 08:33:57 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")
----------------
farzonl wrote:
I was going to expand it to a lang opt for all matrix types in https://github.com/llvm/llvm-project/issues/160190.
see the diff https://github.com/llvm/llvm-project/pull/159446/commits/d81fd364de1d2050408fdf5385a0e46a45c07abb
Doing it in this pr was adding a bunch of changes I felt distracted from what I was trying to accomplish. so It will be in its own pr.
https://github.com/llvm/llvm-project/pull/159446
More information about the cfe-commits
mailing list