From ef244ad6207b1f20ecc6f989720bbc46f5e6a3f2 Mon Sep 17 00:00:00 2001 From: Aart Bik Date: Mon, 13 Dec 2021 12:51:34 -0800 Subject: [PATCH] [mlir][sparse] fixed typos Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D115667 --- mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td | 2 +- mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td index 13a89b2..4aa2b891 100644 --- a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td +++ b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td @@ -50,7 +50,7 @@ def SparseTensor_Dialect : Dialect { relatively straightforward one-to-one mapping from iteration lattices to combinations of for-loops, while-loops, and if-statements. Sparse tensor outputs that materialize uninitialized are handled with - insertions in pure lexicograph index order if all parallel loops + insertions in pure lexicographical index order if all parallel loops are outermost or using a 1-dimensional access pattern expansion (a.k.a. workspace) where feasible [Gustavson72,Bik96,Kjolstad19]. diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td index 9c27ae9..292fc07 100644 --- a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td +++ b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td @@ -197,12 +197,12 @@ def SparseTensor_LexInsertOp : SparseTensor_Op<"lex_insert", []>, Arguments<(ins AnyTensor:$tensor, StridedMemRefRankOf<[Index], [1]>:$indices, AnyType:$value)> { - string summary = "Inserts a value into given sparse tensor in lexicograph index order"; + string summary = "Inserts a value into given sparse tensor in lexicographical index order"; string description = [{ Inserts the given value at given indices into the underlying sparse storage format of the given tensor with the given indices. This operation can only be applied when a tensor materializes unintialized - with an `init` operation, the insertions occur in strict lexicographic + with an `init` operation, the insertions occur in strict lexicographical index order, and the final tensor is constructed with a `tensor` operation that has the `hasInserts` attribute set. -- 2.7.4