[Mlir-commits] [mlir] [mlir][sparse] Clean up parser (PR #72571)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Nov 16 13:26:59 PST 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 ff8815e597597a319ffde9d18e708040d226bbae 626c729c3f4102f2cd1e8052e4dc6def627783f9 -- mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMap.cpp mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMap.h mlir/lib/Dialect/SparseTensor/IR/Detail/Var.cpp mlir/lib/Dialect/SparseTensor/IR/Detail/Var.h
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMap.cpp b/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMap.cpp
index 022180e333..95f8d7bf59 100644
--- a/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMap.cpp
+++ b/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMap.cpp
@@ -45,7 +45,6 @@ DimLvlExpr::unpackBinop() const {
   return {lhs, ak, rhs};
 }
 
-
 //===----------------------------------------------------------------------===//
 // `DimSpec` implementation.
 //===----------------------------------------------------------------------===//
@@ -59,7 +58,6 @@ bool DimSpec::isValid(Ranks const &ranks) const {
   return ranks.isValid(var) && (!expr || ranks.isValid(expr));
 }
 
-
 //===----------------------------------------------------------------------===//
 // `LvlSpec` implementation.
 //===----------------------------------------------------------------------===//
@@ -75,7 +73,6 @@ bool LvlSpec::isValid(Ranks const &ranks) const {
   return ranks.isValid(var) && ranks.isValid(expr);
 }
 
-
 //===----------------------------------------------------------------------===//
 // `DimLvlMap` implementation.
 //===----------------------------------------------------------------------===//
@@ -144,5 +141,4 @@ AffineMap DimLvlMap::getLvlToDimMap(MLIRContext *context) const {
   return map;
 }
 
-
 //===----------------------------------------------------------------------===//

``````````

</details>


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


More information about the Mlir-commits mailing list