[Mlir-commits] [mlir] cadd8d3 - [mlir] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Tue Dec 13 15:44:36 PST 2022
Author: Kazu Hirata
Date: 2022-12-13T15:44:30-08:00
New Revision: cadd8d3e201d92c03e608da434fa37c7c5f56ee1
URL: https://github.com/llvm/llvm-project/commit/cadd8d3e201d92c03e608da434fa37c7c5f56ee1
DIFF: https://github.com/llvm/llvm-project/commit/cadd8d3e201d92c03e608da434fa37c7c5f56ee1.diff
LOG: [mlir] Fix a warning
This patch fixes:
mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp:52:42:
error: 'None' is deprecated: Use std::nullopt
instead. [-Werror,-Wdeprecated-declarations]
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp b/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
index dc132b22c7c9..603faf22cf2d 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
@@ -49,7 +49,7 @@ struct PackInfo {
static PackInfo getPackingInfoFromConsumer(
AffineMap indexingMap, ArrayRef<OpFoldResult> innerTileSizes,
ArrayRef<int64_t> innerDimsPos, ArrayRef<int64_t> outerDimsPerm,
- Optional<Value> paddingValue = llvm::None) {
+ Optional<Value> paddingValue = std::nullopt) {
LLVM_DEBUG(
{ llvm::dbgs() << "--- Construct PackInfo From A Consumer ---\n"; });
PackInfo packInfo;
More information about the Mlir-commits
mailing list