Home
last modified time | relevance | path

Searched refs:cantFail (Results 1 – 25 of 186) sorted by relevance

12345678

/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DCoreAPIsTest.cpp918 cantFail(JD.define(MU)); in TEST_F()
952 cantFail(JD.define(MU)); in TEST_F()
1032 cantFail( in TEST_F()
1038 cantFail(JD.define(MU)); in TEST_F()
1080 auto Result = cantFail( in TEST_F()
1145 cantFail(JD.define(MU)); in TEST_F()
1197 cantFail(JD.define(MU)); in TEST_F()
1240 cantFail(JD.define(MU)); in TEST_F()
1313 cantFail(JD.define(MU)); in TEST_F()
1343 cantFail(JD.define(MU)); in TEST_F()
[all …]
H A DResourceTrackerTest.cpp137 cantFail(RT->remove()); in TEST_F()
171 cantFail(R->notifyEmitted()); in TEST_F()
176 cantFail(ES.lookup({&JD}, Foo)); in TEST_F()
177 cantFail(RT->remove()); in TEST_F()
220 cantFail(RT->remove()); in TEST_F()
269 cantFail( in TEST_F()
281 cantFail(JD.clear()); in TEST_F()
321 cantFail( in TEST_F()
334 cantFail(FooRT->remove()); in TEST_F()
367 cantFail( in TEST_F()
[all …]
H A DExecutionSessionWrapperFunctionCallsTest.cpp39 ExecutionSession ES(cantFail(SelfExecutorProcessControl::Create())); in TEST()
46 cantFail(ES.endSession()); in TEST()
50 ExecutionSession ES(cantFail(SelfExecutorProcessControl::Create())); in TEST()
59 cantFail(ES.endSession()); in TEST()
63 ExecutionSession ES(cantFail(SelfExecutorProcessControl::Create())); in TEST()
76 cantFail(ES.endSession()); in TEST()
83 ExecutionSession ES(cantFail(SelfExecutorProcessControl::Create())); in TEST()
87 cantFail(JD.define(absoluteSymbols( in TEST()
96 cantFail(ES.registerJITDispatchHandlers(JD, std::move(Associations))); in TEST()
118 cantFail(ES.endSession()); in TEST()
H A DLazyCallThroughAndReexportsTest.cpp40 cantFail(JD.define(std::make_unique<SimpleMaterializationUnit>( in TEST_F()
45 cantFail(R->notifyResolved( in TEST_F()
50 cantFail(R->notifyEmitted()); in TEST_F()
59 auto CallThroughTrampoline = cantFail((*LCTM)->getCallThroughTrampoline( in TEST_F()
H A DSharedMemoryMapperTest.cpp41 auto SelfEPC = cantFail(SelfExecutorProcessControl::Create()); in TEST()
66 cantFail(SharedMemoryMapper::Create(*SelfEPC, SAs)); in TEST()
89 {cantFail(WrapperFunctionCall::Create<SPSArgList<SPSExecutorAddr>>( in TEST()
92 cantFail(WrapperFunctionCall::Create<SPSArgList<SPSExecutorAddr>>( in TEST()
130 cantFail(SelfEPC->disconnect()); in TEST()
H A DMemoryMapperTest.cpp69 cantFail(InProcessMemoryMapper::Create()); in TEST()
100 {cantFail(WrapperFunctionCall::Create<SPSArgList<SPSExecutorAddr>>( in TEST()
103 cantFail(WrapperFunctionCall::Create<SPSArgList<SPSExecutorAddr>>( in TEST()
124 {cantFail(WrapperFunctionCall::Create<SPSArgList<SPSExecutorAddr>>( in TEST()
127 cantFail(WrapperFunctionCall::Create<SPSArgList<SPSExecutorAddr>>( in TEST()
176 {cantFail(WrapperFunctionCall::Create<SPSArgList<SPSExecutorAddr>>( in TEST()
179 cantFail(WrapperFunctionCall::Create<SPSArgList<SPSExecutorAddr>>( in TEST()
H A DRTDyldObjectLinkingLayerTest.cpp58 cantFail(std::move(R)); in testSetProcessAllSections()
62 cantFail(ObjLayer.add(JD, std::move(Obj))); in testSetProcessAllSections()
95 auto Obj = cantFail(SimpleCompiler(*TM)(*M)); in TEST()
166 cantFail(CompileLayer.add(JD, std::move(M))); in TEST()
170 [](Expected<SymbolMap> R) { cantFail(std::move(R)); }, in TEST()
236 cantFail(CompileLayer.add(JD, std::move(M))); in TEST()
240 [](Expected<SymbolMap> R) { cantFail(std::move(R)); }, in TEST()
H A DLookupAndRecordAddrsTest.cpp25 cantFail(JD.define(absoluteSymbols({{Foo, FooSym}, {Bar, BarSym}}))); in TEST_F()
55 cantFail(JD.define(absoluteSymbols({{Foo, FooSym}}))); in TEST_F()
73 cantFail(JD.define(absoluteSymbols({{Foo, FooSym}, {Bar, BarSym}}))); in TEST_F()
95 cantFail(JD.define(absoluteSymbols({{Foo, FooSym}}))); in TEST_F()
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DCodeViewYAMLTypeHashing.cpp54 cantFail(Reader.readInteger(DHS.Magic)); in fromDebugH()
55 cantFail(Reader.readInteger(DHS.Version)); in fromDebugH()
56 cantFail(Reader.readInteger(DHS.HashAlgorithm)); in fromDebugH()
60 cantFail(Reader.readBytes(S, 8)); in fromDebugH()
74 cantFail(Writer.writeInteger(DebugH.Magic)); in toDebugH()
75 cantFail(Writer.writeInteger(DebugH.Version)); in toDebugH()
76 cantFail(Writer.writeInteger(DebugH.HashAlgorithm)); in toDebugH()
83 cantFail(Writer.writeFixedString(Hash)); in toDebugH()
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DSimpleTypeSerializer.cpp26 cantFail(Writer.writeInteger(Pad)); in addPadding()
42 cantFail(Writer.writeObject(DummyPrefix)); in serialize()
47 cantFail(Mapping.visitTypeBegin(CVT)); in serialize()
48 cantFail(Mapping.visitKnownRecord(CVT, Record)); in serialize()
49 cantFail(Mapping.visitTypeEnd(CVT)); in serialize()
H A DContinuationRecordBuilder.cpp29 cantFail(Writer.writeInteger(Pad)); in addPadding()
72 cantFail(Mapping.visitTypeBegin(Type)); in begin()
74 cantFail(SegmentWriter.writeObject(Prefix)); in begin()
87 cantFail(SegmentWriter.writeEnum(CVMR.Kind)); in writeMemberType()
90 cantFail(Mapping.visitMemberBegin(CVMR)); in writeMemberType()
91 cantFail(Mapping.visitKnownMember(CVMR, Record)); in writeMemberType()
92 cantFail(Mapping.visitMemberEnd(CVMR)); in writeMemberType()
176 cantFail(Mapping.visitTypeEnd(Type)); in end()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbUtil.cpp89 llvm::cantFail(TypeDeserializer::deserializeAs<EnumRecord>(type, er)); in create()
232 cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record)); in createRecord()
448 cantFail(TypeDeserializer::deserializeAs<ClassRecord>(cvt, cr)); in GetFieldListIndex()
453 cantFail(TypeDeserializer::deserializeAs<UnionRecord>(cvt, ur)); in GetFieldListIndex()
458 cantFail(TypeDeserializer::deserializeAs<EnumRecord>(cvt, er)); in GetFieldListIndex()
498 cantFail(SymbolDeserializer::deserializeAs<LocalSym>(sym, local)); in GetVariableNameInfo()
508 cantFail(SymbolDeserializer::deserializeAs<DataSym>(sym, data)); in GetVariableNameInfo()
580 PDBStringTable &strings = cantFail(index.pdb().getStringTable()); in GetFrameDataProgram()
631 cantFail(SymbolDeserializer::deserializeAs<LocalSym>(sym, local)); in GetVariableLocationInfo()
962 return llvm::cantFail(tpi.findFullDeclForForwardRef(id.index)); in GetBestPossibleDecl()
[all …]
H A DCompileUnitIndex.cpp51 llvm::cantFail( in ParseCompile3()
57 llvm::cantFail( in ParseObjname()
64 llvm::cantFail(SymbolDeserializer::deserializeAs<BuildInfoSym>(sym, bis)); in ParseBuildInfo()
75 llvm::cantFail(TypeDeserializer::deserializeAs<BuildInfoRecord>(*cvt, bir)); in ParseBuildInfo()
158 cantFail(debug_stream.reload()); in GetOrCreateCompiland()
166 PDBStringTable &strings = cantFail(m_index.pdb().getStringTable()); in GetOrCreateCompiland()
230 llvm::cantFail( in GetMainSourceFile()
232 llvm::cantFail( in GetMainSourceFile()
H A DUdtRecordCompleter.cpp44 llvm::cantFail(TypeDeserializer::deserializeAs<EnumRecord>(cvt, m_cvr.er)); in UdtRecordCompleter()
47 llvm::cantFail(TypeDeserializer::deserializeAs<UnionRecord>(cvt, m_cvr.ur)); in UdtRecordCompleter()
51 llvm::cantFail(TypeDeserializer::deserializeAs<ClassRecord>(cvt, m_cvr.cr)); in UdtRecordCompleter()
166 cantFail(SymbolDeserializer::deserializeAs<ConstantSym>(result.second, in visitKnownMember()
237 llvm::cantFail(TypeDeserializer::deserializeAs<BitFieldRecord>(cvt, bfr)); in visitKnownMember()
278 llvm::cantFail(TypeDeserializer::deserializeAs<MethodOverloadListRecord>( in visitKnownMember()
/llvm-project-15.0.7/clang/unittests/Interpreter/ExceptionTests/
H A DInterpreterExceptionTest.cpp42 auto CI = cantFail(clang::IncrementalCompilerBuilder::create(ClangArgs));
45 return cantFail(clang::Interpreter::create(std::move(CI)));
119 llvm::cantFail(Interp->ParseAndExecute("")); in TEST()
127 llvm::cantFail(Interp->ParseAndExecute(ExceptionCode)); in TEST()
130 (int (*)())llvm::cantFail(Interp->getSymbolAddress("throw_exception")); in TEST()
/llvm-project-15.0.7/clang/unittests/Interpreter/
H A DIncrementalProcessingTest.cpp55 auto CI = llvm::cantFail(IncrementalCompilerBuilder::create(ClangArgv)); in TEST()
56 auto Interp = llvm::cantFail(Interpreter::create(std::move(CI))); in TEST()
60 PTUs[0] = &llvm::cantFail(Interp->Parse(TestProgram1)); in TEST()
64 PTUs[1] = &llvm::cantFail(Interp->Parse(TestProgram2)); in TEST()
H A DInterpreterTest.cpp37 auto CI = cantFail(clang::IncrementalCompilerBuilder::create(ClangArgs));
40 return cantFail(clang::Interpreter::create(std::move(CI)));
52 PTU &R1(cantFail(Interp->Parse("void g(); void g() {}"))); in TEST()
55 PTU &R2(cantFail(Interp->Parse("int i;"))); in TEST()
201 auto &PTU(cantFail(Interp->Parse("int f(const char*) {return 0;}")));
214 auto Addr = cantFail(Interp->getSymbolAddress(MangledName));
217 EXPECT_EQ(Addr, cantFail(Interp->getSymbolAddress(GD)));
266 llvm::cantFail(Interp->Parse("void* operator new(__SIZE_TYPE__, void* __p);"
273 auto &PTU = llvm::cantFail(Interp->Parse("auto _t = &B::callme<A*>;"));
294 auto fn = (TemplateSpecFn)cantFail(Interp->getSymbolAddress(MangledName));
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DTypeReferenceTracker.cpp47 Tpi = &cantFail(File.pdb().getPDBTpiStream()); in TypeReferenceTracker()
67 cantFail(Reader.readArray(Symbols, Reader.getLength())); in mark()
79 SymbolStream &SymStream = cantFail(File.pdb().getPDBSymbolStream()); in mark()
80 GlobalsStream &GS = cantFail(File.pdb().getPDBGlobalsStream()); in mark()
157 cantFail(Tpi->findFullDeclForForwardRef(RefTI))); in markReferencedTypes()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DNativeEnumInjectedSources.cpp51 StringRef Ret = cantFail(Strings.getStringForID(Entry.FileNI), in getFileName()
57 StringRef Ret = cantFail(Strings.getStringForID(Entry.ObjNI), in getObjectFileName()
63 StringRef Ret = cantFail(Strings.getStringForID(Entry.VFileNI), in getVirtualFileName()
73 cantFail(Strings.getStringForID(Entry.VFileNI), in getCode()
/llvm-project-15.0.7/lldb/unittests/Utility/
H A DRegularExpressionTest.cpp18 cantFail(r1.GetError()); in TEST()
27 cantFail(r2.GetError()); in TEST()
55 cantFail(r1.GetError()); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFormat.cpp174 cantFail(Result.Changes.add( in getIncrementalChangesAfterNewline()
191 cantFail( in getIncrementalChangesAfterNewline()
196 cantFail(Result.Changes.add(replacement(Code, Indentation, ""))); in getIncrementalChangesAfterNewline()
202 cantFail( in getIncrementalChangesAfterNewline()
289 std::string CodeToFormat = cantFail( in formatIncremental()
322 cantFail(FormattingChanges.add(R)); in formatIncremental()
325 cantFail(FormattingChanges.add(tooling::Replacement(Filename, in formatIncremental()
373 cantFail(tooling::applyAllReplacements(FinalCode, *Pass.second)); in formatIncremental()
/llvm-project-15.0.7/compiler-rt/lib/orc/unittests/
H A Derror_test.cpp276 cantFail(Error::success()); in TEST()
278 int X = cantFail(Expected<int>(42)); in TEST()
282 int &Y = cantFail(Expected<int &>(Dummy)); in TEST()
288 EXPECT_DEATH(cantFail(make_error<StringError>("foo")), in TEST()
292 EXPECT_DEATH(cantFail(Expected<int>(make_error<StringError>("foo"))), in TEST()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DMachORewriteInstance.cpp240 SymbolRef::Type Type = cantFail(S.getType(), "cannot get symbol type"); in discoverFileObjects()
248 return cantFail(LHS.getValue()) < cantFail(RHS.getValue()); in discoverFileObjects()
251 const uint64_t Address = cantFail(FunctionSymbols[Index].getValue()); in discoverFileObjects()
262 cantFail(FunctionSymbols[Index].getName(), "cannot get symbol name") in discoverFileObjects()
265 if (!(cantFail(FunctionSymbols[Index].getFlags()) & SymbolRef::SF_Global)) in discoverFileObjects()
268 section_iterator S = cantFail(FunctionSymbols[Index].getSection()); in discoverFileObjects()
274 cantFail(FunctionSymbols[NFIndex].getValue()) == Address) in discoverFileObjects()
277 S == cantFail(FunctionSymbols[NFIndex].getSection())) in discoverFileObjects()
278 EndAddress = cantFail(FunctionSymbols[NFIndex].getValue()); in discoverFileObjects()
500 std::unique_ptr<object::ObjectFile> Obj = cantFail( in emitAndLink()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericJITLinkMemoryManager.cpp68 cantFail(std::move(FinalizeErr)); in finalize()
86 cantFail(std::move(DeallocateErr)); in abandon()
115 cantFail(AllocAddr.takeError()); in allocate()
134 cantFail(std::move(DeallocErr)); in deallocate()
/llvm-project-15.0.7/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAsmBackendDarwin.h26 Subtype((MachO::CPUSubTypeARM)cantFail( in ARMAsmBackendDarwin()
32 /*Is64Bit=*/false, cantFail(MachO::getCPUType(TT)), Subtype); in createObjectTargetWriter()

12345678