[clang] [HLSL][Matrix] Add APValue and ConstExpr evaluator support for matrices (PR #178762)
Deric C. via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 29 14:46:56 PST 2026
================
@@ -6463,6 +6463,9 @@ static bool isZeroInitialized(QualType T, const APValue &V) {
return true;
}
+ case APValue::Matrix:
+ llvm_unreachable("Matrix APValues not yet supported");
----------------
Icohedron wrote:
The function `isZeroInitialized` is only reachable from a call to `mangleValueInTemplateArg` which is only called in the context of non-type template arguments (NTTP). HLSL does not support NTTPs which is a C++20 feature.
https://github.com/llvm/llvm-project/pull/178762
More information about the cfe-commits
mailing list