[Mlir-commits] [mlir] [mlir][sparse] update doc of sparse tensor storage-layout/descriptor (PR #71249)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Nov 3 16:10:27 PDT 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 34c0d32c81bf8d7cbeadbd4e9544378d4bf85a35 a1555584f11fb1df7387ec6041fe85dd35bb1008 -- mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorStorageLayout.h mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorDescriptor.cpp mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorDescriptor.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorStorageLayout.h b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorStorageLayout.h
index 493038a66..ecd2d73cc 100644
--- a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorStorageLayout.h
+++ b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorStorageLayout.h
@@ -75,7 +75,7 @@ namespace sparse_tensor {
 ///
 /// Slice on #COO storage of 2-dim matrix yields
 ///  ;; Inherited from the original sparse tensors
-///  memref<?xindex>,                          ; positions-0, essentially   [0,sz]
+///  memref<?xindex>,                          ; positions-0, essentially [0,sz]
 ///  memref<?xindex>                           ; AOS coordinates storage
 ///  memref<?xf64>                             ; values
 ///  struct<(array<2 x i64>, array<3 x i64>,   ; lvl0, lvl1, 3xsizes

``````````

</details>


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


More information about the Mlir-commits mailing list