/external/swiftshader/third_party/LLVM/lib/Archive/ |
D | ArchiveWriter.cpp | 159 std::string* ErrMsg) { in addFileBefore() argument 162 if (ErrMsg) in addFileBefore() 163 *ErrMsg = "Can not add a non-existent file to archive"; in addFileBefore() 171 const sys::FileStatus *FSInfo = mbr->path.getFileStatus(false, ErrMsg); in addFileBefore() 208 std::string* ErrMsg in writeMember() argument 222 if (ErrMsg) in writeMember() 223 *ErrMsg = ec.message(); in writeMember() 238 GetBitcodeSymbols(data, fSize, FullMemberName, Context, symbols, ErrMsg); in writeMember() 258 if (ErrMsg) in writeMember() 259 *ErrMsg = "Can't parse bitcode member: " + member.getPath().str() in writeMember() [all …]
|
D | Archive.cpp | 69 bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) { in replaceWith() argument 72 if (ErrMsg) in replaceWith() 73 *ErrMsg = "Can not replace an archive member with a non-existent file"; in replaceWith() 123 const sys::FileStatus *FSinfo = path.getFileStatus(false, ErrMsg); in replaceWith() 151 Archive::mapToMemory(std::string* ErrMsg) { in mapToMemory() argument 154 if (ErrMsg) in mapToMemory() 155 *ErrMsg = ec.message(); in mapToMemory() 221 std::string* ErrMsg) { in GetBitcodeSymbols() argument 224 if (ErrMsg) *ErrMsg = "Could not open file '" + fName.str() + "'" + ": " in GetBitcodeSymbols() 229 Module *M = ParseBitcodeFile(Buffer.get(), Context, ErrMsg); in GetBitcodeSymbols() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | BinaryStreamError.cpp | 25 ErrMsg = "Stream Error: "; in BinaryStreamError() 28 ErrMsg += "An unspecified error has occurred."; in BinaryStreamError() 31 ErrMsg += "The stream is too short to perform the requested operation."; in BinaryStreamError() 34 ErrMsg += "The buffer size is not a multiple of the array element size."; in BinaryStreamError() 37 ErrMsg += "The specified offset is invalid for the current stream."; in BinaryStreamError() 40 ErrMsg += "An I/O error occurred on the file system."; in BinaryStreamError() 45 ErrMsg += " "; in BinaryStreamError() 46 ErrMsg += Context; in BinaryStreamError() 50 void BinaryStreamError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log() 52 StringRef BinaryStreamError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
|
D | GraphWriter.cpp | 96 std::string &ErrMsg) { in ExecGraphViewer() argument 98 if (sys::ExecuteAndWait(ExecPath, args, None, {}, 0, 0, &ErrMsg)) { in ExecGraphViewer() 99 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer() 105 sys::ExecuteNoWait(ExecPath, args, None, {}, 0, &ErrMsg); in ExecGraphViewer() 152 std::string ErrMsg; in DisplayGraph() local 165 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph() 174 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph() 185 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph() 198 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph() 245 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph() [all …]
|
D | Program.cpp | 29 unsigned MemoryLimit, std::string *ErrMsg); 35 std::string *ErrMsg, bool *ExecutionFailed) { in ExecuteAndWait() argument 38 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) { in ExecuteAndWait() 42 PI, SecondsToWait, /*WaitUntilTerminates=*/SecondsToWait == 0, ErrMsg); in ExecuteAndWait() 55 unsigned MemoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument 61 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) in ExecuteNoWait()
|
/external/swiftshader/third_party/LLVM/tools/llvm-ar/ |
D | llvm-ar.cpp | 278 std::set<sys::Path>& result, std::string* ErrMsg) { in recurseDirectories() argument 282 if (path.getDirectoryContents(content, ErrMsg)) in recurseDirectories() 289 const sys::FileStatus *Status = PwS.getFileStatus(false, ErrMsg); in recurseDirectories() 294 if (recurseDirectories(*I, moreResults, ErrMsg)) in recurseDirectories() 308 bool buildPaths(bool checkExistence, std::string* ErrMsg) { in buildPaths() argument 324 if (recurseDirectories(aPath, dirpaths, ErrMsg)) in buildPaths() 352 bool doPrint(std::string* ErrMsg) { in doPrint() argument 353 if (buildPaths(false, ErrMsg)) in doPrint() 404 doDisplayTable(std::string* ErrMsg) { in doDisplayTable() argument 405 if (buildPaths(false, ErrMsg)) in doDisplayTable() [all …]
|
/external/swiftshader/third_party/LLVM/tools/llvm-ld/ |
D | llvm-ld.cpp | 265 std::string &ErrMsg ) { in GenerateAssembly() argument 282 return sys::Program::ExecuteAndWait(llc, &args[0], 0, 0, 0, 0, &ErrMsg); in GenerateAssembly() 289 std::string& ErrMsg) { in GenerateCFile() argument 304 return sys::Program::ExecuteAndWait(llc, &args[0], 0, 0, 0, 0, &ErrMsg); in GenerateCFile() 329 std::string& ErrMsg) { in GenerateNative() argument 403 gcc, &Args[0], const_cast<const char **>(clean_env), 0, 0, 0, &ErrMsg); in GenerateNative() 417 std::string ErrMsg; in EmitShellScript() local 423 if (0 != sys::CopyFile(sys::Path(OutputFilename), llvmstub, &ErrMsg)) in EmitShellScript() 424 PrintAndExit(ErrMsg, M); in EmitShellScript() 626 std::string ErrMsg; in main() local [all …]
|
/external/llvm/tools/obj2yaml/ |
D | Error.h | 36 Obj2YamlError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} in Obj2YamlError() argument 37 Obj2YamlError(obj2yaml_error C, std::string ErrMsg) in Obj2YamlError() argument 38 : ErrMsg(std::move(ErrMsg)), Code(C) {} in Obj2YamlError() 40 const std::string &getErrorMessage() const { return ErrMsg; } in getErrorMessage() 44 std::string ErrMsg;
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/ |
D | Error.h | 36 Obj2YamlError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} in Obj2YamlError() argument 37 Obj2YamlError(obj2yaml_error C, std::string ErrMsg) in Obj2YamlError() argument 38 : ErrMsg(std::move(ErrMsg)), Code(C) {} in Obj2YamlError() 40 const std::string &getErrorMessage() const { return ErrMsg; } in getErrorMessage() 44 std::string ErrMsg;
|
/external/swiftshader/third_party/LLVM/lib/Support/Unix/ |
D | Program.inc | 105 static bool RedirectIO(const Path *Path, int FD, std::string* ErrMsg) { 118 MakeErrMsg(ErrMsg, "Cannot open file '" + std::string(File) + "' for " 125 MakeErrMsg(ErrMsg, "Cannot dup2"); 134 static bool RedirectIO_PS(const Path *Path, int FD, std::string *ErrMsg, 147 return MakeErrMsg(ErrMsg, "Cannot dup2", Err); 183 std::string *ErrMsg) { 196 if (RedirectIO_PS(redirects[0], 0, ErrMsg, FileActions) || 197 RedirectIO_PS(redirects[1], 1, ErrMsg, FileActions)) 202 if (RedirectIO_PS(redirects[2], 2, ErrMsg, FileActions)) return false; 207 return !MakeErrMsg(ErrMsg, "Can't redirect stderr to stdout", Err); [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | GraphWriter.cpp | 56 std::string ErrMsg; in DisplayGraph() local 66 if (sys::Program::ExecuteAndWait(Graphviz, &args[0],0,0,0,0,&ErrMsg)) { in DisplayGraph() 67 errs() << "Error: " << ErrMsg << "\n"; in DisplayGraph() 91 &args[0],0,0,0,0,&ErrMsg)) { in DisplayGraph() 92 errs() << "Error: " << ErrMsg << "\n"; in DisplayGraph() 156 if (sys::Program::ExecuteAndWait(prog, &args[0], 0, 0, 0, 0, &ErrMsg)) { in DisplayGraph() 157 errs() << "Error: " << ErrMsg << "\n"; in DisplayGraph() 169 ErrMsg.clear(); in DisplayGraph() 171 if (sys::Program::ExecuteAndWait(gv, &args[0],0,0,0,0,&ErrMsg)) in DisplayGraph() 172 errs() << "Error: " << ErrMsg << "\n"; in DisplayGraph() [all …]
|
D | Program.cpp | 31 std::string* ErrMsg) { in ExecuteAndWait() argument 33 if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteAndWait() 34 return prg.Wait(path, secondsToWait, ErrMsg); in ExecuteAndWait() 45 std::string* ErrMsg) { in ExecuteNoWait() argument 47 prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg); in ExecuteNoWait()
|
/external/spirv-llvm/lib/SPIRV/libSPIRV/ |
D | SPIRVError.h | 51 #define SPIRVCK(Condition,ErrCode,ErrMsg) \ argument 52 getErrorLog().checkError(Condition, SPIRVEC_##ErrCode, std::string()+ErrMsg,\ 56 #define SPIRVCKRT(Condition,ErrCode,ErrMsg) \ argument 58 std::string()+ErrMsg, #Condition, __FILE__, __LINE__))\ 81 SPIRVErrorCode getError(std::string& ErrMsg) { in getError() argument 82 ErrMsg = ErrorMsg; in getError() 85 void setError(SPIRVErrorCode ErrCode, const std::string& ErrMsg) { in setError() argument 87 ErrorMsg = ErrMsg; in setError()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/ |
D | Program.inc | 99 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 …]
|
/external/llvm/lib/Support/Unix/ |
D | Program.inc | 99 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 …]
|
/external/llvm/lib/Support/ |
D | GraphWriter.cpp | 83 std::string &ErrMsg) { in ExecGraphViewer() argument 87 &ErrMsg)) { in ExecGraphViewer() 88 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer() 94 sys::ExecuteNoWait(ExecPath, args.data(), nullptr, nullptr, 0, &ErrMsg); in ExecGraphViewer() 138 std::string ErrMsg; in DisplayGraph() local 152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph() 162 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph() 174 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph() 189 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph() 237 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph() [all …]
|
D | Program.cpp | 28 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()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Program.cpp | 28 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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Unix/ |
D | Program.inc | 97 static bool RedirectIO(Optional<StringRef> Path, int FD, std::string* ErrMsg) { 110 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for " 117 MakeErrMsg(ErrMsg, "Cannot dup2"); 126 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg, 140 return MakeErrMsg(ErrMsg, "Cannot dup2", Err); 180 unsigned MemoryLimit, std::string *ErrMsg) { 182 if (ErrMsg) 183 *ErrMsg = std::string("Executable \"") + Program.str() + 226 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) || 227 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions)) [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/Orc/ |
D | RemoteObjectLayerTest.cpp | 175 auto ErrMsg = toString(std::move(Err)); in TEST() local 176 EXPECT_EQ(ErrMsg, "AddObjectFailure - Test Message") in TEST() 211 auto ErrMsg = toString(HandleOrErr.takeError()); in TEST() local 212 EXPECT_EQ(ErrMsg, "AddObjectFailure - Test Message") in TEST() 278 auto ErrMsg = toString(std::move(Err)); in TEST() local 279 EXPECT_EQ(ErrMsg, "Object handle 42 not found") in TEST() 316 auto ErrMsg = toString(std::move(Err)); in TEST() local 317 EXPECT_EQ(ErrMsg, "Object handle 42 not found") in TEST() 334 auto ErrMsg = toString(std::move(Err)); in TEST() local 335 EXPECT_EQ(ErrMsg, "Could not find symbol 'badsymbol'") in TEST() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PathV1.h | 112 static Path GetTemporaryDirectory(std::string* ErrMsg = 0); 439 std::string* ErrMsg ///< Optional place to return an error message. 498 bool makeUnique( bool reuse_current /*= true*/, std::string* ErrMsg ); 513 bool makeReadableOnDisk(std::string* ErrMsg = 0); 518 bool makeWriteableOnDisk(std::string* ErrMsg = 0); 524 bool makeExecutableOnDisk(std::string* ErrMsg = 0); 547 std::string* ErrMsg = 0 ///< Optional place to put error messages. 558 std::string* ErrMsg = 0 ///< Optional place to put error messages. 573 std::string* ErrMsg = 0 ///< Optional place to put error messages 581 bool renamePathOnDisk(const Path& newName, std::string* ErrMsg); [all …]
|
D | IRReader.h | 40 std::string ErrMsg; in getLazyIRModule() local 41 Module *M = getLazyBitcodeModule(Buffer, Context, &ErrMsg); in getLazyIRModule() 43 Err = SMDiagnostic(Buffer->getBufferIdentifier(), ErrMsg); in getLazyIRModule() 80 std::string ErrMsg; in ParseIR() local 81 Module *M = ParseBitcodeFile(Buffer, Context, &ErrMsg); in ParseIR() 83 Err = SMDiagnostic(Buffer->getBufferIdentifier(), ErrMsg); in ParseIR()
|
/external/swiftshader/third_party/LLVM/lib/Support/Windows/ |
D | Program.inc | 97 static HANDLE RedirectIO(const Path *path, int fd, std::string* ErrMsg) { 121 MakeErrMsg(ErrMsg, std::string(fname) + ": Can't open file for " + 158 std::string* ErrMsg) { 167 if (ErrMsg) 168 *ErrMsg = "program not executable"; 245 si.hStdInput = RedirectIO(redirects[0], 0, ErrMsg); 247 MakeErrMsg(ErrMsg, "can't redirect stdin"); 250 si.hStdOutput = RedirectIO(redirects[1], 1, ErrMsg); 253 MakeErrMsg(ErrMsg, "can't redirect stdout"); 264 si.hStdError = RedirectIO(redirects[2], 2, ErrMsg); [all …]
|
D | Memory.inc | 29 std::string *ErrMsg) { 43 return AllocateRWX(NumBytes, NULL, ErrMsg); 45 MakeErrMsg(ErrMsg, "Can't allocate RWX Memory: "); 55 bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) { 58 return MakeErrMsg(ErrMsg, "Can't release RWX Memory: "); 70 bool Memory::setWritable(MemoryBlock &M, std::string *ErrMsg) { 72 return MakeErrMsg(ErrMsg, "Cannot set memory to writeable: "); 77 bool Memory::setExecutable(MemoryBlock &M, std::string *ErrMsg) { 79 return MakeErrMsg(ErrMsg, "Cannot set memory to executable: ");
|
/external/clang/lib/Driver/ |
D | Job.cpp | 231 int Command::Execute(const StringRef **Redirects, std::string *ErrMsg, in Execute() argument 242 /*memoryLimit*/ 0, ErrMsg, in Execute() 260 if (ErrMsg) in Execute() 261 *ErrMsg = EC.message(); in Execute() 269 /*memoryLimit*/ 0, ErrMsg, ExecutionFailed); in Execute() 294 int FallbackCommand::Execute(const StringRef **Redirects, std::string *ErrMsg, in Execute() argument 296 int PrimaryStatus = Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute() 301 if (ErrMsg) in Execute() 302 ErrMsg->clear(); in Execute() 309 int SecondaryStatus = Fallback->Execute(Redirects, ErrMsg, ExecutionFailed); in Execute() [all …]
|