/external/llvm-project/llvm/lib/Support/ |
D | ToolOutputFile.cpp | 18 static bool isStdout(StringRef Filename) { return Filename == "-"; } in isStdout() argument 20 ToolOutputFile::CleanupInstaller::CleanupInstaller(StringRef Filename) in CleanupInstaller() argument 21 : Filename(std::string(Filename)), Keep(false) { in CleanupInstaller() 23 if (!isStdout(Filename)) in CleanupInstaller() 24 sys::RemoveFileOnSignal(Filename); in CleanupInstaller() 28 if (isStdout(Filename)) in ~CleanupInstaller() 33 sys::fs::remove(Filename); in ~CleanupInstaller() 37 sys::DontRemoveFileOnSignal(Filename); in ~CleanupInstaller() 40 ToolOutputFile::ToolOutputFile(StringRef Filename, std::error_code &EC, in ToolOutputFile() argument 42 : Installer(Filename) { in ToolOutputFile() [all …]
|
D | GraphWriter.cpp | 79 static std::string replaceIllegalFilenameChars(std::string Filename, in replaceIllegalFilenameChars() argument 88 std::replace(Filename.begin(), Filename.end(), IllegalChar, in replaceIllegalFilenameChars() 92 return Filename; in replaceIllegalFilenameChars() 97 SmallString<128> Filename; in createGraphFilename() local 107 sys::fs::createTemporaryFile(CleansedName, "dot", FD, Filename); in createGraphFilename() 113 errs() << "Writing '" << Filename << "'... "; in createGraphFilename() 114 return std::string(Filename.str()); in createGraphFilename() 119 StringRef Filename, bool wait, in ExecGraphViewer() argument 126 sys::fs::remove(Filename); in ExecGraphViewer() 130 errs() << "Remember to erase graph file: " << Filename << "\n"; in ExecGraphViewer() [all …]
|
D | MemoryBuffer.cpp | 108 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, 143 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument 146 StringRef NameRef = Filename.toStringRef(NameBuf); in getFileOrSTDIN() 150 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN() 245 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument 247 return getFileAux<MemoryBuffer>(Filename, FileSize, FileSize, 0, in getFile() 253 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize, 259 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument 262 sys::fs::openNativeFileForRead(Filename, sys::fs::OF_None); in getFileAux() 266 auto Ret = getOpenFileImpl<MB>(FD, Filename, FileSize, MapSize, Offset, in getFileAux() [all …]
|
/external/llvm/lib/Support/ |
D | ToolOutputFile.cpp | 19 tool_output_file::CleanupInstaller::CleanupInstaller(StringRef Filename) in CleanupInstaller() argument 20 : Filename(Filename), Keep(false) { in CleanupInstaller() 22 if (Filename != "-") in CleanupInstaller() 23 sys::RemoveFileOnSignal(Filename); in CleanupInstaller() 28 if (!Keep && Filename != "-") in ~CleanupInstaller() 29 sys::fs::remove(Filename); in ~CleanupInstaller() 33 if (Filename != "-") in ~CleanupInstaller() 34 sys::DontRemoveFileOnSignal(Filename); in ~CleanupInstaller() 37 tool_output_file::tool_output_file(StringRef Filename, std::error_code &EC, in tool_output_file() argument 39 : Installer(Filename), OS(Filename, EC, Flags) { in tool_output_file() [all …]
|
D | GraphWriter.cpp | 69 SmallString<128> Filename; in createGraphFilename() local 70 std::error_code EC = sys::fs::createTemporaryFile(Name, "dot", FD, Filename); in createGraphFilename() 76 errs() << "Writing '" << Filename << "'... "; in createGraphFilename() 77 return Filename.str(); in createGraphFilename() 82 StringRef Filename, bool wait, in ExecGraphViewer() argument 91 sys::fs::remove(Filename); in ExecGraphViewer() 95 errs() << "Remember to erase graph file: " << Filename << "\n"; in ExecGraphViewer() 137 std::string Filename = FilenameRef; in DisplayGraph() local 149 args.push_back(Filename.c_str()); in DisplayGraph() 152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | ToolOutputFile.cpp | 18 ToolOutputFile::CleanupInstaller::CleanupInstaller(StringRef Filename) in CleanupInstaller() argument 19 : Filename(Filename), Keep(false) { in CleanupInstaller() 21 if (Filename != "-") in CleanupInstaller() 22 sys::RemoveFileOnSignal(Filename); in CleanupInstaller() 27 if (!Keep && Filename != "-") in ~CleanupInstaller() 28 sys::fs::remove(Filename); in ~CleanupInstaller() 32 if (Filename != "-") in ~CleanupInstaller() 33 sys::DontRemoveFileOnSignal(Filename); in ~CleanupInstaller() 36 ToolOutputFile::ToolOutputFile(StringRef Filename, std::error_code &EC, in ToolOutputFile() argument 38 : Installer(Filename), OS(Filename, EC, Flags) { in ToolOutputFile() [all …]
|
D | GraphWriter.cpp | 81 SmallString<128> Filename; in createGraphFilename() local 82 std::error_code EC = sys::fs::createTemporaryFile(Name, "dot", FD, Filename); in createGraphFilename() 88 errs() << "Writing '" << Filename << "'... "; in createGraphFilename() 89 return Filename.str(); in createGraphFilename() 94 StringRef Filename, bool wait, in ExecGraphViewer() argument 101 sys::fs::remove(Filename); in ExecGraphViewer() 105 errs() << "Remember to erase graph file: " << Filename << "\n"; in ExecGraphViewer() 150 std::string Filename = FilenameRef; in DisplayGraph() local 162 args.push_back(Filename); in DisplayGraph() 164 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph() [all …]
|
D | MemoryBuffer.cpp | 108 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, 143 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument 146 StringRef NameRef = Filename.toStringRef(NameBuf); in getFileOrSTDIN() 150 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN() 231 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument 233 return getFileAux<MemoryBuffer>(Filename, FileSize, FileSize, 0, in getFile() 239 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize, 245 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument 248 sys::fs::openNativeFileForRead(Filename, sys::fs::OF_None); in getFileAux() 252 auto Ret = getOpenFileImpl<MB>(FD, Filename, FileSize, MapSize, Offset, in getFileAux() [all …]
|
/external/clang/lib/Frontend/ |
D | DependencyFile.cpp | 54 StringRef Filename = in FileChanged() local 57 DepCollector.maybeAddDependency(Filename, /*FromModule*/false, in FileChanged() 85 StringRef Filename = Entry.getName(); in moduleMapFileRead() local 86 DepCollector.maybeAddDependency(Filename, /*FromModule*/false, in moduleMapFileRead() 100 void visitModuleFile(StringRef Filename, in visitModuleFile() 102 DepCollector.maybeAddDependency(Filename, /*FromModule*/true, in visitModuleFile() 106 bool visitInputFile(StringRef Filename, bool IsSystem, in visitInputFile() 111 DepCollector.maybeAddDependency(Filename, /*FromModule*/true, IsSystem, in visitInputFile() 118 void DependencyCollector::maybeAddDependency(StringRef Filename, bool FromModule, in maybeAddDependency() argument 121 if (Seen.insert(Filename).second && in maybeAddDependency() [all …]
|
/external/llvm-project/clang/lib/Serialization/ |
D | InMemoryModuleCache.cpp | 15 InMemoryModuleCache::getPCMState(llvm::StringRef Filename) const { in getPCMState() 16 auto I = PCMs.find(Filename); in getPCMState() 25 InMemoryModuleCache::addPCM(llvm::StringRef Filename, in addPCM() argument 27 auto Insertion = PCMs.insert(std::make_pair(Filename, std::move(Buffer))); in addPCM() 33 InMemoryModuleCache::addBuiltPCM(llvm::StringRef Filename, in addBuiltPCM() argument 35 auto &PCM = PCMs[Filename]; in addBuiltPCM() 44 InMemoryModuleCache::lookupPCM(llvm::StringRef Filename) const { in lookupPCM() 45 auto I = PCMs.find(Filename); in lookupPCM() 51 bool InMemoryModuleCache::isPCMFinal(llvm::StringRef Filename) const { in isPCMFinal() 52 return getPCMState(Filename) == Final; in isPCMFinal() [all …]
|
/external/llvm-project/llvm/tools/dsymutil/ |
D | BinaryHolder.cpp | 23 getArchiveAndObjectName(StringRef Filename) { in getArchiveAndObjectName() argument 24 StringRef Archive = Filename.substr(0, Filename.rfind('(')); in getArchiveAndObjectName() 25 StringRef Object = Filename.substr(Archive.size() + 1).drop_back(); in getArchiveAndObjectName() 29 static bool isArchive(StringRef Filename) { return Filename.endswith(")"); } in isArchive() argument 32 getMachOFatMemoryBuffers(StringRef Filename, MemoryBuffer &Mem, in getMachOFatMemoryBuffers() argument 39 Buffers.emplace_back(ObjData, Filename); in getMachOFatMemoryBuffers() 45 StringRef Filename, in load() argument 47 StringRef ArchiveFilename = getArchiveAndObjectName(Filename).first; in load() 90 StringRef Filename, bool Verbose) { in load() argument 92 auto ErrOrBuff = (Filename == "-") in load() [all …]
|
D | BinaryHolder.h | 60 Error load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, StringRef Filename, 103 std::string Filename; member 106 KeyTy() : Filename(), Timestamp() {} in KeyTy() 107 KeyTy(StringRef Filename, TimestampTy Timestamp) in KeyTy() 108 : Filename(Filename.str()), Timestamp(Timestamp) {} in KeyTy() 112 Error load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, StringRef Filename, 115 Expected<const ObjectEntry &> getObjectEntry(StringRef Filename, 126 getObjectEntry(StringRef Filename, TimestampTy Timestamp = TimestampTy()); 160 return hash_combine(DenseMapInfo<StringRef>::getHashValue(K.Filename), 167 return LHS.Filename == RHS.Filename && LHS.Timestamp == RHS.Timestamp;
|
/external/llvm-project/clang/lib/Frontend/ |
D | DependencyFile.cpp | 49 if (Optional<StringRef> Filename = SM.getNonBuiltinFilenameForID( in FileChanged() local 52 llvm::sys::path::remove_leading_dotslash(*Filename), in FileChanged() 59 StringRef Filename = in FileSkipped() local 61 DepCollector.maybeAddDependency(Filename, /*FromModule=*/false, in FileSkipped() 85 StringRef Filename = in HasInclude() local 87 DepCollector.maybeAddDependency(Filename, /*FromModule=*/false, in HasInclude() 102 StringRef Filename = Entry.getName(); in moduleMapFileRead() local 103 DepCollector.maybeAddDependency(Filename, /*FromModule*/false, in moduleMapFileRead() 117 void visitModuleFile(StringRef Filename, in visitModuleFile() 119 DepCollector.maybeAddDependency(Filename, /*FromModule*/true, in visitModuleFile() [all …]
|
/external/llvm/tools/dsymutil/ |
D | BinaryHolder.cpp | 23 getMachOFatMemoryBuffers(StringRef Filename, MemoryBuffer &Mem, in getMachOFatMemoryBuffers() argument 30 Buffers.emplace_back(ObjData, Filename); in getMachOFatMemoryBuffers() 45 BinaryHolder::GetMemoryBuffersForFile(StringRef Filename, in GetMemoryBuffersForFile() argument 48 outs() << "trying to open '" << Filename << "'\n"; in GetMemoryBuffersForFile() 51 if (auto ErrOrArchiveMembers = GetArchiveMemberBuffers(Filename, Timestamp)) in GetMemoryBuffersForFile() 56 if (Filename.endswith(")")) in GetMemoryBuffersForFile() 58 MapArchiveAndGetMemberBuffers(Filename, Timestamp)) in GetMemoryBuffersForFile() 66 auto ErrOrFile = MemoryBuffer::getFileOrSTDIN(Filename); in GetMemoryBuffersForFile() 83 CurrentFatBinaryName = Filename; in GetMemoryBuffersForFile() 89 BinaryHolder::GetArchiveMemberBuffers(StringRef Filename, in GetArchiveMemberBuffers() argument [all …]
|
/external/llvm-project/compiler-rt/lib/profile/ |
D | InstrProfilingFile.c | 276 static void createProfileDir(const char *Filename) { in createProfileDir() argument 277 size_t Length = strlen(Filename); in createProfileDir() 278 if (lprofFindFirstDirSeparator(Filename)) { in createProfileDir() 280 strncpy(Copy, Filename, Length + 1); in createProfileDir() 385 const char *Filename; in truncateCurrentFile() local 392 Filename = getCurFilename(FilenameBuf, 0); in truncateCurrentFile() 393 if (!Filename) in truncateCurrentFile() 410 createProfileDir(Filename); in truncateCurrentFile() 417 File = fopen(Filename, "w"); in truncateCurrentFile() 431 static int writeProfileWithFileObject(const char *Filename, FILE *File) { in writeProfileWithFileObject() argument [all …]
|
/external/llvm-project/llvm/tools/llvm-lto/ |
D | llvm-lto.cpp | 341 for (auto &Filename : InputFilenames) { in printIndexStats() local 342 ExitOnError ExitOnErr("llvm-lto: error loading file '" + Filename + "': "); in printIndexStats() 344 ExitOnErr(getModuleSummaryIndexForFile(Filename)); in printIndexStats() 347 report_fatal_error(Filename + " does not contain an index"); in printIndexStats() 362 outs() << "Index " << Filename << " contains " in printIndexStats() 377 for (auto &Filename : InputFilenames) { in listSymbols() local 380 getLocalLTOModule(Filename, Buffer, Options); in listSymbols() 383 outs() << Filename << ":\n"; in listSymbols() 389 static std::unique_ptr<MemoryBuffer> loadFile(StringRef Filename) { in loadFile() argument 390 ExitOnError ExitOnErr("llvm-lto: error loading file '" + Filename.str() + in loadFile() [all …]
|
/external/llvm/tools/llvm-lto/ |
D | llvm-lto.cpp | 269 for (auto &Filename : InputFilenames) { in listSymbols() local 272 getLocalLTOModule(Filename, Buffer, Options); in listSymbols() 275 outs() << Filename << ":\n"; in listSymbols() 288 for (auto &Filename : InputFilenames) { in createCombinedModuleSummaryIndex() local 289 CurrentActivity = "loading file '" + Filename + "'"; in createCombinedModuleSummaryIndex() 291 llvm::getModuleSummaryIndexForFile(Filename, diagnosticHandler); in createCombinedModuleSummaryIndex() 347 const auto &Filename = ModPath.first(); in loadAllFilesForIndex() local 348 auto CurrentActivity = "loading file '" + Filename + "'"; in loadAllFilesForIndex() 349 auto InputOrErr = MemoryBuffer::getFile(Filename); in loadAllFilesForIndex() 366 static std::unique_ptr<Module> loadModule(StringRef Filename, in loadModule() argument [all …]
|
/external/curl/tests/data/ |
D | test1114 | 40 Filename: . 46 Filename: .. 52 Filename: chmod1 62 Filename: chmod2 72 Filename: chmod3 82 Filename: chmod4 88 Filename: chmod5 94 Filename: empty_file.dat 103 Filename: file.txt 113 Filename: .NeXT [all …]
|
D | test576 | 40 Filename: . 49 Filename: .. 58 Filename: chmod1 71 Filename: chmod2 84 Filename: chmod3 97 Filename: chmod4 106 Filename: chmod5 115 Filename: empty_file.dat 127 Filename: file.txt 140 Filename: link [all …]
|
/external/llvm-project/polly/lib/Support/ |
D | DumpModulePass.cpp | 33 std::string Filename; member in __anon66a288fb0111::DumpModule 42 explicit DumpModule() : ModulePass(ID), Filename("-dump"), IsSuffix(true) {} in DumpModule() 44 explicit DumpModule(llvm::StringRef Filename, bool IsSuffix) in DumpModule() argument 45 : ModulePass(ID), Filename(Filename), IsSuffix(IsSuffix) {} in DumpModule() 58 Dumpfile = (Twine(Stem) + Filename + ".ll").str(); in runOnModule() 60 Dumpfile = Filename; in runOnModule() 83 ModulePass *polly::createDumpModulePass(llvm::StringRef Filename, in createDumpModulePass() argument 85 return new DumpModule(Filename, IsSuffix); in createDumpModulePass()
|
/external/llvm-project/clang/unittests/libclang/ |
D | TestUtils.h | 50 void WriteFile(std::string &Filename, const std::string &Contents) { in WriteFile() argument 51 if (!llvm::sys::path::is_absolute(Filename)) { in WriteFile() 53 llvm::sys::path::append(Path, Filename); in WriteFile() 54 Filename = std::string(Path.str()); in WriteFile() 55 Files.insert(Filename); in WriteFile() 57 llvm::sys::fs::create_directories(llvm::sys::path::parent_path(Filename)); in WriteFile() 58 std::ofstream OS(Filename); in WriteFile() 62 void MapUnsavedFile(std::string Filename, const std::string &Contents) { in MapUnsavedFile() argument 63 if (!llvm::sys::path::is_absolute(Filename)) { in MapUnsavedFile() 65 llvm::sys::path::append(Path, Filename); in MapUnsavedFile() [all …]
|
/external/llvm-project/clang/lib/Tooling/DependencyScanning/ |
D | DependencyScanningFilesystem.cpp | 19 StringRef Filename, llvm::vfs::FileSystem &FS, bool Minimize) { in createFileEntry() argument 22 FS.openFileForRead(Filename); in createFileEntry() 131 static bool shouldMinimize(StringRef Filename) { in shouldMinimize() argument 132 StringRef Ext = llvm::sys::path::extension(Filename); in shouldMinimize() 145 static bool shouldCacheStatFailures(StringRef Filename) { in shouldCacheStatFailures() argument 146 StringRef Ext = llvm::sys::path::extension(Filename); in shouldCacheStatFailures() 149 return shouldMinimize(Filename); // Only cache stat failures on source files. in shouldCacheStatFailures() 154 const StringRef Filename) { in getOrCreateFileSystemEntry() argument 155 if (const CachedFileSystemEntry *Entry = getCachedEntry(Filename)) { in getOrCreateFileSystemEntry() 162 bool KeepOriginalSource = IgnoredFiles.count(Filename) || in getOrCreateFileSystemEntry() [all …]
|
/external/llvm-project/clang/include/clang/Serialization/ |
D | InMemoryModuleCache.h | 60 State getPCMState(llvm::StringRef Filename) const; 67 llvm::MemoryBuffer &addPCM(llvm::StringRef Filename, 75 llvm::MemoryBuffer &addBuiltPCM(llvm::StringRef Filename, 83 bool tryToDropPCM(llvm::StringRef Filename); 89 void finalizePCM(llvm::StringRef Filename); 92 llvm::MemoryBuffer *lookupPCM(llvm::StringRef Filename) const; 97 bool isPCMFinal(llvm::StringRef Filename) const; 102 bool shouldBuildPCM(llvm::StringRef Filename) const;
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | TestWorkspace.cpp | 20 TU.Filename = Input.first().str(); in index() 32 Optional<ParsedAST> TestWorkspace::openFile(llvm::StringRef Filename) { in openFile() argument 33 auto It = Inputs.find(Filename); in openFile() 35 ADD_FAILURE() << "Accessing non-existing file: " << Filename; in openFile() 39 TU.Filename = It->first().str(); in openFile() 43 void TestWorkspace::addInput(llvm::StringRef Filename, in addInput() argument 45 Inputs.insert(std::make_pair(Filename, Input)); in addInput() 46 TU.AdditionalFiles.insert(std::make_pair(Filename, Input.Code)); in addInput()
|
/external/llvm-project/llvm/lib/Passes/ |
D | PassPlugin.cpp | 16 Expected<PassPlugin> PassPlugin::Load(const std::string &Filename) { in Load() argument 19 sys::DynamicLibrary::getPermanentLibrary(Filename.c_str(), &Error); in Load() 22 Filename + "': " + Error, in Load() 25 PassPlugin P{Filename, Library}; in Load() 33 Filename + "'. Is this a legacy plugin?", in Load() 40 Twine("Wrong API version on plugin '") + Filename + "'. Got version " + in Load() 47 Filename + "'.'", in Load()
|