[clang] [CGHLSL] Account for matrices in semantics (PR #233495)

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 19 12:04:29 PDT 2026


================
@@ -1240,9 +1241,20 @@ void CGHLSLRuntime::emitSPIRVUserSemanticStore(
 namespace {
 // Describes how a semantic leaf lowers to signature rows
 struct SemanticShape {
-  SmallVector<unsigned> Dimensions; // Empty dims denotes a scalar
+  SmallVector<unsigned> Dimensions; // Arrays followed by matrix major vectors.
----------------
joaosaffran wrote:

```suggestion
  SmallVector<unsigned> Dimensions; // Array length followed by matrix major-axis length.
```

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


More information about the cfe-commits mailing list