Lines Matching refs:WasmObjectFile

56 Expected<std::unique_ptr<WasmObjectFile>>
59 auto ObjectFile = llvm::make_unique<WasmObjectFile>(Buffer, Err); in createWasmObjectFile()
71 static uint8_t readUint8(WasmObjectFile::ReadContext &Ctx) { in readUint8()
77 static uint32_t readUint32(WasmObjectFile::ReadContext &Ctx) { in readUint32()
85 static int32_t readFloat32(WasmObjectFile::ReadContext &Ctx) { in readFloat32()
94 static int64_t readFloat64(WasmObjectFile::ReadContext &Ctx) { in readFloat64()
103 static uint64_t readULEB128(WasmObjectFile::ReadContext &Ctx) { in readULEB128()
113 static StringRef readString(WasmObjectFile::ReadContext &Ctx) { in readString()
123 static int64_t readLEB128(WasmObjectFile::ReadContext &Ctx) { in readLEB128()
133 static uint8_t readVaruint1(WasmObjectFile::ReadContext &Ctx) { in readVaruint1()
140 static int32_t readVarint32(WasmObjectFile::ReadContext &Ctx) { in readVarint32()
147 static uint32_t readVaruint32(WasmObjectFile::ReadContext &Ctx) { in readVaruint32()
154 static int64_t readVarint64(WasmObjectFile::ReadContext &Ctx) { in readVarint64()
158 static uint8_t readOpcode(WasmObjectFile::ReadContext &Ctx) { in readOpcode()
163 WasmObjectFile::ReadContext &Ctx) { in readInitExpr()
195 static wasm::WasmLimits readLimits(WasmObjectFile::ReadContext &Ctx) { in readLimits()
204 static wasm::WasmTable readTable(WasmObjectFile::ReadContext &Ctx) { in readTable()
211 static Error readSection(WasmSection &Section, WasmObjectFile::ReadContext &Ctx, in readSection()
224 WasmObjectFile::ReadContext SectionCtx; in readSection()
247 WasmObjectFile::WasmObjectFile(MemoryBufferRef Buffer, Error &Err) in WasmObjectFile() function in WasmObjectFile
287 Error WasmObjectFile::parseSection(WasmSection &Sec) { in parseSection()
325 Error WasmObjectFile::parseDylinkSection(ReadContext &Ctx) { in parseDylinkSection()
341 Error WasmObjectFile::parseNameSection(ReadContext &Ctx) { in parseNameSection()
387 Error WasmObjectFile::parseLinkingSection(ReadContext &Ctx) { in parseLinkingSection()
461 Error WasmObjectFile::parseLinkingSectionSymtab(ReadContext &Ctx) { in parseLinkingSectionSymtab()
629 Error WasmObjectFile::parseLinkingSectionComdat(ReadContext &Ctx) { in parseLinkingSectionComdat()
676 Error WasmObjectFile::parseRelocSection(StringRef Name, ReadContext &Ctx) { in parseRelocSection()
764 Error WasmObjectFile::parseCustomSection(WasmSection &Sec, ReadContext &Ctx) { in parseCustomSection()
781 Error WasmObjectFile::parseTypeSection(ReadContext &Ctx) { in parseTypeSection()
813 Error WasmObjectFile::parseImportSection(ReadContext &Ctx) { in parseImportSection()
857 Error WasmObjectFile::parseFunctionSection(ReadContext &Ctx) { in parseFunctionSection()
874 Error WasmObjectFile::parseTableSection(ReadContext &Ctx) { in parseTableSection()
890 Error WasmObjectFile::parseMemorySection(ReadContext &Ctx) { in parseMemorySection()
902 Error WasmObjectFile::parseGlobalSection(ReadContext &Ctx) { in parseGlobalSection()
921 Error WasmObjectFile::parseEventSection(ReadContext &Ctx) { in parseEventSection()
939 Error WasmObjectFile::parseExportSection(ReadContext &Ctx) { in parseExportSection()
978 bool WasmObjectFile::isValidFunctionIndex(uint32_t Index) const { in isValidFunctionIndex()
982 bool WasmObjectFile::isDefinedFunctionIndex(uint32_t Index) const { in isDefinedFunctionIndex()
986 bool WasmObjectFile::isValidGlobalIndex(uint32_t Index) const { in isValidGlobalIndex()
990 bool WasmObjectFile::isDefinedGlobalIndex(uint32_t Index) const { in isDefinedGlobalIndex()
994 bool WasmObjectFile::isValidEventIndex(uint32_t Index) const { in isValidEventIndex()
998 bool WasmObjectFile::isDefinedEventIndex(uint32_t Index) const { in isDefinedEventIndex()
1002 bool WasmObjectFile::isValidFunctionSymbol(uint32_t Index) const { in isValidFunctionSymbol()
1006 bool WasmObjectFile::isValidGlobalSymbol(uint32_t Index) const { in isValidGlobalSymbol()
1010 bool WasmObjectFile::isValidEventSymbol(uint32_t Index) const { in isValidEventSymbol()
1014 bool WasmObjectFile::isValidDataSymbol(uint32_t Index) const { in isValidDataSymbol()
1018 bool WasmObjectFile::isValidSectionSymbol(uint32_t Index) const { in isValidSectionSymbol()
1022 wasm::WasmFunction &WasmObjectFile::getDefinedFunction(uint32_t Index) { in getDefinedFunction()
1027 wasm::WasmGlobal &WasmObjectFile::getDefinedGlobal(uint32_t Index) { in getDefinedGlobal()
1032 wasm::WasmEvent &WasmObjectFile::getDefinedEvent(uint32_t Index) { in getDefinedEvent()
1037 Error WasmObjectFile::parseStartSection(ReadContext &Ctx) { in parseStartSection()
1045 Error WasmObjectFile::parseCodeSection(ReadContext &Ctx) { in parseCodeSection()
1087 Error WasmObjectFile::parseElemSection(ReadContext &Ctx) { in parseElemSection()
1111 Error WasmObjectFile::parseDataSection(ReadContext &Ctx) { in parseDataSection()
1140 const uint8_t *WasmObjectFile::getPtr(size_t Offset) const { in getPtr()
1144 const wasm::WasmObjectHeader &WasmObjectFile::getHeader() const { in getHeader()
1148 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.a++; } in moveSymbolNext()
1150 uint32_t WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
1168 basic_symbol_iterator WasmObjectFile::symbol_begin() const { in symbol_begin()
1174 basic_symbol_iterator WasmObjectFile::symbol_end() const { in symbol_end()
1180 const WasmSymbol &WasmObjectFile::getWasmSymbol(const DataRefImpl &Symb) const { in getWasmSymbol()
1184 const WasmSymbol &WasmObjectFile::getWasmSymbol(const SymbolRef &Symb) const { in getWasmSymbol()
1188 Expected<StringRef> WasmObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1192 Expected<uint64_t> WasmObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
1196 uint64_t WasmObjectFile::getWasmSymbolValue(const WasmSymbol &Sym) const { in getWasmSymbolValue()
1216 uint64_t WasmObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { in getSymbolValueImpl()
1220 uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const { in getSymbolAlignment()
1225 uint64_t WasmObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const { in getCommonSymbolSizeImpl()
1231 WasmObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1252 WasmObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
1280 void WasmObjectFile::moveSectionNext(DataRefImpl &Sec) const { Sec.d.a++; } in moveSectionNext()
1282 std::error_code WasmObjectFile::getSectionName(DataRefImpl Sec, in getSectionName()
1312 uint64_t WasmObjectFile::getSectionAddress(DataRefImpl Sec) const { return 0; } in getSectionAddress()
1314 uint64_t WasmObjectFile::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex()
1318 uint64_t WasmObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
1323 std::error_code WasmObjectFile::getSectionContents(DataRefImpl Sec, in getSectionContents()
1333 uint64_t WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
1337 bool WasmObjectFile::isSectionCompressed(DataRefImpl Sec) const { in isSectionCompressed()
1341 bool WasmObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
1345 bool WasmObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
1349 bool WasmObjectFile::isSectionBSS(DataRefImpl Sec) const { return false; } in isSectionBSS()
1351 bool WasmObjectFile::isSectionVirtual(DataRefImpl Sec) const { return false; } in isSectionVirtual()
1353 bool WasmObjectFile::isSectionBitcode(DataRefImpl Sec) const { return false; } in isSectionBitcode()
1355 relocation_iterator WasmObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
1362 relocation_iterator WasmObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
1370 void WasmObjectFile::moveRelocationNext(DataRefImpl &Rel) const { Rel.d.b++; } in moveRelocationNext()
1372 uint64_t WasmObjectFile::getRelocationOffset(DataRefImpl Ref) const { in getRelocationOffset()
1377 symbol_iterator WasmObjectFile::getRelocationSymbol(DataRefImpl Ref) const { in getRelocationSymbol()
1387 uint64_t WasmObjectFile::getRelocationType(DataRefImpl Ref) const { in getRelocationType()
1392 void WasmObjectFile::getRelocationTypeName( in getRelocationTypeName()
1411 section_iterator WasmObjectFile::section_begin() const { in section_begin()
1417 section_iterator WasmObjectFile::section_end() const { in section_end()
1423 uint8_t WasmObjectFile::getBytesInAddress() const { return 4; } in getBytesInAddress()
1425 StringRef WasmObjectFile::getFileFormatName() const { return "WASM"; } in getFileFormatName()
1427 Triple::ArchType WasmObjectFile::getArch() const { return Triple::wasm32; } in getArch()
1429 SubtargetFeatures WasmObjectFile::getFeatures() const { in getFeatures()
1433 bool WasmObjectFile::isRelocatableObject() const { return HasLinkingSection; } in isRelocatableObject()
1435 bool WasmObjectFile::isSharedObject() const { return HasDylinkSection; } in isSharedObject()
1437 const WasmSection &WasmObjectFile::getWasmSection(DataRefImpl Ref) const { in getWasmSection()
1443 WasmObjectFile::getWasmSection(const SectionRef &Section) const { in getWasmSection()
1448 WasmObjectFile::getWasmRelocation(const RelocationRef &Ref) const { in getWasmRelocation()
1453 WasmObjectFile::getWasmRelocation(DataRefImpl Ref) const { in getWasmRelocation()