Home
last modified time | relevance | path

Searched refs:ExitOnErr (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/Server/
Dserver.cpp23 ExitOnError ExitOnErr; variable
41 ExitOnErr.setBanner("jit_server: "); in main()
43 ExitOnErr.setBanner(std::string(argv[0]) + ": "); in main()
107 ExitOnErr(Server.startReceivingFunction(TCPChannel, (uint32_t&)Id)); in main()
110 ExitOnErr(Server.handleTerminateSession()); in main()
113 ExitOnErr(Server.handleKnownFunction(Id)); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rc/
Dllvm-rc.cpp73 static ExitOnError ExitOnErr; variable
84 ExitOnErr.setBanner("llvm-rc: "); in main()
116 std::vector<RCToken> Tokens = ExitOnErr(tokenizeRC(FilteredContents)); in main()
182 ExitOnErr(NullResource().visit(Visitor.get())); in main()
185 ExitOnErr(LanguageResource(0x09, 0x01).visit(Visitor.get())); in main()
190 auto Resource = ExitOnErr(Parser.parseSingleResource()); in main()
194 ExitOnErr(Resource->visit(Visitor.get())); in main()
199 ExitOnErr(Visitor->dumpAllStringTables()); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-dis/
Dllvm-dis.cpp148 static ExitOnError ExitOnErr; variable
153 ExitOnErr.setBanner(std::string(argv[0]) + ": error: "); in main()
161 ExitOnErr(errorOrToExpected(MemoryBuffer::getFileOrSTDIN(InputFilename))); in main()
162 std::unique_ptr<Module> M = ExitOnErr(getLazyBitcodeModule( in main()
165 ExitOnErr(M->materializeMetadata()); in main()
167 ExitOnErr(M->materializeAll()); in main()
169 BitcodeLTOInfo LTOInfo = ExitOnErr(getBitcodeLTOInfo(*MB)); in main()
172 Index = ExitOnErr(getModuleSummaryIndex(*MB)); in main()
/external/llvm/tools/lli/ChildTarget/
DChildTarget.cpp20 ExitOnError ExitOnErr; variable
29 ExitOnErr.setBanner(std::string(argv[0]) + ":"); in main()
62 ExitOnErr(Server.startReceivingFunction(Channel, RawId)); in main()
66 ExitOnErr(Server.handleTerminateSession()); in main()
69 ExitOnErr(Server.handleKnownFunction(Id)); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-modextract/
Dllvm-modextract.cpp42 ExitOnError ExitOnErr("llvm-modextract: error: "); in main() local
45 ExitOnErr(errorOrToExpected(MemoryBuffer::getFileOrSTDIN(InputFilename))); in main()
46 std::vector<BitcodeModule> Ms = ExitOnErr(getBitcodeModuleList(*MB)); in main()
59 ExitOnErr(errorCodeToError(EC)); in main()
72 std::unique_ptr<Module> M = ExitOnErr(Ms[ModuleIndex].parseModule(Context)); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/lli/
Dlli.cpp204 ExitOnError ExitOnErr; variable
350 ExitOnErr.setBanner(std::string(argv[0]) + ": "); in main()
398 ExitOnError ExitOnErr(std::string(*argv) + in main() local
400 ExitOnErr(Mod->materializeAll()); in main()
646 ES.setErrorReporter([&](Error Err) { ExitOnErr(std::move(Err)); }); in main()
648 auto R = ExitOnErr(MyRemote::Create(*C, ES)); in main()
651 auto RemoteMM = ExitOnErr(R->createRemoteMemoryManager()); in main()
662 if (auto Addr = ExitOnErr(R->getSymbolAddress(Name))) in main()
674 Result = ExitOnErr(R->callIntVoid(Entry)); in main()
685 ExitOnErr(R->terminateSession()); in main()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/Server/
Dserver.cpp25 ExitOnError ExitOnErr; variable
42 ExitOnErr.setBanner("jit_server: "); in main()
44 ExitOnErr.setBanner(std::string(argv[0]) + ": "); in main()
108 ExitOnErr(Server.handleOne()); in main()
/external/llvm/tools/llvm-pdbdump/
Dllvm-pdbdump.cpp297 static ExitOnError ExitOnErr; variable
305 ExitOnErr(make_error<GenericError>(generic_error_code::invalid_path, Path)); in yamlToPdb()
314 ExitOnErr(make_error<GenericError>(generic_error_code::unspecified, in yamlToPdb()
320 ExitOnErr(make_error<GenericError>(generic_error_code::invalid_path, in yamlToPdb()
327 ExitOnErr(Builder.setSuperBlock(YamlObj.Headers->SuperBlock)); in yamlToPdb()
340 ExitOnErr(Builder.generateSimpleStreamMap()); in yamlToPdb()
363 ExitOnErr(Pdb.takeError()); in yamlToPdb()
366 ExitOnErr(PdbFile->commit()); in yamlToPdb()
371 ExitOnErr(loadDataForPDB(PDB_ReaderType::Raw, Path, Session)); in pdb2Yaml()
378 ExitOnErr(O->dump()); in pdb2Yaml()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/
Dllvm-exegesis.cpp88 static llvm::ExitOnError ExitOnErr; variable
158 ExitOnErr(Runner->run(Opcode, NumRepetitions)); in benchmarkMain()
160 ExitOnErr(Result.writeYaml(Context, BenchmarkFile)); in benchmarkMain()
196 ExitOnErr(InstructionBenchmark::readYamls( in analysisMain()
213 const auto Clustering = ExitOnErr(InstructionBenchmarkClustering::create( in analysisMain()
230 exegesis::ExitOnErr.setExitCodeMapper([](const llvm::Error &Err) { in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/lli/ChildTarget/
DChildTarget.cpp20 ExitOnError ExitOnErr; variable
29 ExitOnErr.setBanner(std::string(argv[0]) + ":"); in main()
61 ExitOnErr(Server.handleOne()); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
Dllvm-pdbutil.cpp675 static ExitOnError ExitOnErr; variable
684 ExitOnErr(make_error<GenericError>(generic_error_code::invalid_path, Path)); in yamlToPdb()
698 ExitOnErr(Builder.initialize(BlockSize)); in yamlToPdb()
706 ExitOnErr(Builder.getMsfBuilder().addStream(0)); in yamlToPdb()
741 auto &ModiBuilder = ExitOnErr(DbiBuilder.addModuleInfo(MI.Mod)); in yamlToPdb()
745 ExitOnErr(DbiBuilder.addModuleSourceFile(ModiBuilder, S)); in yamlToPdb()
758 auto CodeViewSubsections = ExitOnErr(CodeViewYAML::toCodeViewSubsectionList( in yamlToPdb()
784 ExitOnErr(Builder.commit(opts::yaml2pdb::YamlPdbOutputFile)); in yamlToPdb()
788 ExitOnErr(loadDataForPDB(PDB_ReaderType::Native, Path, Session)); in loadPDB()
801 ExitOnErr(O->dump()); in pdb2Yaml()
[all …]
/external/llvm/unittests/Support/
DErrorTest.cpp442 ExitOnError ExitOnErr; in TEST() local
443 ExitOnErr.setBanner("Error in tool:"); in TEST()
444 ExitOnErr.setExitCodeMapper([](const Error &E) { in TEST()
451 ExitOnErr(Error::success()); in TEST()
452 EXPECT_EQ(ExitOnErr(Expected<int>(7)), 7) in TEST()
456 int &B = ExitOnErr(Expected<int&>(A)); in TEST()
460 EXPECT_EXIT(ExitOnErr(make_error<CustomError>(7)), in TEST()
464 EXPECT_EXIT(ExitOnErr(Expected<int>(make_error<CustomSubError>(0, 0))), in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cat/
Dllvm-cat.cpp49 ExitOnError ExitOnErr("llvm-cat: "); in main() local
56 std::unique_ptr<MemoryBuffer> MB = ExitOnErr( in main()
58 std::vector<BitcodeModule> Mods = ExitOnErr(getBitcodeModuleList(*MB)); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/tools/llvm-exegesis/
DBenchmarkResultTest.cpp58 llvm::ExitOnError ExitOnErr; in TEST() local
86 ExitOnErr(ToDisk.writeYaml(Ctx, Filename)); in TEST()
91 ExitOnErr(InstructionBenchmark::readYaml(Ctx, Filename)); in TEST()
107 ExitOnErr(InstructionBenchmark::readYamls(Ctx, Filename)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-link/
Dllvm-link.cpp112 static ExitOnError ExitOnErr; variable
136 ExitOnErr(Result->materializeMetadata()); in loadFile()
216 ExitOnErr(llvm::getModuleSummaryIndexForFile(SummaryIndex)); in importFunctions()
271 ExitOnErr(Importer.importFunctions(DestModule, ImportList)); in importFunctions()
304 ExitOnErr(llvm::getModuleSummaryIndexForFile(SummaryIndex)); in linkFiles()
351 ExitOnErr.setBanner(std::string(argv[0]) + ": "); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DInitLLVM.cpp39 ExitOnError ExitOnErr(Banner); in InitLLVM() local
41 ExitOnErr(errorCodeToError(windows::GetCommandLineArguments(Args, Alloc))); in InitLLVM()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DErrorTest.cpp471 ExitOnError ExitOnErr; in TEST() local
472 ExitOnErr.setBanner("Error in tool:"); in TEST()
473 ExitOnErr.setExitCodeMapper([](const Error &E) { in TEST()
480 ExitOnErr(Error::success()); in TEST()
481 EXPECT_EQ(ExitOnErr(Expected<int>(7)), 7) in TEST()
485 int &B = ExitOnErr(Expected<int&>(A)); in TEST()
489 EXPECT_EXIT(ExitOnErr(make_error<CustomError>(7)), in TEST()
493 EXPECT_EXIT(ExitOnErr(Expected<int>(make_error<CustomSubError>(0, 0))), in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-lto/
Dllvm-lto.cpp325 ExitOnError ExitOnErr("llvm-lto: error loading file '" + Filename + "': "); in printIndexStats() local
327 ExitOnErr(getModuleSummaryIndexForFile(Filename)); in printIndexStats()
380 ExitOnError ExitOnErr("llvm-lto: error loading file '" + Filename + "': "); in createCombinedModuleSummaryIndex() local
382 ExitOnErr(errorOrToExpected(MemoryBuffer::getFileOrSTDIN(Filename))); in createCombinedModuleSummaryIndex()
383 ExitOnErr(readModuleSummaryIndex(*MB, CombinedIndex, NextModuleId++)); in createCombinedModuleSummaryIndex()
444 ExitOnError ExitOnErr("llvm-lto: error loading file '" + ThinLTOIndex + in loadCombinedIndex() local
446 return ExitOnErr(getModuleSummaryIndexForFile(ThinLTOIndex)); in loadCombinedIndex()
827 ExitOnError ExitOnErr(std::string(*argv) + ": error loading file '" + in main() local
830 ExitOnErr(errorOrToExpected(MemoryBuffer::getFile(Filename))); in main()
832 if (ExitOnErr(isBitcodeContainingObjCCategory(*Buffer))) in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-extract/
Dllvm-extract.cpp259 ExitOnError ExitOnErr(std::string(*argv) + ": error reading input: "); in main() local
271 ExitOnErr(F->materialize()); in main()
289 auto Materialize = [&](GlobalValue &GV) { ExitOnErr(GV.materialize()); }; in main()
313 ExitOnErr(M->materializeAll()); in main()
/external/llvm/tools/lli/
Dlli.cpp234 ExitOnError ExitOnErr; variable
374 ExitOnErr.setBanner(std::string(argv[0]) + ": "); in main()
656 MyRemote R = ExitOnErr(MyRemote::Create(*C)); in main()
660 ExitOnErr(R.createRemoteMemoryManager(RemoteMM)); in main()
671 if (auto Addr = ExitOnErr(R.getSymbolAddress(Name))) in main()
684 Result = ExitOnErr(R.callIntVoid(Entry)); in main()
695 ExitOnErr(R.terminateSession()); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cfi-verify/
Dllvm-cfi-verify.cpp61 ExitOnError ExitOnErr; variable
272 FileAnalysis Analysis = ExitOnErr(FileAnalysis::Create(InputFilename)); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp714 static ExitOnError ExitOnErr; variable
1142 ExitOnErr(TheJIT->addFunctionAST(std::move(FnAST))); in HandleDefinition()
1180 ExitOnErr(TheJIT->executeRemoteExpr(cantFail(ExprSymbol.getAddress()))); in HandleTopLevelExpression()
1271 ExitOnErr.setBanner("Kaleidoscope: "); in main()
1283 auto Remote = ExitOnErr(MyRemote::Create(*TCPChannel, ES)); in main()
1306 ExitOnErr(Remote->terminateSession()); in main()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp703 static ExitOnError ExitOnErr; variable
1131 ExitOnErr(TheJIT->addFunctionAST(std::move(FnAST))); in HandleDefinition()
1168 ExitOnErr(TheJIT->executeRemoteExpr(ExprSymbol.getAddress())); in HandleTopLevelExpression()
1257 ExitOnErr.setBanner("Kaleidoscope: "); in main()
1268 MyRemote Remote = ExitOnErr(MyRemote::Create(*TCPChannel)); in main()
1291 ExitOnErr(Remote.terminateSession()); in main()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp681 static ExitOnError ExitOnErr; variable
1109 ExitOnErr(TheJIT->addFunctionAST(std::move(FnAST))); in HandleDefinition()
1206 ExitOnErr.setBanner("Kaleidoscope: "); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp690 static ExitOnError ExitOnErr; variable
1118 ExitOnErr(TheJIT->addFunctionAST(std::move(FnAST))); in HandleDefinition()
1216 ExitOnErr.setBanner("Kaleidoscope: "); in main()

12