[Mlir-commits] [mlir] 19e6b10 - [mlir] Use std::nullopt instead of llvm::None (NFC)

Kazu Hirata llvmlistbot at llvm.org
Wed Dec 7 20:11:09 PST 2022


Author: Kazu Hirata
Date: 2022-12-07T20:10:59-08:00
New Revision: 19e6b107889214a2ae31153ea17bd2918c689ffc

URL: https://github.com/llvm/llvm-project/commit/19e6b107889214a2ae31153ea17bd2918c689ffc
DIFF: https://github.com/llvm/llvm-project/commit/19e6b107889214a2ae31153ea17bd2918c689ffc.diff

LOG: [mlir] Use std::nullopt instead of llvm::None (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

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
index d7603d2c3dd1b..37143f9084145 100644
--- a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
+++ b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
@@ -497,7 +497,7 @@ FailureOr<ForeachThreadReductionTilingResult>
 tileReductionUsingForeachThread(RewriterBase &b, PartialReductionOpInterface op,
                                 ArrayRef<OpFoldResult> numThreads,
                                 ArrayRef<OpFoldResult> tileSizes = {},
-                                Optional<ArrayAttr> mapping = llvm::None);
+                                Optional<ArrayAttr> mapping = std::nullopt);
 
 /// All indices returned by IndexOp should be invariant with respect to
 /// tiling. Therefore, if an operation is tiled, we have to transform the


        


More information about the Mlir-commits mailing list