Lines Matching refs:WasmObjectFile

55 Expected<std::unique_ptr<WasmObjectFile>>
58 auto ObjectFile = std::make_unique<WasmObjectFile>(Buffer, Err); in createWasmObjectFile()
70 static uint8_t readUint8(WasmObjectFile::ReadContext &Ctx) { in readUint8()
76 static uint32_t readUint32(WasmObjectFile::ReadContext &Ctx) { in readUint32()
84 static int32_t readFloat32(WasmObjectFile::ReadContext &Ctx) { in readFloat32()
93 static int64_t readFloat64(WasmObjectFile::ReadContext &Ctx) { in readFloat64()
102 static uint64_t readULEB128(WasmObjectFile::ReadContext &Ctx) { in readULEB128()
112 static StringRef readString(WasmObjectFile::ReadContext &Ctx) { in readString()
122 static int64_t readLEB128(WasmObjectFile::ReadContext &Ctx) { in readLEB128()
132 static uint8_t readVaruint1(WasmObjectFile::ReadContext &Ctx) { in readVaruint1()
139 static int32_t readVarint32(WasmObjectFile::ReadContext &Ctx) { in readVarint32()
146 static uint32_t readVaruint32(WasmObjectFile::ReadContext &Ctx) { in readVaruint32()
153 static int64_t readVarint64(WasmObjectFile::ReadContext &Ctx) { in readVarint64()
157 static uint64_t readVaruint64(WasmObjectFile::ReadContext &Ctx) { in readVaruint64()
161 static uint8_t readOpcode(WasmObjectFile::ReadContext &Ctx) { in readOpcode()
166 WasmObjectFile::ReadContext &Ctx) { in readInitExpr()
239 static wasm::WasmLimits readLimits(WasmObjectFile::ReadContext &Ctx) { in readLimits()
248 static wasm::WasmTableType readTableType(WasmObjectFile::ReadContext &Ctx) { in readTableType()
255 static Error readSection(WasmSection &Section, WasmObjectFile::ReadContext &Ctx, in readSection()
268 WasmObjectFile::ReadContext SectionCtx; in readSection()
291 WasmObjectFile::WasmObjectFile(MemoryBufferRef Buffer, Error &Err) in WasmObjectFile() function in WasmObjectFile
332 Error WasmObjectFile::parseSection(WasmSection &Sec) { in parseSection()
372 Error WasmObjectFile::parseDylinkSection(ReadContext &Ctx) { in parseDylinkSection()
391 Error WasmObjectFile::parseDylink0Section(ReadContext &Ctx) { in parseDylink0Section()
450 Error WasmObjectFile::parseNameSection(ReadContext &Ctx) { in parseNameSection()
516 Error WasmObjectFile::parseLinkingSection(ReadContext &Ctx) { in parseLinkingSection()
585 Error WasmObjectFile::parseLinkingSectionSymtab(ReadContext &Ctx) { in parseLinkingSectionSymtab()
800 Error WasmObjectFile::parseLinkingSectionComdat(ReadContext &Ctx) { in parseLinkingSectionComdat()
856 Error WasmObjectFile::parseProducersSection(ReadContext &Ctx) { in parseProducersSection()
897 Error WasmObjectFile::parseTargetFeaturesSection(ReadContext &Ctx) { in parseTargetFeaturesSection()
927 Error WasmObjectFile::parseRelocSection(StringRef Name, ReadContext &Ctx) { in parseRelocSection()
1063 Error WasmObjectFile::parseCustomSection(WasmSection &Sec, ReadContext &Ctx) { in parseCustomSection()
1089 Error WasmObjectFile::parseTypeSection(ReadContext &Ctx) { in parseTypeSection()
1118 Error WasmObjectFile::parseImportSection(ReadContext &Ctx) { in parseImportSection()
1177 Error WasmObjectFile::parseFunctionSection(ReadContext &Ctx) { in parseFunctionSection()
1196 Error WasmObjectFile::parseTableSection(ReadContext &Ctx) { in parseTableSection()
1218 Error WasmObjectFile::parseMemorySection(ReadContext &Ctx) { in parseMemorySection()
1233 Error WasmObjectFile::parseTagSection(ReadContext &Ctx) { in parseTagSection()
1258 Error WasmObjectFile::parseGlobalSection(ReadContext &Ctx) { in parseGlobalSection()
1277 Error WasmObjectFile::parseExportSection(ReadContext &Ctx) { in parseExportSection()
1318 bool WasmObjectFile::isValidFunctionIndex(uint32_t Index) const { in isValidFunctionIndex()
1322 bool WasmObjectFile::isDefinedFunctionIndex(uint32_t Index) const { in isDefinedFunctionIndex()
1326 bool WasmObjectFile::isValidGlobalIndex(uint32_t Index) const { in isValidGlobalIndex()
1330 bool WasmObjectFile::isValidTableNumber(uint32_t Index) const { in isValidTableNumber()
1334 bool WasmObjectFile::isDefinedGlobalIndex(uint32_t Index) const { in isDefinedGlobalIndex()
1338 bool WasmObjectFile::isDefinedTableNumber(uint32_t Index) const { in isDefinedTableNumber()
1342 bool WasmObjectFile::isValidTagIndex(uint32_t Index) const { in isValidTagIndex()
1346 bool WasmObjectFile::isDefinedTagIndex(uint32_t Index) const { in isDefinedTagIndex()
1350 bool WasmObjectFile::isValidFunctionSymbol(uint32_t Index) const { in isValidFunctionSymbol()
1354 bool WasmObjectFile::isValidTableSymbol(uint32_t Index) const { in isValidTableSymbol()
1358 bool WasmObjectFile::isValidGlobalSymbol(uint32_t Index) const { in isValidGlobalSymbol()
1362 bool WasmObjectFile::isValidTagSymbol(uint32_t Index) const { in isValidTagSymbol()
1366 bool WasmObjectFile::isValidDataSymbol(uint32_t Index) const { in isValidDataSymbol()
1370 bool WasmObjectFile::isValidSectionSymbol(uint32_t Index) const { in isValidSectionSymbol()
1374 wasm::WasmFunction &WasmObjectFile::getDefinedFunction(uint32_t Index) { in getDefinedFunction()
1380 WasmObjectFile::getDefinedFunction(uint32_t Index) const { in getDefinedFunction()
1385 wasm::WasmGlobal &WasmObjectFile::getDefinedGlobal(uint32_t Index) { in getDefinedGlobal()
1390 wasm::WasmTag &WasmObjectFile::getDefinedTag(uint32_t Index) { in getDefinedTag()
1395 Error WasmObjectFile::parseStartSection(ReadContext &Ctx) { in parseStartSection()
1403 Error WasmObjectFile::parseCodeSection(ReadContext &Ctx) { in parseCodeSection()
1444 Error WasmObjectFile::parseElemSection(ReadContext &Ctx) { in parseElemSection()
1510 Error WasmObjectFile::parseDataSection(ReadContext &Ctx) { in parseDataSection()
1552 Error WasmObjectFile::parseDataCountSection(ReadContext &Ctx) { in parseDataCountSection()
1557 const wasm::WasmObjectHeader &WasmObjectFile::getHeader() const { in getHeader()
1561 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.b++; } in moveSymbolNext()
1563 Expected<uint32_t> WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
1581 basic_symbol_iterator WasmObjectFile::symbol_begin() const { in symbol_begin()
1588 basic_symbol_iterator WasmObjectFile::symbol_end() const { in symbol_end()
1595 const WasmSymbol &WasmObjectFile::getWasmSymbol(const DataRefImpl &Symb) const { in getWasmSymbol()
1599 const WasmSymbol &WasmObjectFile::getWasmSymbol(const SymbolRef &Symb) const { in getWasmSymbol()
1603 Expected<StringRef> WasmObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1607 Expected<uint64_t> WasmObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
1616 uint64_t WasmObjectFile::getWasmSymbolValue(const WasmSymbol &Sym) const { in getWasmSymbolValue()
1644 uint64_t WasmObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl()
1648 uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const { in getSymbolAlignment()
1653 uint64_t WasmObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const { in getCommonSymbolSizeImpl()
1659 WasmObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1682 WasmObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
1692 uint32_t WasmObjectFile::getSymbolSectionId(SymbolRef Symb) const { in getSymbolSectionId()
1697 uint32_t WasmObjectFile::getSymbolSectionIdImpl(const WasmSymbol &Sym) const { in getSymbolSectionIdImpl()
1716 void WasmObjectFile::moveSectionNext(DataRefImpl &Sec) const { Sec.d.a++; } in moveSectionNext()
1718 Expected<StringRef> WasmObjectFile::getSectionName(DataRefImpl Sec) const { in getSectionName()
1727 uint64_t WasmObjectFile::getSectionAddress(DataRefImpl Sec) const { return 0; } in getSectionAddress()
1729 uint64_t WasmObjectFile::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex()
1733 uint64_t WasmObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
1739 WasmObjectFile::getSectionContents(DataRefImpl Sec) const { in getSectionContents()
1746 uint64_t WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
1750 bool WasmObjectFile::isSectionCompressed(DataRefImpl Sec) const { in isSectionCompressed()
1754 bool WasmObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
1758 bool WasmObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
1762 bool WasmObjectFile::isSectionBSS(DataRefImpl Sec) const { return false; } in isSectionBSS()
1764 bool WasmObjectFile::isSectionVirtual(DataRefImpl Sec) const { return false; } in isSectionVirtual()
1766 relocation_iterator WasmObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
1773 relocation_iterator WasmObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
1781 void WasmObjectFile::moveRelocationNext(DataRefImpl &Rel) const { Rel.d.b++; } in moveRelocationNext()
1783 uint64_t WasmObjectFile::getRelocationOffset(DataRefImpl Ref) const { in getRelocationOffset()
1788 symbol_iterator WasmObjectFile::getRelocationSymbol(DataRefImpl Ref) const { in getRelocationSymbol()
1798 uint64_t WasmObjectFile::getRelocationType(DataRefImpl Ref) const { in getRelocationType()
1803 void WasmObjectFile::getRelocationTypeName( in getRelocationTypeName()
1822 section_iterator WasmObjectFile::section_begin() const { in section_begin()
1828 section_iterator WasmObjectFile::section_end() const { in section_end()
1834 uint8_t WasmObjectFile::getBytesInAddress() const { in getBytesInAddress()
1838 StringRef WasmObjectFile::getFileFormatName() const { return "WASM"; } in getFileFormatName()
1840 Triple::ArchType WasmObjectFile::getArch() const { in getArch()
1844 SubtargetFeatures WasmObjectFile::getFeatures() const { in getFeatures()
1848 bool WasmObjectFile::isRelocatableObject() const { return HasLinkingSection; } in isRelocatableObject()
1850 bool WasmObjectFile::isSharedObject() const { return HasDylinkSection; } in isSharedObject()
1852 const WasmSection &WasmObjectFile::getWasmSection(DataRefImpl Ref) const { in getWasmSection()
1858 WasmObjectFile::getWasmSection(const SectionRef &Section) const { in getWasmSection()
1863 WasmObjectFile::getWasmRelocation(const RelocationRef &Ref) const { in getWasmRelocation()
1868 WasmObjectFile::getWasmRelocation(DataRefImpl Ref) const { in getWasmRelocation()