Skip to content

Commit 3343713

Browse files
author
Peiming Liu
committed
address comments.
1 parent 37393b7 commit 3343713

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,13 +1673,12 @@ def SparseTensor_CoIterateOp : SparseTensor_Op<"coiterate",
16731673
[AttrSizedOperandSegments,
16741674
SingleBlockImplicitTerminator<"sparse_tensor::YieldOp">,
16751675
RecursiveMemoryEffects]> {
1676-
let summary = "CoIterates over a set of sparse iteration spaces";
1676+
let summary = "Co-iterates over a set of sparse iteration spaces";
16771677
let description = [{
16781678
The `sparse_tensor.coiterate` operation represents a loop (nest) over
1679-
the a set of iteration spaces.
1680-
The operation can have multiple regions, with each of them defining a
1681-
case to compute a result at the current iterations. The case condition
1682-
is defined solely based on the pattern of specified iterators.
1679+
a set of iteration spaces. The operation can have multiple regions,
1680+
with each of them defining a case to compute a result at the current iterations.
1681+
The case condition is defined solely based on the pattern of specified iterators.
16831682
For example:
16841683
```mlir
16851684
%ret = sparse_tensor.coiterate (%sp1, %sp2) at(%coord) iter_args(%arg = %init)
@@ -1695,7 +1694,7 @@ def SparseTensor_CoIterateOp : SparseTensor_Op<"coiterate",
16951694
```
16961695

16971696
`sparse_tensor.coiterate` can also operate on loop-carried variables.
1698-
It returns the final values after loop termination.
1697+
It returns the final value for each loop-carried variable after loop termination.
16991698
The initial values of the variables are passed as additional SSA operands
17001699
to the iterator SSA value and used coordinate SSA values.
17011700
Each operation region has variadic arguments for specified (used), one argument

0 commit comments

Comments
 (0)