Home
last modified time | relevance | path

Searched refs:Stat (Results 1 – 25 of 40) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.cpp25 llvm::ErrorOr<llvm::vfs::Status> Stat = (*MaybeFile)->status(); in createFileEntry() local
26 if (!Stat) in createFileEntry()
27 return Stat.getError(); in createFileEntry()
31 F.getBuffer(Stat->getName()); in createFileEntry()
45 Result.MaybeStat = std::move(*Stat); in createFileEntry()
56 Result.MaybeStat = llvm::vfs::Status(Stat->getName(), Stat->getUniqueID(), in createFileEntry()
57 Stat->getLastModificationTime(), in createFileEntry()
58 Stat->getUser(), Stat->getGroup(), Size, in createFileEntry()
59 Stat->getType(), Stat->getPermissions()); in createFileEntry()
95 CachedFileSystemEntry::createDirectoryEntry(llvm::vfs::Status &&Stat) { in createDirectoryEntry() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DStatistic.cpp155 for (auto *Stat : Stats) { in reset() local
158 Stat->Initialized = false; in reset()
159 Stat->Value = 0; in reset()
209 for (const TrackingStatistic *Stat : Stats.Stats) { in PrintStatisticsJSON() local
211 assert(yaml::needsQuotes(Stat->getDebugType()) == yaml::QuotingType::None && in PrintStatisticsJSON()
213 assert(yaml::needsQuotes(Stat->getName()) == yaml::QuotingType::None && in PrintStatisticsJSON()
215 OS << "\t\"" << Stat->getDebugType() << '.' << Stat->getName() << "\": " in PrintStatisticsJSON()
216 << Stat->getValue(); in PrintStatisticsJSON()
258 for (const auto &Stat : StatInfo->statistics()) in GetStatistics() local
259 ReturnStats.emplace_back(Stat->getName(), Stat->getValue()); in GetStatistics()
H A DFileCollector.cpp159 const sys::fs::file_status &Stat) { in copyAccessAndModificationTime() argument
167 FD, Stat.getLastAccessedTime(), Stat.getLastModificationTime())) in copyAccessAndModificationTime()
186 sys::fs::file_status Stat; in copyFiles() local
187 if (std::error_code EC = sys::fs::status(entry.VPath, Stat)) { in copyFiles()
194 if (Stat.type() == sys::fs::file_type::file_not_found) in copyFiles()
205 if (Stat.type() == sys::fs::file_type::directory_file) { in copyFiles()
231 copyAccessAndModificationTime(entry.RPath, Stat); in copyFiles()
H A DTimeProfiler.cpp172 auto combineStat = [&](const auto &Stat) { in write() argument
173 StringRef Key = Stat.getKey(); in write()
174 auto Value = Stat.getValue(); in write()
179 for (const auto &Stat : CountAndTotalPerName) in write() local
180 combineStat(Stat); in write()
182 for (const auto &Stat : TTP->CountAndTotalPerName) in write() local
183 combineStat(Stat); in write()
H A DFileOutputBuffer.cpp171 fs::file_status Stat; in create() local
172 fs::status(Path, Stat); in create()
182 switch (Stat.type()) { in create()
H A DVirtualFileSystem.cpp570 Status Stat; member in llvm::vfs::detail::InMemoryFile
574 InMemoryFile(Status Stat, std::unique_ptr<llvm::MemoryBuffer> Buffer) in InMemoryFile() argument
575 : InMemoryNode(Stat.getName(), IME_File), Stat(std::move(Stat)), in InMemoryFile()
582 return Status::copyWithNewName(Stat, RequestedName); in getStatus()
587 return (std::string(Indent, ' ') + Stat.getName() + "\n").str(); in toString()
645 Status Stat; member in llvm::vfs::detail::InMemoryDirectory
649 InMemoryDirectory(Status Stat) in InMemoryDirectory() argument
650 : InMemoryNode(Stat.getName(), IME_Directory), Stat(std::move(Stat)) {} in InMemoryDirectory()
656 return Status::copyWithNewName(Stat, RequestedName); in getStatus()
677 (std::string(Indent, ' ') + Stat.getName() + "\n").str(); in toString()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/
H A DDumpOutputStyle.h40 struct Stat { struct
41 Stat() {} in Stat() argument
42 Stat(uint32_t Count, uint32_t Size) : Count(Count), Size(Size) {} in Stat() argument
52 using KindAndStat = std::pair<uint32_t, Stat>;
60 Stat Totals;
61 DenseMap<uint32_t, Stat> Individual;
H A DDumpOutputStyle.cpp758 for (const auto &Stat : Stats.Individual) { in getLongestTypeLeafName() local
759 std::string Label = getUdtStatLabel(Stat.first); in getLongestTypeLeafName()
779 StringMap<StatCollection::Stat> NamespacedStats; in dumpUdtStats()
867 for (const auto &Stat : UdtTargetStats.getStatsSortedBySize()) { in dumpUdtStats() local
868 std::string Label = getUdtStatLabel(Stat.first); in dumpUdtStats()
871 fmt_align(Stat.second.Count, AlignStyle::Right, CD), in dumpUdtStats()
872 fmt_align(Stat.second.Size, AlignStyle::Right, SD)); in dumpUdtStats()
882 StatCollection::Stat Stat; in dumpUdtStats() member
887 for (const auto &Stat : NamespacedStats) in dumpUdtStats() local
888 NamespacedStatsSorted.push_back({Stat.getKey(), Stat.second}); in dumpUdtStats()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp271 const sys::fs::file_status &Stat, in restoreStatOnFile() argument
287 FD, Stat.getLastAccessedTime(), Stat.getLastModificationTime())) in restoreStatOnFile()
297 sys::fs::changeFileOwnership(FD, Stat.getUser(), Stat.getGroup()); in restoreStatOnFile()
300 sys::fs::perms Perm = Stat.permissions(); in restoreStatOnFile()
323 sys::fs::file_status Stat; in executeObjcopy() local
325 if (auto EC = sys::fs::status(Config.InputFilename, Stat)) in executeObjcopy()
328 Stat.permissions(static_cast<sys::fs::perms>(0777)); in executeObjcopy()
398 if (Error E = restoreStatOnFile(Config.OutputFilename, Stat, ConfigMgr)) in executeObjcopy()
402 Stat.permissions(static_cast<sys::fs::perms>(0666)); in executeObjcopy()
403 if (Error E = restoreStatOnFile(Config.SplitDWO, Stat, ConfigMgr)) in executeObjcopy()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/src/
H A Dstatistics.cc151 for(const auto& Stat : *reports[0].statistics) { in ComputeStats()
154 data.benchmark_name = reports[0].benchmark_name + "_" + Stat.name_; in ComputeStats()
158 data.real_accumulated_time = Stat.compute_(real_accumulated_time_stat); in ComputeStats()
159 data.cpu_accumulated_time = Stat.compute_(cpu_accumulated_time_stat); in ComputeStats()
160 data.bytes_per_second = Stat.compute_(bytes_per_second_stat); in ComputeStats()
161 data.items_per_second = Stat.compute_(items_per_second_stat); in ComputeStats()
167 const auto uc_stat = Stat.compute_(kv.second.s); in ComputeStats()
H A Dbenchmark.cc404 for(const auto& Stat : *benchmark.statistics) in RunBenchmarks()
405 stat_field_width = std::max<size_t>(stat_field_width, Stat.name_.size()); in RunBenchmarks()
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
H A Dstatistics.cc147 for (const auto& Stat : *reports[0].statistics) { in ComputeStats()
152 data.aggregate_name = Stat.name_; in ComputeStats()
162 data.real_accumulated_time = Stat.compute_(real_accumulated_time_stat); in ComputeStats()
163 data.cpu_accumulated_time = Stat.compute_(cpu_accumulated_time_stat); in ComputeStats()
178 const auto uc_stat = Stat.compute_(kv.second.s); in ComputeStats()
H A Dbenchmark.cc239 for (const auto& Stat : *benchmark.statistics) in RunBenchmarks()
240 stat_field_width = std::max<size_t>(stat_field_width, Stat.name_.size()); in RunBenchmarks()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/dsymutil/
H A DBinaryHolder.cpp100 llvm::ErrorOr<vfs::Status> Stat = VFS->status(Filename); in load() local
101 if (!Stat) in load()
102 return errorCodeToError(Stat.getError()); in load()
104 Stat->getLastModificationTime())) in load()
107 << Stat->getLastModificationTime() in load()
H A DDwarfLinkerForBinary.cpp406 sys::fs::file_status Stat; in link() local
407 if (auto Err = sys::fs::status(File, Stat)) { in link()
416 Stat.getLastModificationTime()); in link()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/
H A DPDBSymbol.cpp133 for (auto &Stat : Stats) { in dumpChildStats() local
134 outs() << Stat.first << ": " << Stat.second << "\n"; in dumpChildStats()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dsftp-server.c85 typedef struct Stat Stat; typedef
87 struct Stat { struct
612 send_names(u_int32_t id, int count, const Stat *stats) in send_names()
1132 Stat *stats; in process_readdir()
1135 stats = xcalloc(nstats, sizeof(Stat)); in process_readdir()
1139 stats = xreallocarray(stats, nstats, sizeof(Stat)); in process_readdir()
1243 Stat s; in process_realpath()
1319 Stat s; in process_readlink()
1529 Stat s; in process_extended_expand()
1676 Stat s; in process_extended_home_directory()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/src/
H A Dgtest-filepath.cc213 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
240 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp268 llvm::Statistic &Stat) { in reportInvalidCandidate() argument
269 ++Stat; in reportInvalidCandidate()
271 << Stat.getDesc()); in reportInvalidCandidate()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopFuse.cpp372 bool reportInvalidCandidate(llvm::Statistic &Stat) const { in reportInvalidCandidate()
376 ++Stat; in reportInvalidCandidate()
377 ORE.emit(OptimizationRemarkAnalysis(DEBUG_TYPE, Stat.getName(), in reportInvalidCandidate()
380 << "Loop is not a candidate for fusion: " << Stat.getDesc()); in reportInvalidCandidate()
1534 llvm::Statistic &Stat) { in reportLoopFusion()
1539 ++Stat; in reportLoopFusion()
1540 ORE.emit(RemarkKind(DEBUG_TYPE, Stat.getName(), FC0.L->getStartLoc(), in reportLoopFusion()
1545 << ": " << Stat.getDesc()); in reportLoopFusion()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.h54 static CachedFileSystemEntry createDirectoryEntry(llvm::vfs::Status &&Stat);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/Unix/
H A DPath.inc1055 struct stat Stat;
1056 if (fstat(ResultFD, &Stat) == -1)
1058 if (S_ISREG(Stat.st_mode)) {
1060 !Stat.st_tag.ft_txtflag && !Stat.st_tag.ft_ccsid &&
1061 Stat.st_size == 0;
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/windows/
H A Dobjidl.d588 HRESULT Stat(STATSTG*, DWORD);
757 HRESULT Stat(STATSTG*, DWORD);
804 HRESULT Stat(STATSTG*, DWORD);
844 HRESULT Stat(STATPROPSTG*);
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h1989 inline int Stat(const char* path, StatStruct* buf) { return _stat(path, buf); }
2002 inline int Stat(const char* path, StatStruct* buf) { return stat(path, buf); }
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DStackSafetyAnalysis.cpp1009 auto CountParamAccesses = [&](auto &Stat) { in generateParamAccessSummary() argument
1015 Stat += FS->paramAccesses().size(); in generateParamAccessSummary()

12