[SPIR-V] Use llvm::Optional for builtin lowering result.
authorAleksandr Bezzubikov <zuban32s@gmail.com>
Tue, 30 Aug 2022 23:34:50 +0000 (16:34 -0700)
committerAleksandr Bezzubikov <zuban32s@gmail.com>
Wed, 31 Aug 2022 06:25:49 +0000 (23:25 -0700)
commit1fbc6b26a237f01b8f1a5c5228450918bd055ca2
tree7befd670564ea45f8a31fd5ef8cdea8bcb2abaa0
parentfb9d67636ae06c02f2235ad2ff5826599c86eaf9
[SPIR-V] Use llvm::Optional for builtin lowering result.

Replace result type std::pair<bool, bool> of lowerBuiltin with
a nice and convenient Optional<bool>.

Reviewed By: iliya-diyachkov, MaskRay

Differential Revision: https://reviews.llvm.org/D132802
llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
llvm/lib/Target/SPIRV/SPIRVBuiltins.h
llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp