Lines Matching refs:WasmYAML
26 ErrorOr<WasmYAML::Object *> dump();
28 std::unique_ptr<WasmYAML::CustomSection>
34 static WasmYAML::Limits makeLimits(const wasm::WasmLimits &Limits) { in makeLimits()
35 WasmYAML::Limits L; in makeLimits()
42 static WasmYAML::Table makeTable(uint32_t Index, in makeTable()
44 WasmYAML::Table T; in makeTable()
51 std::unique_ptr<WasmYAML::CustomSection>
53 std::unique_ptr<WasmYAML::CustomSection> CustomSec; in dumpCustomSection()
55 std::unique_ptr<WasmYAML::DylinkSection> DylinkSec = in dumpCustomSection()
56 std::make_unique<WasmYAML::DylinkSection>(); in dumpCustomSection()
69 std::unique_ptr<WasmYAML::NameSection> NameSec = in dumpCustomSection()
70 std::make_unique<WasmYAML::NameSection>(); in dumpCustomSection()
72 WasmYAML::NameEntry NameEntry; in dumpCustomSection()
86 std::unique_ptr<WasmYAML::LinkingSection> LinkingSec = in dumpCustomSection()
87 std::make_unique<WasmYAML::LinkingSection>(); in dumpCustomSection()
92 LinkingSec->Comdats.emplace_back(WasmYAML::Comdat{ComdatName, {}}); in dumpCustomSection()
96 WasmYAML::ComdatEntry{wasm::WASM_COMDAT_FUNCTION, Func.Index}); in dumpCustomSection()
103 WasmYAML::SegmentInfo SegmentInfo; in dumpCustomSection()
112 WasmYAML::ComdatEntry{wasm::WASM_COMDAT_DATA, SegmentIndex}); in dumpCustomSection()
121 WasmYAML::ComdatEntry{wasm::WASM_COMDAT_SECTION, SectionIndex}); in dumpCustomSection()
127 WasmYAML::SymbolInfo Info; in dumpCustomSection()
150 WasmYAML::InitFunction F{Func.Priority, Func.Symbol}; in dumpCustomSection()
156 std::unique_ptr<WasmYAML::ProducersSection> ProducersSec = in dumpCustomSection()
157 std::make_unique<WasmYAML::ProducersSection>(); in dumpCustomSection()
160 WasmYAML::ProducerEntry Producer; in dumpCustomSection()
166 WasmYAML::ProducerEntry Producer; in dumpCustomSection()
172 WasmYAML::ProducerEntry Producer; in dumpCustomSection()
179 std::unique_ptr<WasmYAML::TargetFeaturesSection> TargetFeaturesSec = in dumpCustomSection()
180 std::make_unique<WasmYAML::TargetFeaturesSection>(); in dumpCustomSection()
182 WasmYAML::FeatureEntry Feature; in dumpCustomSection()
189 CustomSec = std::make_unique<WasmYAML::CustomSection>(WasmSec.Name); in dumpCustomSection()
195 ErrorOr<WasmYAML::Object *> WasmDumper::dump() { in dump()
196 auto Y = std::make_unique<WasmYAML::Object>(); in dump()
204 std::unique_ptr<WasmYAML::Section> S; in dump()
216 auto TypeSec = std::make_unique<WasmYAML::TypeSection>(); in dump()
219 WasmYAML::Signature Sig; in dump()
231 auto ImportSec = std::make_unique<WasmYAML::ImportSection>(); in dump()
233 WasmYAML::Import Im; in dump()
263 auto FuncSec = std::make_unique<WasmYAML::FunctionSection>(); in dump()
271 auto TableSec = std::make_unique<WasmYAML::TableSection>(); in dump()
279 auto MemorySec = std::make_unique<WasmYAML::MemorySection>(); in dump()
287 auto TagSec = std::make_unique<WasmYAML::TagSection>(); in dump()
295 auto GlobalSec = std::make_unique<WasmYAML::GlobalSection>(); in dump()
297 WasmYAML::Global G; in dump()
313 auto StartSec = std::make_unique<WasmYAML::StartSection>(); in dump()
319 auto ExportSec = std::make_unique<WasmYAML::ExportSection>(); in dump()
321 WasmYAML::Export Ex; in dump()
331 auto ElemSec = std::make_unique<WasmYAML::ElemSection>(); in dump()
333 WasmYAML::ElemSegment Seg; in dump()
350 auto CodeSec = std::make_unique<WasmYAML::CodeSection>(); in dump()
352 WasmYAML::Function Function; in dump()
355 WasmYAML::LocalDecl LocalDecl; in dump()
367 auto DataSec = std::make_unique<WasmYAML::DataSection>(); in dump()
369 WasmYAML::DataSegment Seg; in dump()
386 auto DataCountSec = std::make_unique<WasmYAML::DataCountSection>(); in dump()
396 WasmYAML::Relocation R; in dump()
411 ErrorOr<WasmYAML::Object *> YAMLOrErr = Dumper.dump(); in wasm2yaml()
415 std::unique_ptr<WasmYAML::Object> YAML(YAMLOrErr.get()); in wasm2yaml()