summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-12-13 15:44:30 -0800
committerKazu Hirata <kazu@google.com>2022-12-13 15:44:30 -0800
commitcadd8d3e201d92c03e608da434fa37c7c5f56ee1 (patch)
tree4aee7a6278a5a5d3b4b214fb7e30304f28a1efd7 /mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
parent9b35843e93ba5ced8749e076432bdbde36194458 (diff)
downloadllvm-cadd8d3e201d92c03e608da434fa37c7c5f56ee1.tar.gz
[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]
Diffstat (limited to 'mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp')
-rw-r--r--mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp2
1 files changed, 1 insertions, 1 deletions
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;