Searched refs:EntryPath (Results 1 – 5 of 5) sorted by relevance
/external/llvm-project/llvm/lib/LTO/ |
D | Caching.cpp | 38 SmallString<64> EntryPath; in localCache() local 39 sys::path::append(EntryPath, CacheDirectoryPath, "llvmcache-" + Key); in localCache() 43 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in localCache() 47 MemoryBuffer::getOpenFile(*FDOrErr, EntryPath, in localCache() 67 report_fatal_error(Twine("Failed to open cache file ") + EntryPath + in localCache() 75 std::string EntryPath; in localCache() member 79 sys::fs::TempFile TempFile, std::string EntryPath, in localCache() 82 TempFile(std::move(TempFile)), EntryPath(std::move(EntryPath)), in localCache() 108 Error E = TempFile.keep(EntryPath); in localCache() 115 EntryPath); in localCache() [all …]
|
D | ThinLTOCodeGenerator.cpp | 324 SmallString<128> EntryPath; member in __anonf071cc090111::ModuleCacheEntry 363 sys::path::append(EntryPath, CachePath, "llvmcache-" + Key); in ModuleCacheEntry() 367 StringRef getEntryPath() { return EntryPath; } in getEntryPath() 371 if (EntryPath.empty()) in tryLoadingBuffer() 375 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in tryLoadingBuffer() 379 *FDOrErr, EntryPath, /*FileSize=*/-1, /*RequiresNullTerminator=*/false); in tryLoadingBuffer() 386 if (EntryPath.empty()) in write() 391 SmallString<128> CachePath(EntryPath); in write() 396 llvm::writeFileAtomically(TempFilename, EntryPath, in write()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/ |
D | Caching.cpp | 38 SmallString<64> EntryPath; in localCache() local 39 sys::path::append(EntryPath, CacheDirectoryPath, "llvmcache-" + Key); in localCache() 43 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in localCache() 47 MemoryBuffer::getOpenFile(*FDOrErr, EntryPath, in localCache() 67 report_fatal_error(Twine("Failed to open cache file ") + EntryPath + in localCache() 75 std::string EntryPath; in localCache() member 79 sys::fs::TempFile TempFile, std::string EntryPath, in localCache() 82 TempFile(std::move(TempFile)), EntryPath(std::move(EntryPath)), in localCache() 108 Error E = TempFile.keep(EntryPath); in localCache() 115 EntryPath); in localCache() [all …]
|
D | ThinLTOCodeGenerator.cpp | 308 SmallString<128> EntryPath; member in __anon76669b7d0111::ModuleCacheEntry 347 sys::path::append(EntryPath, CachePath, "llvmcache-" + Key); in ModuleCacheEntry() 351 StringRef getEntryPath() { return EntryPath; } in getEntryPath() 355 if (EntryPath.empty()) in tryLoadingBuffer() 359 Twine(EntryPath), sys::fs::OF_UpdateAtime, &ResultPath); in tryLoadingBuffer() 363 *FDOrErr, EntryPath, /*FileSize=*/-1, /*RequiresNullTerminator=*/false); in tryLoadingBuffer() 370 if (EntryPath.empty()) in write() 375 SmallString<128> CachePath(EntryPath); in write() 380 llvm::writeFileAtomically(TempFilename, EntryPath, in write()
|
/external/llvm/lib/LTO/ |
D | ThinLTOCodeGenerator.cpp | 220 SmallString<128> EntryPath; member in __anon4d17fa9b0111::ModuleCacheEntry 277 sys::path::append(EntryPath, CachePath, toHex(Hasher.result())); in ModuleCacheEntry() 281 StringRef getEntryPath() { return EntryPath; } in getEntryPath() 285 if (EntryPath.empty()) in tryLoadingBuffer() 287 return MemoryBuffer::getFile(EntryPath); in tryLoadingBuffer() 293 if (EntryPath.empty()) in write() 310 EC = sys::fs::rename(TempFilename, EntryPath); in write() 313 raw_fd_ostream OS(EntryPath, EC, sys::fs::F_None); in write() 315 report_fatal_error(Twine("Failed to open ") + EntryPath + in write() 319 auto ReloadedBufferOrErr = MemoryBuffer::getFile(EntryPath); in write() [all …]
|