Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/freebsd-src/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOPosix.cpp27 bool IsFile(const std::string &Path) { in IsFile() argument
29 if (stat(Path.c_str(), &St)) in IsFile()
34 bool IsDirectory(const std::string &Path) { in IsDirectory() argument
36 if (stat(Path.c_str(), &St)) in IsDirectory()
41 size_t FileSize(const std::string &Path) { in FileSize() argument
43 if (stat(Path.c_str(), &St)) in FileSize()
48 std::string Basename(const std::string &Path) { in Basename() argument
49 size_t Pos = Path.rfind(GetSeparator()); in Basename()
50 if (Pos == std::string::npos) return Path; in Basename()
51 assert(Pos < Path.size()); in Basename()
[all …]
H A DFuzzerIO.cpp34 long GetEpoch(const std::string &Path) { in GetEpoch() argument
36 if (stat(Path.c_str(), &St)) in GetEpoch()
41 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() argument
42 std::ifstream T(Path, std::ios::binary); in FileToVector()
44 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector()
61 std::string FileToString(const std::string &Path) { in FileToString() argument
62 std::ifstream T(Path, std::ios::binary); in FileToString()
67 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument
68 Puts(FileToString(Path).c_str()); in CopyFileToErr()
71 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument
[all …]
H A DFuzzerIOWindows.cpp26 static bool IsFile(const std::string &Path, const DWORD &FileAttributes) { in IsFile() argument
35 CreateFileA(Path.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING, in IsFile()
39 Printf("CreateFileA() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
47 Printf("GetFileType() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
62 bool IsFile(const std::string &Path) { in IsFile() argument
63 DWORD Att = GetFileAttributesA(Path.c_str()); in IsFile()
67 Path.c_str(), GetLastError()); in IsFile()
71 return IsFile(Path, Att); in IsFile()
79 bool IsDirectory(const std::string &Path) { in IsDirectory() argument
80 DWORD Att = GetFileAttributesA(Path.c_str()); in IsDirectory()
[all …]
H A DFuzzerIO.h18 long GetEpoch(const std::string &Path);
20 Unit FileToVector(const std::string &Path, size_t MaxSize = 0,
23 std::string FileToString(const std::string &Path);
25 void CopyFileToErr(const std::string &Path);
27 void WriteToFile(const uint8_t *Data, size_t Size, const std::string &Path);
29 void WriteToFile(const std::string &Data, const std::string &Path);
30 void WriteToFile(const Unit &U, const std::string &Path);
32 void AppendToFile(const uint8_t *Data, size_t Size, const std::string &Path);
33 void AppendToFile(const std::string &Data, const std::string &Path);
35 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, long *Epoch,
[all …]
/freebsd-src/sys/contrib/dev/acpica/common/
H A Ddmextern.c215 char *Path);
225 char **Path);
229 char *Path,
244 char *Path);
248 char *Path,
255 char *Path);
293 * Path - Path with parent prefix
305 char *Path) in AcpiDmNormalizeParentPrefix() argument
343 while (Node && (*Path in AcpiDmNormalizeParentPrefix()
647 AcpiDmAddOpToExternalList(ACPI_PARSE_OBJECT * Op,char * Path,UINT8 Type,UINT32 Value,UINT16 Flags) AcpiDmAddOpToExternalList() argument
788 AcpiDmRemoveRootPrefix(char ** Path) AcpiDmRemoveRootPrefix() argument
897 AcpiDmAddPathToExternalList(char * Path,UINT8 Type,UINT32 Value,UINT16 Flags) AcpiDmAddPathToExternalList() argument
1121 AcpiDmResolveExternal(char * Path,UINT8 Type,ACPI_NAMESPACE_NODE ** Node) AcpiDmResolveExternal() argument
1226 AcpiDmAddOneExternalToNamespace(char * Path,UINT8 Type,UINT32 ParamCount) AcpiDmAddOneExternalToNamespace() argument
1557 AcpiDmConflictingDeclaration(char * Path) AcpiDmConflictingDeclaration() argument
1612 AcpiDmCheckForExternalConflict(char * Path) AcpiDmCheckForExternalConflict() argument
[all...]
H A Dadwalk.c482 char *Path; in AcpiDmDumpDescending() local
527 NULL, &Path); in AcpiDmDumpDescending()
530 AcpiOsPrintf ("%s %p", Path, Op->Common.Node); in AcpiDmDumpDescending()
531 ACPI_FREE (Path); in AcpiDmDumpDescending()
618 NULL, &Path); in AcpiDmFindOrphanDescending()
620 Op->Common.AmlOpName, Path); in AcpiDmFindOrphanDescending()
621 ACPI_FREE (Path); in AcpiDmFindOrphanDescending()
760 char *Path = NULL; in AcpiDmLoadDescendingOp() local
786 Path = Op->Named.Path; in AcpiDmLoadDescendingOp()
896 char *Path = NULL; AcpiDmXrefDescendingOp() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DSupportHelpers.h114 SmallString<128> Path; variable
125 EC = llvm::sys::fs::createUniqueDirectory(Name, Path);
128 std::string UnresolvedPath(Path.str());
129 EC = llvm::sys::fs::real_path(UnresolvedPath, Path);
132 Path = Name;
133 EC = llvm::sys::fs::create_directory(Path);
136 Path.clear();
141 if (!Path.empty()) { in ~TempDir()
142 EXPECT_FALSE(llvm::sys::fs::remove_directories(Path.str())); in ~TempDir()
153 StringRef path() const { return Path; } in path()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/Support/
H A DFileCollector.cpp13 #include "llvm/Support/Path.h"
34 static bool isCaseSensitivePath(StringRef Path) { in isCaseSensitivePath() argument
35 SmallString<256> TmpDest = Path, UpperDest, RealDest; in isCaseSensitivePath()
38 if (sys::fs::real_path(Path, TmpDest)) in isCaseSensitivePath()
40 Path = TmpDest; in isCaseSensitivePath()
46 UpperDest = Path.upper(); in isCaseSensitivePath()
47 if (!sys::fs::real_path(UpperDest, RealDest) && Path == RealDest) in isCaseSensitivePath()
59 SmallVectorImpl<char> &Path) { in updateWithRealPath() argument
60 StringRef SrcPath(Path.begin(), Path in updateWithRealPath()
91 makeAbsolute(SmallVectorImpl<char> & Path) makeAbsolute() argument
263 status(const Twine & Path) status() argument
271 openFileForRead(const Twine & Path) openFileForRead() argument
283 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) const getRealPath() argument
294 isLocal(const Twine & Path,bool & Result) isLocal() argument
302 setCurrentWorkingDirectory(const llvm::Twine & Path) setCurrentWorkingDirectory() argument
[all...]
H A DFileOutputBuffer.cpp35 OnDiskBuffer(StringRef Path, fs::TempFile Temp, fs::mapped_file_region Buf) in OnDiskBuffer() argument
36 : FileOutputBuffer(Path), Buffer(std::move(Buf)), Temp(std::move(Temp)) {} in OnDiskBuffer()
78 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer() argument
80 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
118 createInMemoryBuffer(StringRef Path, size_t Size, unsigned Mode) { in createInMemoryBuffer() argument
124 return std::make_unique<InMemoryBuffer>(Path, MB, Size, Mode); in createInMemoryBuffer()
128 createOnDiskBuffer(StringRef Path, size_t Size, unsigned Mode) { in createOnDiskBuffer() argument
130 fs::TempFile::create(Path + ".tmp%%%%%%%", Mode); in createOnDiskBuffer()
150 return createInMemoryBuffer(Path, Size, Mode); in createOnDiskBuffer()
153 return std::make_unique<OnDiskBuffer>(Path, std::move(File), in createOnDiskBuffer()
[all …]
H A DPath.cpp1 //===-- Path.cpp - Implement OS Path Concept ------------------------------===//
9 // This file implements the operating system Path API.
13 #include "llvm/Support/Path.h"
229 i.Path = path; in begin()
238 i.Path = path; in end()
244 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
250 if (Position == Path.size()) { in operator ++()
261 if (is_separator(Path[Position], S)) { in operator ++()
266 Component = Path in operator ++()
299 rbegin(StringRef Path,Style style) rbegin() argument
308 rend(StringRef Path) rend() argument
501 starts_with(StringRef Path,StringRef Prefix,Style style=Style::native) starts_with() argument
520 replace_path_prefix(SmallVectorImpl<char> & Path,StringRef OldPrefix,StringRef NewPrefix,Style style) replace_path_prefix() argument
552 native(SmallVectorImpl<char> & Path,Style style) native() argument
705 remove_leading_dotslash(StringRef Path,Style style) remove_leading_dotslash() argument
789 getUniqueID(const Twine Path,UniqueID & Result) getUniqueID() argument
969 create_directories(const Twine & Path,bool IgnoreExisting,perms Perms) create_directories() argument
1069 md5_contents(const Twine & Path) md5_contents() argument
1087 get_file_type(const Twine & Path,bool Follow) get_file_type() argument
1136 is_other(const Twine & Path,bool & Result) is_other() argument
1153 getPermissions(const Twine & Path) getPermissions() argument
[all...]
H A DVirtualFileSystem.cpp35 #include "llvm/Support/Path.h"
128 std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const { in makeAbsolute()
129 if (llvm::sys::path::is_absolute(Path)) in makeAbsolute()
136 llvm::sys::fs::make_absolute(WorkingDir.get(), Path); in makeAbsolute()
140 std::error_code FileSystem::getRealPath(const Twine &Path, in getRealPath() argument
145 std::error_code FileSystem::isLocal(const Twine &Path, bool &Result) { in isLocal() argument
149 bool FileSystem::exists(const Twine &Path) { in exists() argument
150 auto Status = status(Path); in exists()
173 static bool pathHasTraversal(StringRef Path) {
176 for (StringRef Comp : llvm::make_range(path::begin(Path), pat
163 pathHasTraversal(StringRef Path) pathHasTraversal() argument
240 setPath(const Twine & Path) setPath() argument
287 adjustPath(const Twine & Path,SmallVectorImpl<char> & Storage) const adjustPath() argument
306 status(const Twine & Path) status() argument
338 setCurrentWorkingDirectory(const Twine & Path) setCurrentWorkingDirectory() argument
355 isLocal(const Twine & Path,bool & Result) isLocal() argument
361 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) const getRealPath() argument
393 RealFSDirIter(const Twine & Path,std::error_code & EC) RealFSDirIter() argument
432 status(const Twine & Path) status() argument
443 openFileForRead(const llvm::Twine & Path) openFileForRead() argument
460 setCurrentWorkingDirectory(const Twine & Path) setCurrentWorkingDirectory() argument
467 isLocal(const Twine & Path,bool & Result) isLocal() argument
475 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) const getRealPath() argument
654 InMemoryHardLink(StringRef Path,const InMemoryFile & ResolvedFile) InMemoryHardLink() argument
677 InMemorySymbolicLink(StringRef Path,StringRef TargetPath,Status Stat) InMemorySymbolicLink() argument
723 setPath(const Twine & Path) setPath() argument
823 SmallString<128> Path; addFile() local
932 SmallString<128> Path; lookupNode() local
1043 status(const Twine & Path) status() argument
1051 openFileForRead(const Twine & Path) openFileForRead() argument
1075 SmallString<256> Path(RequestedDirName); setCurrentEntry() local
1137 SmallString<128> Path; setCurrentWorkingDirectory() local
1154 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) const getRealPath() argument
1166 isLocal(const Twine & Path,bool & Result) isLocal() argument
1186 getExistingStyle(llvm::StringRef Path) getExistingStyle() argument
1198 canonicalize(llvm::StringRef Path) canonicalize() argument
1264 RedirectingFSDirIterImpl(const Twine & Path,RedirectingFileSystem::DirectoryEntry::iterator Begin,RedirectingFileSystem::DirectoryEntry::iterator End,std::error_code & EC) RedirectingFSDirIterImpl() argument
1322 setCurrentWorkingDirectory(const Twine & Path) setCurrentWorkingDirectory() argument
1337 SmallString<256> Path; isLocal() local
1404 SmallString<256> Path; dir_begin() local
2434 setPath(const Twine & Path) setPath() argument
2580 getVFSEntries(RedirectingFileSystem::Entry * SrcE,SmallVectorImpl<StringRef> & Path,SmallVectorImpl<YAMLVFSEntry> & Entries) getVFSEntries() argument
2685 containedIn(StringRef Parent,StringRef Path) containedIn() argument
2699 containedPart(StringRef Parent,StringRef Path) containedPart() argument
2705 startDirectory(StringRef Path) startDirectory() argument
2832 recursive_directory_iterator(FileSystem & FS_,const Twine & Path,std::error_code & EC) recursive_directory_iterator() argument
[all...]
H A DTarWriter.cpp101 static void writePaxHeader(raw_fd_ostream &OS, StringRef Path) { in writePaxHeader() argument
104 std::string PaxAttr = formatPax("path", Path); in writePaxHeader()
127 static bool splitUstar(StringRef Path, StringRef &Prefix, StringRef &Name) { in splitUstar() argument
128 if (Path.size() < sizeof(UstarHeader::Name)) { in splitUstar()
130 Name = Path; in splitUstar()
144 size_t Sep = Path.rfind('/', MaxPrefix + 1); in splitUstar()
147 if (Path.size() - Sep - 1 >= sizeof(UstarHeader::Name)) in splitUstar()
150 Prefix = Path.substr(0, Sep); in splitUstar()
151 Name = Path.substr(Sep + 1); in splitUstar()
184 void TarWriter::append(StringRef Path, StringRef Data) { in append() argument
[all …]
/freebsd-src/contrib/llvm-project/clang/lib/DirectoryWatcher/mac/
H A DDirectoryWatcher-mac.cpp114 StringRef Path = ((const char **)EventPaths)[i]; in eventStreamCallback() local
125 Path == ctx->WatchedPath) { in eventStreamCallback()
136 llvm::sys::path::filename(Path)); in eventStreamCallback()
139 if (!getFileStatus(Path).has_value()) { in eventStreamCallback()
141 llvm::sys::path::filename(Path)); in eventStreamCallback()
144 llvm::sys::path::filename(Path)); in eventStreamCallback()
161 StringRef Path, in createFSEventStream() argument
164 if (Path.empty()) in createFSEventStream()
171 CFStringCreateWithBytes(nullptr, (const UInt8 *)Path.data(), in createFSEventStream()
172 Path.size(), kCFStringEncodingUTF8, false); in createFSEventStream()
[all …]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/
H A DVirtualFileSystem.h27 #include "llvm/Support/Path.h"
143 virtual void setPath(const Twine &Path) {}
149 std::string Path;
154 directory_entry(std::string Path, llvm::sys::fs::file_type Type)
155 : Path(std::move(Path)), Type(Type) {}
157 llvm::StringRef path() const { return Path; } in directory_entry()
235 recursive_directory_iterator(FileSystem &FS, const Twine &Path,
271 /// Get the status of the entry at \p Path, if one exists.
272 virtual llvm::ErrorOr<Status> status(const Twine &Path)
145 setPath(const Twine & Path) setPath() argument
151 std::string Path; global() variable
156 directory_entry(std::string Path,llvm::sys::fs::file_type Type) directory_entry() argument
428 status(const Twine & Path) status() argument
432 openFileForRead(const Twine & Path) openFileForRead() argument
441 setCurrentWorkingDirectory(const Twine & Path) setCurrentWorkingDirectory() argument
444 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) getRealPath() argument
448 isLocal(const Twine & Path,bool & Result) isLocal() argument
468 StringRef Path; global() member
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesManager.cpp26 #include "llvm/Support/Path.h"
144 llvm::SmallString<128> Path(Directory.getName()); in findAPINotesFile()
149 llvm::sys::path::append(Path, llvm::Twine(Basename) + Suffix + "." + in findAPINotesFile()
151 return FM.getOptionalFileRef(Path, /*Open*/ true); in findAPINotesFile()
158 llvm::SmallString<128> Path(FrameworkPath); in loadFrameworkAPINotes()
159 unsigned FrameworkNameLength = Path.size(); in loadFrameworkAPINotes()
164 llvm::sys::path::append(Path, "APINotes"); in loadFrameworkAPINotes()
165 llvm::sys::path::append(Path, (llvm::Twine(FrameworkName) + Suffix + "." + in loadFrameworkAPINotes()
169 auto APINotesFile = FM.getOptionalFileRef(Path); in loadFrameworkAPINotes()
174 Path in loadFrameworkAPINotes()
143 llvm::SmallString<128> Path(Directory.getName()); findAPINotesFile() local
157 llvm::SmallString<128> Path(FrameworkPath); loadFrameworkAPINotes() local
248 llvm::SmallString<128> Path(M->Directory->getName()); getCurrentModuleAPINotes() local
384 StringRef Path = Dir->getName(); findAPINotes() local
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Tooling/
H A DFileMatchTrie.cpp64 if (Path.empty()) { in insert()
66 Path = std::string(NewPath); in insert()
71 if (NewPath == Path) in insert()
75 StringRef(Path).drop_back(ConsumedLength))); in insert()
76 Children[Element].Path = Path; in insert()
112 if (llvm::sys::path::filename(Path) == in findEquivalent()
114 Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent()
115 return StringRef(Path); in findEquivalent()
156 if (Path.empty()) in getAll()
159 Results.push_back(StringRef(Path)); in getAll()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/Object/
H A DBuildID.cpp70 SmallString<128> Path{Directory}; in fetch() local
71 sys::path::append(Path, ".build-id", in fetch()
74 Path += ".debug"; in fetch()
75 return Path; in fetch()
78 SmallString<128> Path = GetDebugPath( in fetch() local
87 if (llvm::sys::fs::exists(Path)) in fetch()
88 return std::string(Path); in fetch()
92 SmallString<128> Path = GetDebugPath(Directory); in fetch() local
93 if (llvm::sys::fs::exists(Path)) in fetch()
94 return std::string(Path); in fetch()
/freebsd-src/contrib/llvm-project/llvm/lib/WindowsDriver/
H A DMSVCPaths.cpp15 #include "llvm/Support/Path.h"
100 std::optional<llvm::StringRef> WinSysRoot, std::string &Path, int &Major, in getWindowsSDKDirViaCommandLine() argument
117 Path = std::string(SDKPath); in getWindowsSDKDirViaCommandLine()
119 Path = WinSdkDir->str(); in getWindowsSDKDirViaCommandLine()
125 } else if (getWindows10SDKVersionFromPath(VFS, Path, Version)) { in getWindowsSDKDirViaCommandLine()
360 SmallString<256> Path(VCToolChainPath); in getSubDirectoryPath()
362 sys::path::append(Path, SubdirParent); in getSubDirectoryPath()
378 sys::path::append(Path, "bin", HostName, SubdirName); in getSubDirectoryPath()
380 sys::path::append(Path, "bin", SubdirName); in getSubDirectoryPath()
384 sys::path::append(Path, IncludeNam in getSubDirectoryPath()
356 SmallString<256> Path(VCToolChainPath); getSubDirectoryPath() local
399 getWindowsSDKDir(vfs::FileSystem & VFS,std::optional<StringRef> WinSdkDir,std::optional<StringRef> WinSdkVersion,std::optional<StringRef> WinSysRoot,std::string & Path,int & Major,std::string & WindowsSDKIncludeVersion,std::string & WindowsSDKLibVersion) getWindowsSDKDir() argument
456 getUniversalCRTSdkDir(vfs::FileSystem & VFS,std::optional<StringRef> WinSdkDir,std::optional<StringRef> WinSdkVersion,std::optional<StringRef> WinSysRoot,std::string & Path,std::string & UCRTVersion) getUniversalCRTSdkDir() argument
481 findVCToolChainViaCommandLine(vfs::FileSystem & VFS,std::optional<StringRef> VCToolsDir,std::optional<StringRef> VCToolsVersion,std::optional<StringRef> WinSysRoot,std::string & Path,ToolsetLayout & VSLayout) findVCToolChainViaCommandLine() argument
504 findVCToolChainViaEnvironment(vfs::FileSystem & VFS,std::string & Path,ToolsetLayout & VSLayout) findVCToolChainViaEnvironment() argument
615 findVCToolChainViaSetupConfig(vfs::FileSystem & VFS,std::optional<StringRef> VCToolsVersion,std::string & Path,ToolsetLayout & VSLayout) findVCToolChainViaSetupConfig() argument
710 findVCToolChainViaRegistry(std::string & Path,ToolsetLayout & VSLayout) findVCToolChainViaRegistry() argument
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DMipsLinux.cpp17 #include "llvm/Support/Path.h"
59 for (const auto &Path : Callback(SelectedMultilibs.back())) in AddClangSystemIncludeArgs() local
60 addExternCSystemIncludeIfExists(DriverArgs, CC1Args, D.Dir + Path); in AddClangSystemIncludeArgs()
98 for (std::string Path : Callback(SelectedMultilibs.back())) { in addLibCxxIncludePaths()
99 Path = getDriver().Dir + Path + "/c++/v1"; in addLibCxxIncludePaths() local
100 if (llvm::sys::fs::exists(Path)) { in addLibCxxIncludePaths()
101 addSystemInclude(DriverArgs, CC1Args, Path); in addLibCxxIncludePaths()
123 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT()
124 llvm::sys::path::append(Path, SelectedMultilib in getCompilerRT() local
[all...]
H A DAVR.cpp430 SmallString<256> Path(ToolChain::getCompilerRTPath()); in getCompilerRT() local
431 llvm::sys::path::append(Path, "avr"); in getCompilerRT()
432 llvm::sys::path::append(Path, File.str()); in getCompilerRT()
433 return std::string(Path); in getCompilerRT()
568 std::string Path(*AVRLibcRoot + "/lib/ldscripts/"); in ConstructJob() local
569 Path += *FamilyName; in ConstructJob()
570 Path += ".x"; in ConstructJob()
571 if (llvm::sys::fs::exists(Path)) in ConstructJob()
572 CmdArgs.push_back(Args.MakeArgString("-T" + Path)); in ConstructJob()
599 std::string Path(GCCParent + "/avr"); in findAVRLibcInstallation() local
[all …]
H A DHIPSPV.cpp18 #include "llvm/Support/Path.h"
40 StringRef Path = Args.getLastArgValue(options::OPT_hipspv_pass_plugin_EQ); in findPassPlugin() local
41 if (!Path.empty()) { in findPassPlugin()
42 if (llvm::sys::fs::exists(Path)) in findPassPlugin()
43 return Path.str(); in findPassPlugin()
44 D.Diag(diag::err_drv_no_such_file) << Path; in findPassPlugin()
156 DriverArgs.MakeArgString(BCFile.Path)}); in addClangTargetOptions()
215 for (auto Path : HipDeviceLibPathArgs) in getDeviceLibs() local
216 LibraryPaths.push_back(DriverArgs.MakeArgString(Path)); in getDeviceLibs()
220 SmallString<128> Path(HipPat in getDeviceLibs() local
233 SmallString<128> Path(LibraryPath); getDeviceLibs() local
248 SmallString<128> Path(LibPath); getDeviceLibs() local
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Basic/
H A DFileSystemStatCache.cpp34 FileSystemStatCache::get(StringRef Path, llvm::vfs::Status &Status, in get() argument
43 RetCode = Cache->getStat(Path, Status, isFile, F, FS); in get()
47 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = FS.status(Path); in get()
61 auto OwnedFile = FS.openFileForRead(Path); in get()
102 MemorizeStatCalls::getStat(StringRef Path, llvm::vfs::Status &Status, in getStat() argument
106 auto err = get(Path, Status, isFile, F, nullptr, FS); in getStat()
116 if (!Status.isDirectory() || llvm::sys::path::is_absolute(Path)) in getStat()
117 StatCalls[Path] = Status; in getStat()
/freebsd-src/contrib/llvm-project/llvm/lib/TextAPI/
H A DUtils.cpp20 void llvm::MachO::replace_extension(SmallVectorImpl<char> &Path, in replace_extension()
22 StringRef P(Path.begin(), Path.size()); in replace_extension()
27 sys::path::replace_extension(Path, Extension); in replace_extension()
31 // extension is appended. e.g. given Path: "Foo.framework/Foo" and Extension: in replace_extension()
38 Path.push_back('.'); in replace_extension()
41 Path.append(Ext.begin(), Ext.end());
44 std::error_code llvm::MachO::shouldSkipSymLink(const Twine &Path,
48 auto P = Path.toNullTerminatedStringRef(Storage);
110 bool llvm::MachO::isPrivateLibrary(StringRef Path, boo
18 replace_extension(SmallVectorImpl<char> & Path,const Twine & Extension) replace_extension() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBlockCoverageInference.cpp187 auto getNextOnPath = [&](BlockSet &Path) -> const BasicBlock * { in findDependencies() argument
188 assert(Path.size()); in findDependencies()
189 auto &Neighbors = AdjacencyList[Path.back()]; in findDependencies()
190 if (Path.size() == 1) { in findDependencies()
197 assert(Path.size() >= 2); in findDependencies()
198 return Path.count(Neighbors[0]) ? Neighbors[1] : Neighbors[0]; in findDependencies()
209 BlockSet Path; in findDependencies() local
210 Path.insert(&BB); in findDependencies()
211 while (const BasicBlock *Next = getNextOnPath(Path)) in findDependencies()
212 Path.insert(Next); in findDependencies()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDB.cpp22 Error llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path, in loadDataForPDB() argument
26 return NativeSession::createFromPdbPath(Path, Session); in loadDataForPDB()
29 return DIASession::createFromPdb(Path, Session); in loadDataForPDB()
35 Error llvm::pdb::loadDataForEXE(PDB_ReaderType Type, StringRef Path, in loadDataForEXE() argument
39 Expected<std::string> PdbPath = NativeSession::searchForPdb({Path}); in loadDataForEXE()
46 return DIASession::createFromExe(Path, Session); in loadDataForEXE()

12345678910>>...19