Home
last modified time | relevance | path

Searched refs:ErrorOr (Results 1 – 25 of 169) sorted by relevance

1234567

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DErrorOr.h56 class ErrorOr {
74 ErrorOr(E ErrorCode,
93 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
98 ErrorOr(const ErrorOr<OtherT> &Other,
104 explicit ErrorOr(
110 ErrorOr(ErrorOr &&Other) { in ErrorOr() function
115 ErrorOr(ErrorOr<OtherT> &&Other,
123 explicit ErrorOr(
129 ErrorOr &operator=(const ErrorOr &Other) {
134 ErrorOr &operator=(ErrorOr &&Other) {
[all …]
H A DMemoryBuffer.h97 static ErrorOr<std::unique_ptr<MemoryBuffer>>
105 static ErrorOr<std::unique_ptr<MemoryBuffer>>
111 static ErrorOr<std::unique_ptr<MemoryBuffer>>
125 static ErrorOr<std::unique_ptr<MemoryBuffer>>
145 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
149 static ErrorOr<std::unique_ptr<MemoryBuffer>>
155 static ErrorOr<std::unique_ptr<MemoryBuffer>>
202 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
207 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
266 static ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
[all …]
H A DVirtualFileSystem.h121 virtual llvm::ErrorOr<Status> status() = 0;
124 virtual llvm::ErrorOr<std::string> getName() { in getName()
132 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
140 static ErrorOr<std::unique_ptr<File>>
275 virtual llvm::ErrorOr<std::unique_ptr<File>>
280 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
380 llvm::ErrorOr<std::unique_ptr<File>>
431 llvm::ErrorOr<std::unique_ptr<File>>
590 llvm::ErrorOr<std::unique_ptr<File>>
994 ErrorOr<LookupResult>
[all …]
H A DProgram.h78 ErrorOr<std::string>
239 ErrorOr<std::wstring> flattenWindowsCommandLine(ArrayRef<StringRef> Args);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DMemoryBuffer.cpp116 static ErrorOr<std::unique_ptr<MB>>
155 ErrorOr<std::unique_ptr<MemoryBuffer>>
168 ErrorOr<std::unique_ptr<MemoryBuffer>>
252 ErrorOr<std::unique_ptr<MemoryBuffer>>
262 static ErrorOr<std::unique_ptr<MB>>
268 static ErrorOr<std::unique_ptr<MB>>
283 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
291 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
452 static ErrorOr<std::unique_ptr<MB>>
523 ErrorOr<std::unique_ptr<MemoryBuffer>>
[all …]
H A DVirtualFileSystem.cpp118 ErrorOr<std::unique_ptr<MemoryBuffer>>
197 ErrorOr<Status> status() override;
211 ErrorOr<Status> RealFile::status() { in status()
226 ErrorOr<std::unique_ptr<MemoryBuffer>>
315 ErrorOr<std::unique_ptr<File>>
442 ErrorOr<std::unique_ptr<File>>
453 llvm::ErrorOr<std::string>
1316 llvm::ErrorOr<std::string>
2362 ErrorOr<Status>
2439 ErrorOr<std::unique_ptr<File>>
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.cpp19 llvm::ErrorOr<DependencyScanningWorkerFilesystem::TentativeEntry>
227 llvm::ErrorOr<const CachedFileSystemEntry &>
230 llvm::ErrorOr<llvm::vfs::Status> Stat = in computeAndStoreResult()
258 llvm::ErrorOr<EntryRef>
288 llvm::ErrorOr<llvm::vfs::Status>
314 llvm::ErrorOr<llvm::vfs::Status> status() override { return Stat; } in status()
316 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
331 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
344 return llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>( in create()
348 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DFileManager.h86 llvm::StringMap<llvm::ErrorOr<DirectoryEntry &>, llvm::BumpPtrAllocator>
94 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>, llvm::BumpPtrAllocator>
101 std::unique_ptr<llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>
187 llvm::ErrorOr<const DirectoryEntry *>
204 llvm::ErrorOr<const FileEntry *>
277 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
280 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
288 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.h64 CachedFileSystemEntry(llvm::ErrorOr<llvm::vfs::Status> Stat) in CachedFileSystemEntry()
70 CachedFileSystemEntry(llvm::ErrorOr<llvm::vfs::Status> Stat, in CachedFileSystemEntry()
135 llvm::ErrorOr<llvm::vfs::Status> MaybeStat;
183 llvm::ErrorOr<llvm::vfs::Status> Stat);
260 llvm::ErrorOr<EntryRef> unwrapError() const { in unwrapError()
289 llvm::ErrorOr<llvm::vfs::Status> status(const Twine &Path) override;
290 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
299 llvm::ErrorOr<EntryRef>
312 llvm::ErrorOr<const CachedFileSystemEntry &>
334 llvm::ErrorOr<TentativeEntry> readFile(StringRef Filename);
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProfReader.h276 static ErrorOr<std::unique_ptr<SampleProfileReaderItaniumRemapper>>
282 static ErrorOr<std::unique_ptr<SampleProfileReaderItaniumRemapper>>
438 static ErrorOr<std::unique_ptr<SampleProfileReader>>
446 static ErrorOr<std::unique_ptr<SampleProfileReader>>
605 template <typename T> ErrorOr<T> readNumber();
609 template <typename T> ErrorOr<T> readUnencodedNumber();
617 ErrorOr<StringRef> readString();
620 template <typename T> inline ErrorOr<size_t> readStringIndex(T &Table);
638 ErrorOr<FunctionId> readStringFromTable(size_t *RetIdx = nullptr);
840 template <typename T> ErrorOr<T> readNumber();
[all …]
H A DSampleProfWriter.h119 static ErrorOr<std::unique_ptr<SampleProfileWriter>>
124 static ErrorOr<std::unique_ptr<SampleProfileWriter>>
185 friend ErrorOr<std::unique_ptr<SampleProfileWriter>>
217 friend ErrorOr<std::unique_ptr<SampleProfileWriter>>
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DLTOModule.h97 static ErrorOr<std::unique_ptr<LTOModule>>
100 static ErrorOr<std::unique_ptr<LTOModule>>
103 static ErrorOr<std::unique_ptr<LTOModule>>
107 static ErrorOr<std::unique_ptr<LTOModule>>
110 static ErrorOr<std::unique_ptr<LTOModule>>
219 static ErrorOr<std::unique_ptr<LTOModule>>
/freebsd-14.2/contrib/llvm-project/llvm/lib/LTO/
H A DLTOModule.cpp64 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in isBitcodeFile()
90 ErrorOr<std::string> TripleOrErr = in isBitcodeForTarget()
110 ErrorOr<std::unique_ptr<LTOModule>>
124 ErrorOr<std::unique_ptr<LTOModule>>
130 ErrorOr<std::unique_ptr<LTOModule>>
146 ErrorOr<std::unique_ptr<LTOModule>>
155 ErrorOr<std::unique_ptr<LTOModule>>
163 ErrorOr<std::unique_ptr<LTOModule>> Ret = in createInLocalContext()
170 static ErrorOr<std::unique_ptr<Module>>
194 ErrorOr<std::unique_ptr<LTOModule>>
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/source/Host/common/
H A DFileSystem.cpp72 llvm::ErrorOr<vfs::Status>
80 llvm::ErrorOr<vfs::Status> FileSystem::GetStatus(const Twine &path) const { in GetStatus()
92 ErrorOr<vfs::Status> status = m_fs->status(path); in GetModificationTime()
105 ErrorOr<vfs::Status> status = m_fs->status(path); in GetByteSize()
129 ErrorOr<vfs::Status> status = m_fs->status(path); in GetPermissions()
152 ErrorOr<vfs::Status> status = m_fs->status(path); in IsDirectory()
181 ErrorOr<vfs::Status> Status = m_fs->status(Item.path()); in EnumerateDirectory()
331 llvm::ErrorOr<std::string> error_or_path = in ResolveExecutableLocation()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h203 ErrorOr<uint64_t> getInstWeightImpl(const InstructionT &Inst);
205 ErrorOr<uint64_t> getBlockWeight(const BasicBlockT *BB);
373 ErrorOr<uint64_t>
381 ErrorOr<uint64_t>
428 ErrorOr<uint64_t>
492 ErrorOr<uint64_t>
497 const ErrorOr<uint64_t> &R = getInstWeight(I);
503 return HasWeight ? ErrorOr<uint64_t>(Max) : std::error_code();
517 ErrorOr<uint64_t> Weight = getBlockWeight(&BB);
904 ErrorOr<uint64_t> Weight = getBlockWeight(&BI);
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCPseudoProbe.cpp342 template <typename T> ErrorOr<T> MCPseudoProbeDecoder::readUnencodedNumber() { in readUnencodedNumber()
347 return ErrorOr<T>(Val); in readUnencodedNumber()
350 template <typename T> ErrorOr<T> MCPseudoProbeDecoder::readUnsignedNumber() { in readUnsignedNumber()
357 return ErrorOr<T>(static_cast<T>(Val)); in readUnsignedNumber()
360 template <typename T> ErrorOr<T> MCPseudoProbeDecoder::readSignedNumber() { in readSignedNumber()
367 return ErrorOr<T>(static_cast<T>(Val)); in readSignedNumber()
370 ErrorOr<StringRef> MCPseudoProbeDecoder::readString(uint32_t Size) { in readString()
376 return ErrorOr<StringRef>(Str); in readString()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DARMWinEHPrinter.h145 ErrorOr<object::SectionRef>
148 ErrorOr<object::SymbolRef>
152 ErrorOr<object::SymbolRef>
156 ErrorOr<object::SymbolRef>
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DFileSystemStatCache.cpp47 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = FS.status(Path); in get()
70 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = (*OwnedFile)->status(); in get()
H A DFileManager.cpp189 llvm::ErrorOr<const DirectoryEntry *>
197 llvm::ErrorOr<const FileEntry *>
481 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>(); in getBypassFile()
538 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
566 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
607 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCPseudoProbe.h362 template <typename T> ErrorOr<T> readUnencodedNumber();
363 template <typename T> ErrorOr<T> readUnsignedNumber();
364 template <typename T> ErrorOr<T> readSignedNumber();
365 ErrorOr<StringRef> readString(uint32_t Size);
/freebsd-14.2/contrib/llvm-project/lld/include/lld/Common/
H A DLLVM.h36 template <typename T> class ErrorOr; variable
75 using llvm::ErrorOr;
H A DErrorHandler.h162 template <class T> T check(ErrorOr<T> e) { in check()
182 T check2(ErrorOr<T> e, llvm::function_ref<std::string()> prefix) { in check2()
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/
H A DDistro.cpp24 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File = in DetectOsRelease()
52 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File = in DetectLsbRelease()
117 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File = in DetectDistro()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitReader.cpp63 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in LLVMParseBitcodeInContext2()
110 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = expectedToErrorOrAndEmitErrors( in LLVMGetBitcodeModuleInContext2()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IRReader/
H A DIRReader.cpp57 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getLazyIRFileModule()
97 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseIRFile()

1234567