| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | StmtOpenMP.cpp | 133 auto *Dir = dyn_cast<OMPLoopTransformationDirective>(CurStmt); in doForAllLoops() local 134 if (!Dir) in doForAllLoops() 137 OnTransformationCallback(Dir); in doForAllLoops() 139 Stmt *TransformedStmt = Dir->getTransformedStmt(); in doForAllLoops() 141 unsigned NumGeneratedLoops = Dir->getNumGeneratedLoops(); in doForAllLoops() 267 auto *Dir = createDirective<OMPMetaDirective>( in Create() local 269 Dir->setIfStmt(IfStmt); in Create() 270 return Dir; in Create() 285 auto *Dir = createDirective<OMPParallelDirective>( in Create() local 287 Dir->setTaskReductionRefExpr(TaskRedRef); in Create() [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/File/ |
| H A D | dir.h | 37 class Dir { 53 LIBC_INLINE Dir() = delete; 54 LIBC_INLINE Dir(const Dir &) = delete; 56 LIBC_INLINE explicit Dir(int fdesc) in Dir() function 60 LIBC_INLINE ~Dir() = default; 62 LIBC_INLINE Dir &operator=(const Dir &) = delete; 65 static ErrorOr<Dir *> open(const char *path);
|
| H A D | dir.cpp | 19 ErrorOr<Dir *> Dir::open(const char *path) { in open() 25 Dir *dir = new (ac) Dir(fd.value()); in open() 31 ErrorOr<struct ::dirent *> Dir::read() { in read() 54 int Dir::close() { in close()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | HeaderSearch.cpp | 222 for (const std::string &Dir : HSOpts.PrebuiltModulePaths) { in getPrebuiltModuleFileName() local 223 SmallString<256> Result(Dir); in getPrebuiltModuleFileName() 247 for (const std::string &Dir : HSOpts.PrebuiltModulePaths) { in getPrebuiltImplicitModuleFileName() local 248 SmallString<256> CachePath(Dir); in getPrebuiltImplicitModuleFileName() 334 for (DirectoryLookup &Dir : search_dir_range()) { in lookupModule() 335 if (Dir.isFramework()) { in lookupModule() 340 FrameworkDirName += Dir.getFrameworkDirRef()->getName(); in lookupModule() 344 bool IsSystem = Dir.getDirCharacteristic() != SrcMgr::C_User; in lookupModule() 354 if (!Dir.isNormalDir()) in lookupModule() 357 bool IsSystem = Dir.isSystemHeaderDirectory(); in lookupModule() [all …]
|
| H A D | ModuleMap.cpp | 431 OptionalDirectoryEntryRef Dir = File.getDir(); in findHeaderInUmbrellaDirs() local 437 StringRef DirName = SourceMgr.getFileManager().getCanonicalName(*Dir); in findHeaderInUmbrellaDirs() 442 auto KnownDir = UmbrellaDirs.find(*Dir); in findHeaderInUmbrellaDirs() 446 IntermediateDirs.push_back(*Dir); in findHeaderInUmbrellaDirs() 454 Dir = SourceMgr.getFileManager().getOptionalDirectoryRef(DirName); in findHeaderInUmbrellaDirs() 455 } while (Dir); in findHeaderInUmbrellaDirs() 747 OptionalDirectoryEntryRef Dir = Header.getDir(); in isHeaderUnavailableInModule() local 749 StringRef DirName = Dir->getName(); in isHeaderUnavailableInModule() 759 auto KnownDir = UmbrellaDirs.find(*Dir); in isHeaderUnavailableInModule() 798 SkippedDirs.push_back(*Dir); in isHeaderUnavailableInModule() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | DirectoryLookup.h | 41 DirectoryEntryRef Dir; member 47 DLU(DirectoryEntryRef Dir) : Dir(Dir) {} in DLU() argument 68 DirectoryLookup(DirectoryEntryRef Dir, SrcMgr::CharacteristicKind DT, in DirectoryLookup() argument 70 : u(Dir), DirCharacteristic(DT), in DirectoryLookup() 90 return isNormalDir() ? &u.Dir.getDirEntry() : nullptr; in getDir() 94 return isNormalDir() ? OptionalDirectoryEntryRef(u.Dir) : std::nullopt; in getDirRef() 100 return isFramework() ? &u.Dir.getDirEntry() : nullptr; in getFrameworkDir() 104 return isFramework() ? OptionalDirectoryEntryRef(u.Dir) : std::nullopt; in getFrameworkDirRef()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOPosix.cpp | 56 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, in ListFilesInDirRecursive() argument 58 auto E = GetEpoch(Dir); in ListFilesInDirRecursive() 62 DIR *D = opendir(Dir.c_str()); in ListFilesInDirRecursive() 64 Printf("%s: %s; exiting\n", strerror(errno), Dir.c_str()); in ListFilesInDirRecursive() 68 std::string Path = DirPlusFile(Dir, E->d_name); in ListFilesInDirRecursive() 82 void IterateDirRecursive(const std::string &Dir, in IterateDirRecursive() argument 83 void (*DirPreCallback)(const std::string &Dir), in IterateDirRecursive() argument 84 void (*DirPostCallback)(const std::string &Dir), in IterateDirRecursive() argument 85 void (*FileCallback)(const std::string &Dir)) { in IterateDirRecursive() argument 86 DirPreCallback(Dir); in IterateDirRecursive() [all …]
|
| H A D | FuzzerIOWindows.cpp | 113 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, in ListFilesInDirRecursive() argument 115 auto E = GetEpoch(Dir); in ListFilesInDirRecursive() 119 std::string Path(Dir); in ListFilesInDirRecursive() 132 Printf("No such file or directory: %s; exiting\n", Dir.c_str()); in ListFilesInDirRecursive() 137 std::string FileName = DirPlusFile(Dir, FindInfo.cFileName); in ListFilesInDirRecursive() 162 void IterateDirRecursive(const std::string &Dir, in IterateDirRecursive() argument 163 void (*DirPreCallback)(const std::string &Dir), in IterateDirRecursive() argument 164 void (*DirPostCallback)(const std::string &Dir), in IterateDirRecursive() argument 165 void (*FileCallback)(const std::string &Dir)) { in IterateDirRecursive() argument 167 DirPreCallback(Dir); in IterateDirRecursive() [all …]
|
| H A D | FuzzerIO.h | 73 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, 76 bool MkDirRecursive(const std::string &Dir); 77 void RmDirRecursive(const std::string &Dir); 82 void IterateDirRecursive(const std::string &Dir, 83 void (*DirPreCallback)(const std::string &Dir), 84 void (*DirPostCallback)(const std::string &Dir), 85 void (*FileCallback)(const std::string &Dir)); 93 void GetSizedFilesFromDir(const std::string &Dir, std::vector<SizedFile> *V);
|
| H A D | FuzzerIO.cpp | 123 void GetSizedFilesFromDir(const std::string &Dir, std::vector<SizedFile> *V) { in GetSizedFilesFromDir() argument 125 ListFilesInDirRecursive(Dir, 0, &Files, /*TopDir*/true); in GetSizedFilesFromDir() 181 const std::string &Dir = DirName(Leaf); in MkDirRecursiveInner() local 183 if (IsDirectory(Dir)) { in MkDirRecursiveInner() 188 bool ret = MkDirRecursiveInner(Dir); in MkDirRecursiveInner() 198 bool MkDirRecursive(const std::string &Dir) { in MkDirRecursive() argument 199 if (Dir.empty()) in MkDirRecursive() 202 if (IsDirectory(Dir)) in MkDirRecursive() 205 return MkDirRecursiveInner(Dir); in MkDirRecursive() 208 void RmDirRecursive(const std::string &Dir) { in RmDirRecursive() argument [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/APINotes/ |
| H A D | APINotesManager.cpp | 230 auto tryAPINotes = [&](DirectoryEntryRef Dir, bool WantPublic) { in getCurrentModuleAPINotes() argument 231 if (auto File = findAPINotesFile(Dir, ModuleName, WantPublic)) { in getCurrentModuleAPINotes() 239 if (auto File = findAPINotesFile(Dir, ExportedModuleName, WantPublic)) in getCurrentModuleAPINotes() 361 OptionalDirectoryEntryRef Dir = File->getDir(); in findAPINotes() local 369 auto Known = Readers.find(*Dir); in findAPINotes() 377 DirsVisited.insert(*Dir); in findAPINotes() 378 Dir = cast<DirectoryEntryRef>(Known->second); in findAPINotes() 389 StringRef Path = Dir->getName(); in findAPINotes() 404 Readers[*Dir] = nullptr; in findAPINotes() 412 Dir = *PublicDir; in findAPINotes() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
| H A D | FileEntry.h | 28 uint32_t Dir = 0; member 33 FileEntry(uint32_t D, uint32_t B) : Dir(D), Base(B) {} in FileEntry() 38 return Base == RHS.Base && Dir == RHS.Dir; 41 return Base != RHS.Base || Dir != RHS.Dir; 57 return llvm::hash_combine(DenseMapInfo<uint32_t>::getHashValue(Val.Dir),
|
| H A D | LookupResult.h | 24 StringRef Dir; ///< Line entry source file directory path. member 31 return LHS.Name == RHS.Name && LHS.Dir == RHS.Dir && LHS.Base == RHS.Base &&
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
| H A D | LookupResult.cpp | 21 if (!Locations[Index].Dir.empty()) { in getSourceFile() 23 Fullpath = std::string(Locations[Index].Dir); in getSourceFile() 26 llvm::sys::path::append(Storage, Locations[Index].Dir, in getSourceFile() 40 if (SL.Dir.size() || SL.Base.size()) { in operator <<() 42 if (!SL.Dir.empty()) { in operator <<() 43 OS << SL.Dir; in operator <<() 44 if (SL.Dir.contains('\\') && !SL.Dir.contains('/')) in operator <<()
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | BareMetal.cpp | 123 SmallString<128> SysRootDir(D.Dir); in computeClangRuntimesSysRoot() 151 llvm::sys::path::append(GCCDir, D.Dir, "..", D.getTargetTriple(), in detectGCCToolchainAdjacent() 185 llvm::sys::path::append(inferredSysRoot, D.Dir, "..", D.getTargetTriple()); in computeSysRoot() 247 getProgramPaths().push_back(getDriver().Dir); in BareMetal() 252 SmallString<128> Dir(SysRootDir); in BareMetal() local 253 llvm::sys::path::append(Dir, M.osSuffix(), "lib"); in BareMetal() 254 getFilePaths().push_back(std::string(Dir)); in BareMetal() 255 getLibraryPaths().push_back(std::string(Dir)); in BareMetal() 403 SmallString<128> Dir(getDriver().ResourceDir); in AddClangSystemIncludeArgs() local 404 llvm::sys::path::append(Dir, "include"); in AddClangSystemIncludeArgs() [all …]
|
| H A D | Hurd.cpp | 103 if (StringRef(D.Dir).starts_with(SysRoot)) { in Hurd() 104 addPathIfExists(D, D.Dir + "/../lib/" + MultiarchTriple, Paths); in Hurd() 105 addPathIfExists(D, D.Dir + "/../" + OSLibDir, Paths); in Hurd() 121 if (StringRef(D.Dir).starts_with(SysRoot)) in Hurd() 122 addPathIfExists(D, D.Dir + "/../lib", Paths); in Hurd() 174 for (StringRef Dir : Dirs) { in AddClangSystemIncludeArgs() local 176 llvm::sys::path::is_absolute(Dir) ? "" : StringRef(SysRoot); in AddClangSystemIncludeArgs() 177 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + Dir); in AddClangSystemIncludeArgs()
|
| H A D | Cygwin.cpp | 41 if (StringRef(D.Dir).starts_with(SysRoot)) in Cygwin() 42 addPathIfExists(D, D.Dir + "/../lib", Paths); in Cygwin() 81 for (StringRef Dir : Dirs) { in AddClangSystemIncludeArgs() local 83 llvm::sys::path::is_absolute(Dir) ? "" : StringRef(SysRoot); in AddClangSystemIncludeArgs() 84 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + Dir); in AddClangSystemIncludeArgs()
|
| H A D | PS4CPU.cpp | 460 SDKRootDir = D.Dir + "/../../"; in PS4PS5Base() 487 auto CheckSDKPartExists = [&](StringRef Dir, StringRef Desc) { in PS4PS5Base() argument 488 if (llvm::sys::fs::exists(Dir)) in PS4PS5Base() 491 << (Twine(Platform) + " " + Desc).str() << Dir << Whence; in PS4PS5Base() 498 SmallString<128> Dir(SDKLibraryRootDir); in PS4PS5Base() local 499 llvm::sys::path::append(Dir, "target/lib"); in PS4PS5Base() 500 if (CheckSDKPartExists(Dir, "system libraries")) in PS4PS5Base() 501 getFilePaths().push_back(std::string(Dir)); in PS4PS5Base() 505 SmallString<128> Dir(SDKHeaderRootDir); in PS4PS5Base() local 506 llvm::sys::path::append(Dir, "target/include"); in PS4PS5Base() [all …]
|
| H A D | MSP430.cpp | 138 SmallString<128> Dir; in computeSysRoot() local 140 llvm::sys::path::append(Dir, GCCInstallation.getParentLibPath(), ".."); in computeSysRoot() 142 llvm::sys::path::append(Dir, getDriver().Dir, ".."); in computeSysRoot() 144 return std::string(Dir); in computeSysRoot() 153 SmallString<128> Dir(computeSysRoot()); in AddClangSystemIncludeArgs() local 154 llvm::sys::path::append(Dir, "msp430-elf", "include"); in AddClangSystemIncludeArgs() 155 addSystemInclude(DriverArgs, CC1Args, Dir.str()); in AddClangSystemIncludeArgs()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/ |
| H A D | DirectiveEmitter.cpp | 227 for (const Directive Dir : Directives) { in hasDuplicateClausesInDirectives() local 230 if (hasDuplicateClauses(Dir.getAllowedClauses(), Dir, Clauses) || in hasDuplicateClausesInDirectives() 231 hasDuplicateClauses(Dir.getAllowedOnceClauses(), Dir, Clauses) || in hasDuplicateClausesInDirectives() 232 hasDuplicateClauses(Dir.getAllowedExclusiveClauses(), Dir, Clauses)) { in hasDuplicateClausesInDirectives() 237 if (hasDuplicateClauses(Dir.getAllowedClauses(), Dir, Clauses) || in hasDuplicateClausesInDirectives() 238 hasDuplicateClauses(Dir.getRequiredClauses(), Dir, Clauses)) { in hasDuplicateClausesInDirectives() 244 Dir.getRecordName()); in hasDuplicateClausesInDirectives() 573 Directive Dir(R); in generateIsAllowedClause() local 575 if (Dir.getAllowedClauses().empty() && in generateIsAllowedClause() 576 Dir.getAllowedOnceClauses().empty() && in generateIsAllowedClause() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | FileEntry.h | 78 DirectoryEntryRef getDir() const { return ME->second->Dir; } in getDir() 130 DirectoryEntryRef Dir; member 133 MapValue(FileEntry &FE, DirectoryEntryRef Dir) : V(&FE), Dir(Dir) {} in MapValue() 134 MapValue(MapEntry &ME, DirectoryEntryRef Dir) : V(&ME), Dir(Dir) {} in MapValue() 316 const DirectoryEntry *Dir = nullptr; // Directory file lives in. 340 const DirectoryEntry *getDir() const { return Dir; }
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ |
| H A D | Multilib.cpp | 299 std::string Dir; // if this record successfully selects a library dir member 350 io.mapOptional("Dir", V.Dir); in mapping() 356 if (V.Dir.empty() && V.Error.empty()) in validate() 358 if (!V.Dir.empty() && !V.Error.empty()) in validate() 360 if (StringRef(V.Dir).starts_with("/")) in validate() 361 return "paths must be relative but \"" + V.Dir + "\" starts with \"/\""; in validate() 470 return "multilib \"" + Lib.Dir + in validate() 494 std::string Dir; in parseYaml() local 495 if (M.Dir != ".") in parseYaml() 496 Dir = "/" + M.Dir; in parseYaml() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | FileCollector.cpp | 28 void FileCollectorBase::addDirectory(const Twine &Dir) { in addDirectory() argument 29 assert(sys::fs::is_directory(Dir)); in addDirectory() 31 addDirectoryImpl(Dir, vfs::getRealFileSystem(), EC); in addDirectory() 137 FileCollector::addDirectoryImpl(const llvm::Twine &Dir, in addDirectoryImpl() argument 140 auto It = FS->dir_begin(Dir, EC); in addDirectoryImpl() 143 addFile(Dir); in addDirectoryImpl() 154 return FS->dir_begin(Dir, EC); in addDirectoryImpl() 278 llvm::vfs::directory_iterator dir_begin(const llvm::Twine &Dir, in dir_begin() argument 280 return Collector->addDirectoryImpl(Dir, FS, EC); in dir_begin()
|
| H A D | Process.cpp | 51 for (StringRef Dir : Dirs) { in FindInEnvPath() local 52 if (Dir.empty()) in FindInEnvPath() 55 if (any_of(IgnoreList, [&](StringRef S) { return fs::equivalent(S, Dir); })) in FindInEnvPath() 58 SmallString<128> FilePath(Dir); in FindInEnvPath()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DependenceGraphBuilder.cpp | 180 const Direction Dir) { in createPiBlocks() argument 185 << (Dir == Direction::Incoming ? "incoming)" : "outgoing)") in createPiBlocks() 188 assert((Dir == Direction::Incoming || Dir == Direction::Outgoing) && in createPiBlocks() 195 if (!EdgeAlreadyCreated[Dir][Kind]) { in createPiBlocks() 196 if (Dir == Direction::Incoming) { in createPiBlocks() 199 } else if (Dir == Direction::Outgoing) { in createPiBlocks() 203 EdgeAlreadyCreated[Dir][Kind] = true; in createPiBlocks()
|