| /src/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | ErrorOr.h | 56 class ErrorOr { 57 template <class OtherT> friend class ErrorOr; variable 74 ErrorOr(E ErrorCode, 82 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function 87 ErrorOr(OtherT &&Val, 93 ErrorOr(const ErrorOr &Other) { in ErrorOr() function 98 ErrorOr(const ErrorOr<OtherT> &Other, 104 explicit ErrorOr( 105 const ErrorOr<OtherT> &Other, 110 ErrorOr(ErrorOr &&Other) { in ErrorOr() function [all …]
|
| H A D | MemoryBuffer.h | 97 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 D | VirtualFileSystem.h | 119 virtual llvm::ErrorOr<Status> status() = 0; 122 virtual llvm::ErrorOr<std::string> getName() { in getName() 130 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 138 static ErrorOr<std::unique_ptr<File>> 139 getWithPath(ErrorOr<std::unique_ptr<File>> Result, const Twine &P); 272 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0; 275 virtual llvm::ErrorOr<std::unique_ptr<File>> 280 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 294 virtual llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const = 0; 324 llvm::ErrorOr<bool> equivalent(const Twine &A, const Twine &B); [all …]
|
| H A D | Program.h | 78 ErrorOr<std::string> 242 ErrorOr<std::wstring> flattenWindowsCommandLine(ArrayRef<StringRef> Args);
|
| /src/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.cpp | 19 llvm::ErrorOr<DependencyScanningWorkerFilesystem::TentativeEntry> 131 llvm::ErrorOr<llvm::vfs::Status> Stat) { in getOrEmplaceEntryForFilename() 186 llvm::ErrorOr<llvm::StringRef> RealPath) { in getOrEmplaceRealPathForFilename() 241 llvm::ErrorOr<const CachedFileSystemEntry &> 244 llvm::ErrorOr<llvm::vfs::Status> Stat = in computeAndStoreResult() 272 llvm::ErrorOr<EntryRef> 289 llvm::ErrorOr<llvm::vfs::Status> 297 llvm::ErrorOr<EntryRef> Result = getOrCreateFileSystemEntry(Filename); in status() 310 llvm::ErrorOr<llvm::vfs::Status> Status = status(Path); in exists() 324 static llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> create(EntryRef Entry); [all …]
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.h | 64 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; 145 using CachedRealPath = llvm::ErrorOr<std::string>; 190 llvm::ErrorOr<llvm::vfs::Status> Stat); 214 llvm::ErrorOr<StringRef> RealPath); 314 llvm::ErrorOr<EntryRef> unwrapError() const { in unwrapError() 347 llvm::ErrorOr<llvm::vfs::Status> status(const Twine &Path) override; 348 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> 360 llvm::ErrorOr<EntryRef> getOrCreateFileSystemEntry(StringRef Filename); [all …]
|
| /src/contrib/llvm-project/llvm/lib/Support/ |
| H A D | MemoryBuffer.cpp | 124 static ErrorOr<std::unique_ptr<MB>> 143 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>> 163 ErrorOr<std::unique_ptr<MemoryBuffer>> 176 ErrorOr<std::unique_ptr<MemoryBuffer>> 252 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>> 260 ErrorOr<std::unique_ptr<MemoryBuffer>> 270 static ErrorOr<std::unique_ptr<MB>> 276 static ErrorOr<std::unique_ptr<MB>> 291 ErrorOr<std::unique_ptr<WritableMemoryBuffer>> 299 ErrorOr<std::unique_ptr<WritableMemoryBuffer>> [all …]
|
| H A D | VirtualFileSystem.cpp | 118 ErrorOr<std::unique_ptr<MemoryBuffer>> 154 llvm::ErrorOr<bool> FileSystem::equivalent(const Twine &A, const Twine &B) { in equivalent() 207 ErrorOr<Status> status() override; 208 ErrorOr<std::string> getName() override; 209 ErrorOr<std::unique_ptr<MemoryBuffer>> getBuffer(const Twine &Name, 221 ErrorOr<Status> RealFile::status() { in status() 232 ErrorOr<std::string> RealFile::getName() { in getName() 236 ErrorOr<std::unique_ptr<MemoryBuffer>> 280 ErrorOr<Status> status(const Twine &Path) override; 281 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override; [all …]
|
| /src/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | FileManager.h | 86 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>>> 193 llvm::ErrorOr<const DirectoryEntry *> 210 llvm::ErrorOr<const FileEntry *> 287 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 291 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 301 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
|
| /src/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | SampleProfReader.h | 276 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); 642 ErrorOr<SampleContextFrames> readContextFromTable(size_t *RetIdx = nullptr); [all …]
|
| H A D | SampleProfWriter.h | 119 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>>
|
| /src/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
| H A D | LTOModule.h | 97 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>>
|
| /src/contrib/llvm-project/llvm/lib/LTO/ |
| H A D | LTOModule.cpp | 64 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in isBitcodeFile() 90 ErrorOr<std::string> TripleOrErr = in isBitcodeForTarget() 103 ErrorOr<std::string> ProducerOrErr = expectedToErrorOrAndEmitErrors( in getProducerString() 110 ErrorOr<std::unique_ptr<LTOModule>> 113 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromFile() 124 ErrorOr<std::unique_ptr<LTOModule>> 130 ErrorOr<std::unique_ptr<LTOModule>> 134 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromOpenFileSlice() 146 ErrorOr<std::unique_ptr<LTOModule>> 155 ErrorOr<std::unique_ptr<LTOModule>> [all …]
|
| /src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 230 virtual ErrorOr<uint64_t> getInstWeight(const InstructionT &Inst); 231 ErrorOr<uint64_t> getInstWeightImpl(const InstructionT &Inst); 232 virtual ErrorOr<uint64_t> getProbeWeight(const InstructionT &Inst); 233 ErrorOr<uint64_t> getBlockWeight(const BasicBlockT *BB); 401 ErrorOr<uint64_t> 409 ErrorOr<uint64_t> 427 ErrorOr<uint64_t> R = FS->findSamplesAt(LineOffset, Discriminator); 456 ErrorOr<uint64_t> 520 ErrorOr<uint64_t> 525 const ErrorOr<uint64_t> &R = getInstWeight(I); [all …]
|
| /src/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | FileSystem.cpp | 72 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()
|
| /src/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCPseudoProbe.cpp | 337 template <typename T> ErrorOr<T> MCPseudoProbeDecoder::readUnencodedNumber() { in readUnencodedNumber() 342 return ErrorOr<T>(Val); in readUnencodedNumber() 345 template <typename T> ErrorOr<T> MCPseudoProbeDecoder::readUnsignedNumber() { in readUnsignedNumber() 352 return ErrorOr<T>(static_cast<T>(Val)); in readUnsignedNumber() 355 template <typename T> ErrorOr<T> MCPseudoProbeDecoder::readSignedNumber() { in readSignedNumber() 362 return ErrorOr<T>(static_cast<T>(Val)); in readSignedNumber() 365 ErrorOr<StringRef> MCPseudoProbeDecoder::readString(uint32_t Size) { in readString() 371 return ErrorOr<StringRef>(Str); in readString()
|
| /src/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | ARMWinEHPrinter.h | 145 ErrorOr<object::SectionRef> 148 ErrorOr<object::SymbolRef> 152 ErrorOr<object::SymbolRef> 156 ErrorOr<object::SymbolRef>
|
| /src/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCPseudoProbe.h | 362 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);
|
| /src/contrib/llvm-project/clang/lib/Basic/ |
| H A D | FileSystemStatCache.cpp | 47 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = FS.status(Path); in get() 70 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = (*OwnedFile)->status(); in get()
|
| H A D | FileManager.cpp | 199 llvm::ErrorOr<const DirectoryEntry *> 207 llvm::ErrorOr<const FileEntry *> 475 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>(); in getBypassFile() 531 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 564 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 605 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
|
| /src/contrib/llvm-project/lld/include/lld/Common/ |
| H A D | LLVM.h | 36 template <typename T> class ErrorOr; variable 75 using llvm::ErrorOr;
|
| /src/contrib/llvm-project/clang/lib/Driver/ |
| H A D | Distro.cpp | 24 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File = in DetectOsRelease() 52 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File = in DetectLsbRelease() 118 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File = in DetectDistro()
|
| /src/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitReader.cpp | 63 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in LLVMParseBitcodeInContext2() 110 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = expectedToErrorOrAndEmitErrors( in LLVMGetBitcodeModuleInContext2()
|
| /src/contrib/llvm-project/llvm/lib/IRReader/ |
| H A D | IRReader.cpp | 57 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getLazyIRFileModule() 97 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseIRFile()
|
| /src/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | SampleProfReader.cpp | 468 template <typename T> ErrorOr<T> SampleProfileReaderBinary::readNumber() { in readNumber() 486 ErrorOr<StringRef> SampleProfileReaderBinary::readString() { in readString() 499 ErrorOr<T> SampleProfileReaderBinary::readUnencodedNumber() { in readUnencodedNumber() 512 inline ErrorOr<size_t> SampleProfileReaderBinary::readStringIndex(T &Table) { in readStringIndex() 521 ErrorOr<FunctionId> 531 ErrorOr<SampleContextFrames> 543 ErrorOr<std::pair<SampleContext, uint64_t>> 1524 template <typename T> ErrorOr<T> SampleProfileReaderGCC::readNumber() { in readNumber() 1540 ErrorOr<StringRef> SampleProfileReaderGCC::readString() { in readString() 1803 static ErrorOr<std::unique_ptr<MemoryBuffer>> [all …]
|