[Mlir-commits] [mlir] [mlir][SPIRV] Add decorateType method for MatrixType (PR #112018)
MingZhu Yan
llvmlistbot at llvm.org
Sun Oct 27 19:40:50 PDT 2024
================
@@ -138,6 +140,25 @@ Type VulkanLayoutUtils::decorateType(spirv::ArrayType arrayType,
return spirv::ArrayType::get(memberType, numElements, elementSize);
}
+Type VulkanLayoutUtils::decorateType(spirv::MatrixType matrixType,
+ VulkanLayoutUtils::Size &size,
+ VulkanLayoutUtils::Size &alignment) {
+ const auto numColumns = matrixType.getNumColumns();
+ const auto columnType = matrixType.getColumnType();
+ const auto numElements = matrixType.getNumElements();
+ auto elementType = matrixType.getElementType();
----------------
trdthg wrote:
> Yes.
then it's done
> cleanups in a separate PR
I'll handle them later
https://github.com/llvm/llvm-project/pull/112018
More information about the Mlir-commits
mailing list