[utils] Use std::nullopt instead of None (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 3 Dec 2022 05:11:42 +0000 (21:11 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 3 Dec 2022 05:11:42 +0000 (21:11 -0800)
commited88e60b373383322c4b7465d43dc6c06092facb
treeb4a6a76c912a292419d03441a3b391c832153294
parentb4482f7ca04e852cf610ef0e16542c888844d93d
[utils] Use std::nullopt instead of None (NFC)

This patch mechanically replaces None with std::nullopt where the
compiler would warn if None were deprecated.  The intent is to reduce
the amount of manual work required in migrating from Optional to
std::optional.

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
llvm/utils/TableGen/CodeGenRegisters.cpp
llvm/utils/TableGen/CodeGenTarget.cpp
llvm/utils/TableGen/GlobalISel/GIMatchTree.h
llvm/utils/TableGen/GlobalISelEmitter.cpp
llvm/utils/TableGen/IntrinsicEmitter.cpp
llvm/utils/not/not.cpp