[AMDGPU] Use std::optional in AMDGPUInstructionSelector.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 26 Nov 2022 06:23:09 +0000 (22:23 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 26 Nov 2022 06:23:09 +0000 (22:23 -0800)
commit959c9cc7acf4d0aa433f2436e2a45b782e18022a
tree8de05640503b93c925f882c462b10f6d8eee1f9e
parentf0105ee968b223dffba86b11e1b3dc9e8b3af652
[AMDGPU] Use std::optional in AMDGPUInstructionSelector.cpp (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
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp