diff options
author | Kazu Hirata <kazu@google.com> | 2023-01-14 01:25:58 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-01-14 01:25:58 -0800 |
commit | 0a81ace0047a2de93e71c82cdf0977fc989660df (patch) | |
tree | 79f7603ad4f5fa96332507dcea07fb3be4a966a5 /mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp | |
parent | bb83dc10f5e7aece86a0ad2158cfd28d1611f336 (diff) | |
download | llvm-0a81ace0047a2de93e71c82cdf0977fc989660df.tar.gz |
[mlir] Use std::optional instead of llvm::Optional (NFC)
This patch replaces (llvm::|)Optional< with std::optional<. I'll post
a separate patch to remove #include "llvm/ADT/Optional.h".
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp')
-rw-r--r-- | mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp b/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp index 0c6e9fb74a35..48053545b638 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp @@ -44,13 +44,13 @@ struct PackInfo { llvm::DenseMap<int64_t, int64_t> tileToPointMapping; // The permutation of outer dims (on domain). SmallVector<int64_t> outerDimsOnDomainPerm; - Optional<Value> paddingValue; + std::optional<Value> paddingValue; }; static PackInfo getPackingInfoFromConsumer( AffineMap indexingMap, ArrayRef<OpFoldResult> innerTileSizes, ArrayRef<int64_t> innerDimsPos, ArrayRef<int64_t> outerDimsPerm, - Optional<Value> paddingValue = std::nullopt) { + std::optional<Value> paddingValue = std::nullopt) { LLVM_DEBUG( { llvm::dbgs() << "--- Construct PackInfo From A Consumer ---\n"; }); PackInfo packInfo; |