Skip to content

Commit 59ae40e

Browse files
author
Peiming Liu
committed
address comments
1 parent b8ec314 commit 59ae40e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct COOSegment {
5858
}
5959
};
6060

61-
/// A simple wrapper to encode a bitset of defined (at most 64) levels.
61+
/// A simple wrapper to encode a bitset of defined (at most 64) levels.
6262
class LevelSet {
6363
uint64_t bits = 0;
6464

@@ -69,7 +69,7 @@ class LevelSet {
6969

7070
LevelSet &set(unsigned i) {
7171
assert(i < 64);
72-
bits |= 1 << i;
72+
bits |= static_cast<uint64_t>(0x01u) << i;
7373
return *this;
7474
}
7575

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SparseTensor_Attr<string name,
2020
: AttrDef<SparseTensor_Dialect, name, traits>;
2121

2222
//===----------------------------------------------------------------------===//
23-
// A simple bitset attribute wrapped over a single int64_t to encode a set of
23+
// A simple bitset attribute wrapped around a single int64_t to encode a set of
2424
// sparse tensor levels.
2525
//===----------------------------------------------------------------------===//
2626

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,8 +1526,8 @@ def IterateOp : SparseTensor_Op<"iterate",
15261526

15271527
let summary = "Iterate over a sparse iteration space";
15281528
let description = [{
1529-
The `sparse_tensor.iterate` operations represents a loop over the
1530-
provided iteration space extracted from a specific sparse tensor.
1529+
The `sparse_tensor.iterate` operation represents a loop (nest) over
1530+
the provided iteration space extracted from a specific sparse tensor.
15311531
The operation defines an SSA value for a sparse iterator that points
15321532
to the current stored element in the sparse tensor and SSA values
15331533
for coordinates of the stored element. The coordinates are always

mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ LogicalResult IterateOp::verifyRegions() {
23852385
return success();
23862386
}
23872387

2388-
/// IterateOp implemented OpInterfaces' methods.
2388+
/// OpInterfaces' methods implemented by IterateOp.
23892389
SmallVector<Region *> IterateOp::getLoopRegions() { return {&getRegion()}; }
23902390

23912391
MutableArrayRef<OpOperand> IterateOp::getInitsMutable() {

0 commit comments

Comments
 (0)