[Mlir-commits] [mlir] [mlir][sparse] remove LoopOrd type (PR #74540)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Dec 5 16:25:28 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 e68c265543722af32821eab2c77565d37079da47 6c433e32dfbc7853102720573d2affef8c05c9c8 -- mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.cpp mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.h mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.h mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.h b/mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.h
index 858751932d..0bdd9d45e6 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.h
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.h
@@ -175,9 +175,7 @@ public:
   }
 
   /// Gets the current depth of the loop-stack.
-  LoopId getCurrentDepth() const {
-    return llvm::range_size(getLoopIVsRange());
-  }
+  LoopId getCurrentDepth() const { return llvm::range_size(getLoopIVsRange()); }
 
   /// Gets loop induction variable for the given loop
   Value getLoopIV(LoopId n) const {

``````````

</details>


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


More information about the Mlir-commits mailing list