Home
last modified time | relevance | path

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

1234567891011

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DErrorOrTest.cpp19 ErrorOr<int> t1() { return 1; } in t1()
20 ErrorOr<int> t2() { return errc::invalid_argument; } in t2()
22 TEST(ErrorOr, SimpleValue) { in TEST() argument
23 ErrorOr<int> a = t1(); in TEST()
29 ErrorOr<int> b = a; in TEST()
40 ErrorOr<std::unique_ptr<int> > t3() { in t3()
44 TEST(ErrorOr, Types) { in TEST() argument
46 ErrorOr<int&> a(x); in TEST()
57 TEST(ErrorOr, Covariant) { in TEST() argument
58 ErrorOr<B*> b(ErrorOr<D*>(nullptr)); in TEST()
[all …]
/external/llvm/unittests/Support/
DErrorOrTest.cpp19 ErrorOr<int> t1() { return 1; } in t1()
20 ErrorOr<int> t2() { return errc::invalid_argument; } in t2()
22 TEST(ErrorOr, SimpleValue) { in TEST() argument
23 ErrorOr<int> a = t1(); in TEST()
29 ErrorOr<int> b = a; in TEST()
40 ErrorOr<std::unique_ptr<int> > t3() { in t3()
44 TEST(ErrorOr, Types) { in TEST() argument
46 ErrorOr<int&> a(x); in TEST()
57 TEST(ErrorOr, Covariant) { in TEST() argument
58 ErrorOr<B*> b(ErrorOr<D*>(nullptr)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DErrorOr.h57 class ErrorOr {
58 template <class OtherT> friend class ErrorOr; variable
75 ErrorOr(E ErrorCode,
83 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
88 ErrorOr(OtherT &&Val,
95 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
100 ErrorOr(
101 const ErrorOr<OtherT> &Other,
108 explicit ErrorOr(
109 const ErrorOr<OtherT> &Other,
[all …]
DMemoryBuffer.h80 static ErrorOr<std::unique_ptr<MemoryBuffer>>
87 static ErrorOr<std::unique_ptr<MemoryBuffer>>
93 static ErrorOr<std::unique_ptr<MemoryBuffer>>
103 static ErrorOr<std::unique_ptr<MemoryBuffer>>
122 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
126 static ErrorOr<std::unique_ptr<MemoryBuffer>>
131 static ErrorOr<std::unique_ptr<MemoryBuffer>>
180 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
185 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
242 static ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DErrorOr.h68 class ErrorOr {
69 template <class OtherT> friend class ErrorOr; variable
84 ErrorOr(E ErrorCode,
92 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
97 ErrorOr(OtherT &&Val,
104 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
109 ErrorOr(
110 const ErrorOr<OtherT> &Other,
117 explicit ErrorOr(
118 const ErrorOr<OtherT> &Other,
[all …]
DMemoryBuffer.h75 static ErrorOr<std::unique_ptr<MemoryBuffer>>
82 static ErrorOr<std::unique_ptr<MemoryBuffer>>
88 static ErrorOr<std::unique_ptr<MemoryBuffer>>
98 static ErrorOr<std::unique_ptr<MemoryBuffer>>
129 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
133 static ErrorOr<std::unique_ptr<MemoryBuffer>>
138 static ErrorOr<std::unique_ptr<MemoryBuffer>>
/external/llvm/include/llvm/Support/
DErrorOr.h68 class ErrorOr {
69 template <class OtherT> friend class ErrorOr; variable
84 ErrorOr(E ErrorCode,
92 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
97 ErrorOr(OtherT &&Val,
104 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
109 ErrorOr(
110 const ErrorOr<OtherT> &Other,
117 explicit ErrorOr(
118 const ErrorOr<OtherT> &Other,
[all …]
DMemoryBuffer.h71 static ErrorOr<std::unique_ptr<MemoryBuffer>>
78 static ErrorOr<std::unique_ptr<MemoryBuffer>>
88 static ErrorOr<std::unique_ptr<MemoryBuffer>>
119 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
123 static ErrorOr<std::unique_ptr<MemoryBuffer>>
128 static ErrorOr<std::unique_ptr<MemoryBuffer>>
/external/llvm/tools/obj2yaml/
Delf2yaml.cpp40 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr);
41 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr);
42 ErrorOr<ELFYAML::RawContentSection *>
44 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr);
45 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr);
46 ErrorOr<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr);
50 ErrorOr<ELFYAML::Object *> dump();
60 ErrorOr<ELFYAML::Object *> ELFDumper<ELFT>::dump() { in dump()
86 ErrorOr<ArrayRef<Elf_Word>> TableOrErr = Obj.getSHNDXTable(Sec); in dump()
93 ErrorOr<ELFYAML::RelocationSection *> S = dumpRelaSection(&Sec); in dump()
[all …]
/external/llvm/lib/DebugInfo/CodeView/
DTypeRecord.cpp21 ErrorOr<MemberPointerInfo>
34 ErrorOr<ModifierRecord> ModifierRecord::deserialize(TypeRecordKind Kind, in deserialize()
46 ErrorOr<ProcedureRecord> ProcedureRecord::deserialize(TypeRecordKind Kind, in deserialize()
55 ErrorOr<MemberFunctionRecord>
65 ErrorOr<MemberFuncIdRecord>
73 ErrorOr<ArgListRecord> ArgListRecord::deserialize(TypeRecordKind Kind, in deserialize()
84 ErrorOr<PointerRecord> PointerRecord::deserialize(TypeRecordKind Kind, in deserialize()
106 ErrorOr<NestedTypeRecord>
114 ErrorOr<ArrayRecord> ArrayRecord::deserialize(TypeRecordKind Kind, in deserialize()
123 ErrorOr<ClassRecord> ClassRecord::deserialize(TypeRecordKind Kind, in deserialize()
[all …]
/external/llvm/lib/Object/
DModuleSummaryIndexObjectFile.cpp36 ErrorOr<MemoryBufferRef>
50 ErrorOr<MemoryBufferRef>
75 ErrorOr<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in hasGlobalValueSummaryInMemBuffer()
85 ErrorOr<std::unique_ptr<ModuleSummaryIndexObjectFile>>
91 ErrorOr<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in create()
95 ErrorOr<std::unique_ptr<ModuleSummaryIndex>> IOrErr = in create()
109 ErrorOr<std::unique_ptr<ModuleSummaryIndex>> llvm::getModuleSummaryIndexForFile( in getModuleSummaryIndexForFile()
111 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getModuleSummaryIndexForFile()
117 ErrorOr<std::unique_ptr<object::ModuleSummaryIndexObjectFile>> ObjOrErr = in getModuleSummaryIndexForFile()
DArchive.cpp45 ErrorOr<uint32_t> ArchiveMemberHeader::getSize() const { in getSize()
103 ErrorOr<uint64_t> MemberSize = getRawSize(); in Child()
122 ErrorOr<uint64_t> Archive::Child::getSize() const { in getSize()
124 ErrorOr<uint32_t> Size = getHeader()->getSize(); in getSize()
132 ErrorOr<uint64_t> Archive::Child::getRawSize() const { in getRawSize()
133 ErrorOr<uint32_t> Size = getHeader()->getSize(); in getRawSize()
144 ErrorOr<std::string> Archive::Child::getFullName() const { in getFullName()
146 ErrorOr<StringRef> NameOrErr = getName(); in getFullName()
159 ErrorOr<StringRef> Archive::Child::getBuffer() const { in getBuffer()
161 ErrorOr<uint32_t> Size = getSize(); in getBuffer()
[all …]
/external/llvm/tools/dsymutil/
DBinaryHolder.h56 ErrorOr<std::vector<MemoryBufferRef>>
64 ErrorOr<std::vector<MemoryBufferRef>>
76 ErrorOr<std::vector<MemoryBufferRef>>
80 ErrorOr<const object::ObjectFile &> getObjfileForArch(const Triple &T);
92 ErrorOr<std::vector<const object::ObjectFile *>>
98 ErrorOr<std::vector<const ObjectFileType *>>
119 ErrorOr<const object::ObjectFile &> Get(const Triple &T) { in Get()
126 ErrorOr<const ObjectFileType &> GetAs(const Triple &T) { in GetAs()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DMemoryBuffer.cpp108 static ErrorOr<std::unique_ptr<MB>>
126 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
143 ErrorOr<std::unique_ptr<MemoryBuffer>>
154 ErrorOr<std::unique_ptr<MemoryBuffer>>
211 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
229 ErrorOr<std::unique_ptr<MemoryBuffer>>
237 static ErrorOr<std::unique_ptr<MB>>
243 static ErrorOr<std::unique_ptr<MB>>
258 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
266 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
[all …]
/external/llvm/include/llvm/Object/
DELF.h84 ErrorOr<StringRef> getStringTable(const Elf_Shdr *Section) const;
85 ErrorOr<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
87 ErrorOr<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
195 ErrorOr<const Elf_Shdr *> getSection(const Elf_Sym *Sym,
198 ErrorOr<const Elf_Shdr *> getSection(uint32_t Index) const;
204 ErrorOr<StringRef> getSectionName(const Elf_Shdr *Section) const;
206 ErrorOr<ArrayRef<T>> getSectionContentsAsArray(const Elf_Shdr *Sec) const;
207 ErrorOr<ArrayRef<uint8_t> > getSectionContents(const Elf_Shdr *Sec) const;
234 ErrorOr<const typename ELFFile<ELFT>::Elf_Shdr *>
248 ErrorOr<ArrayRef<T>>
[all …]
DArchive.h41 ErrorOr<uint32_t> getSize() const;
79 ErrorOr<Child> getNext() const;
81 ErrorOr<StringRef> getName() const;
82 ErrorOr<std::string> getFullName() const;
96 ErrorOr<uint64_t> getSize() const;
98 ErrorOr<uint64_t> getRawSize() const;
100 ErrorOr<StringRef> getBuffer() const;
103 ErrorOr<MemoryBufferRef> getMemoryBufferRef() const;
161 ErrorOr<Child> getMember() const;
/external/clang/include/clang/Basic/
DVirtualFileSystem.h93 virtual llvm::ErrorOr<Status> status() = 0;
95 virtual llvm::ErrorOr<std::string> getName() { in getName()
102 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
201 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0;
203 virtual llvm::ErrorOr<std::unique_ptr<File>>
208 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
221 virtual llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const = 0;
265 llvm::ErrorOr<Status> status(const Twine &Path) override;
266 llvm::ErrorOr<std::unique_ptr<File>>
269 llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DSampleProfReader.h308 static ErrorOr<std::unique_ptr<SampleProfileReader>>
312 static ErrorOr<std::unique_ptr<SampleProfileReader>>
379 template <typename T> ErrorOr<T> readNumber();
387 ErrorOr<StringRef> readString();
390 template <typename T> inline ErrorOr<uint32_t> readStringIndex(T &Table);
415 virtual ErrorOr<StringRef> readStringFromTable() = 0;
425 virtual ErrorOr<StringRef> readStringFromTable() override;
442 virtual ErrorOr<StringRef> readStringFromTable() override;
489 template <typename T> ErrorOr<T> readNumber();
490 ErrorOr<StringRef> readString();
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp104 static ErrorOr<std::unique_ptr<MemoryBuffer>>
168 ErrorOr<std::unique_ptr<MemoryBuffer>>
179 ErrorOr<std::unique_ptr<MemoryBuffer>>
235 static ErrorOr<std::unique_ptr<MemoryBuffer>>
255 ErrorOr<std::unique_ptr<MemoryBuffer>>
262 static ErrorOr<std::unique_ptr<MemoryBuffer>>
267 static ErrorOr<std::unique_ptr<MemoryBuffer>>
275 ErrorOr<std::unique_ptr<MemoryBuffer>> Ret = in getFileAux()
338 static ErrorOr<std::unique_ptr<MemoryBuffer>>
416 ErrorOr<std::unique_ptr<MemoryBuffer>>
[all …]
/external/llvm/include/llvm/DebugInfo/CodeView/
DSymbolRecord.h65 static ErrorOr<ProcSym> deserialize(SymbolRecordKind Kind, in deserialize()
104 static ErrorOr<Thunk32Sym> deserialize(SymbolRecordKind Kind, in deserialize()
137 static ErrorOr<TrampolineSym> deserialize(SymbolRecordKind Kind, in deserialize()
169 static ErrorOr<SectionSym> deserialize(SymbolRecordKind Kind, in deserialize()
201 static ErrorOr<CoffGroupSym> deserialize(SymbolRecordKind Kind, in deserialize()
222 static ErrorOr<ScopeEndSym> deserialize(SymbolRecordKind Kind, in deserialize()
241 static ErrorOr<CallerSym> deserialize(SymbolRecordKind Kind, in deserialize()
450 static ErrorOr<InlineSiteSym> deserialize(SymbolRecordKind Kind, in deserialize()
486 static ErrorOr<PublicSym32> deserialize(SymbolRecordKind Kind, in deserialize()
514 static ErrorOr<RegisterSym> deserialize(SymbolRecordKind Kind, in deserialize()
[all …]
DTypeRecord.h86 static ErrorOr<MemberPointerInfo> deserialize(ArrayRef<uint8_t> &Data);
125 static ErrorOr<ModifierRecord> deserialize(TypeRecordKind Kind,
155 static ErrorOr<ProcedureRecord> deserialize(TypeRecordKind Kind,
199 static ErrorOr<MemberFunctionRecord> deserialize(TypeRecordKind Kind,
245 static ErrorOr<MemberFuncIdRecord> deserialize(TypeRecordKind Kind,
272 static ErrorOr<ArgListRecord> deserialize(TypeRecordKind Kind,
316 static ErrorOr<PointerRecord> deserialize(TypeRecordKind Kind,
392 static ErrorOr<NestedTypeRecord> deserialize(TypeRecordKind Kind,
421 static ErrorOr<ArrayRecord> deserialize(TypeRecordKind Kind,
489 static ErrorOr<ClassRecord> deserialize(TypeRecordKind Kind,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/
Delf2yaml.cpp55 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr);
56 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr);
57 ErrorOr<ELFYAML::RawContentSection *>
59 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr);
60 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr);
61 ErrorOr<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr);
65 ErrorOr<ELFYAML::Object *> dump();
110 template <class ELFT> ErrorOr<ELFYAML::Object *> ELFDumper<ELFT>::dump() { in dump()
151 ErrorOr<ELFYAML::RelocationSection *> S = dumpRelaSection(&Sec); in dump()
158 ErrorOr<ELFYAML::RelocationSection *> S = dumpRelSection(&Sec); in dump()
[all …]
/external/llvm/lib/LTO/
DLTOModule.cpp61 ErrorOr<MemoryBufferRef> BCData = IRObjectFile::findBitcodeInMemBuffer( in isBitcodeFile()
67 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in isBitcodeFile()
72 ErrorOr<MemoryBufferRef> BCData = IRObjectFile::findBitcodeInMemBuffer( in isBitcodeFile()
91 ErrorOr<MemoryBufferRef> BCOrErr = in isBitcodeForTarget()
101 ErrorOr<MemoryBufferRef> BCOrErr = in getProducerString()
109 ErrorOr<std::unique_ptr<LTOModule>>
112 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromFile()
123 ErrorOr<std::unique_ptr<LTOModule>>
129 ErrorOr<std::unique_ptr<LTOModule>>
133 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromOpenFileSlice()
[all …]
/external/llvm/lib/Support/
DMemoryBuffer.cpp104 static ErrorOr<std::unique_ptr<MemoryBuffer>>
168 ErrorOr<std::unique_ptr<MemoryBuffer>>
179 ErrorOr<std::unique_ptr<MemoryBuffer>>
235 static ErrorOr<std::unique_ptr<MemoryBuffer>>
255 ErrorOr<std::unique_ptr<MemoryBuffer>>
262 static ErrorOr<std::unique_ptr<MemoryBuffer>>
267 static ErrorOr<std::unique_ptr<MemoryBuffer>>
275 ErrorOr<std::unique_ptr<MemoryBuffer>> Ret = in getFileAux()
338 static ErrorOr<std::unique_ptr<MemoryBuffer>>
416 ErrorOr<std::unique_ptr<MemoryBuffer>>
[all …]
/external/llvm/include/llvm/ProfileData/
DSampleProfReader.h291 static ErrorOr<std::unique_ptr<SampleProfileReader>>
295 static ErrorOr<std::unique_ptr<SampleProfileReader>>
358 template <typename T> ErrorOr<T> readNumber();
366 ErrorOr<StringRef> readString();
369 ErrorOr<StringRef> readStringFromTable();
428 template <typename T> ErrorOr<T> readNumber();
429 ErrorOr<StringRef> readString();

1234567891011