Replace result type std::pair<bool, bool> of lowerBuiltin with
a nice and convenient Optional<bool>.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
@zuban32, perhaps it's better to use llvm::Optional from llvm/ADT/Optional.h (see https://github.com/KhronosGroup/LLVM-SPIRV-Backend/pull/217/files). It's widely used in llvm. On other hand, std::optional is not used at all in llvm/lib (as I see in llvm15).
llvm/lib/Target/SPIRV/SPIRVBuiltins.h | ||
---|---|---|
24–25 | We need to correct the description too, e.g. /// \return A boolean value indicating the successful lowering, if the callee /// is recognized as a builtin function. |
We need to correct the description too, e.g.