================
@@ -934,6 +934,24 @@ std::optional<APValue> Pointer::toRValue(const Context
&Ctx,
return true;
}
+ // Constant Matrix types.
+ if (const auto *MT = Ty->getAs<ConstantMatrixType>()) {
+ assert(Ptr.getFieldDesc()->isPrimitiveArray());
+ QualType ElemTy = MT->getElementType();
+ PrimType ElemT = *Ctx.classify(ElemTy);
+ unsigned NumElts = MT->getNumElementsFlattened();
----------------
tbaederr wrote:
```suggestion
unsigned NumElems = MT->getNumElementsFlattened();
```
https://github.com/llvm/llvm-project/pull/183424
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits