Repository navigation
[0035] Fix LinAlg MatrixMulAccumulate - #791
Merged
Ashley Coleman (V-FEXrt) merged 1 commit intoFeb 13, 2026
Merged
Conversation
Collaborator
Author
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 13, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Chris B (llvm-beanz)
approved these changes
Feb 13, 2026
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 13, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 14, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 14, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 14, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
| Must be called from wave-uniform control flow. | ||
|
|
||
| ```llvm | ||
| declare %dx.types.LinAlgMatrix<mangling> @dx.op.linAlgMatrixMultiplyAccumulate.[MatTyR].[MatTyA].[MatTyB].[MatTyC]( |
Contributor
There was a problem hiding this comment.
I'm late, but I encountered this same problem and came up with my own solution. The only way it differed is that I placed C first so it could have just a 3 way overload since return and C need to be the same anyway with only minor change to the overload checking logic instead of having to allow out of order extended overloads.
So:
declare %dx.types.LinAlgMatrix<mangling> @dx.op.linAlgMatrixMultiplyAccumulate.[MatTyC].[MatTyA].[MatTyB](
immarg i32, ; opcode
%dx.types.LinAlgMatrix<mangling> ; matrix C
%dx.types.LinAlgMatrix<mangling>, ; matrix A
%dx.types.LinAlgMatrix<mangling> ; matrix B
)
This still requires some change to the script logic to allow reusing an extended overload, but I think that we should allow such reuse just as we do for singular overloads
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 17, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 17, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 18, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 18, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 18, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 19, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 20, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the implementation to reflect that
Ashley Coleman (V-FEXrt)
added a commit
to microsoft/DirectXShaderCompiler
that referenced
this pull request
Feb 20, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the placeholder code to reflect that. Interesting changes are in `gen_intrin_main`, `hctdb.py`, and `HLOperationLower.cpp`. The rest of the code is generated code
Lucie Choi (luciechoi)
pushed a commit
to luciechoi/DirectXShaderCompiler
that referenced
this pull request
Feb 20, 2026
microsoft/hlsl-specs#791 splits the MulOp operation into two distinct ops. Update the placeholder code to reflect that. Interesting changes are in `gen_intrin_main`, `hctdb.py`, and `HLOperationLower.cpp`. The rest of the code is generated code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #781