Home
last modified time | relevance | path

Searched refs:ErrMsg (Results 1 – 25 of 89) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DBinaryStreamError.cpp24 ErrMsg = "Stream Error: "; in BinaryStreamError()
27 ErrMsg += "An unspecified error has occurred."; in BinaryStreamError()
30 ErrMsg += "The stream is too short to perform the requested operation."; in BinaryStreamError()
33 ErrMsg += "The buffer size is not a multiple of the array element size."; in BinaryStreamError()
36 ErrMsg += "The specified offset is invalid for the current stream."; in BinaryStreamError()
39 ErrMsg += "An I/O error occurred on the file system."; in BinaryStreamError()
44 ErrMsg += " "; in BinaryStreamError()
45 ErrMsg += Context; in BinaryStreamError()
49 void BinaryStreamError::log(raw_ostream &OS) const { OS << ErrMsg; } in log()
51 StringRef BinaryStreamError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
H A DError.cpp158 std::string ErrMsg; in report_fatal_error() local
160 raw_string_ostream ErrStream(ErrMsg); in report_fatal_error()
163 report_fatal_error(Twine(ErrMsg), GenCrashDiag); in report_fatal_error()
176 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage() local
177 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
178 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
179 return ErrMsg; in LLVMGetErrorMessage()
182 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } in LLVMDisposeErrorMessage() argument
188 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg) { in LLVMCreateStringError() argument
189 return wrap(make_error<StringError>(ErrMsg, inconvertibleErrorCode())); in LLVMCreateStringError()
H A DGraphWriter.cpp137 std::string &ErrMsg) { in ExecGraphViewer() argument
140 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
146 sys::ExecuteNoWait(ExecPath, args, std::nullopt, {}, 0, &ErrMsg); in ExecGraphViewer()
193 std::string ErrMsg; in DisplayGraph() local
206 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
215 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
226 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
239 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
286 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph()
319 ErrMsg.clear(); in DisplayGraph()
[all …]
H A DProgram.cpp29 unsigned MemoryLimit, std::string *ErrMsg,
36 std::string *ErrMsg, bool *ExecutionFailed, in ExecuteAndWait() argument
41 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteAndWait()
47 ErrMsg, ProcStat); in ExecuteAndWait()
60 unsigned MemoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
66 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteNoWait()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericRTDyldMemoryManager.cpp46 if (!ErrMsg.empty()) in ~EPCGenericRTDyldMemoryManager()
103 if (!ErrMsg.empty()) in reserveAllocationSpace()
135 ErrMsg = toString(std::move(Err)); in reserveAllocationSpace()
169 if (!ErrMsg.empty()) in registerEHFrames()
211 if (ErrMsg && !this->ErrMsg.empty()) { in finalizeMemory()
212 *ErrMsg = std::move(this->ErrMsg); in finalizeMemory()
275 this->ErrMsg = toString(std::move(Err)); in finalizeMemory()
277 if (ErrMsg) in finalizeMemory()
278 *ErrMsg = this->ErrMsg; in finalizeMemory()
285 if (ErrMsg) in finalizeMemory()
[all …]
H A DJITTargetMachineBuilder.cpp43 std::string ErrMsg; in createTargetMachine() local
44 auto *TheTarget = TargetRegistry::lookupTarget(TT.getTriple(), ErrMsg); in createTargetMachine()
46 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode()); in createTargetMachine()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/Unix/
H A DUnix.h60 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
61 if (!ErrMsg)
65 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
71 std::string ErrMsg; in ReportErrnumFatal() local
72 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
73 llvm::report_fatal_error(llvm::Twine(ErrMsg)); in ReportErrnumFatal()
H A DProgram.inc119 MakeErrMsg(ErrMsg, "Cannot dup2");
181 if (ErrMsg)
280 MakeErrMsg(ErrMsg, "Couldn't fork");
288 if (RedirectIO(Redirects[0], 0, ErrMsg)) {
292 if (RedirectIO(Redirects[1], 1, ErrMsg)) {
486 if (ErrMsg)
487 *ErrMsg = llvm::sys::StrError(ENOENT);
492 if (ErrMsg)
498 if (ErrMsg) {
499 *ErrMsg = strsignal(WTERMSIG(status));
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/Windows/
H A DProgram.inc112 if (!ErrMsg)
121 *ErrMsg = prefix + ": " + buffer;
123 *ErrMsg = prefix + ": Unknown error";
165 MakeErrMsg(ErrMsg,
180 if (ErrMsg)
181 *ErrMsg = "program not executable";
279 MakeErrMsg(ErrMsg,
304 MakeErrMsg(ErrMsg,
413 std::string *ErrMsg,
428 if (ErrMsg)
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp224 ErrMsg += Path.str() + ": " + EC.message(); in writeMergedModules()
225 emitError(ErrMsg); in writeMergedModules()
234 std::string ErrMsg = "could not write bitcode file: "; in writeMergedModules() local
235 ErrMsg += Path.str() + ": " + Out.os().error().message(); in writeMergedModules()
236 emitError(ErrMsg); in writeMergedModules()
400 std::string ErrMsg; in determineTarget() local
401 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg); in determineTarget()
403 emitError(ErrMsg); in determineTarget()
769 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { in emitError() argument
773 Context.diagnose(LTODiagnosticInfo(ErrMsg)); in emitError()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h46 RuntimeDyldError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} in RuntimeDyldError() argument
49 const std::string &getErrorMessage() const { return ErrMsg; } in getErrorMessage()
53 std::string ErrMsg;
169 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp666 bool onPlus(StringRef &ErrMsg) { in onPlus() argument
1381 return checkScale(Scale, ErrMsg); in CheckBaseRegAndIndexRegAndScale()
1829 StringRef ErrMsg; in ParseIntelNamedOperator() local
1875 StringRef ErrMsg; in ParseIntelExpression() local
2138 if (SM.onPlus(ErrMsg)) in ParseIntelExpression()
2142 if (SM.onMinus(ErrMsg)) in ParseIntelExpression()
2162 if (SM.onRBrac(ErrMsg)) { in ParseIntelExpression()
2587 StringRef ErrMsg; in parseIntelOperand() local
2629 return Error(Start, ErrMsg); in parseIntelOperand()
2980 StringRef ErrMsg; in ParseMemOperand() local
[all …]
/freebsd-14.2/contrib/llvm-project/clang/tools/amdgpu-arch/
H A DAMDGPUArchByHIP.cpp41 std::string ErrMsg; in printGPUsByHIP() local
43 llvm::sys::DynamicLibrary::getPermanentLibrary(DynamicHIPPath, &ErrMsg)); in printGPUsByHIP()
45 llvm::errs() << "Failed to load " << DynamicHIPPath << ": " << ErrMsg in printGPUsByHIP()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/orc/
H A Dlog_error_to_stderr.cpp17 ORC_RT_INTERFACE void __orc_rt_log_error_to_stderr(const char *ErrMsg) { in __orc_rt_log_error_to_stderr() argument
18 fprintf(stderr, "orc runtime error: %s\n", ErrMsg); in __orc_rt_log_error_to_stderr()
H A Dsimple_packed_serialization.h537 std::string ErrMsg; member
548 std::string ErrMsg; member
559 return make_error<StringError>(BSE.ErrMsg); in fromSPSSerializable()
576 return make_error<StringError>(BSE.ErrMsg); in fromSPSSerializable()
588 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
597 if (!SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg)) in serialize()
610 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
625 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
637 return SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg); in serialize()
660 SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/Windows/
H A DWindowsSupport.h71 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix);
75 std::string ErrMsg; in ReportLastErrorFatal() local
76 MakeErrMsg(&ErrMsg, Msg); in ReportLastErrorFatal()
77 llvm::report_fatal_error(Twine(ErrMsg)); in ReportLastErrorFatal()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/
H A DError.h65 void LLVMDisposeErrorMessage(char *ErrMsg);
75 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg);
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp149 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) { in finalizeMemory() argument
157 if (ErrMsg) { in finalizeMemory()
158 *ErrMsg = ec.message(); in finalizeMemory()
166 if (ErrMsg) { in finalizeMemory()
167 *ErrMsg = ec.message(); in finalizeMemory()
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/
H A DJob.cpp327 std::string *ErrMsg, bool *ExecutionFailed) const { in Execute() argument
351 if (ErrMsg) in Execute()
352 *ErrMsg = EC.message(); in Execute()
384 ErrMsg, ExecutionFailed, &ProcStat); in Execute()
389 ErrMsg, ExecutionFailed, &ProcStat); in Execute()
411 std::string *ErrMsg, bool *ExecutionFailed) const { in Execute() argument
416 return Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DSimplePackedSerialization.h604 std::string ErrMsg; member
615 std::string ErrMsg; member
626 return make_error<StringError>(BSE.ErrMsg, inconvertibleErrorCode()); in fromSPSSerializable()
655 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
664 if (!SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg)) in serialize()
677 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
692 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
704 return SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg); in serialize()
715 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
727 SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/include/orc_rt/
H A Dc_api.h139 orc_rt_CreateCWrapperFunctionResultFromOutOfBandError(const char *ErrMsg) { in orc_rt_CreateCWrapperFunctionResultFromOutOfBandError() argument
142 char *Tmp = (char *)malloc(strlen(ErrMsg) + 1); in orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
143 strcpy(Tmp, ErrMsg); in orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DProgram.h132 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
153 std::string *ErrMsg = nullptr,
219 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dc_api_test.cpp182 constexpr const char *ErrMsg = "test error message"; in TEST() local
184 orc_rt_CreateCWrapperFunctionResultFromOutOfBandError(ErrMsg); in TEST()
196 EXPECT_NE(OOBErrMsg, ErrMsg); in TEST()
197 EXPECT_TRUE(strcmp(OOBErrMsg, ErrMsg) == 0); in TEST()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleExecutorDylibManager.cpp31 std::string ErrMsg; in open() local
33 auto DL = sys::DynamicLibrary::getPermanentLibrary(PathCStr, &ErrMsg); in open()
35 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode()); in open()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp314 std::string ErrMsg; in evalDecodeOperand() local
315 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
327 std::string ErrMsg; in evalDecodeOperand() local
328 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
491 ErrMsg += Symbol; in evalIdentifierExpr()
492 ErrMsg += "'"; in evalIdentifierExpr()
972 std::string ErrMsg; in getSectionAddr() local
974 raw_string_ostream ErrMsgStream(ErrMsg); in getSectionAddr()
978 return std::make_pair(0, std::move(ErrMsg)); in getSectionAddr()
1008 std::string ErrMsg; in getStubOrGOTAddrFor() local
[all …]

1234