[Mlir-commits] [mlir] [mlir][sparse] Expand LevelType to 64 bits and implement n out of m (PR #79935)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jan 29 19:04:31 PST 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 c9a6e993f7b349405b6c8f9244cd9cf0f56a6a81 a91ee4a2701822a50dc048563740a60cc00caf05 -- mlir/include/mlir-c/Dialect/SparseTensor.h mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h mlir/include/mlir/ExecutionEngine/SparseTensor/Storage.h mlir/lib/Bindings/Python/DialectSparseTensor.cpp mlir/lib/CAPI/Dialect/SparseTensor.cpp mlir/lib/Dialect/SparseTensor/IR/Detail/LvlTypeParser.cpp mlir/lib/Dialect/SparseTensor/IR/Detail/LvlTypeParser.h mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp mlir/lib/Dialect/SparseTensor/Transforms/Utils/CodegenUtils.h mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorLevel.cpp mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp mlir/lib/ExecutionEngine/SparseTensor/Storage.cpp mlir/test/CAPI/sparse_tensor.c
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h b/mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h
index 15802a5ad3..99443957d0 100644
--- a/mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h
+++ b/mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h
@@ -310,7 +310,6 @@ constexpr bool isLooseCompressedLT(LevelType lt) {
          static_cast<uint64_t>(LevelType::LooseCompressed);
 }
 
-
 /// Check if the `LevelType` needs positions array.
 constexpr bool isWithPosLT(LevelType lt) {
   return isCompressedLT(lt) || isLooseCompressedLT(lt);

``````````

</details>


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


More information about the Mlir-commits mailing list