Home
last modified time | relevance | path

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

1234

/freebsd/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.cpp169 std::string ErrMsg; in report_fatal_error() local
171 raw_string_ostream ErrStream(ErrMsg); in report_fatal_error()
174 report_fatal_error(Twine(ErrMsg), GenCrashDiag); in report_fatal_error()
200 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage() local
201 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
202 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
203 return ErrMsg; in LLVMGetErrorMessage()
206 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } in LLVMDisposeErrorMessage() argument
212 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg) { in LLVMCreateStringError() argument
213 return wrap(make_error<StringError>(ErrMsg, inconvertibleErrorCode())); in LLVMCreateStringError()
H A DGraphWriter.cpp137 std::string &ErrMsg) { in ExecGraphViewer() argument
139 if (sys::ExecuteAndWait(ExecPath, args, std::nullopt, {}, 0, 0, &ErrMsg)) { in ExecGraphViewer()
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()
[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
67 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteNoWait()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericRTDyldMemoryManager.cpp46 if (!ErrMsg.empty()) in ~EPCGenericRTDyldMemoryManager()
47 errs() << "Destroying with existing errors:\n" << ErrMsg << "\n"; in ~EPCGenericRTDyldMemoryManager()
103 if (!ErrMsg.empty()) in reserveAllocationSpace()
107 ErrMsg = "Invalid code alignment in reserveAllocationSpace"; in reserveAllocationSpace()
111 ErrMsg = "Invalid ro-data alignment in reserveAllocationSpace"; in reserveAllocationSpace()
115 ErrMsg = "Invalid rw-data alignment in reserveAllocationSpace"; in reserveAllocationSpace()
135 ErrMsg = toString(std::move(Err)); in reserveAllocationSpace()
140 ErrMsg = toString(TargetAllocAddr.takeError()); in reserveAllocationSpace()
169 if (!ErrMsg.empty()) in registerEHFrames()
181 ErrMsg = "eh-frame does not lie inside unfinalized alloc"; in registerEHFrames()
[all …]
H A DJITTargetMachineBuilder.cpp41 std::string ErrMsg; in createTargetMachine() local
42 auto *TheTarget = TargetRegistry::lookupTarget(TT, ErrMsg); in createTargetMachine()
44 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode()); in createTargetMachine()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVAPI.cpp55 SPIRVTranslate(Module *M, std::string &SpirvObj, std::string &ErrMsg, in SPIRVTranslate() argument
66 ErrMsg = "Unknown SPIR-V extension: " + UnknownExt.str(); in SPIRVTranslate()
78 TargetRegistry::lookupTarget(DefaultMArch, TargetTriple, ErrMsg); in SPIRVTranslate()
92 ErrMsg = "Could not allocate target machine!"; in SPIRVTranslate()
109 ErrMsg = toString(MaybeDL.takeError()); in SPIRVTranslate()
126 ErrMsg = "Target machine cannot emit a file of this type"; in SPIRVTranslate()
139 SPIRVTranslateModule(Module *M, std::string &SpirvObj, std::string &ErrMsg, in SPIRVTranslateModule() argument
154 ErrMsg = "Invalid optimization level!"; in SPIRVTranslateModule()
158 return SPIRVTranslate(M, SpirvObj, ErrMsg, AllowExtNames, OLevel, in SPIRVTranslateModule()
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DUnix.h54 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
55 if (!ErrMsg)
59 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
65 std::string ErrMsg; in ReportErrnumFatal() local
66 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
67 llvm::report_fatal_error(llvm::Twine(ErrMsg)); in ReportErrnumFatal()
H A DProgram.inc91 static bool RedirectIO(std::optional<StringRef> Path, int FD, std::string *ErrMsg) {
104 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for " +
111 MakeErrMsg(ErrMsg, "Cannot dup2");
120 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
133 return MakeErrMsg(ErrMsg, "Cannot posix_spawn_file_actions_addopen", Err);
169 unsigned MemoryLimit, std::string *ErrMsg,
213 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
214 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
218 if (RedirectIO_PS(RedirectsStr[2], 2, ErrMsg, FileActions))
224 return !MakeErrMsg(ErrMsg, "Can't redirect stderr to stdout", Err);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DProgram.inc111 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) {
112 if (!ErrMsg)
121 *ErrMsg = prefix + ": " + buffer;
123 *ErrMsg = prefix + ": Unknown error";
124 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
131 std::string *ErrMsg) {
165 MakeErrMsg(ErrMsg,
178 unsigned MemoryLimit, std::string *ErrMsg,
181 if (ErrMsg)
182 *ErrMsg = "program not executable";
[all …]
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp209 std::string ErrMsg = "could not open bitcode file for writing: "; in writeMergedModules() local
210 ErrMsg += Path.str() + ": " + EC.message(); in writeMergedModules()
211 emitError(ErrMsg); in writeMergedModules()
220 std::string ErrMsg = "could not write bitcode file: "; in writeMergedModules() local
221 ErrMsg += Path.str() + ": " + Out.os().error().message(); in writeMergedModules()
222 emitError(ErrMsg); in writeMergedModules()
386 std::string ErrMsg; in determineTarget() local
387 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg); in determineTarget()
389 emitError(ErrMsg); in determineTarget()
749 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { in emitError() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp52 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { in checkScale() argument
54 ErrMsg = "scale factor in address must be 1, 2, 4 or 8"; in checkScale()
458 bool setSymRef(const MCExpr *Val, StringRef ID, StringRef &ErrMsg) { in setSymRef() argument
460 ErrMsg = "cannot use more than one symbol in memory operand"; in setSymRef()
505 bool regsUseUpError(StringRef &ErrMsg) { in regsUseUpError() argument
509 ErrMsg = "Don't use 2 or more regs for mem offset in PIC model!"; in regsUseUpError()
511 ErrMsg = "BaseReg/IndexReg already set!"; in regsUseUpError()
680 bool onPlus(StringRef &ErrMsg) { in onPlus() argument
699 return regsUseUpError(ErrMsg); in onPlus()
709 bool onMinus(StringRef &ErrMsg) { in onMinus() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h47 RuntimeDyldError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} in RuntimeDyldError() argument
50 const std::string &getErrorMessage() const { return ErrMsg; } in getErrorMessage()
54 std::string ErrMsg;
170 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
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()
648 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
[all …]
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()
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dcommon.cpp4 extern "C" void __orc_rt_log_error(const char *ErrMsg) { in __orc_rt_log_error() argument
5 fprintf(stderr, "orc runtime error: %s\n", ErrMsg); in __orc_rt_log_error()
H A Dc_api_test.cpp182 constexpr const char *ErrMsg = "test error message"; in TEST() local
184 orc_rt_CreateWrapperFunctionResultFromOutOfBandError(ErrMsg); in TEST()
198 EXPECT_NE(OOBErrMsg, ErrMsg); in TEST()
199 EXPECT_TRUE(strcmp(OOBErrMsg, ErrMsg) == 0); in TEST()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/Windows/
H A DWindowsSupport.h69 LLVM_ABI bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix);
73 std::string ErrMsg; in ReportLastErrorFatal() local
74 MakeErrMsg(&ErrMsg, Msg); in ReportLastErrorFatal()
75 llvm::report_fatal_error(Twine(ErrMsg)); in ReportLastErrorFatal()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp311 std::string ErrMsg; in evalDecodeOperand() local
312 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
320 return {EvalResult(std::move(ErrMsg)), ""}; in evalDecodeOperand()
325 std::string ErrMsg; in evalDecodeOperand() local
326 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
331 return {EvalResult(std::move(ErrMsg)), ""}; in evalDecodeOperand()
495 std::string ErrMsg("No known address for symbol '"); in evalIdentifierExpr() local
496 ErrMsg += Symbol; in evalIdentifierExpr()
497 ErrMsg += "'"; in evalIdentifierExpr()
499 ErrMsg += " (this appears to be an assembler local label - " in evalIdentifierExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp148 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) { in finalizeMemory() argument
156 if (ErrMsg) { in finalizeMemory()
157 *ErrMsg = ec.message(); in finalizeMemory()
165 if (ErrMsg) { in finalizeMemory()
166 *ErrMsg = ec.message(); in finalizeMemory()
/freebsd/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()
643 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()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DJob.cpp324 std::string *ErrMsg, bool *ExecutionFailed) const { in Execute() argument
347 if (ErrMsg) in Execute()
348 *ErrMsg = EC.message(); in Execute()
380 ErrMsg, ExecutionFailed, &ProcStat); in Execute()
385 ErrMsg, ExecutionFailed, &ProcStat); in Execute()
407 std::string *ErrMsg, bool *ExecutionFailed) const { in Execute() argument
412 return Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute()
/freebsd/contrib/llvm-project/compiler-rt/include/orc_rt/
H A Dc_api.h136 orc_rt_CreateWrapperFunctionResultFromOutOfBandError(const char *ErrMsg) { in orc_rt_CreateWrapperFunctionResultFromOutOfBandError() argument
139 char *Tmp = (char *)malloc(strlen(ErrMsg) + 1); in orc_rt_CreateWrapperFunctionResultFromOutOfBandError()
140 strcpy(Tmp, ErrMsg); in orc_rt_CreateWrapperFunctionResultFromOutOfBandError()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DError.h74 LLVM_C_ABI void LLVMDisposeErrorMessage(char *ErrMsg);
84 LLVM_C_ABI LLVMErrorRef LLVMCreateStringError(const char *ErrMsg);
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DProgram.h133 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
154 std::string *ErrMsg = nullptr, bool *ExecutionFailed = nullptr,
223 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a

1234