/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | Path.cpp | 169 SmallVectorImpl<char> &ResultPath, bool MakeAbsolute, in createUniqueEntity() argument 179 sys::fs::createUniquePath(Model, ResultPath, MakeAbsolute); in createUniqueEntity() 183 EC = sys::fs::openFileForReadWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity() 197 EC = sys::fs::access(ResultPath.begin(), sys::fs::AccessMode::Exist); in createUniqueEntity() 206 EC = sys::fs::create_directory(ResultPath.begin(), false); in createUniqueEntity() 764 void createUniquePath(const Twine &Model, SmallVectorImpl<char> &ResultPath, in createUniquePath() argument 779 ResultPath = ModelStorage; in createUniquePath() 780 ResultPath.push_back(0); in createUniquePath() 781 ResultPath.pop_back(); in createUniquePath() 786 ResultPath[i] = "0123456789abcdef"[sys::Process::GetRandomNumber() & 15]; in createUniquePath() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | Path.cpp | 169 SmallVectorImpl<char> &ResultPath, bool MakeAbsolute, in createUniqueEntity() argument 179 sys::fs::createUniquePath(Model, ResultPath, MakeAbsolute); in createUniqueEntity() 183 EC = sys::fs::openFileForReadWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity() 197 EC = sys::fs::access(ResultPath.begin(), sys::fs::AccessMode::Exist); in createUniqueEntity() 206 EC = sys::fs::create_directory(ResultPath.begin(), false); in createUniqueEntity() 791 void createUniquePath(const Twine &Model, SmallVectorImpl<char> &ResultPath, in createUniquePath() argument 806 ResultPath = ModelStorage; in createUniquePath() 807 ResultPath.push_back(0); in createUniquePath() 808 ResultPath.pop_back(); in createUniquePath() 813 ResultPath[i] = "0123456789abcdef"[sys::Process::GetRandomNumber() & 15]; in createUniquePath() [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/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/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-10.0/llvm/include/llvm/Support/ |
D | FileSystem.h | 803 void createUniquePath(const Twine &Model, SmallVectorImpl<char> &ResultPath, 828 SmallVectorImpl<char> &ResultPath, 834 SmallVectorImpl<char> &ResultPath, 885 SmallVectorImpl<char> &ResultPath); 890 SmallVectorImpl<char> &ResultPath); 893 SmallVectorImpl<char> &ResultPath); 903 SmallVectorImpl<char> &ResultPath); 915 SmallVectorImpl<char> &ResultPath);
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | FileSystem.h | 783 void createUniquePath(const Twine &Model, SmallVectorImpl<char> &ResultPath, 808 SmallVectorImpl<char> &ResultPath, 814 SmallVectorImpl<char> &ResultPath, 865 SmallVectorImpl<char> &ResultPath); 870 SmallVectorImpl<char> &ResultPath); 873 SmallVectorImpl<char> &ResultPath); 883 SmallVectorImpl<char> &ResultPath); 895 SmallVectorImpl<char> &ResultPath);
|
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/ |
D | FindAllSymbolsMain.cpp | 69 SmallString<128> ResultPath; in reportSymbols() local 72 FD, ResultPath); in reportSymbols()
|
/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/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/llvm-project/llvm/lib/LTO/ |
D | Caching.cpp | 41 SmallString<64> ResultPath; in localCache() local 43 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in localCache()
|
D | ThinLTOCodeGenerator.cpp | 373 SmallString<64> ResultPath; in tryLoadingBuffer() local 375 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in tryLoadingBuffer()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/ |
D | Caching.cpp | 41 SmallString<64> ResultPath; in localCache() local 43 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in localCache()
|
D | ThinLTOCodeGenerator.cpp | 357 SmallString<64> ResultPath; in tryLoadingBuffer() local 359 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in tryLoadingBuffer()
|
/external/llvm-project/llvm/tools/llvm-exegesis/lib/ |
D | BenchmarkRunner.cpp | 265 SmallString<256> ResultPath; in writeObjectFile() local 267 sys::fs::createTemporaryFile("snippet", "o", ResultFD, ResultPath))) in writeObjectFile() 275 return std::string(ResultPath.str()); in writeObjectFile()
|
/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/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | HTMLDiagnostics.cpp | 247 SmallString<128> Model, ResultPath; in ReportDiag() local 258 llvm::sys::fs::createUniqueFile(Model, FD, ResultPath)) { in ReportDiag() 293 llvm::sys::path::filename(ResultPath)); in ReportDiag()
|
/external/llvm-project/llvm/unittests/Support/ |
D | Path.cpp | 1563 SmallString<64> ResultPath; in TEST_F() local 1565 fs::OF_None, &ResultPath)) in TEST_F() 1568 if (!ResultPath.empty()) { in TEST_F() 1573 ASSERT_NO_ERROR(fs::getUniqueID(Twine(ResultPath), D2)); in TEST_F() 1595 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);
|