llvm-project
21571cf3 - [HLSL][Matrix] Support row and column indexing modes for MatrixSubscriptExpr (#171564)

Commit
9 days ago
[HLSL][Matrix] Support row and column indexing modes for MatrixSubscriptExpr (#171564) fixes #167617 In DXC HLSL supports different indexing modes via codegen for its equivalent of the MatrixSubscriptExpr when the /Zpr and /Zpc flags are used see: https://godbolt.org/z/bz5Y5WG36. This change modifies EmitMatrixSubscriptExpr to consider the MatrixRowMajor/MatrixColMajor Layout flags before generating an index. Similarly it introduces `createRowMajorIndex` and `createColumnMajorIndex` in `MatrixBuilder.h` for use in `VisitMatrixSubscriptExpr`.
Author
Parents
Loading