[Mlir-commits] [mlir] 9d1e0dd - [mlir][linalg] Fix the type (indicies->indices).

Alexander Belyaev llvmlistbot at llvm.org
Thu Jun 11 04:09:25 PDT 2020


Author: Alexander Belyaev
Date: 2020-06-11T13:09:13+02:00
New Revision: 9d1e0dd6b91ce77e99d056bb83cf405e90a8d747

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

LOG: [mlir][linalg] Fix the type (indicies->indices).

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
    mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
    mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
index fbb3f062a494..8061568078b6 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<int64_t, 2>;
+using ReassociationIndices = SmallVector<int64_t, 2>;
 using ReassociationExprs = SmallVector<AffineExpr, 2>;
 
 /// Returns the name mangled library call name to disambiguate between 
diff erent

diff  --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
index 64f92ee5d406..c58834c28530 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<string mnemonic> :
               "ArrayRef<ReassociationExprs> reassociation, "
               "ArrayRef<NamedAttribute> attrs = {}">,
     OpBuilder<"OpBuilder &b, OperationState &result, Value src, "
-              "ArrayRef<ReassociationIndicies> reassociation, "
+              "ArrayRef<ReassociationIndices> reassociation, "
               "ArrayRef<NamedAttribute> attrs = {}", [{
       auto reassociationMaps =
-          convertReassociationIndiciesToMaps(b, reassociation);
+          convertReassociationIndicesToMaps(b, reassociation);
       build(b, result, src, reassociationMaps, attrs);
     }]>,
 
@@ -83,10 +83,10 @@ class Linalg_ReshapeLikeOp<string mnemonic> :
               "Value src, ArrayRef<ReassociationExprs> reassociation, "
               "ArrayRef<NamedAttribute> attrs = {}">,
     OpBuilder<"OpBuilder &b, OperationState &result, Type resultType, "
-              "Value src, ArrayRef<ReassociationIndicies> reassociation, "
+              "Value src, ArrayRef<ReassociationIndices> reassociation, "
               "ArrayRef<NamedAttribute> 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 717baa02de61..e9bd082fbcae 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -504,10 +504,10 @@ getSymbolLessAffineMaps(ArrayRef<ReassociationExprs> reassociation) {
 }
 
 static SmallVector<SmallVector<AffineExpr, 2>, 2>
-convertReassociationIndiciesToMaps(
-    OpBuilder &b, ArrayRef<ReassociationIndicies> reassociationIndicies) {
+convertReassociationIndicesToMaps(
+    OpBuilder &b, ArrayRef<ReassociationIndices> reassociationIndices) {
   SmallVector<SmallVector<AffineExpr, 2>, 2> reassociationMaps;
-  for (const auto &indicies : reassociationIndicies) {
+  for (const auto &indicies : reassociationIndices) {
     SmallVector<AffineExpr, 2> reassociationMap;
     reassociationMap.reserve(indicies.size());
     for (int64_t index : indicies)


        


More information about the Mlir-commits mailing list