reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/lld/wasm/WriterUtils.h
   21 void writeUleb128(raw_ostream &os, uint32_t number, const Twine &msg);

References

tools/lld/wasm/InputChunks.cpp
  155     writeUleb128(os, rel.Type, "reloc type");
  156     writeUleb128(os, rel.Offset + off, "reloc offset");
  157     writeUleb128(os, file->calcNewIndex(rel), "reloc index");
  315     writeUleb128(os, WasmSym::memoryBase->getGlobalIndex(), "memory_base");
  326       writeUleb128(os, sym->getGOTIndex(), "global index");
  337       writeUleb128(os, baseSymbol->getGlobalIndex(), "base");
  345     writeUleb128(os, 2, "align");
  346     writeUleb128(os, 0, "offset");
tools/lld/wasm/OutputSections.cpp
   77   writeUleb128(os, bodySize, "section size");
   85   writeUleb128(os, functions.size(), "function count");
  135   writeUleb128(os, segmentCount, "data segment count");
  146     writeUleb128(os, segment->initFlags, "init flags");
  148       writeUleb128(os, 0, "memory index");
  160     writeUleb128(os, segment->size, "segment size");
tools/lld/wasm/SyntheticSections.cpp
   43     writeUleb128(to, type, "subsection type");
   44     writeUleb128(to, body.size(), "subsection size");
   61   writeUleb128(os, memSize, "MemSize");
   62   writeUleb128(os, memAlign, "MemAlign");
   63   writeUleb128(os, out.elemSec->numEntries(), "TableSize");
   64   writeUleb128(os, 0, "TableAlign");
   65   writeUleb128(os, symtab->sharedFiles.size(), "Needed");
   89   writeUleb128(bodyOutputStream, types.size(), "type count");
  127   writeUleb128(os, getNumImports(), "import count");
  200   writeUleb128(os, inputFunctions.size(), "function count");
  202     writeUleb128(os, out.typeSec->lookupType(func->signature), "sig index");
  218   writeUleb128(os, 1, "table count");
  231   writeUleb128(os, 1, "memory count");
  237   writeUleb128(os, flags, "memory limits flags");
  238   writeUleb128(os, numMemoryPages, "initial pages");
  240     writeUleb128(os, maxMemoryPages, "max pages");
  267   writeUleb128(os, numGlobals(), "global count");
  303   writeUleb128(os, inputEvents.size(), "event count");
  323   writeUleb128(os, exports.size(), "export count");
  334   writeUleb128(os, WasmSym::initMemory->getFunctionIndex(), "function index");
  347   writeUleb128(os, 1, "segment count");
  348   writeUleb128(os, 0, "table index");
  358   writeUleb128(os, indirectFunctions.size(), "elem count");
  363     writeUleb128(os, sym->getFunctionIndex(), "function index");
  375   writeUleb128(bodyOutputStream, numSegments, "data count");
  385   writeUleb128(os, WasmMetadataVersion, "Version");
  389     writeUleb128(sub.os, symtabEntries.size(), "num symbols");
  397       writeUleb128(sub.os, flags, "sym flags");
  400         writeUleb128(sub.os, f->getFunctionIndex(), "index");
  404         writeUleb128(sub.os, g->getGlobalIndex(), "index");
  408         writeUleb128(sub.os, e->getEventIndex(), "index");
  414           writeUleb128(sub.os, dataSym->getOutputSegmentIndex(), "index");
  415           writeUleb128(sub.os, dataSym->getOutputSegmentOffset(),
  417           writeUleb128(sub.os, dataSym->getSize(), "data size");
  421         writeUleb128(sub.os, s->section->sectionIndex, "sym section index");
  430     writeUleb128(sub.os, dataSegments.size(), "num data segments");
  433       writeUleb128(sub.os, s->alignment, "alignment");
  434       writeUleb128(sub.os, 0, "flags");
  441     writeUleb128(sub.os, initFunctions.size(), "num init functions");
  443       writeUleb128(sub.os, f.priority, "priority");
  444       writeUleb128(sub.os, f.sym->getOutputSymbolIndex(), "function index");
  476     writeUleb128(sub.os, comdats.size(), "num comdats");
  479       writeUleb128(sub.os, 0, "comdat flags"); // flags for future use
  480       writeUleb128(sub.os, c.second.size(), "num entries");
  483         writeUleb128(sub.os, entry.index, "entry index");
  507   writeUleb128(sub.os, numNames(), "name count");
  514       writeUleb128(sub.os, f->getFunctionIndex(), "func index");
  520       writeUleb128(sub.os, f->getFunctionIndex(), "func index");
  547   writeUleb128(os, fieldCount(), "field count");
  554     writeUleb128(os, field.second.size(), "number of entries");
  566   writeUleb128(os, emitted.size(), "feature count");
  576   writeUleb128(bodyOutputStream, sec->sectionIndex, "reloc section");
  577   writeUleb128(bodyOutputStream, count, "reloc count");
tools/lld/wasm/Writer.cpp
  708     writeUleb128(os, bodyContent.size(), "function size");
  722     writeUleb128(os, 0, "num locals");
  772       writeUleb128(os, WASM_OPCODE_I32_RMW_CMPXCHG, "i32.atomic.rmw.cmpxchg");
  782       writeUleb128(os, WASM_OPCODE_I32_ATOMIC_WAIT, "i32.atomic.wait");
  799           writeUleb128(os, WASM_OPCODE_MEMORY_INIT, "memory.init");
  800           writeUleb128(os, s->index, "segment index immediate");
  809       writeUleb128(os, WASM_OPCODE_I32_ATOMIC_STORE, "i32.atomic.store");
  816       writeUleb128(os, WASM_OPCODE_ATOMIC_NOTIFY, "atomic.notify");
  827           writeUleb128(os, WASM_OPCODE_DATA_DROP, "data.drop");
  828           writeUleb128(os, s->index, "segment index immediate");
  848     writeUleb128(os, 0, "num locals");
  868     writeUleb128(os, 0, "num locals");
  872       writeUleb128(os, WasmSym::applyRelocs->getFunctionIndex(),
  879       writeUleb128(os, f.sym->getFunctionIndex(), "function index");
  903     writeUleb128(os, 0, "num locals");
  906       writeUleb128(os, 0, "local index");
  909       writeUleb128(os, WasmSym::tlsBase->getGlobalIndex(), "global index");
  912       writeUleb128(os, 0, "local index");
  919       writeUleb128(os, WASM_OPCODE_MEMORY_INIT, "MEMORY.INIT");
  920       writeUleb128(os, tlsSeg->index, "segment index immediate");
tools/lld/wasm/WriterUtils.cpp
  110   writeUleb128(os, sig.Params.size(), "param Count");
  114   writeUleb128(os, sig.Returns.size(), "result Count");
  131   writeUleb128(os, alignment, "alignment");
  132   writeUleb128(os, offset, "offset");
  145     writeUleb128(os, initExpr.Value.Global, "literal (global index)");
  155   writeUleb128(os, limits.Initial, "limits initial");
  157     writeUleb128(os, limits.Maximum, "limits max");
  172   writeUleb128(os, type.Attribute, "event attribute");
  173   writeUleb128(os, type.SigIndex, "sig index");
  191     writeUleb128(os, import.SigIndex, "import sig index");
  215     writeUleb128(os, export_.Index, "function index");
  218     writeUleb128(os, export_.Index, "global index");
  221     writeUleb128(os, export_.Index, "memory index");
  224     writeUleb128(os, export_.Index, "table index");