Home
last modified time | relevance | path

Searched refs:ValOrErr (Results 1 – 10 of 10) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DError.h731 T cantFail(Expected<T> ValOrErr, const char *Msg = nullptr) {
732 if (ValOrErr)
733 return std::move(*ValOrErr);
740 auto E = ValOrErr.takeError();
762 T& cantFail(Expected<T&> ValOrErr, const char *Msg = nullptr) {
763 if (ValOrErr)
764 return *ValOrErr;
771 auto E = ValOrErr.takeError();
959 Expected<T> handleExpected(Expected<T> ValOrErr, RecoveryFtor &&RecoveryPath, in handleExpected() argument
961 if (ValOrErr) in handleExpected()
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DError.h735 T cantFail(Expected<T> ValOrErr, const char *Msg = nullptr) {
736 if (ValOrErr)
737 return std::move(*ValOrErr);
744 auto E = ValOrErr.takeError();
766 T& cantFail(Expected<T&> ValOrErr, const char *Msg = nullptr) {
767 if (ValOrErr)
768 return *ValOrErr;
775 auto E = ValOrErr.takeError();
963 Expected<T> handleExpected(Expected<T> ValOrErr, RecoveryFtor &&RecoveryPath, in handleExpected() argument
965 if (ValOrErr) in handleExpected()
[all …]
/external/llvm-project/clang/unittests/AST/
DASTImporterFixtures.h430 ::testing::AssertionResult isSuccess(llvm::Expected<T> &ValOrErr) { in isSuccess() argument
431 if (ValOrErr) in isSuccess()
435 << "Expected<> contains error: " << toString(ValOrErr.takeError()); in isSuccess()
439 ::testing::AssertionResult isImportError(llvm::Expected<T> &ValOrErr, in isImportError() argument
441 if (ValOrErr) { in isImportError()
444 << (*ValOrErr) << "\""; in isImportError()
449 ValOrErr.takeError(), [&OS, &Result, Kind](clang::ImportError &IE) { in isImportError()
/external/llvm-project/llvm/unittests/Support/
DErrorTest.cpp639 auto ValOrErr = in TEST() local
642 EXPECT_TRUE(!!ValOrErr) in TEST()
644 EXPECT_EQ(*ValOrErr, 42) in TEST()
660 auto ValOrErr = in TEST() local
665 EXPECT_FALSE(!!ValOrErr) in TEST()
667 auto Err = ValOrErr.takeError(); in TEST()
678 auto ValOrErr = in TEST() local
684 EXPECT_TRUE(!!ValOrErr) in TEST()
686 EXPECT_EQ(*ValOrErr, 42) in TEST()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/RPC/
DRPCSerialization.h483 static Error serialize(ChannelT &C, Expected<T2> &&ValOrErr) { in serialize() argument
484 if (ValOrErr) { in serialize()
487 return SerializationTraits<ChannelT, T1, T2>::serialize(C, *ValOrErr); in serialize()
491 return serializeSeq(C, ValOrErr.takeError()); in serialize()
494 static Error deserialize(ChannelT &C, Expected<T2> &ValOrErr) { in deserialize() argument
495 ExpectedAsOutParameter<T2> EAO(&ValOrErr); in deserialize()
500 return SerializationTraits<ChannelT, T1, T2>::deserialize(C, *ValOrErr); in deserialize()
504 ValOrErr = std::move(Err); in deserialize()
/external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RPC/
DRPCSerialization.h497 static Error serialize(ChannelT &C, Expected<T2> &&ValOrErr) { in serialize() argument
498 if (ValOrErr) { in serialize()
501 return SerializationTraits<ChannelT, T1, T2>::serialize(C, *ValOrErr); in serialize()
505 return serializeSeq(C, ValOrErr.takeError()); in serialize()
508 static Error deserialize(ChannelT &C, Expected<T2> &ValOrErr) { in deserialize() argument
509 ExpectedAsOutParameter<T2> EAO(&ValOrErr); in deserialize()
514 return SerializationTraits<ChannelT, T1, T2>::deserialize(C, *ValOrErr); in deserialize()
518 ValOrErr = std::move(Err); in deserialize()
/external/llvm-project/llvm/unittests/ExecutionEngine/Orc/
DRPCUtilsTest.cpp699 [&](Expected<uint32_t> ValOrErr) { in TEST() argument
700 EXPECT_TRUE(!!ValOrErr) in TEST()
702 EXPECT_EQ(*ValOrErr, 42ULL) in TEST()
731 [&](Expected<uint32_t> ValOrErr) { in TEST() argument
732 EXPECT_FALSE(!!ValOrErr) in TEST()
734 auto Err = ValOrErr.takeError(); in TEST()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2185 Expected<Value *> ValOrErr = recordValue(Record, 1, TT); in parseValueSymbolTable() local
2186 if (Error Err = ValOrErr.takeError()) in parseValueSymbolTable()
2188 ValOrErr.get(); in parseValueSymbolTable()
2193 Expected<Value *> ValOrErr = recordValue(Record, 2, TT); in parseValueSymbolTable() local
2194 if (Error Err = ValOrErr.takeError()) in parseValueSymbolTable()
2196 Value *V = ValOrErr.get(); in parseValueSymbolTable()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1968 ErrorOr<Value *> ValOrErr = recordValue(Record, 1, TT); in parseValueSymbolTable() local
1969 if (std::error_code EC = ValOrErr.getError()) in parseValueSymbolTable()
1971 ValOrErr.get(); in parseValueSymbolTable()
1976 ErrorOr<Value *> ValOrErr = recordValue(Record, 2, TT); in parseValueSymbolTable() local
1977 if (std::error_code EC = ValOrErr.getError()) in parseValueSymbolTable()
1979 Value *V = ValOrErr.get(); in parseValueSymbolTable()
/external/llvm-project/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2193 Expected<Value *> ValOrErr = recordValue(Record, 1, TT); in parseValueSymbolTable() local
2194 if (Error Err = ValOrErr.takeError()) in parseValueSymbolTable()
2196 ValOrErr.get(); in parseValueSymbolTable()
2201 Expected<Value *> ValOrErr = recordValue(Record, 2, TT); in parseValueSymbolTable() local
2202 if (Error Err = ValOrErr.takeError()) in parseValueSymbolTable()
2204 Value *V = ValOrErr.get(); in parseValueSymbolTable()