Lines Matching refs:WasmObjectFile

68 Expected<std::unique_ptr<WasmObjectFile>>
71 auto ObjectFile = std::make_unique<WasmObjectFile>(Buffer, Err); in createWasmObjectFile()
83 static uint8_t readUint8(WasmObjectFile::ReadContext &Ctx) { in readUint8()
89 static uint32_t readUint32(WasmObjectFile::ReadContext &Ctx) { in readUint32()
97 static int32_t readFloat32(WasmObjectFile::ReadContext &Ctx) { in readFloat32()
106 static int64_t readFloat64(WasmObjectFile::ReadContext &Ctx) { in readFloat64()
115 static uint64_t readULEB128(WasmObjectFile::ReadContext &Ctx) { in readULEB128()
125 static StringRef readString(WasmObjectFile::ReadContext &Ctx) { in readString()
135 static int64_t readLEB128(WasmObjectFile::ReadContext &Ctx) { in readLEB128()
145 static uint8_t readVaruint1(WasmObjectFile::ReadContext &Ctx) { in readVaruint1()
152 static int32_t readVarint32(WasmObjectFile::ReadContext &Ctx) { in readVarint32()
159 static uint32_t readVaruint32(WasmObjectFile::ReadContext &Ctx) { in readVaruint32()
166 static int64_t readVarint64(WasmObjectFile::ReadContext &Ctx) { in readVarint64()
170 static uint64_t readVaruint64(WasmObjectFile::ReadContext &Ctx) { in readVaruint64()
174 static uint8_t readOpcode(WasmObjectFile::ReadContext &Ctx) { in readOpcode()
178 static wasm::ValType parseValType(WasmObjectFile::ReadContext &Ctx, in parseValType()
200 WasmObjectFile::ReadContext &Ctx) { in readInitExpr()
291 static wasm::WasmLimits readLimits(WasmObjectFile::ReadContext &Ctx) { in readLimits()
300 static wasm::WasmTableType readTableType(WasmObjectFile::ReadContext &Ctx) { in readTableType()
308 static Error readSection(WasmSection &Section, WasmObjectFile::ReadContext &Ctx, in readSection()
325 WasmObjectFile::ReadContext SectionCtx; in readSection()
348 WasmObjectFile::WasmObjectFile(MemoryBufferRef Buffer, Error &Err) in WasmObjectFile() function in WasmObjectFile
389 Error WasmObjectFile::parseSection(WasmSection &Sec) { in parseSection()
429 Error WasmObjectFile::parseDylinkSection(ReadContext &Ctx) { in parseDylinkSection()
448 Error WasmObjectFile::parseDylink0Section(ReadContext &Ctx) { in parseDylink0Section()
507 Error WasmObjectFile::parseNameSection(ReadContext &Ctx) { in parseNameSection()
617 Error WasmObjectFile::parseLinkingSection(ReadContext &Ctx) { in parseLinkingSection()
686 Error WasmObjectFile::parseLinkingSectionSymtab(ReadContext &Ctx) { in parseLinkingSectionSymtab()
897 Error WasmObjectFile::parseLinkingSectionComdat(ReadContext &Ctx) { in parseLinkingSectionComdat()
953 Error WasmObjectFile::parseProducersSection(ReadContext &Ctx) { in parseProducersSection()
994 Error WasmObjectFile::parseTargetFeaturesSection(ReadContext &Ctx) { in parseTargetFeaturesSection()
1024 Error WasmObjectFile::parseRelocSection(StringRef Name, ReadContext &Ctx) { in parseRelocSection()
1158 Error WasmObjectFile::parseCustomSection(WasmSection &Sec, ReadContext &Ctx) { in parseCustomSection()
1184 Error WasmObjectFile::parseTypeSection(ReadContext &Ctx) { in parseTypeSection()
1262 Error WasmObjectFile::parseImportSection(ReadContext &Ctx) { in parseImportSection()
1323 Error WasmObjectFile::parseFunctionSection(ReadContext &Ctx) { in parseFunctionSection()
1342 Error WasmObjectFile::parseTableSection(ReadContext &Ctx) { in parseTableSection()
1366 Error WasmObjectFile::parseMemorySection(ReadContext &Ctx) { in parseMemorySection()
1381 Error WasmObjectFile::parseTagSection(ReadContext &Ctx) { in parseTagSection()
1407 Error WasmObjectFile::parseGlobalSection(ReadContext &Ctx) { in parseGlobalSection()
1431 Error WasmObjectFile::parseExportSection(ReadContext &Ctx) { in parseExportSection()
1508 bool WasmObjectFile::isValidFunctionIndex(uint32_t Index) const { in isValidFunctionIndex()
1512 bool WasmObjectFile::isDefinedFunctionIndex(uint32_t Index) const { in isDefinedFunctionIndex()
1516 bool WasmObjectFile::isValidGlobalIndex(uint32_t Index) const { in isValidGlobalIndex()
1520 bool WasmObjectFile::isValidTableNumber(uint32_t Index) const { in isValidTableNumber()
1524 bool WasmObjectFile::isDefinedGlobalIndex(uint32_t Index) const { in isDefinedGlobalIndex()
1528 bool WasmObjectFile::isDefinedTableNumber(uint32_t Index) const { in isDefinedTableNumber()
1532 bool WasmObjectFile::isValidTagIndex(uint32_t Index) const { in isValidTagIndex()
1536 bool WasmObjectFile::isDefinedTagIndex(uint32_t Index) const { in isDefinedTagIndex()
1540 bool WasmObjectFile::isValidFunctionSymbol(uint32_t Index) const { in isValidFunctionSymbol()
1544 bool WasmObjectFile::isValidTableSymbol(uint32_t Index) const { in isValidTableSymbol()
1548 bool WasmObjectFile::isValidGlobalSymbol(uint32_t Index) const { in isValidGlobalSymbol()
1552 bool WasmObjectFile::isValidTagSymbol(uint32_t Index) const { in isValidTagSymbol()
1556 bool WasmObjectFile::isValidDataSymbol(uint32_t Index) const { in isValidDataSymbol()
1560 bool WasmObjectFile::isValidSectionSymbol(uint32_t Index) const { in isValidSectionSymbol()
1564 wasm::WasmFunction &WasmObjectFile::getDefinedFunction(uint32_t Index) { in getDefinedFunction()
1570 WasmObjectFile::getDefinedFunction(uint32_t Index) const { in getDefinedFunction()
1575 const wasm::WasmGlobal &WasmObjectFile::getDefinedGlobal(uint32_t Index) const { in getDefinedGlobal()
1580 wasm::WasmTag &WasmObjectFile::getDefinedTag(uint32_t Index) { in getDefinedTag()
1585 Error WasmObjectFile::parseStartSection(ReadContext &Ctx) { in parseStartSection()
1593 Error WasmObjectFile::parseCodeSection(ReadContext &Ctx) { in parseCodeSection()
1639 Error WasmObjectFile::parseElemSection(ReadContext &Ctx) { in parseElemSection()
1728 Error WasmObjectFile::parseDataSection(ReadContext &Ctx) { in parseDataSection()
1770 Error WasmObjectFile::parseDataCountSection(ReadContext &Ctx) { in parseDataCountSection()
1775 const wasm::WasmObjectHeader &WasmObjectFile::getHeader() const { in getHeader()
1779 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.b++; } in moveSymbolNext()
1781 Expected<uint32_t> WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
1799 basic_symbol_iterator WasmObjectFile::symbol_begin() const { in symbol_begin()
1806 basic_symbol_iterator WasmObjectFile::symbol_end() const { in symbol_end()
1813 const WasmSymbol &WasmObjectFile::getWasmSymbol(const DataRefImpl &Symb) const { in getWasmSymbol()
1817 const WasmSymbol &WasmObjectFile::getWasmSymbol(const SymbolRef &Symb) const { in getWasmSymbol()
1821 Expected<StringRef> WasmObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1825 Expected<uint64_t> WasmObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
1846 uint64_t WasmObjectFile::getWasmSymbolValue(const WasmSymbol &Sym) const { in getWasmSymbolValue()
1876 uint64_t WasmObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl()
1880 uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const { in getSymbolAlignment()
1885 uint64_t WasmObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const { in getCommonSymbolSizeImpl()
1891 WasmObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1914 WasmObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
1924 uint32_t WasmObjectFile::getSymbolSectionId(SymbolRef Symb) const { in getSymbolSectionId()
1929 uint32_t WasmObjectFile::getSymbolSectionIdImpl(const WasmSymbol &Sym) const { in getSymbolSectionIdImpl()
1948 uint32_t WasmObjectFile::getSymbolSize(SymbolRef Symb) const { in getSymbolSize()
1964 void WasmObjectFile::moveSectionNext(DataRefImpl &Sec) const { Sec.d.a++; } in moveSectionNext()
1966 Expected<StringRef> WasmObjectFile::getSectionName(DataRefImpl Sec) const { in getSectionName()
1975 uint64_t WasmObjectFile::getSectionAddress(DataRefImpl Sec) const { in getSectionAddress()
1983 uint64_t WasmObjectFile::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex()
1987 uint64_t WasmObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
1993 WasmObjectFile::getSectionContents(DataRefImpl Sec) const { in getSectionContents()
2000 uint64_t WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
2004 bool WasmObjectFile::isSectionCompressed(DataRefImpl Sec) const { in isSectionCompressed()
2008 bool WasmObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
2012 bool WasmObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
2016 bool WasmObjectFile::isSectionBSS(DataRefImpl Sec) const { return false; } in isSectionBSS()
2018 bool WasmObjectFile::isSectionVirtual(DataRefImpl Sec) const { return false; } in isSectionVirtual()
2020 relocation_iterator WasmObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
2027 relocation_iterator WasmObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
2035 void WasmObjectFile::moveRelocationNext(DataRefImpl &Rel) const { Rel.d.b++; } in moveRelocationNext()
2037 uint64_t WasmObjectFile::getRelocationOffset(DataRefImpl Ref) const { in getRelocationOffset()
2042 symbol_iterator WasmObjectFile::getRelocationSymbol(DataRefImpl Ref) const { in getRelocationSymbol()
2052 uint64_t WasmObjectFile::getRelocationType(DataRefImpl Ref) const { in getRelocationType()
2057 void WasmObjectFile::getRelocationTypeName( in getRelocationTypeName()
2076 section_iterator WasmObjectFile::section_begin() const { in section_begin()
2082 section_iterator WasmObjectFile::section_end() const { in section_end()
2088 uint8_t WasmObjectFile::getBytesInAddress() const { in getBytesInAddress()
2092 StringRef WasmObjectFile::getFileFormatName() const { return "WASM"; } in getFileFormatName()
2094 Triple::ArchType WasmObjectFile::getArch() const { in getArch()
2098 Expected<SubtargetFeatures> WasmObjectFile::getFeatures() const { in getFeatures()
2102 bool WasmObjectFile::isRelocatableObject() const { return HasLinkingSection; } in isRelocatableObject()
2104 bool WasmObjectFile::isSharedObject() const { return HasDylinkSection; } in isSharedObject()
2106 const WasmSection &WasmObjectFile::getWasmSection(DataRefImpl Ref) const { in getWasmSection()
2112 WasmObjectFile::getWasmSection(const SectionRef &Section) const { in getWasmSection()
2117 WasmObjectFile::getWasmRelocation(const RelocationRef &Ref) const { in getWasmRelocation()
2122 WasmObjectFile::getWasmRelocation(DataRefImpl Ref) const { in getWasmRelocation()