diff options
| author | Kazu Hirata <kazu@google.com> | 2022-12-04 19:58:32 -0800 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2022-12-04 19:58:32 -0800 |
| commit | 192d9dd731921a377bc538fc2b13871815fac87d (patch) | |
| tree | cbec685220d8a2103eb8c3286466733ed9df914e /mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp | |
| parent | 595f1a6aaf5465fd71884b1557b4451be4e6a282 (diff) | |
[mlir] Use std::nullopt instead of None in comments (NFC)
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/Vector/Transforms/VectorTransforms.cpp')
| -rw-r--r-- | mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp index 592697d1e58e..fda709303b99 100644 --- a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp +++ b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp @@ -190,7 +190,7 @@ static SmallVector<int64_t> getReductionIndex(AffineMap map, } /// Look for a given dimension in an affine map and return its position. Return -/// llvm::None if the dimension is not in the map results. +/// std::nullopt if the dimension is not in the map results. static llvm::Optional<unsigned> getDimPosition(AffineMap map, unsigned dim) { for (unsigned i = 0, e = map.getNumResults(); i < e; i++) { if (map.getDimPosition(i) == dim) |
