[Mlir-commits] [mlir] [mlir][sparse] use shared value storage between wrapped iterator and the wrapper. (PR #80046)

Aart Bik llvmlistbot at llvm.org
Tue Jan 30 11:18:41 PST 2024


================
@@ -205,34 +205,48 @@ static Value offsetFromMinCrd(OpBuilder &b, Location l, Value minCrd,
 
 namespace {
 
-class TrivialIterator : public SparseIterator {
-  Value getLoopLo(OpBuilder &b, Location l) const {
-    // Dense loop are traversed by coordinate, delinearize the position to get
-    // the coordinate.
-    if (randomAccessible())
-      return SUBI(itPos, posLo);
-    return itPos;
+// The iterator that that traverse a concrete sparse tensor levels. High-level
----------------
aartbik wrote:

typo: that twice
typo: traverses (subject is singular)

https://github.com/llvm/llvm-project/pull/80046


More information about the Mlir-commits mailing list