Create `__builtin_LinAlg_MatrixStoreToDescriptor(MatrixRef, Handle, int Offset, int Stride, int Layout)` and lower it to `dx.op.matrixStoreToDescriptor` as specified in https://github.com/microsoft/hlsl-specs/blob/main/proposals/0035-linalg-matrix.md Changes required: - If necessary, update the intrinsic definition in `utils/hct/gen_intrin_main.txt` - In `lib/HLSL/HLOperationLower.cpp` - Create a new lowering function `TranslateLinAlgMatrixStoreToDescriptor` - Update the mapping table for `IOP___builtin_LinAlg_MatrixStoreToDescriptor` from `EmptyLower` to `TranslateLinAlgMatrixStoreToDescriptor` - Write frontend tests in `tools/clang/test/SemaHLSL/hlsl/linalg/builtins/matrixstoretodescriptor` - Update frontend tests in `tools/clang/test/SemaHLSL/hlsl/linalg/builtins` - If necessary, update the opcode definition in `utils/hct/hctdb.py` (be sure to check allowed stages) - Update codegen tests in `tools/clang/test/CodeGenDXIL/hlsl/linalg/builtins` - For complex ops, write codegen tests in `tools/clang/test/CodeGenDXIL/hlsl/linalg/builtins/matrixstoretodescriptor` Note: The spec is not final therefore this issue may fall out of date. The spec is the source of truth and should be referenced during implementation.
Activity
__builtininstrinsics and DXIL Ops #7838V-FEXrt commentedon Jan 6, 2026
This is implemented on the linalg-staging branch
V-FEXrt commentedon Feb 2, 2026
Reimplemented in my new linalg-staging-v branch, but blocked from actually merging until annotations can be properly spelled out
[SM6.10] Impl Mat Store/Accum ToDescriptor Builtin (#8189)
__builtininstrinsics and DXIL Ops #7838