[Mlir-commits] [mlir] 02d3499 - NFC: Silence two warnings for unused bufferization symbols in release mode.
Stella Laurenzo
llvmlistbot at llvm.org
Mon May 23 09:02:13 PDT 2022
Author: Stella Laurenzo
Date: 2022-05-22T09:00:34-07:00
New Revision: 02d3499a46cc0f5b52af5f94c951acaad2a6ccdc
URL: https://github.com/llvm/llvm-project/commit/02d3499a46cc0f5b52af5f94c951acaad2a6ccdc
DIFF: https://github.com/llvm/llvm-project/commit/02d3499a46cc0f5b52af5f94c951acaad2a6ccdc.diff
LOG: NFC: Silence two warnings for unused bufferization symbols in release mode.
Differential Revision: https://reviews.llvm.org/D126182
Added:
Modified:
mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp b/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
index 0ef56d2a5ab4d..c4ce22c4539fa 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
@@ -389,6 +389,8 @@ class BufferizationRewriter : public IRRewriter {
DenseSet<Operation *> &toMemrefOps;
/// The bufferization options.
+ /// Used for debug modes.
+ LLVM_ATTRIBUTE_UNUSED
const BufferizationOptions &options;
};
} // namespace
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp b/mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp
index fec5cb6b56a2b..c9b941c6a34ce 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp
@@ -105,6 +105,8 @@ static FuncAnalysisState &getFuncAnalysisState(AnalysisState &state) {
}
/// Return the state (phase) of analysis of the FuncOp.
+/// Used for debug modes.
+LLVM_ATTRIBUTE_UNUSED
static FuncOpAnalysisState getFuncOpAnalysisState(const AnalysisState &state,
func::FuncOp funcOp) {
const FuncAnalysisState &funcState = getFuncAnalysisState(state);
More information about the Mlir-commits
mailing list