From: Alexander Belyaev Date: Thu, 11 Jun 2020 11:08:24 +0000 (+0200) Subject: [mlir][linalg] Fix the type (indicies->indices). X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d1e0dd6b91ce77e99d056bb83cf405e90a8d747;p=platform%2Fupstream%2Fllvm.git [mlir][linalg] Fix the type (indicies->indices). --- diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h index fbb3f06..8061568 100644 --- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h +++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h @@ -34,7 +34,7 @@ class PoolingMaxOp; class PoolingMinOp; class PoolingSumOp; -using ReassociationIndicies = SmallVector; +using ReassociationIndices = SmallVector; using ReassociationExprs = SmallVector; /// Returns the name mangled library call name to disambiguate between different diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td index 64f92ee..c58834c 100644 --- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td +++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td @@ -70,10 +70,10 @@ class Linalg_ReshapeLikeOp : "ArrayRef reassociation, " "ArrayRef attrs = {}">, OpBuilder<"OpBuilder &b, OperationState &result, Value src, " - "ArrayRef reassociation, " + "ArrayRef reassociation, " "ArrayRef attrs = {}", [{ auto reassociationMaps = - convertReassociationIndiciesToMaps(b, reassociation); + convertReassociationIndicesToMaps(b, reassociation); build(b, result, src, reassociationMaps, attrs); }]>, @@ -83,10 +83,10 @@ class Linalg_ReshapeLikeOp : "Value src, ArrayRef reassociation, " "ArrayRef attrs = {}">, OpBuilder<"OpBuilder &b, OperationState &result, Type resultType, " - "Value src, ArrayRef reassociation, " + "Value src, ArrayRef reassociation, " "ArrayRef attrs = {}", [{ auto reassociationMaps = - convertReassociationIndiciesToMaps(b, reassociation); + convertReassociationIndicesToMaps(b, reassociation); build(b, result, src, reassociationMaps, attrs); }]> ]; diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp index 717baa0..e9bd082 100644 --- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp +++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp @@ -504,10 +504,10 @@ getSymbolLessAffineMaps(ArrayRef reassociation) { } static SmallVector, 2> -convertReassociationIndiciesToMaps( - OpBuilder &b, ArrayRef reassociationIndicies) { +convertReassociationIndicesToMaps( + OpBuilder &b, ArrayRef reassociationIndices) { SmallVector, 2> reassociationMaps; - for (const auto &indicies : reassociationIndicies) { + for (const auto &indicies : reassociationIndices) { SmallVector reassociationMap; reassociationMap.reserve(indicies.size()); for (int64_t index : indicies)