[Mlir-commits] [mlir] [mlir][sparse] first proof-of-concept non-permutation rewriter (PR #70863)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 31 15:23:10 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 a78f5c064975f4d597ed1b18206d579748eb91cb 6f71e0770777edc1347d3ecd3f581b9d52dcede6 -- mlir/lib/Dialect/SparseTensor/Transforms/SparseReinterpretMap.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseReinterpretMap.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseReinterpretMap.cpp
index 9018e56a34e9..31cc8525725d 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseReinterpretMap.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseReinterpretMap.cpp
@@ -41,7 +41,7 @@ static AffineMap translateMap(OpBuilder &builder, SparseTensorType stt,
 // Generates a "de"mapping reinterpretation of the map.
 static Value genDemap(OpBuilder &builder, SparseTensorEncodingAttr enc,
                       Value val) {
-   return builder.create<ReinterpretMapOp>(val.getLoc(), enc.withoutDimToLvl(),
+  return builder.create<ReinterpretMapOp>(val.getLoc(), enc.withoutDimToLvl(),
                                           val);
 }
 

``````````

</details>


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


More information about the Mlir-commits mailing list