Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
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()
DGraphWriter.cpp95 std::string &ErrMsg) { in ExecGraphViewer() argument
97 if (sys::ExecuteAndWait(ExecPath, args, None, {}, 0, 0, &ErrMsg)) { in ExecGraphViewer()
98 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
104 sys::ExecuteNoWait(ExecPath, args, None, {}, 0, &ErrMsg); in ExecGraphViewer()
151 std::string ErrMsg; in DisplayGraph() local
164 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
173 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
184 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
197 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
244 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph()
[all …]
DError.cpp142 std::string ErrMsg; in report_fatal_error() local
144 raw_string_ostream ErrStream(ErrMsg); in report_fatal_error()
147 report_fatal_error(ErrMsg); in report_fatal_error()
160 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage() local
161 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
162 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
163 return ErrMsg; in LLVMGetErrorMessage()
166 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } in LLVMDisposeErrorMessage() argument
DProgram.cpp28 unsigned MemoryLimit, std::string *ErrMsg);
34 std::string *ErrMsg, bool *ExecutionFailed) { in ExecuteAndWait() argument
37 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) { in ExecuteAndWait()
41 PI, SecondsToWait, /*WaitUntilTerminates=*/SecondsToWait == 0, ErrMsg); in ExecuteAndWait()
54 unsigned MemoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
60 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) in ExecuteNoWait()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DProgram.inc99 static bool RedirectIO(const StringRef *Path, int FD, std::string* ErrMsg) {
112 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for "
119 MakeErrMsg(ErrMsg, "Cannot dup2");
128 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
142 return MakeErrMsg(ErrMsg, "Cannot dup2", Err);
183 unsigned memoryLimit, std::string *ErrMsg) {
185 if (ErrMsg)
186 *ErrMsg = std::string("Executable \"") + Program.str() +
216 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
217 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
[all …]
DUnix.h64 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
65 if (!ErrMsg)
69 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
DMemory.inc176 std::string *ErrMsg) {
206 MakeErrMsg(ErrMsg, "Can't allocate RWX Memory");
215 MakeErrMsg(ErrMsg, "vm_protect max RX failed");
223 MakeErrMsg(ErrMsg, "vm_protect RW failed");
235 bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
238 return MakeErrMsg(ErrMsg, "Can't release RWX Memory");
242 bool Memory::setWritable (MemoryBlock &M, std::string *ErrMsg) {
254 bool Memory::setExecutable (MemoryBlock &M, std::string *ErrMsg) {
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DProgram.inc96 static bool RedirectIO(Optional<StringRef> Path, int FD, std::string* ErrMsg) {
109 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for "
116 MakeErrMsg(ErrMsg, "Cannot dup2");
125 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
139 return MakeErrMsg(ErrMsg, "Cannot posix_spawn_file_actions_addopen", Err);
179 unsigned MemoryLimit, std::string *ErrMsg) {
181 if (ErrMsg)
182 *ErrMsg = std::string("Executable \"") + Program.str() +
225 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
226 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
[all …]
DUnix.h64 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
65 if (!ErrMsg)
69 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
76 std::string ErrMsg; in ReportErrnumFatal() local
77 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
78 llvm::report_fatal_error(ErrMsg); in ReportErrnumFatal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DProgram.cpp28 unsigned memoryLimit, std::string *ErrMsg);
32 unsigned memoryLimit, std::string *ErrMsg, in ExecuteAndWait() argument
35 if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) { in ExecuteAndWait()
39 PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg); in ExecuteAndWait()
51 unsigned memoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
56 if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteNoWait()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DProgram.inc107 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) {
108 if (!ErrMsg)
117 *ErrMsg = prefix + ": " + buffer;
119 *ErrMsg = prefix + ": Unknown error";
120 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
127 std::string *ErrMsg) {
161 MakeErrMsg(ErrMsg, fname + ": Can't open file for " +
173 unsigned MemoryLimit, std::string *ErrMsg) {
175 if (ErrMsg)
176 *ErrMsg = "program not executable";
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DLTOCodeGenerator.cpp234 std::string ErrMsg = "could not open bitcode file for writing: "; in writeMergedModules() local
235 ErrMsg += Path.str() + ": " + EC.message(); in writeMergedModules()
236 emitError(ErrMsg); in writeMergedModules()
245 std::string ErrMsg = "could not write bitcode file: "; in writeMergedModules() local
246 ErrMsg += Path.str() + ": " + Out.os().error().message(); in writeMergedModules()
247 emitError(ErrMsg); in writeMergedModules()
350 std::string ErrMsg; in determineTarget() local
351 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg); in determineTarget()
353 emitError(ErrMsg); in determineTarget()
707 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { in emitError() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Windows/
DProgram.inc107 static HANDLE RedirectIO(const StringRef *path, int fd, std::string* ErrMsg) {
141 MakeErrMsg(ErrMsg, fname + ": Can't open file for " +
254 unsigned memoryLimit, std::string *ErrMsg) {
256 if (ErrMsg)
257 *ErrMsg = "program not executable";
285 MakeErrMsg(ErrMsg, "Unable to convert environment variable to UTF-16");
306 si.hStdInput = RedirectIO(redirects[0], 0, ErrMsg);
308 MakeErrMsg(ErrMsg, "can't redirect stdin");
311 si.hStdOutput = RedirectIO(redirects[1], 1, ErrMsg);
314 MakeErrMsg(ErrMsg, "can't redirect stdout");
[all …]
DWindowsSupport.h72 inline bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) { in MakeErrMsg() argument
73 if (!ErrMsg) in MakeErrMsg()
82 *ErrMsg = prefix + ": " + buffer; in MakeErrMsg()
84 *ErrMsg = prefix + ": Unknown error"; in MakeErrMsg()
85 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")"; in MakeErrMsg()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/
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;
152 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp42 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { in checkScale() argument
44 ErrMsg = "scale factor in address must be 1, 2, 4 or 8"; in checkScale()
356 bool setSymRef(const MCExpr *Val, StringRef ID, StringRef &ErrMsg) { in setSymRef() argument
358 ErrMsg = "cannot use more than one symbol in memory operand"; in setSymRef()
464 bool onPlus(StringRef &ErrMsg) { in onPlus() argument
483 ErrMsg = "BaseReg/IndexReg already set!"; in onPlus()
495 bool onMinus(StringRef &ErrMsg) { in onMinus() argument
527 ErrMsg = "Scale can't be negative"; in onMinus()
538 ErrMsg = "BaseReg/IndexReg already set!"; in onMinus()
576 bool onRegister(unsigned Reg, StringRef &ErrMsg) { in onRegister() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMemory.h124 std::string *ErrMsg = nullptr);
133 static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = nullptr);
143 static bool setExecutable(MemoryBlock &M, std::string *ErrMsg = nullptr);
148 static bool setWritable(MemoryBlock &M, std::string *ErrMsg = nullptr);
DProgram.h117 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
131 std::string *ErrMsg = nullptr, bool *ExecutionFailed = nullptr);
186 std::string *ErrMsg = nullptr ///< If non-zero, provides a pointer to a
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp258 std::string ErrMsg; in evalDecodeOperand() local
259 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
271 std::string ErrMsg; in evalDecodeOperand() local
272 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
423 std::string ErrMsg("No known address for symbol '"); in evalIdentifierExpr() local
424 ErrMsg += Symbol; in evalIdentifierExpr()
425 ErrMsg += "'"; in evalIdentifierExpr()
427 ErrMsg += " (this appears to be an assembler local label - " in evalIdentifierExpr()
430 return std::make_pair(EvalResult(ErrMsg), ""); in evalIdentifierExpr()
794 std::string ErrMsg; in getSectionAddr() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/
DJITTargetMachineBuilder.cpp44 std::string ErrMsg; in createTargetMachine() local
45 auto *TheTarget = TargetRegistry::lookupTarget(TT.getTriple(), ErrMsg); in createTargetMachine()
47 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode()); in createTargetMachine()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DProgram.h115 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
130 std::string *ErrMsg = nullptr,
192 std::string *ErrMsg = nullptr ///< If non-zero, provides a pointer to a
DDynamicLibrary.h86 std::string *ErrMsg = nullptr) {
87 return !getPermanentLibrary(Filename, ErrMsg).isValid();
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/Windows/
DWindowsSupport.h68 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix);
72 std::string ErrMsg; in ReportLastErrorFatal() local
73 MakeErrMsg(&ErrMsg, Msg); in ReportLastErrorFatal()
74 llvm::report_fatal_error(ErrMsg); in ReportLastErrorFatal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/
DSectionMemoryManager.cpp140 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) { in finalizeMemory() argument
148 if (ErrMsg) { in finalizeMemory()
149 *ErrMsg = ec.message(); in finalizeMemory()
157 if (ErrMsg) { in finalizeMemory()
158 *ErrMsg = ec.message(); in finalizeMemory()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h42 std::string ErrMsg; in decodeAddend() local
44 raw_string_ostream ErrStream(ErrMsg); in decodeAddend()
48 return make_error<StringError>(std::move(ErrMsg), in decodeAddend()
54 std::string ErrMsg; in decodeAddend() local
56 raw_string_ostream ErrStream(ErrMsg); in decodeAddend()
60 return make_error<StringError>(std::move(ErrMsg), in decodeAddend()

123