[Mlir-commits] [mlir] [mlir][SparseTensor][NFC] Improve documentation for SparseTensor_LvlOp (PR #223307)
Vito Secona
llvmlistbot at llvm.org
Sun Sep 13 22:20:55 PDT 2026
https://github.com/secona created https://github.com/llvm/llvm-project/pull/223307
Update the `sparse_tensor.lvl` documentation to correctly describe the level mapping for `%j floordiv 3`.
>From 581e29527eeab393b9d32c0b5ed7a7d0e5e473de Mon Sep 17 00:00:00 2001
From: Vito Secona <secona00 at gmail.com>
Date: Sat, 12 Sep 2026 08:58:38 +0000
Subject: [PATCH] [mlir][SparseTensor] Improve documentation for
SparseTensor_LvlOp
---
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
index d4901645c51d1..ec7da305bc5b7 100644
--- a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
+++ b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
@@ -624,7 +624,7 @@ def SparseTensor_LvlOp : SparseTensor_Op<"lvl", [ConditionallySpeculatable, NoMe
%c0 = arith.constant 0 : index
%x = sparse_tensor.lvl %A, %c0 : tensor<4x?xf32, #BSR>
- // Return the dynamic dimension of %A computed by %j mod 3.
+ // Return the dynamic level size of %A computed by j floordiv 3.
%c1 = arith.constant 1 : index
%y = sparse_tensor.lvl %A, %c1 : tensor<4x?xf32, #BSR>
More information about the Mlir-commits
mailing list