/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | Path.cpp | 170 SmallVectorImpl<char> &ResultPath, bool MakeAbsolute, in createUniqueEntity() argument 188 ResultPath = ModelStorage; in createUniqueEntity() 190 ResultPath.push_back(0); in createUniqueEntity() 191 ResultPath.pop_back(); in createUniqueEntity() 197 ResultPath[i] = "0123456789abcdef"[sys::Process::GetRandomNumber() & 15]; in createUniqueEntity() 204 sys::fs::openFileForReadWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity() 216 sys::fs::access(ResultPath.begin(), sys::fs::AccessMode::Exist); in createUniqueEntity() 226 sys::fs::create_directory(ResultPath.begin(), false)) { in createUniqueEntity() 758 SmallVectorImpl<char> &ResultPath, in createUniqueFile() argument 760 return createUniqueEntity(Model, ResultFd, ResultPath, false, Mode, FS_File); in createUniqueFile() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Path.cpp | 162 SmallVectorImpl<char> &ResultPath, in createUniqueEntity() argument 180 ResultPath = ModelStorage; in createUniqueEntity() 182 ResultPath.push_back(0); in createUniqueEntity() 183 ResultPath.pop_back(); in createUniqueEntity() 189 ResultPath[i] = "0123456789abcdef"[sys::Process::GetRandomNumber() & 15]; in createUniqueEntity() 196 sys::fs::openFileForWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity() 208 sys::fs::access(ResultPath.begin(), sys::fs::AccessMode::Exist); in createUniqueEntity() 218 sys::fs::create_directory(ResultPath.begin(), false)) { in createUniqueEntity() 753 SmallVectorImpl<char> &ResultPath, in createUniqueFile() argument 755 return createUniqueEntity(Model, ResultFd, ResultPath, false, Mode, FS_File); in createUniqueFile() [all …]
|
/external/llvm/lib/Support/ |
D | Path.cpp | 162 SmallVectorImpl<char> &ResultPath, in createUniqueEntity() argument 180 ResultPath = ModelStorage; in createUniqueEntity() 182 ResultPath.push_back(0); in createUniqueEntity() 183 ResultPath.pop_back(); in createUniqueEntity() 189 ResultPath[i] = "0123456789abcdef"[sys::Process::GetRandomNumber() & 15]; in createUniqueEntity() 196 sys::fs::openFileForWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity() 208 sys::fs::access(ResultPath.begin(), sys::fs::AccessMode::Exist); in createUniqueEntity() 218 sys::fs::create_directory(ResultPath.begin(), false)) { in createUniqueEntity() 751 SmallVectorImpl<char> &ResultPath, in createUniqueFile() argument 753 return createUniqueEntity(Model, ResultFd, ResultPath, false, Mode, FS_File); in createUniqueFile() [all …]
|
/external/llvm/unittests/Support/ |
D | Path.cpp | 1010 SmallString<64> ResultPath; in TEST_F() local 1012 fs::getPathFromOpenFD(FileDescriptor, ResultPath); in TEST_F() 1020 ASSERT_NO_ERROR(fs::getUniqueID(Twine(ResultPath), D2)); in TEST_F() 1037 SmallVector<char, 8> ResultPath; in TEST_F() local 1039 fs::getPathFromOpenFD(FileDescriptor, ResultPath); in TEST_F() 1046 SmallVector<char, 8> ExactSizedPath(ResultPath.size()); in TEST_F() 1048 ResultPath = ExactSizedPath; in TEST_F() 1054 ASSERT_NO_ERROR(fs::getUniqueID(Twine(ResultPath), D2)); in TEST_F() 1073 SmallVector<char, 8> ResultPath; in TEST_F() local 1075 fs::getPathFromOpenFD(FileDescriptor, ResultPath); in TEST_F() [all …]
|
/external/llvm/lib/Support/Unix/ |
D | Path.inc | 625 std::error_code getPathFromOpenFD(int FD, SmallVectorImpl<char> &ResultPath) { 632 ResultPath.reserve(MAXPATHLEN); 633 if (::fcntl(FD, F_GETPATH, ResultPath.begin()) == -1) 636 ResultPath.set_size(strlen(ResultPath.begin())); 644 ResultPath.reserve(PATH_MAX); 647 ssize_t CharCount = ::readlink(ProcPath, ResultPath.begin(), ResultPath.capacity()); 652 if (static_cast<size_t>(CharCount) == ResultPath.capacity()) { 658 ResultPath.reserve(sb.st_size + 1); 659 CharCount = ::readlink(ProcPath, ResultPath.begin(), ResultPath.capacity()); 667 ResultPath.set_size(static_cast<size_t>(CharCount));
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/ |
D | Path.inc | 641 std::error_code getPathFromOpenFD(int FD, SmallVectorImpl<char> &ResultPath) { 648 ResultPath.reserve(MAXPATHLEN); 649 if (::fcntl(FD, F_GETPATH, ResultPath.begin()) == -1) 652 ResultPath.set_size(strlen(ResultPath.begin())); 660 ResultPath.reserve(PATH_MAX); 663 ssize_t CharCount = ::readlink(ProcPath, ResultPath.begin(), ResultPath.capacity()); 668 if (static_cast<size_t>(CharCount) == ResultPath.capacity()) { 674 ResultPath.reserve(sb.st_size + 1); 675 CharCount = ::readlink(ProcPath, ResultPath.begin(), ResultPath.capacity()); 683 ResultPath.set_size(static_cast<size_t>(CharCount));
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/lib/ |
D | BenchmarkRunner.cpp | 189 llvm::SmallString<256> ResultPath; in writeObjectFile() local 191 "snippet", "o", ResultFD, ResultPath))) in writeObjectFile() 196 return ResultPath.str(); in writeObjectFile()
|
/external/llvm/include/llvm/Support/ |
D | FileSystem.h | 581 SmallVectorImpl<char> &ResultPath, 586 SmallVectorImpl<char> &ResultPath); 598 SmallVectorImpl<char> &ResultPath); 602 SmallVectorImpl<char> &ResultPath); 605 SmallVectorImpl<char> &ResultPath); 611 std::error_code getPathFromOpenFD(int FD, SmallVectorImpl<char> &ResultPath);
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | FileSystem.h | 592 SmallVectorImpl<char> &ResultPath, 597 SmallVectorImpl<char> &ResultPath); 609 SmallVectorImpl<char> &ResultPath); 613 SmallVectorImpl<char> &ResultPath); 616 SmallVectorImpl<char> &ResultPath); 622 std::error_code getPathFromOpenFD(int FD, SmallVectorImpl<char> &ResultPath);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | FileSystem.h | 758 SmallVectorImpl<char> &ResultPath, 764 SmallVectorImpl<char> &ResultPath, 815 SmallVectorImpl<char> &ResultPath); 820 SmallVectorImpl<char> &ResultPath); 823 SmallVectorImpl<char> &ResultPath); 833 SmallVectorImpl<char> &ResultPath); 845 SmallVectorImpl<char> &ResultPath);
|
/external/llvm/tools/dsymutil/ |
D | dsymutil.cpp | 165 llvm::SmallVectorImpl<char> &ResultPath) { in getUniqueFile() argument 172 return llvm::sys::fs::createUniqueFile(Model, ResultPath); in getUniqueFile() 173 return llvm::sys::fs::createUniqueFile(Model, ResultFD, ResultPath); in getUniqueFile()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/ |
D | Caching.cpp | 43 SmallString<64> ResultPath; in localCache() local 45 Twine(EntryPath), FD, sys::fs::OF_UpdateAtime, &ResultPath); in localCache()
|
D | ThinLTOCodeGenerator.cpp | 401 SmallString<64> ResultPath; in tryLoadingBuffer() local 403 Twine(EntryPath), FD, sys::fs::OF_UpdateAtime, &ResultPath); in tryLoadingBuffer()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | HTMLDiagnostics.cpp | 292 SmallString<128> Model, ResultPath; in ReportDiag() local 303 llvm::sys::fs::createUniqueFile(Model, FD, ResultPath)) { in ReportDiag() 340 llvm::sys::path::filename(ResultPath)); in ReportDiag()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | Path.cpp | 1242 SmallString<64> ResultPath; in TEST_F() local 1244 fs::OF_None, &ResultPath)) in TEST_F() 1247 if (!ResultPath.empty()) { in TEST_F() 1252 ASSERT_NO_ERROR(fs::getUniqueID(Twine(ResultPath), D2)); in TEST_F() 1274 fs::OF_UpdateAtime, &ResultPath)); in TEST_F()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Windows/ |
D | Path.inc | 811 std::error_code getPathFromOpenFD(int FD, SmallVectorImpl<char> &ResultPath) { 844 return windows::UTF16ToUTF8(TempPath.data(), CharCount, ResultPath);
|
/external/llvm/lib/Support/Windows/ |
D | Path.inc | 817 std::error_code getPathFromOpenFD(int FD, SmallVectorImpl<char> &ResultPath) { 850 return windows::UTF16ToUTF8(TempPath.data(), CharCount, ResultPath);
|