[Mlir-commits] [mlir] Changed all code and comments that used the phrase "sparse compiler" to instead use "sparsifier" (PR #71875)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Nov 9 15:02:00 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 9ef829097bbc4cf908698e3891af11a154e1d3e2 716c3e6b2bf9d04deed9555fab290312fdd7adc1 -- mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h b/mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h
index 1fa4a4bb9f0b..9ac9ac595f09 100644
--- a/mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h
+++ b/mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h
@@ -27,8 +27,7 @@ namespace sparse_tensor {
/// a subset of the options that can be set for the underlying passes,
/// because it must be manually kept in sync with the tablegen files
/// for those passes.
-struct SparsifierOptions
- : public PassPipelineOptions<SparsifierOptions> {
+struct SparsifierOptions : public PassPipelineOptions<SparsifierOptions> {
// These options must be kept in sync with `SparsificationBase`.
// TODO(57514): These options are duplicated in Passes.td.
PassOptions::Option<mlir::SparseParallelizationStrategy> parallelization{
@@ -176,8 +175,7 @@ struct SparsifierOptions
/// is the standard pipeline for taking sparsity-agnostic IR using
/// the sparse-tensor type and lowering it to LLVM IR with concrete
/// representations and algorithms for sparse tensors.
-void buildSparsifier(OpPassManager &pm,
- const SparsifierOptions &options);
+void buildSparsifier(OpPassManager &pm, const SparsifierOptions &options);
/// Registers all pipelines for the `sparse_tensor` dialect. At present,
/// this includes only "sparsifier".
diff --git a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
index 09119e85ef24..ecaef7896da5 100644
--- a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
@@ -29,8 +29,8 @@
// Pipeline implementation.
//===----------------------------------------------------------------------===//
-void mlir::sparse_tensor::buildSparsifier(
- OpPassManager &pm, const SparsifierOptions &options) {
+void mlir::sparse_tensor::buildSparsifier(OpPassManager &pm,
+ const SparsifierOptions &options) {
pm.addNestedPass<func::FuncOp>(createLinalgGeneralizationPass());
pm.addPass(createSparsificationAndBufferizationPass(
getBufferizationOptionsForSparsification(
``````````
</details>
https://github.com/llvm/llvm-project/pull/71875
More information about the Mlir-commits
mailing list