[Mlir-commits] [mlir] [mlir][sparse] introduce `sparse_tensor.extract_iteration_space` operation. (PR #88554)

Aart Bik llvmlistbot at llvm.org
Tue Apr 16 10:02:48 PDT 2024


================
@@ -1430,6 +1430,57 @@ def SparseTensor_ForeachOp : SparseTensor_Op<"foreach",
   let hasVerifier = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// Sparse Tensor Iteration Operations.
+//===----------------------------------------------------------------------===//
+
+def ExtractIterSpaceOp : SparseTensor_Op<"extract_iteration_space",
+    [Pure, DeclareOpInterfaceMethods<InferTypeOpInterface>]> {
+
+  let arguments = (ins AnySparseTensor:$tensor,
----------------
aartbik wrote:

the style in this file is typically to have the arguments/results as par of the def

any reason you picked another format? if not, let's use the same style as elsewhere in this file

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


More information about the Mlir-commits mailing list