diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-13 15:44:30 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-13 15:44:30 -0800 |
commit | cadd8d3e201d92c03e608da434fa37c7c5f56ee1 (patch) | |
tree | 4aee7a6278a5a5d3b4b214fb7e30304f28a1efd7 /mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp | |
parent | 9b35843e93ba5ced8749e076432bdbde36194458 (diff) | |
download | llvm-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.cpp | 2 |
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; |