[Mlir-commits] [mlir] 5a7563b - Fix MLIR build (typo in VectorOps.cpp)

Mehdi Amini llvmlistbot at llvm.org
Mon May 15 16:46:21 PDT 2023


Author: Mehdi Amini
Date: 2023-05-15T16:46:05-07:00
New Revision: 5a7563b2f675f76e6c4e1e955610f695b7bdbfc8

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

LOG: Fix MLIR build (typo in VectorOps.cpp)

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 5c139b5897d7..80ea03f6e8d8 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -1153,8 +1153,7 @@ ExtractOp::inferReturnTypes(MLIRContext *, std::optional<Location>,
                             ValueRange operands, DictionaryAttr attributes,
                             OpaqueProperties properties, RegionRange,
                             SmallVectorImpl<Type> &inferredReturnTypes) {
-  ExtractOp::Adaptor op(operands, attributes
-                        *properties.as<ExtractOp::Properties *>());
+  ExtractOp::Adaptor op(operands, attributes, properties);
   auto vectorType = op.getVector().getType().cast<VectorType>();
   if (static_cast<int64_t>(op.getPosition().size()) == vectorType.getRank()) {
     inferredReturnTypes.push_back(vectorType.getElementType());
@@ -2090,9 +2089,8 @@ ShuffleOp::inferReturnTypes(MLIRContext *, std::optional<Location>,
                             ValueRange operands, DictionaryAttr attributes,
                             OpaqueProperties properties, RegionRange,
                             SmallVectorImpl<Type> &inferredReturnTypes) {
-  ShuffleOp::Adaptor op(operands, attributes
-                        *properties.as<ShuffleOp::Properties *>());
-    auto v1Type = op.getV1().getType().cast<VectorType>();
+  ShuffleOp::Adaptor op(operands, attributes, properties);
+  auto v1Type = op.getV1().getType().cast<VectorType>();
   auto v1Rank = v1Type.getRank();
   // Construct resulting type: leading dimension matches mask
   // length, all trailing dimensions match the operands.


        


More information about the Mlir-commits mailing list