mlir/linalg: use std::optional
authorRamkumar Ramachandra <r@artagnon.com>
Sun, 27 Nov 2022 21:32:20 +0000 (13:32 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 21:32:20 +0000 (13:32 -0800)
commit537137ece1dd0c155e893f551bf50c00d2e0ab9b
treea8209feceb42a0a859f639842cb572fb6ee0863d
parentd32ec5232c9eef1a4172e461f9c482b094416079
mlir/linalg: use std::optional

This is part of an effort to migrate from llvm::Optional to std::optional:

See also: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716

Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>
mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp