[Mlir-commits] [mlir] [WIP][mlir][sparse] Setting up sparse_tensor.iterator-related Ops. (PR #85958)

Ingo Müller llvmlistbot at llvm.org
Fri Mar 22 11:26:32 PDT 2024


================
@@ -1418,6 +1420,58 @@ def SparseTensor_ForeachOp : SparseTensor_Op<"foreach",
   let hasVerifier = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// Sparse Tensor Iteration Operations.
+//===----------------------------------------------------------------------===//
+
+def ExtractIterSpaceOp : SparseTensor_Op<"iteration.extract_space",
+    [Pure, DeclareOpInterfaceMethods<InferTypeOpInterface>]> {
+
+  let arguments = (ins AnySparseTensor:$tensor,
+                       Optional<AnySparseIterator>:$parentIter,
----------------
ingomueller-net wrote:

Yes, I imagine there are several options and it's great to discuss and/or explore them.

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


More information about the Mlir-commits mailing list