[Mlir-commits] [mlir] acc572f - [mlir][nfc] Avoid implicit casting VectorType -> Type

Andrzej Warzynski llvmlistbot at llvm.org
Wed Aug 30 10:01:46 PDT 2023


Author: Andrzej Warzynski
Date: 2023-08-30T18:01:00+01:00
New Revision: acc572f490fb0884d55a121053ae8cc515df0a2f

URL: https://github.com/llvm/llvm-project/commit/acc572f490fb0884d55a121053ae8cc515df0a2f
DIFF: https://github.com/llvm/llvm-project/commit/acc572f490fb0884d55a121053ae8cc515df0a2f.diff

LOG: [mlir][nfc] Avoid implicit casting VectorType -> Type

Just a small follow-up for https://reviews.llvm.org/D159122

Added: 
    

Modified: 
    mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index af539d2c3795a0..f4dcadd59cd3b9 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -685,7 +685,7 @@ ParseResult ContractionOp::parse(OpAsmParser &parser, OperationState &result) {
   auto lhsType = llvm::cast<VectorType>(types[0]);
   auto rhsType = llvm::cast<VectorType>(types[1]);
   auto maskElementType = parser.getBuilder().getI1Type();
-  std::array<Type, 2> maskTypes = {
+  std::array<VectorType, 2> maskTypes = {
       VectorType::Builder(lhsType).setElementType(maskElementType),
       VectorType::Builder(rhsType).setElementType(maskElementType)};
   if (parser.resolveOperands(masksInfo, maskTypes, loc, result.operands))


        


More information about the Mlir-commits mailing list