/netbsd/external/apache2/llvm/dist/llvm/tools/llvm-rc/ |
H A D | ResourceScriptParser.h | 35 using ParseType = Expected<std::unique_ptr<RCResource>>; 83 Expected<RCInt> readInt(); // Parse an integer. 84 Expected<StringRef> readString(); // Parse a string. 91 Expected<IntWithNotMask> parseIntExpr1(); 92 Expected<IntWithNotMask> parseIntExpr2(); 114 Expected<uint32_t> parseFlags(ArrayRef<StringRef> FlagDesc, 133 Expected<OptionalStmtList> 137 Expected<std::unique_ptr<OptionalStmt>> 154 Expected<Control> parseControl(); 157 Expected<MenuDefinitionList> parseMenuItemsList(); [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Object/ |
H A D | Archive.h | 46 Expected<StringRef> getRawName() const; 51 Expected<uint64_t> getSize() 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; 132 Expected<uint64_t> getSize() const; 134 Expected<uint64_t> getRawSize() const; 142 Expected<std::unique_ptr<Binary>> [all …]
|
H A D | ELF.h | 206 Expected<StringRef> 211 Expected<StringRef> 386 Expected<StringRef> 431 Expected<uint32_t> 487 Expected<ArrayRef<T>> 637 Expected<StringRef> 1055 Expected<StringRef> 1119 Expected<StringRef> 1128 Expected<StringRef> 1143 Expected<StringRef> [all …]
|
H A D | ObjectFile.h | 96 Expected<StringRef> getName() const; 100 Expected<StringRef> getContents() const; 183 Expected<StringRef> getName() const; 186 Expected<uint64_t> getAddress() const; 190 Expected<uint64_t> getValue() const; 195 Expected<SymbolRef::Type> getType() const; 253 virtual Expected<section_iterator> 264 virtual Expected<ArrayRef<uint8_t>> 349 static Expected<OwningBinary<ObjectFile>> 352 static Expected<std::unique_ptr<ObjectFile>> [all …]
|
H A D | Minidump.h | 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; 161 static Expected<ArrayRef<T>> getDataSliceAs(ArrayRef<uint8_t> Data, 177 Expected<const T &> getStream(minidump::StreamType Stream) const; [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Remarks/ |
H A D | YAMLRemarkParser.cpp | 60 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic() 70 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion() 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() 189 Expected<std::unique_ptr<Remark>> 209 Expected<Type> T = parseType(*Root); in parseRemark() 319 Expected<RemarkLocation> 330 Expected<StringRef> MaybeKey = parseKey(DLNode); in parseDebugLoc() [all …]
|
H A D | YAMLRemarkParser.h | 68 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 D | RemarkLinker.cpp | 23 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 D | BitstreamRemarkParser.cpp | 160 Expected<BitstreamEntry> Next = Stream.advance(); in parseBlock() 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() 251 Expected<BitstreamEntry> Next = Stream.advance(); in isBlock() 272 Expected<bool> BitstreamParserHelper::isMetaBlock() { in isMetaBlock() 276 Expected<bool> BitstreamParserHelper::isRemarkBlock() { in isRemarkBlock() 297 Expected<bool> isMetaBlock = Helper.isMetaBlock(); in advanceToMetaBlock() 307 Expected<std::unique_ptr<BitstreamRemarkParser>> 498 Expected<std::unique_ptr<Remark>> [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Bitcode/ |
H A D | BitcodeReader.h | 80 friend Expected<BitcodeFileContents> 83 Expected<std::unique_ptr<Module>> 106 Expected<std::unique_ptr<Module>> parseModule( 112 Expected<BitcodeLTOInfo> getLTOInfo(); 115 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary(); 136 Expected<std::vector<BitcodeModule>> 143 Expected<std::unique_ptr<Module>> 152 Expected<std::unique_ptr<Module>> getOwningLazyBitcodeModule( 171 Expected<std::unique_ptr<Module>> parseBitcodeFile( 181 Expected<std::unique_ptr<ModuleSummaryIndex>> [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Bitstream/Reader/ |
H A D | BitstreamReader.cpp | 82 if (Expected<unsigned> Res = Cursor.Read(6)) in readAbbreviatedField() 94 Expected<uint32_t> MaybeCode = ReadVBR(6); in skipRecord() 98 Expected<uint32_t> MaybeVBR = ReadVBR(6); in skipRecord() 142 Expected<uint32_t> MaybeNum = ReadVBR(6); in skipRecord() 166 if (Expected<uint64_t> Res = in skipRecord() 182 Expected<uint32_t> MaybeNum = ReadVBR(6); in skipRecord() 209 Expected<uint32_t> MaybeCode = ReadVBR(6); in readRecord() 291 if (Expected<uint64_t> MaybeVal = in readRecord() 366 Expected<word_t> MaybeEncoding = Read(3); in ReadAbbrevRecord() 403 Expected<Optional<BitstreamBlockInfo>> [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/Symbolize/ |
H A D | Symbolize.h | 62 Expected<DILineInfo> symbolizeCode(const ObjectFile &Obj, 66 Expected<DIInliningInfo> 69 Expected<DIInliningInfo> 73 Expected<DIGlobal> symbolizeData(const ObjectFile &Obj, 77 Expected<std::vector<DILocal>> 79 Expected<std::vector<DILocal>> 94 Expected<DILineInfo> 98 Expected<DIInliningInfo> 105 Expected<std::vector<DILocal>> 113 Expected<SymbolizableModule *> [all …]
|
/netbsd/external/apache2/llvm/dist/clang/include/clang/AST/ |
H A D | ASTImporter.h | 294 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); 370 llvm::Expected<Attr *> Import(const Attr *FromAttr); 377 llvm::Expected<Decl *> Import(Decl *FromD); 417 llvm::Expected<Expr *> Import(Expr *FromE); 424 llvm::Expected<Stmt *> Import(Stmt *FromS); 438 llvm::Expected<NestedNameSpecifierLoc> 478 llvm::Expected<Selector> Import(Selector FromSel); [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Object/ |
H A D | Archive.cpp | 142 Expected<StringRef> NameOrErr = getRawName(); in getName() 262 Expected<sys::TimePoint<std::chrono::seconds>> 351 Expected<bool> isThinOrErr = isThinMember(); in Child() 413 Expected<bool> isThin = isThinMember(); in getFullName() 417 Expected<StringRef> NameOrErr = getName(); in getFullName() 431 Expected<bool> isThinOrErr = isThinMember(); in getBuffer() 436 Expected<uint64_t> Size = getSize(); in getBuffer() 468 Expected<StringRef> NameOrErr = getName(); in getNext() 504 Expected<StringRef> NameOrErr = getName(); in getMemoryBufferRef() 508 Expected<StringRef> Buf = getBuffer(); in getMemoryBufferRef() [all …]
|
H A D | IRObjectFile.cpp | 50 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/external/apache2/llvm/dist/llvm/lib/FileCheck/ |
H A D | FileCheckImpl.h | 92 Expected<std::string> getWildcardRegex() const; 146 Expected<int64_t> getSignedValue() const; 150 Expected<uint64_t> getUnsignedValue() const; 192 virtual Expected<ExpressionFormat> 337 Expected<ExpressionValue> eval() const override; 340 Expected<ExpressionFormat> 375 Expected<ExpressionValue> eval() const override; 381 Expected<ExpressionFormat> 818 static Expected<std::unique_ptr<ExpressionAST>> 831 static Expected<std::unique_ptr<ExpressionAST>> [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | MSVCErrorWorkarounds.h | 43 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/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/PDB/Native/ |
H A D | PDBFile.h | 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(); 107 Expected<PDBStringTable &> getStringTable(); [all …]
|
/netbsd/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/ |
H A D | RangeSelector.cpp | 108 Expected<CharSourceRange> SelectedRange = Selector(Result); in before() 117 Expected<CharSourceRange> SelectedRange = Selector(Result); in after() 143 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in node() 156 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in statement() 166 Expected<CharSourceRange> BeginRange = Begin(Result); in enclose() 169 Expected<CharSourceRange> EndRange = End(Result); in enclose() 190 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in member() 202 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in name() 259 Expected<CharSourceRange> operator()(const MatchResult &Result) { in operator ()() 260 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in operator ()() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/ |
H A D | ConfigManager.h | 30 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/external/apache2/llvm/dist/llvm/tools/obj2yaml/ |
H A D | elf2yaml.cpp | 106 Expected<ELFYAML::Object *> dump(); 117 Expected<StringRef> 144 Expected<StringRef> 729 Expected<StringRef> NameOrErr = in dumpRelocation() 1092 Expected<ELFYAML::RelrSection *> 1157 Expected<ELFYAML::NoBitsSection *> 1168 Expected<ELFYAML::NoteSection *> 1204 Expected<ELFYAML::HashSection *> 1296 Expected<ELFYAML::VerdefSection *> 1448 Expected<ELFYAML::GroupSection *> [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/BinaryFormat/ |
H A D | MsgPackReader.h | 124 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/external/apache2/llvm/dist/llvm/tools/bugpoint/ |
H A D | Miscompilation.cpp | 60 Expected<ReduceMiscompilingPasses::TestResult> 248 Expected<bool> 282 Expected<bool> Broken = in TestFuncs() 305 static Expected<bool> 486 Expected<bool> 537 static Expected<bool> 563 Expected<bool> Ret = in ExtractBlocks() 739 Expected<bool> Result = in debugMiscompilation() 987 Expected<std::string> SharedObject = in TestCodeGenerator() 1013 Expected<std::string> Result = in debugCodeGenerator() [all …]
|
/netbsd/external/apache2/llvm/dist/clang/include/clang/CrossTU/ |
H A D | CrossTranslationUnit.h | 96 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, 177 llvm::Expected<const VarDecl *> importDefinition(const VarDecl *VD, 201 llvm::Expected<const T *> getCrossTUDefinitionImpl(const T *D, 219 using LoadResultTy = llvm::Expected<std::unique_ptr<ASTUnit>>; 293 llvm::Expected<ASTUnit *> getASTUnitForFunction(StringRef FunctionName, 307 llvm::Expected<std::string> getFileForFunction(StringRef FunctionName, [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Bitstream/ |
H A D | BitstreamReader.h | 142 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(); 533 Expected<unsigned> skipRecord(unsigned AbbrevID); 535 Expected<unsigned> readRecord(unsigned AbbrevID, [all …]
|