[Mlir-commits] [mlir] [mlir][sparse] implement lowering rules for IterateOp. (PR #93589)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue May 28 10:55:53 PDT 2024


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 253c28fa829cee0104c2fc59ed1a958980b5138c bc63961a86cb567dee90a5a2a0c63ded24a3760c -- mlir/lib/Dialect/SparseTensor/Transforms/SparseIterationToScf.cpp mlir/lib/Dialect/SparseTensor/Transforms/SparseSpaceCollapse.cpp mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorIterator.cpp mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorIterator.h
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorIterator.h b/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorIterator.h
index ddf6a1acee..1ae0c2790a 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorIterator.h
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorIterator.h
@@ -99,7 +99,7 @@ public:
   // Constructs a 1-D iteration space.
   SparseIterationSpace(Location loc, OpBuilder &b, Value t, unsigned tid,
                        Level lvl, ValueRange parentPos)
-      : SparseIterationSpace(loc, b, t, tid, {lvl, lvl + 1}, parentPos){};
+      : SparseIterationSpace(loc, b, t, tid, {lvl, lvl + 1}, parentPos) {};
 
   bool isUnique() const { return lvls.back()->isUnique(); }
 

``````````

</details>


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


More information about the Mlir-commits mailing list