Home
last modified time | relevance | path

Searched refs:Expected (Results 1 – 25 of 776) sorted by relevance

12345678910>>...32

/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-rc/
H A DResourceScriptParser.h35 using ParseType = Expected<std::unique_ptr<RCResource>>;
36 using ParseOptionType = Expected<std::unique_ptr<OptionalStmt>>;
41 ParserError(const Twine &Expected, const LocIter CurLoc, const LocIter End);
83 Expected<RCInt> readInt(); // Parse an integer.
84 Expected<StringRef> readString(); // Parse a string.
85 Expected<StringRef> readIdentifier(); // Parse an identifier.
86 Expected<StringRef> readFilename(); // Parse a filename.
87 Expected<IntOrString> readIntOrString(); // Parse an integer or a string.
88 Expected<IntOrString> readTypeOrName(); // Parse an integer or an identifier.
91 Expected<IntWithNotMask> parseIntExpr1();
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Object/
H A DArchive.h46 Expected<StringRef> getRawName() const;
49 Expected<StringRef> getName(uint64_t Size) const;
51 Expected<uint64_t> getSize() const;
53 Expected<sys::fs::perms> getAccessMode() const;
54 Expected<sys::TimePoint<std::chrono::seconds>> getLastModified() const;
61 Expected<unsigned> getUID() const;
62 Expected<unsigned> getGID() const;
98 Expected<bool> isThinMember() const;
110 Expected<Child> getNext() const;
112 Expected<StringRef> getName() const;
[all …]
H A DELF.h110 Expected<T> operator[](uint64_t N) {
197 Expected<const T *> getEntry(uint32_t Section, uint32_t Entry) const;
199 Expected<const T *> getEntry(const Elf_Shdr &Section, uint32_t Entry) const;
201 Expected<std::vector<VerDef>>
203 Expected<std::vector<VerNeed>> getVersionDependencies(
206 Expected<StringRef>
211 Expected<StringRef>
214 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
215 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section,
217 Expected<StringRef> getLinkAsStrtab(const typename ELFT::Shdr &Sec) const;
[all …]
H A DObjectFile.h96 Expected<StringRef> getName() const;
100 Expected<StringRef> getContents() const;
135 Expected<section_iterator> getRelocatedSection() const;
183 Expected<StringRef> getName() const;
186 Expected<uint64_t> getAddress() const;
190 Expected<uint64_t> getValue() const;
195 Expected<SymbolRef::Type> getType() const;
199 Expected<section_iterator> getSection() const;
245 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0;
248 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0;
[all …]
H A DMinidump.h28 static Expected<std::unique_ptr<MinidumpFile>> create(MemoryBufferRef Source);
49 Expected<ArrayRef<uint8_t>>
56 Expected<std::string> getString(size_t Offset) const;
62 Expected<const minidump::SystemInfo &> getSystemInfo() const { in getSystemInfo()
71 Expected<ArrayRef<minidump::Module>> getModuleList() const { in getModuleList()
80 Expected<ArrayRef<minidump::Thread>> getThreadList() const { in getThreadList()
88 Expected<const minidump::ExceptionStream &> getExceptionStream() const { in getExceptionStream()
100 Expected<ArrayRef<minidump::MemoryDescriptor>> getMemoryList() const { in getMemoryList()
141 Expected<iterator_range<MemoryInfoIterator>> getMemoryInfoList() const;
154 static Expected<ArrayRef<uint8_t>> getDataSlice(ArrayRef<uint8_t> Data,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Remarks/
H A DYAMLRemarkParser.cpp60 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic()
70 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion()
87 static Expected<uint64_t> parseStrTabSize(StringRef &Buf) { in parseStrTabSize()
98 static Expected<ParsedStringTable> parseStrTab(StringRef &Buf, in parseStrTab()
107 return Expected<ParsedStringTable>(std::move(Result)); in parseStrTab()
110 Expected<std::unique_ptr<YAMLRemarkParser>>
115 Expected<bool> isMeta = parseMagic(Buf); in createYAMLParserFromMeta()
121 Expected<uint64_t> Version = parseVersion(Buf); in createYAMLParserFromMeta()
125 Expected<uint64_t> StrTabSize = parseStrTabSize(Buf); in createYAMLParserFromMeta()
134 Expected<ParsedStringTable> MaybeStrTab = parseStrTab(Buf, *StrTabSize); in createYAMLParserFromMeta()
[all …]
H A DYAMLRemarkParser.h68 Expected<std::unique_ptr<Remark>> next() override;
83 Expected<std::unique_ptr<Remark>> parseRemark(yaml::Document &Remark);
85 Expected<Type> parseType(yaml::MappingNode &Node);
87 Expected<StringRef> parseKey(yaml::KeyValueNode &Node);
89 virtual Expected<StringRef> parseStr(yaml::KeyValueNode &Node);
91 Expected<unsigned> parseUnsigned(yaml::KeyValueNode &Node);
93 Expected<RemarkLocation> parseDebugLoc(yaml::KeyValueNode &Node);
95 Expected<Argument> parseArg(yaml::Node &Node);
109 Expected<StringRef> parseStr(yaml::KeyValueNode &Node) override;
112 Expected<std::unique_ptr<YAMLRemarkParser>>
H A DRemarkLinker.cpp23 static Expected<StringRef>
32 Expected<Optional<StringRef>>
34 Expected<StringRef> SectionName = getRemarksSectionName(Obj); in getRemarksSectionContents()
39 Expected<StringRef> MaybeName = Section.getName(); in getRemarksSectionContents()
45 if (Expected<StringRef> Contents = Section.getContents()) in getRemarksSectionContents()
68 Expected<Format> ParserFormat = magicToFormat(Buffer); in link()
74 Expected<std::unique_ptr<RemarkParser>> MaybeParser = in link()
85 Expected<std::unique_ptr<Remark>> Next = Parser.next(); in link()
104 Expected<Optional<StringRef>> SectionOrErr = getRemarksSectionContents(Obj); in link()
114 Expected<std::unique_ptr<RemarkSerializer>> MaybeSerializer = in serialize()
H A DBitstreamRemarkParser.cpp47 Expected<unsigned> RecordID = Stream.readRecord(Code, Record, &Blob); in parseRecord()
94 Expected<unsigned> RecordID = Stream.readRecord(Code, Record, &Blob); in parseRecord()
160 Expected<BitstreamEntry> Next = Stream.advance(); in parseBlock()
211 Expected<std::array<char, 4>> BitstreamParserHelper::parseMagic() { in parseMagic()
214 if (Expected<unsigned> R = Stream.Read(8)) in parseMagic()
222 Expected<BitstreamEntry> Next = Stream.advance(); in parseBlockInfoBlock()
232 Expected<Optional<BitstreamBlockInfo>> MaybeBlockInfo = in parseBlockInfoBlock()
248 static Expected<bool> isBlock(BitstreamCursor &Stream, unsigned BlockID) { in isBlock()
251 Expected<BitstreamEntry> Next = Stream.advance(); in isBlock()
272 Expected<bool> BitstreamParserHelper::isMetaBlock() { in isMetaBlock()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitstream/Reader/
H A DBitstreamReader.cpp35 Expected<uint32_t> MaybeVBR = ReadVBR(bitc::CodeLenWidth); in EnterSubBlock()
47 Expected<word_t> MaybeNum = Read(bitc::BlockSizeWidth); in EnterSubBlock()
66 static Expected<uint64_t> readAbbreviatedField(BitstreamCursor &Cursor, in readAbbreviatedField()
82 if (Expected<unsigned> Res = Cursor.Read(6)) in readAbbreviatedField()
91 Expected<unsigned> BitstreamCursor::skipRecord(unsigned AbbrevID) { in skipRecord()
94 Expected<uint32_t> MaybeCode = ReadVBR(6); in skipRecord()
98 Expected<uint32_t> MaybeVBR = ReadVBR(6); in skipRecord()
103 if (Expected<uint64_t> Res = ReadVBR64(6)) in skipRecord()
121 Expected<uint64_t> MaybeCode = readAbbreviatedField(*this, CodeOp); in skipRecord()
134 if (Expected<uint64_t> MaybeField = readAbbreviatedField(*this, Op)) in skipRecord()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Bitcode/
H A DBitcodeReader.h44 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) { in expectedToErrorOrAndEmitErrors()
80 friend Expected<BitcodeFileContents>
83 Expected<std::unique_ptr<Module>>
101 Expected<std::unique_ptr<Module>> getLazyModule(LLVMContext &Context,
106 Expected<std::unique_ptr<Module>> parseModule(
112 Expected<BitcodeLTOInfo> getLTOInfo();
115 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary();
133 Expected<BitcodeFileContents> getBitcodeFileContents(MemoryBufferRef Buffer);
136 Expected<std::vector<BitcodeModule>>
143 Expected<std::unique_ptr<Module>>
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/Symbolize/
H A DSymbolize.h62 Expected<DILineInfo> symbolizeCode(const ObjectFile &Obj,
64 Expected<DILineInfo> symbolizeCode(const std::string &ModuleName,
66 Expected<DIInliningInfo>
69 Expected<DIInliningInfo>
73 Expected<DIGlobal> symbolizeData(const ObjectFile &Obj,
75 Expected<DIGlobal> symbolizeData(const std::string &ModuleName,
77 Expected<std::vector<DILocal>>
79 Expected<std::vector<DILocal>>
94 Expected<DILineInfo>
98 Expected<DIInliningInfo>
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DASTImporter.h294 virtual Expected<Decl *> ImportImpl(Decl *From);
343 llvm::Expected<ExprWithCleanups::CleanupObject>
350 llvm::Expected<const Type *> Import(const Type *FromT);
356 llvm::Expected<QualType> Import(QualType FromT);
363 llvm::Expected<TypeSourceInfo *> Import(TypeSourceInfo *FromTSI);
370 llvm::Expected<Attr *> Import(const Attr *FromAttr);
377 llvm::Expected<Decl *> Import(Decl *FromD);
378 llvm::Expected<const Decl *> Import(const Decl *FromD) { in Import()
410 llvm::Expected<DeclContext *> ImportContext(DeclContext *FromDC);
417 llvm::Expected<Expr *> Import(Expr *FromE);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/
H A DArchive.cpp66 Expected<StringRef> NameOrErr = getName(Size); in ArchiveMemberHeader()
86 Expected<StringRef> NameOrErr = getName(Size); in ArchiveMemberHeader()
100 Expected<StringRef> ArchiveMemberHeader::getRawName() const { in getRawName()
128 Expected<StringRef> ArchiveMemberHeader::getName(uint64_t Size) const { in getName()
142 Expected<StringRef> NameOrErr = getRawName(); in getName()
226 Expected<uint64_t> ArchiveMemberHeader::getSize() const { in getSize()
244 Expected<sys::fs::perms> ArchiveMemberHeader::getAccessMode() const { in getAccessMode()
262 Expected<sys::TimePoint<std::chrono::seconds>>
283 Expected<unsigned> ArchiveMemberHeader::getUID() const { in getUID()
302 Expected<unsigned> ArchiveMemberHeader::getGID() const { in getGID()
[all …]
H A DIRObjectFile.cpp50 Expected<uint32_t> IRObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
73 Expected<MemoryBufferRef>
77 Expected<StringRef> Contents = Sec.getContents(); in findBitcodeInObject()
89 Expected<MemoryBufferRef>
99 Expected<std::unique_ptr<ObjectFile>> ObjFile = in findBitcodeInMemBuffer()
110 Expected<std::unique_ptr<IRObjectFile>>
112 Expected<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in create()
116 Expected<std::vector<BitcodeModule>> BMsOrErr = in create()
123 Expected<std::unique_ptr<Module>> MOrErr = in create()
136 Expected<IRSymtabFile> object::readIRSymtab(MemoryBufferRef MBRef) { in readIRSymtab()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/FileCheck/
H A DFileCheckImpl.h92 Expected<std::string> getWildcardRegex() const;
97 Expected<std::string> getMatchingString(ExpressionValue Value) const;
103 Expected<ExpressionValue> valueFromStringRepr(StringRef StrVal,
146 Expected<int64_t> getSignedValue() const;
150 Expected<uint64_t> getUnsignedValue() const;
159 Expected<ExpressionValue> operator+(const ExpressionValue &Lhs,
161 Expected<ExpressionValue> operator-(const ExpressionValue &Lhs,
163 Expected<ExpressionValue> operator*(const ExpressionValue &Lhs,
165 Expected<ExpressionValue> operator/(const ExpressionValue &Lhs,
167 Expected<ExpressionValue> max(const ExpressionValue &Lhs,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DMSVCErrorWorkarounds.h43 template <typename T> class MSVCPExpected : public Expected<T> {
46 : Expected<T>(make_error<StringError>("", inconvertibleErrorCode())) { in MSVCPExpected()
50 MSVCPExpected(MSVCPExpected &&Other) : Expected<T>(std::move(Other)) {} in MSVCPExpected()
53 Expected<T>::operator=(std::move(Other));
57 MSVCPExpected(Error Err) : Expected<T>(std::move(Err)) {} in MSVCPExpected()
63 : Expected<T>(std::move(Val)) {}
67 Expected<OtherT> &&Other,
69 : Expected<T>(std::move(Other)) {}
73 Expected<OtherT> &&Other,
75 : Expected<T>(std::move(Other)) {}
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/PDB/Native/
H A DPDBFile.h70 Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex,
89 Expected<std::unique_ptr<msf::MappedBlockStream>>
91 Expected<std::unique_ptr<msf::MappedBlockStream>>
100 Expected<InfoStream &> getPDBInfoStream();
101 Expected<DbiStream &> getPDBDbiStream();
102 Expected<GlobalsStream &> getPDBGlobalsStream();
103 Expected<TpiStream &> getPDBTpiStream();
104 Expected<TpiStream &> getPDBIpiStream();
105 Expected<PublicsStream &> getPDBPublicsStream();
106 Expected<SymbolStream &> getPDBSymbolStream();
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp54 static Expected<DynTypedNode> getNode(const ast_matchers::BoundNodes &Nodes, in getNode()
107 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in before()
108 Expected<CharSourceRange> SelectedRange = Selector(Result); in before()
116 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in after()
117 Expected<CharSourceRange> SelectedRange = Selector(Result); in after()
142 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in node()
143 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in node()
155 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in statement()
156 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in statement()
165 return [Begin, End](const MatchResult &Result) -> Expected<CharSourceRange> { in enclose()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/
H A DConfigManager.h30 Expected<const ELFConfig &> getELFConfig() const override;
31 Expected<const COFFConfig &> getCOFFConfig() const override;
32 Expected<const MachOConfig &> getMachOConfig() const override;
33 Expected<const WasmConfig &> getWasmConfig() const override;
59 Expected<DriverConfig>
66 Expected<DriverConfig>
72 Expected<DriverConfig> parseBitcodeStripOptions(ArrayRef<const char *> ArgsArr);
78 Expected<DriverConfig>
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Delf2yaml.cpp40 Expected<StringRef> getUniquedSectionName(const Elf_Shdr &Sec);
41 Expected<StringRef> getUniquedSymbolName(const Elf_Sym *Sym,
44 Expected<StringRef> getSymbolName(uint32_t SymtabNdx, uint32_t SymbolNdx);
51 Expected<std::vector<ELFYAML::ProgramHeader>>
61 Expected<std::vector<std::unique_ptr<ELFYAML::Chunk>>> dumpSections();
69 Expected<ELFYAML::AddrsigSection *> dumpAddrsigSection(const Elf_Shdr *Shdr);
70 Expected<ELFYAML::LinkerOptionsSection *>
72 Expected<ELFYAML::DependentLibrariesSection *>
74 Expected<ELFYAML::CallGraphProfileSection *>
76 Expected<ELFYAML::DynamicSection *> dumpDynamicSection(const Elf_Shdr *Shdr);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/BinaryFormat/
H A DMsgPackReader.h124 Expected<bool> read(Object &Obj);
137 template <class T> Expected<bool> readRaw(Object &Obj);
138 template <class T> Expected<bool> readInt(Object &Obj);
139 template <class T> Expected<bool> readUInt(Object &Obj);
140 template <class T> Expected<bool> readLength(Object &Obj);
141 template <class T> Expected<bool> readExt(Object &Obj);
142 Expected<bool> createRaw(Object &Obj, uint32_t Size);
143 Expected<bool> createExt(Object &Obj, uint32_t Size);
/netbsd-src/external/apache2/llvm/dist/llvm/tools/bugpoint/
H A DMiscompilation.cpp52 Expected<TestResult> doTest(std::vector<std::string> &Prefix,
60 Expected<ReduceMiscompilingPasses::TestResult>
82 Expected<bool> Diff = BD.diffProgram(BD.getProgram(), BitcodeResult, "", in doTest()
188 Expected<bool> (*TestFn)(BugDriver &, std::unique_ptr<Module>,
193 Expected<bool> (*F)(BugDriver &, in ReduceMiscompilingFunctions()
198 Expected<TestResult> doTest(std::vector<Function *> &Prefix, in doTest()
201 Expected<bool> Ret = TestFuncs(Suffix); in doTest()
208 Expected<bool> Ret = TestFuncs(Prefix); in doTest()
217 Expected<bool> TestFuncs(const std::vector<Function *> &Prefix);
227 static Expected<std::unique_ptr<Module>> testMergedProgram(const BugDriver &BD, in testMergedProgram()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Bitstream/
H A DBitstreamReader.h142 if (Expected<word_t> Res = Read(WordBitNo)) in JumpToBit()
190 Expected<word_t> Read(unsigned NumBits) { in Read()
233 Expected<uint32_t> ReadVBR(unsigned NumBits) { in ReadVBR()
234 Expected<unsigned> MaybeRead = Read(NumBits); in ReadVBR()
260 Expected<uint64_t> ReadVBR64(unsigned NumBits) { in ReadVBR64()
261 Expected<uint64_t> MaybeRead = Read(NumBits); in ReadVBR64()
400 Expected<BitstreamEntry> advance(unsigned Flags = 0) {
405 Expected<unsigned> MaybeCode = ReadCode();
418 if (Expected<unsigned> MaybeSubBlock = ReadSubBlockID())
439 Expected<BitstreamEntry> advanceSkippingSubblocks(unsigned Flags = 0) {
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h96 llvm::Expected<llvm::StringMap<std::string>>
107 llvm::Expected<InvocationListTy> parseInvocationList(
145 llvm::Expected<const FunctionDecl *>
148 llvm::Expected<const VarDecl *>
165 llvm::Expected<ASTUnit *> loadExternalAST(StringRef LookupName,
175 llvm::Expected<const FunctionDecl *> importDefinition(const FunctionDecl *FD,
177 llvm::Expected<const VarDecl *> importDefinition(const VarDecl *VD,
201 llvm::Expected<const T *> getCrossTUDefinitionImpl(const T *D,
209 llvm::Expected<const T *> importDefinitionImpl(const T *D, ASTUnit *Unit);
219 using LoadResultTy = llvm::Expected<std::unique_ptr<ASTUnit>>;
[all …]

12345678910>>...32