diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-02 18:53:00 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-02 18:53:00 -0800 |
commit | f64d4a26cee0030e4dd70ef74683254ec23fca4c (patch) | |
tree | 591fb697d17983702be00ca18479ca7a9f183020 /llvm/unittests/CodeGen/MachineInstrTest.cpp | |
parent | 8a1f12c6fbe9da8dcb6102d3b9b695cfcae9dbb4 (diff) | |
download | llvm-f64d4a26cee0030e4dd70ef74683254ec23fca4c.zip llvm-f64d4a26cee0030e4dd70ef74683254ec23fca4c.tar.gz llvm-f64d4a26cee0030e4dd70ef74683254ec23fca4c.tar.bz2 |
[llvm] Add support for hashing std::optional
The credit for the hashing code, taken from D138934, goes to Ramkumar
Ramachandra. The test comes from OptionalTest.cpp and updated for
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
Differential Revision: https://reviews.llvm.org/D139240
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions