================
@@ -558,6 +558,17 @@ static Value *emitGetDimensions(CodeGenFunction &CGF, 
const CallExpr *E,
   return LastStore;
 }
 
+static llvm::Type *getAggregateType(llvm::Type *ScalarTy, QualType ArgTy) {
+  if (auto *MatTy = ArgTy->getAs<ConstantMatrixType>())
+    return llvm::VectorType::get(
+        ScalarTy,
+        ElementCount::getFixed(MatTy->getNumRows() * MatTy->getNumColumns()));
----------------
farzonl wrote:

the prefered way to do this is `getNumElementsFlattened()`

https://github.com/llvm/llvm-project/pull/195586
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to