[Mlir-commits] [mlir] 36c8a9a - [mlir][sparse] rephrase the documentation for sparse compiler create-sparse-deallocs option.
Peiming Liu
llvmlistbot at llvm.org
Mon Mar 27 17:00:10 PDT 2023
Author: Peiming Liu
Date: 2023-03-27T23:59:57Z
New Revision: 36c8a9a9830a321d2b5e3d9dd5b2e7c7da5c56ac
URL: https://github.com/llvm/llvm-project/commit/36c8a9a9830a321d2b5e3d9dd5b2e7c7da5c56ac
DIFF: https://github.com/llvm/llvm-project/commit/36c8a9a9830a321d2b5e3d9dd5b2e7c7da5c56ac.diff
LOG: [mlir][sparse] rephrase the documentation for sparse compiler create-sparse-deallocs option.
To address post-submit comments in https://reviews.llvm.org/D147010.
Reviewed By: wrengr
Differential Revision: https://reviews.llvm.org/D147014
Added:
Modified:
mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h
mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h b/mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h
index f45b64d9c5e2..d9afcae1071b 100644
--- a/mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h
+++ b/mlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h
@@ -75,12 +75,11 @@ struct SparseCompilerOptions
PassOptions::Option<bool> createSparseDeallocs{
*this, "create-sparse-deallocs",
- desc("Specify if the temporary sparse buffer created by the sparse "
+ desc("Specify if the temporary buffers created by the sparse "
"compiler should be deallocated. For compatibility with core "
"bufferization passes. "
- "It only takes effect when enable-runtime-library=false, otherwise "
- "the memory storage for sparse tensors are managed by the runtime "
- "library. See also create-deallocs for BufferizationOption."),
+ "This option is only used when enable-runtime-library=false. "
+ "See also create-deallocs for BufferizationOption."),
init(true)};
PassOptions::Option<int32_t> vectorLength{
diff --git a/mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td b/mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td
index faf50fe6df7c..c4cbe0771127 100644
--- a/mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td
+++ b/mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td
@@ -221,12 +221,11 @@ def SparseTensorCodegen : Pass<"sparse-tensor-codegen", "ModuleOp"> {
Option<"enableBufferInitialization", "enable-buffer-initialization", "bool",
"false", "Enable zero-initialization of the memory buffers">,
Option<"createSparseDeallocs", "create-sparse-deallocs", "bool",
- "true", "Specify if the temporary sparse buffer created by the sparse "
+ "true", "Specify if the temporary buffers created by the sparse "
"compiler should be deallocated. For compatibility with core "
"bufferization passes. "
- "It only takes effect when enable-runtime-library=false, otherwise "
- "the memory storage for sparse tensors are managed by the runtime "
- "library. See also create-deallocs for BufferizationOption.">,
+ "This option is only used when enable-runtime-library=false. "
+ "See also create-deallocs for BufferizationOption.">,
];
}
More information about the Mlir-commits
mailing list