================
@@ -4122,6 +4135,22 @@ static bool flattenAPValue(EvalInfo &Info, const Expr
*E, APValue Value,
}
continue;
}
+ if (Work.isMatrix()) {
+ assert(Type->isConstantMatrixType() && "Type mismatch.");
+ const auto *MT = Type->castAs<ConstantMatrixType>();
+ QualType ElTy = MT->getElementType();
+ // Matrix elements are flattened in row-major order.
----------------
tex3d wrote:
I didn't feel strongly about it, so that's fine.
https://github.com/llvm/llvm-project/pull/178762
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits