Lines Matching refs:WasmObjectFile
66 Expected<std::unique_ptr<WasmObjectFile>>
69 auto ObjectFile = std::make_unique<WasmObjectFile>(Buffer, Err); in createWasmObjectFile()
81 static uint8_t readUint8(WasmObjectFile::ReadContext &Ctx) { in readUint8()
87 static uint32_t readUint32(WasmObjectFile::ReadContext &Ctx) { in readUint32()
95 static int32_t readFloat32(WasmObjectFile::ReadContext &Ctx) { in readFloat32()
104 static int64_t readFloat64(WasmObjectFile::ReadContext &Ctx) { in readFloat64()
113 static uint64_t readULEB128(WasmObjectFile::ReadContext &Ctx) { in readULEB128()
123 static StringRef readString(WasmObjectFile::ReadContext &Ctx) { in readString()
133 static int64_t readLEB128(WasmObjectFile::ReadContext &Ctx) { in readLEB128()
143 static uint8_t readVaruint1(WasmObjectFile::ReadContext &Ctx) { in readVaruint1()
150 static int32_t readVarint32(WasmObjectFile::ReadContext &Ctx) { in readVarint32()
157 static uint32_t readVaruint32(WasmObjectFile::ReadContext &Ctx) { in readVaruint32()
164 static int64_t readVarint64(WasmObjectFile::ReadContext &Ctx) { in readVarint64()
168 static uint64_t readVaruint64(WasmObjectFile::ReadContext &Ctx) { in readVaruint64()
172 static uint8_t readOpcode(WasmObjectFile::ReadContext &Ctx) { in readOpcode()
177 WasmObjectFile::ReadContext &Ctx) { in readInitExpr()
250 static wasm::WasmLimits readLimits(WasmObjectFile::ReadContext &Ctx) { in readLimits()
259 static wasm::WasmTableType readTableType(WasmObjectFile::ReadContext &Ctx) { in readTableType()
266 static Error readSection(WasmSection &Section, WasmObjectFile::ReadContext &Ctx, in readSection()
283 WasmObjectFile::ReadContext SectionCtx; in readSection()
306 WasmObjectFile::WasmObjectFile(MemoryBufferRef Buffer, Error &Err) in WasmObjectFile() function in WasmObjectFile
347 Error WasmObjectFile::parseSection(WasmSection &Sec) { in parseSection()
387 Error WasmObjectFile::parseDylinkSection(ReadContext &Ctx) { in parseDylinkSection()
406 Error WasmObjectFile::parseDylink0Section(ReadContext &Ctx) { in parseDylink0Section()
465 Error WasmObjectFile::parseNameSection(ReadContext &Ctx) { in parseNameSection()
531 Error WasmObjectFile::parseLinkingSection(ReadContext &Ctx) { in parseLinkingSection()
600 Error WasmObjectFile::parseLinkingSectionSymtab(ReadContext &Ctx) { in parseLinkingSectionSymtab()
815 Error WasmObjectFile::parseLinkingSectionComdat(ReadContext &Ctx) { in parseLinkingSectionComdat()
871 Error WasmObjectFile::parseProducersSection(ReadContext &Ctx) { in parseProducersSection()
912 Error WasmObjectFile::parseTargetFeaturesSection(ReadContext &Ctx) { in parseTargetFeaturesSection()
942 Error WasmObjectFile::parseRelocSection(StringRef Name, ReadContext &Ctx) { in parseRelocSection()
1080 Error WasmObjectFile::parseCustomSection(WasmSection &Sec, ReadContext &Ctx) { in parseCustomSection()
1106 Error WasmObjectFile::parseTypeSection(ReadContext &Ctx) { in parseTypeSection()
1135 Error WasmObjectFile::parseImportSection(ReadContext &Ctx) { in parseImportSection()
1194 Error WasmObjectFile::parseFunctionSection(ReadContext &Ctx) { in parseFunctionSection()
1213 Error WasmObjectFile::parseTableSection(ReadContext &Ctx) { in parseTableSection()
1235 Error WasmObjectFile::parseMemorySection(ReadContext &Ctx) { in parseMemorySection()
1250 Error WasmObjectFile::parseTagSection(ReadContext &Ctx) { in parseTagSection()
1275 Error WasmObjectFile::parseGlobalSection(ReadContext &Ctx) { in parseGlobalSection()
1294 Error WasmObjectFile::parseExportSection(ReadContext &Ctx) { in parseExportSection()
1374 bool WasmObjectFile::isValidFunctionIndex(uint32_t Index) const { in isValidFunctionIndex()
1378 bool WasmObjectFile::isDefinedFunctionIndex(uint32_t Index) const { in isDefinedFunctionIndex()
1382 bool WasmObjectFile::isValidGlobalIndex(uint32_t Index) const { in isValidGlobalIndex()
1386 bool WasmObjectFile::isValidTableNumber(uint32_t Index) const { in isValidTableNumber()
1390 bool WasmObjectFile::isDefinedGlobalIndex(uint32_t Index) const { in isDefinedGlobalIndex()
1394 bool WasmObjectFile::isDefinedTableNumber(uint32_t Index) const { in isDefinedTableNumber()
1398 bool WasmObjectFile::isValidTagIndex(uint32_t Index) const { in isValidTagIndex()
1402 bool WasmObjectFile::isDefinedTagIndex(uint32_t Index) const { in isDefinedTagIndex()
1406 bool WasmObjectFile::isValidFunctionSymbol(uint32_t Index) const { in isValidFunctionSymbol()
1410 bool WasmObjectFile::isValidTableSymbol(uint32_t Index) const { in isValidTableSymbol()
1414 bool WasmObjectFile::isValidGlobalSymbol(uint32_t Index) const { in isValidGlobalSymbol()
1418 bool WasmObjectFile::isValidTagSymbol(uint32_t Index) const { in isValidTagSymbol()
1422 bool WasmObjectFile::isValidDataSymbol(uint32_t Index) const { in isValidDataSymbol()
1426 bool WasmObjectFile::isValidSectionSymbol(uint32_t Index) const { in isValidSectionSymbol()
1430 wasm::WasmFunction &WasmObjectFile::getDefinedFunction(uint32_t Index) { in getDefinedFunction()
1436 WasmObjectFile::getDefinedFunction(uint32_t Index) const { in getDefinedFunction()
1441 wasm::WasmGlobal &WasmObjectFile::getDefinedGlobal(uint32_t Index) { in getDefinedGlobal()
1446 wasm::WasmTag &WasmObjectFile::getDefinedTag(uint32_t Index) { in getDefinedTag()
1451 Error WasmObjectFile::parseStartSection(ReadContext &Ctx) { in parseStartSection()
1459 Error WasmObjectFile::parseCodeSection(ReadContext &Ctx) { in parseCodeSection()
1505 Error WasmObjectFile::parseElemSection(ReadContext &Ctx) { in parseElemSection()
1572 Error WasmObjectFile::parseDataSection(ReadContext &Ctx) { in parseDataSection()
1614 Error WasmObjectFile::parseDataCountSection(ReadContext &Ctx) { in parseDataCountSection()
1619 const wasm::WasmObjectHeader &WasmObjectFile::getHeader() const { in getHeader()
1623 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.b++; } in moveSymbolNext()
1625 Expected<uint32_t> WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
1643 basic_symbol_iterator WasmObjectFile::symbol_begin() const { in symbol_begin()
1650 basic_symbol_iterator WasmObjectFile::symbol_end() const { in symbol_end()
1657 const WasmSymbol &WasmObjectFile::getWasmSymbol(const DataRefImpl &Symb) const { in getWasmSymbol()
1661 const WasmSymbol &WasmObjectFile::getWasmSymbol(const SymbolRef &Symb) const { in getWasmSymbol()
1665 Expected<StringRef> WasmObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1669 Expected<uint64_t> WasmObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
1686 uint64_t WasmObjectFile::getWasmSymbolValue(const WasmSymbol &Sym) const { in getWasmSymbolValue()
1716 uint64_t WasmObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl()
1720 uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const { in getSymbolAlignment()
1725 uint64_t WasmObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const { in getCommonSymbolSizeImpl()
1731 WasmObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1754 WasmObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
1764 uint32_t WasmObjectFile::getSymbolSectionId(SymbolRef Symb) const { in getSymbolSectionId()
1769 uint32_t WasmObjectFile::getSymbolSectionIdImpl(const WasmSymbol &Sym) const { in getSymbolSectionIdImpl()
1788 void WasmObjectFile::moveSectionNext(DataRefImpl &Sec) const { Sec.d.a++; } in moveSectionNext()
1790 Expected<StringRef> WasmObjectFile::getSectionName(DataRefImpl Sec) const { in getSectionName()
1799 uint64_t WasmObjectFile::getSectionAddress(DataRefImpl Sec) const { return 0; } in getSectionAddress()
1801 uint64_t WasmObjectFile::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex()
1805 uint64_t WasmObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
1811 WasmObjectFile::getSectionContents(DataRefImpl Sec) const { in getSectionContents()
1818 uint64_t WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
1822 bool WasmObjectFile::isSectionCompressed(DataRefImpl Sec) const { in isSectionCompressed()
1826 bool WasmObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
1830 bool WasmObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
1834 bool WasmObjectFile::isSectionBSS(DataRefImpl Sec) const { return false; } in isSectionBSS()
1836 bool WasmObjectFile::isSectionVirtual(DataRefImpl Sec) const { return false; } in isSectionVirtual()
1838 relocation_iterator WasmObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
1845 relocation_iterator WasmObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
1853 void WasmObjectFile::moveRelocationNext(DataRefImpl &Rel) const { Rel.d.b++; } in moveRelocationNext()
1855 uint64_t WasmObjectFile::getRelocationOffset(DataRefImpl Ref) const { in getRelocationOffset()
1860 symbol_iterator WasmObjectFile::getRelocationSymbol(DataRefImpl Ref) const { in getRelocationSymbol()
1870 uint64_t WasmObjectFile::getRelocationType(DataRefImpl Ref) const { in getRelocationType()
1875 void WasmObjectFile::getRelocationTypeName( in getRelocationTypeName()
1894 section_iterator WasmObjectFile::section_begin() const { in section_begin()
1900 section_iterator WasmObjectFile::section_end() const { in section_end()
1906 uint8_t WasmObjectFile::getBytesInAddress() const { in getBytesInAddress()
1910 StringRef WasmObjectFile::getFileFormatName() const { return "WASM"; } in getFileFormatName()
1912 Triple::ArchType WasmObjectFile::getArch() const { in getArch()
1916 Expected<SubtargetFeatures> WasmObjectFile::getFeatures() const { in getFeatures()
1920 bool WasmObjectFile::isRelocatableObject() const { return HasLinkingSection; } in isRelocatableObject()
1922 bool WasmObjectFile::isSharedObject() const { return HasDylinkSection; } in isSharedObject()
1924 const WasmSection &WasmObjectFile::getWasmSection(DataRefImpl Ref) const { in getWasmSection()
1930 WasmObjectFile::getWasmSection(const SectionRef &Section) const { in getWasmSection()
1935 WasmObjectFile::getWasmRelocation(const RelocationRef &Ref) const { in getWasmRelocation()
1940 WasmObjectFile::getWasmRelocation(DataRefImpl Ref) const { in getWasmRelocation()