Lines Matching refs:WasmObjectFile
57 Expected<std::unique_ptr<WasmObjectFile>>
60 auto ObjectFile = std::make_unique<WasmObjectFile>(Buffer, Err); in createWasmObjectFile()
72 static uint8_t readUint8(WasmObjectFile::ReadContext &Ctx) { in readUint8()
78 static uint32_t readUint32(WasmObjectFile::ReadContext &Ctx) { in readUint32()
86 static int32_t readFloat32(WasmObjectFile::ReadContext &Ctx) { in readFloat32()
95 static int64_t readFloat64(WasmObjectFile::ReadContext &Ctx) { in readFloat64()
104 static uint64_t readULEB128(WasmObjectFile::ReadContext &Ctx) { in readULEB128()
114 static StringRef readString(WasmObjectFile::ReadContext &Ctx) { in readString()
124 static int64_t readLEB128(WasmObjectFile::ReadContext &Ctx) { in readLEB128()
134 static uint8_t readVaruint1(WasmObjectFile::ReadContext &Ctx) { in readVaruint1()
141 static int32_t readVarint32(WasmObjectFile::ReadContext &Ctx) { in readVarint32()
148 static uint32_t readVaruint32(WasmObjectFile::ReadContext &Ctx) { in readVaruint32()
155 static int64_t readVarint64(WasmObjectFile::ReadContext &Ctx) { in readVarint64()
159 static uint64_t readVaruint64(WasmObjectFile::ReadContext &Ctx) { in readVaruint64()
163 static uint8_t readOpcode(WasmObjectFile::ReadContext &Ctx) { in readOpcode()
168 WasmObjectFile::ReadContext &Ctx) { in readInitExpr()
208 static wasm::WasmLimits readLimits(WasmObjectFile::ReadContext &Ctx) { in readLimits()
217 static wasm::WasmTableType readTableType(WasmObjectFile::ReadContext &Ctx) { in readTableType()
224 static Error readSection(WasmSection &Section, WasmObjectFile::ReadContext &Ctx, in readSection()
237 WasmObjectFile::ReadContext SectionCtx; in readSection()
260 WasmObjectFile::WasmObjectFile(MemoryBufferRef Buffer, Error &Err) in WasmObjectFile() function in WasmObjectFile
301 Error WasmObjectFile::parseSection(WasmSection &Sec) { in parseSection()
341 Error WasmObjectFile::parseDylinkSection(ReadContext &Ctx) { in parseDylinkSection()
358 Error WasmObjectFile::parseNameSection(ReadContext &Ctx) { in parseNameSection()
428 Error WasmObjectFile::parseLinkingSection(ReadContext &Ctx) { in parseLinkingSection()
502 Error WasmObjectFile::parseLinkingSectionSymtab(ReadContext &Ctx) { in parseLinkingSectionSymtab()
720 Error WasmObjectFile::parseLinkingSectionComdat(ReadContext &Ctx) { in parseLinkingSectionComdat()
776 Error WasmObjectFile::parseProducersSection(ReadContext &Ctx) { in parseProducersSection()
817 Error WasmObjectFile::parseTargetFeaturesSection(ReadContext &Ctx) { in parseTargetFeaturesSection()
847 Error WasmObjectFile::parseRelocSection(StringRef Name, ReadContext &Ctx) { in parseRelocSection()
983 Error WasmObjectFile::parseCustomSection(WasmSection &Sec, ReadContext &Ctx) { in parseCustomSection()
1006 Error WasmObjectFile::parseTypeSection(ReadContext &Ctx) { in parseTypeSection()
1035 Error WasmObjectFile::parseImportSection(ReadContext &Ctx) { in parseImportSection()
1085 Error WasmObjectFile::parseFunctionSection(ReadContext &Ctx) { in parseFunctionSection()
1103 Error WasmObjectFile::parseTableSection(ReadContext &Ctx) { in parseTableSection()
1125 Error WasmObjectFile::parseMemorySection(ReadContext &Ctx) { in parseMemorySection()
1140 Error WasmObjectFile::parseTagSection(ReadContext &Ctx) { in parseTagSection()
1158 Error WasmObjectFile::parseGlobalSection(ReadContext &Ctx) { in parseGlobalSection()
1177 Error WasmObjectFile::parseExportSection(ReadContext &Ctx) { in parseExportSection()
1218 bool WasmObjectFile::isValidFunctionIndex(uint32_t Index) const { in isValidFunctionIndex()
1222 bool WasmObjectFile::isDefinedFunctionIndex(uint32_t Index) const { in isDefinedFunctionIndex()
1226 bool WasmObjectFile::isValidGlobalIndex(uint32_t Index) const { in isValidGlobalIndex()
1230 bool WasmObjectFile::isValidTableNumber(uint32_t Index) const { in isValidTableNumber()
1234 bool WasmObjectFile::isDefinedGlobalIndex(uint32_t Index) const { in isDefinedGlobalIndex()
1238 bool WasmObjectFile::isDefinedTableNumber(uint32_t Index) const { in isDefinedTableNumber()
1242 bool WasmObjectFile::isValidTagIndex(uint32_t Index) const { in isValidTagIndex()
1246 bool WasmObjectFile::isDefinedTagIndex(uint32_t Index) const { in isDefinedTagIndex()
1250 bool WasmObjectFile::isValidFunctionSymbol(uint32_t Index) const { in isValidFunctionSymbol()
1254 bool WasmObjectFile::isValidTableSymbol(uint32_t Index) const { in isValidTableSymbol()
1258 bool WasmObjectFile::isValidGlobalSymbol(uint32_t Index) const { in isValidGlobalSymbol()
1262 bool WasmObjectFile::isValidTagSymbol(uint32_t Index) const { in isValidTagSymbol()
1266 bool WasmObjectFile::isValidDataSymbol(uint32_t Index) const { in isValidDataSymbol()
1270 bool WasmObjectFile::isValidSectionSymbol(uint32_t Index) const { in isValidSectionSymbol()
1274 wasm::WasmFunction &WasmObjectFile::getDefinedFunction(uint32_t Index) { in getDefinedFunction()
1280 WasmObjectFile::getDefinedFunction(uint32_t Index) const { in getDefinedFunction()
1285 wasm::WasmGlobal &WasmObjectFile::getDefinedGlobal(uint32_t Index) { in getDefinedGlobal()
1290 wasm::WasmTag &WasmObjectFile::getDefinedTag(uint32_t Index) { in getDefinedTag()
1295 Error WasmObjectFile::parseStartSection(ReadContext &Ctx) { in parseStartSection()
1303 Error WasmObjectFile::parseCodeSection(ReadContext &Ctx) { in parseCodeSection()
1345 Error WasmObjectFile::parseElemSection(ReadContext &Ctx) { in parseElemSection()
1410 Error WasmObjectFile::parseDataSection(ReadContext &Ctx) { in parseDataSection()
1451 Error WasmObjectFile::parseDataCountSection(ReadContext &Ctx) { in parseDataCountSection()
1456 const wasm::WasmObjectHeader &WasmObjectFile::getHeader() const { in getHeader()
1460 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.b++; } in moveSymbolNext()
1462 Expected<uint32_t> WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
1480 basic_symbol_iterator WasmObjectFile::symbol_begin() const { in symbol_begin()
1487 basic_symbol_iterator WasmObjectFile::symbol_end() const { in symbol_end()
1494 const WasmSymbol &WasmObjectFile::getWasmSymbol(const DataRefImpl &Symb) const { in getWasmSymbol()
1498 const WasmSymbol &WasmObjectFile::getWasmSymbol(const SymbolRef &Symb) const { in getWasmSymbol()
1502 Expected<StringRef> WasmObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1506 Expected<uint64_t> WasmObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
1515 uint64_t WasmObjectFile::getWasmSymbolValue(const WasmSymbol &Sym) const { in getWasmSymbolValue()
1541 uint64_t WasmObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl()
1545 uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const { in getSymbolAlignment()
1550 uint64_t WasmObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const { in getCommonSymbolSizeImpl()
1556 WasmObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1579 WasmObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
1589 uint32_t WasmObjectFile::getSymbolSectionId(SymbolRef Symb) const { in getSymbolSectionId()
1594 uint32_t WasmObjectFile::getSymbolSectionIdImpl(const WasmSymbol &Sym) const { in getSymbolSectionIdImpl()
1613 void WasmObjectFile::moveSectionNext(DataRefImpl &Sec) const { Sec.d.a++; } in moveSectionNext()
1615 Expected<StringRef> WasmObjectFile::getSectionName(DataRefImpl Sec) const { in getSectionName()
1642 uint64_t WasmObjectFile::getSectionAddress(DataRefImpl Sec) const { return 0; } in getSectionAddress()
1644 uint64_t WasmObjectFile::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex()
1648 uint64_t WasmObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
1654 WasmObjectFile::getSectionContents(DataRefImpl Sec) const { in getSectionContents()
1661 uint64_t WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
1665 bool WasmObjectFile::isSectionCompressed(DataRefImpl Sec) const { in isSectionCompressed()
1669 bool WasmObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
1673 bool WasmObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
1677 bool WasmObjectFile::isSectionBSS(DataRefImpl Sec) const { return false; } in isSectionBSS()
1679 bool WasmObjectFile::isSectionVirtual(DataRefImpl Sec) const { return false; } in isSectionVirtual()
1681 relocation_iterator WasmObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
1688 relocation_iterator WasmObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
1696 void WasmObjectFile::moveRelocationNext(DataRefImpl &Rel) const { Rel.d.b++; } in moveRelocationNext()
1698 uint64_t WasmObjectFile::getRelocationOffset(DataRefImpl Ref) const { in getRelocationOffset()
1703 symbol_iterator WasmObjectFile::getRelocationSymbol(DataRefImpl Ref) const { in getRelocationSymbol()
1713 uint64_t WasmObjectFile::getRelocationType(DataRefImpl Ref) const { in getRelocationType()
1718 void WasmObjectFile::getRelocationTypeName( in getRelocationTypeName()
1737 section_iterator WasmObjectFile::section_begin() const { in section_begin()
1743 section_iterator WasmObjectFile::section_end() const { in section_end()
1749 uint8_t WasmObjectFile::getBytesInAddress() const { in getBytesInAddress()
1753 StringRef WasmObjectFile::getFileFormatName() const { return "WASM"; } in getFileFormatName()
1755 Triple::ArchType WasmObjectFile::getArch() const { in getArch()
1759 SubtargetFeatures WasmObjectFile::getFeatures() const { in getFeatures()
1763 bool WasmObjectFile::isRelocatableObject() const { return HasLinkingSection; } in isRelocatableObject()
1765 bool WasmObjectFile::isSharedObject() const { return HasDylinkSection; } in isSharedObject()
1767 const WasmSection &WasmObjectFile::getWasmSection(DataRefImpl Ref) const { in getWasmSection()
1773 WasmObjectFile::getWasmSection(const SectionRef &Section) const { in getWasmSection()
1778 WasmObjectFile::getWasmRelocation(const RelocationRef &Ref) const { in getWasmRelocation()
1783 WasmObjectFile::getWasmRelocation(DataRefImpl Ref) const { in getWasmRelocation()