Searched refs:ValOrErr (Results 1 – 6 of 6) sorted by relevance
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | Error.h | 719 T cantFail(Expected<T> ValOrErr, const char *Msg = nullptr) { 720 if (ValOrErr) 721 return std::move(*ValOrErr); 743 T& cantFail(Expected<T&> ValOrErr, const char *Msg = nullptr) { 744 if (ValOrErr) 745 return *ValOrErr; 933 Expected<T> handleExpected(Expected<T> ValOrErr, RecoveryFtor &&RecoveryPath, in handleExpected() argument 935 if (ValOrErr) in handleExpected() 936 return ValOrErr; in handleExpected() 938 if (auto Err = handleErrors(ValOrErr.takeError(), in handleExpected() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | ErrorTest.cpp | 636 auto ValOrErr = in TEST() local 639 EXPECT_TRUE(!!ValOrErr) in TEST() 641 EXPECT_EQ(*ValOrErr, 42) in TEST() 657 auto ValOrErr = in TEST() local 662 EXPECT_FALSE(!!ValOrErr) in TEST() 664 auto Err = ValOrErr.takeError(); in TEST() 675 auto ValOrErr = in TEST() local 681 EXPECT_TRUE(!!ValOrErr) in TEST() 683 EXPECT_EQ(*ValOrErr, 42) in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ExecutionEngine/Orc/ |
D | RPCSerialization.h | 522 static Error serialize(ChannelT &C, Expected<T2> &&ValOrErr) { in serialize() argument 523 if (ValOrErr) { in serialize() 526 return SerializationTraits<ChannelT, T1, T2>::serialize(C, *ValOrErr); in serialize() 530 return serializeSeq(C, ValOrErr.takeError()); in serialize() 533 static Error deserialize(ChannelT &C, Expected<T2> &ValOrErr) { in deserialize() argument 534 ExpectedAsOutParameter<T2> EAO(&ValOrErr); in deserialize() 539 return SerializationTraits<ChannelT, T1, T2>::deserialize(C, *ValOrErr); in deserialize() 543 ValOrErr = std::move(Err); in deserialize()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/Orc/ |
D | RPCUtilsTest.cpp | 689 [&](Expected<uint32_t> ValOrErr) { in TEST() argument 690 EXPECT_TRUE(!!ValOrErr) in TEST() 692 EXPECT_EQ(*ValOrErr, 42ULL) in TEST() 721 [&](Expected<uint32_t> ValOrErr) { in TEST() argument 722 EXPECT_FALSE(!!ValOrErr) in TEST() 724 auto Err = ValOrErr.takeError(); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 1989 Expected<Value *> ValOrErr = recordValue(Record, 1, TT); in parseValueSymbolTable() local 1990 if (Error Err = ValOrErr.takeError()) in parseValueSymbolTable() 1992 ValOrErr.get(); in parseValueSymbolTable() 1997 Expected<Value *> ValOrErr = recordValue(Record, 2, TT); in parseValueSymbolTable() local 1998 if (Error Err = ValOrErr.takeError()) in parseValueSymbolTable() 2000 Value *V = ValOrErr.get(); in parseValueSymbolTable()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 1968 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()
|