llvm-project
[HLSL][Matrix] Add APValue and ConstExpr evaluator support for matrices
#178762
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
20
Changes
View On
GitHub
[HLSL][Matrix] Add APValue and ConstExpr evaluator support for matrices
#178762
Icohedron
merged 20 commits into
llvm:main
from
Icohedron:matrix-constexpr-eval
Add matrix APValue and ConstExpr evaluator for HLSL
6fa71f2c
Fix various "enumeration value 'Matrix' not handled in switch" warnings
59f53e8b
Fix BoolMatrix test due to APValue enabling memcpy optimization
e3207ad7
Icohedron
requested a review
from
farzonl
143 days ago
llvmbot
added
clang
llvmbot
added
clang:frontend
llvmbot
added
clang:modules
llvmbot
added
clang:codegen
llvmbot
added
HLSL
farzonl
commented on 2026-01-29
Icohedron
commented on 2026-01-29
Replace undef with poison
4fe41dfc
Switch APValue matrix layout to row-major order
4b118bc0
Icohedron
commented on 2026-01-30
tex3d
commented on 2026-01-30
farzonl
commented on 2026-01-30
Do not take in NumRows and NumCols for MatrixExprEvaluator::Success
5bd16a5b
Use getNumElementsFlattened instead of NumRows * NumCols in assert
e8536481
Rename getMatrixNumCols to getMatrixNumColumns
0ec3253a
tbaederr
requested a review
from
AaronBallman
140 days ago
Merge remote-tracking branch 'upstream/main' into matrix-constexpr-eval
686f44af
Remove unnecessary comments from test
104e485f
Replace another NumRows * NumCols with getNumElementsFlattened()
6ebbce7e
Merge remote-tracking branch 'upstream/main' into matrix-constexpr-eval
cdae0a2f
Icohedron
requested a review
from
farzonl
124 days ago
Icohedron
requested a review
from
tex3d
124 days ago
inbelic
commented on 2026-02-18
Add type conversion test
2046e2a6
farzonl
commented on 2026-02-23
farzonl
approved these changes on 2026-02-23
efriedma-quic
commented on 2026-02-23
Add helper functions to ConstantMatrixType for flattened index calcul…
2f5b3525
farzonl
commented on 2026-02-26
farzonl
commented on 2026-02-26
Compute NumRows * NumCols once and reuse in setMatrixUninit()
a41ad140
Use helper function to compute ColMajorIdx in MatrixExprEvaluator::Vi…
8a08ea93
shafik
commented on 2026-02-27
Exercise int16, int64, half, double, and bool in APValue AST test
cc81e685
Replace direct Elts access with a call to getMatrixElt
74177d10
Merge remote-tracking branch 'upstream/main' into matrix-constexpr-eval
e20ade8b
Update VisitInitListExpr for row-major order matrix InitListExpr chan…
6a14f7fc
Icohedron
merged
f8f0f932
into main
108 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
farzonl
shafik
efriedma-quic
inbelic
tex3d
AaronBallman
Assignees
No one assigned
Labels
clang
clang:frontend
clang:modules
clang:codegen
HLSL
Milestone
No milestone
Login to write a write a comment.
Login via GitHub