diff options
author | Ramkumar Ramachandra <r@artagnon.com> | 2022-12-19 19:50:54 +0100 |
---|---|---|
committer | Ramkumar Ramachandra <r@artagnon.com> | 2022-12-20 09:23:58 +0100 |
commit | e8bcc37fff5bda7dd9326903a2c31e6703b4fe68 (patch) | |
tree | 70b87bea81280097cb50b602aebf9d5e53203753 /llvm/lib/Support/CommandLine.cpp | |
parent | d0018c959a30150aa923fb458c5d21cd284120d4 (diff) | |
download | llvm-e8bcc37fff5bda7dd9326903a2c31e6703b4fe68.zip llvm-e8bcc37fff5bda7dd9326903a2c31e6703b4fe68.tar.gz llvm-e8bcc37fff5bda7dd9326903a2c31e6703b4fe68.tar.bz2 |
mlir/{SPIRV,Bufferization}: use std::optional in .td files (NFC)
This is part of an effort to migrate from llvm::Optional to
std::optional. 22426110c5ef changed the way mlir-tblgen generates .inc
files, emitting std::optional when an Optional attribute is specified in
a .td file. It also changed several .td files hard-coding llvm::Optional
to use std::optional. However, the patch excluded a few .td files in
SPIRV and Bufferization hard-coding llvm::Optional. This patch fixes
that defect, and after this patch, references to llvm::Optional in .cpp
and .h files can be replaced mechanically.
See also: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>
Differential Revision: https://reviews.llvm.org/D140329
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions