Lines Matching refs:WasmYAML
28 WasmWriter(WasmYAML::Object &Obj, yaml::ErrorHandler EH) in WasmWriter()
33 void writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec,
36 void writeInitExpr(raw_ostream &OS, const WasmYAML::InitExpr &InitExpr);
38 void writeSectionContent(raw_ostream &OS, WasmYAML::CustomSection &Section);
39 void writeSectionContent(raw_ostream &OS, WasmYAML::TypeSection &Section);
40 void writeSectionContent(raw_ostream &OS, WasmYAML::ImportSection &Section);
41 void writeSectionContent(raw_ostream &OS, WasmYAML::FunctionSection &Section);
42 void writeSectionContent(raw_ostream &OS, WasmYAML::TableSection &Section);
43 void writeSectionContent(raw_ostream &OS, WasmYAML::MemorySection &Section);
44 void writeSectionContent(raw_ostream &OS, WasmYAML::TagSection &Section);
45 void writeSectionContent(raw_ostream &OS, WasmYAML::GlobalSection &Section);
46 void writeSectionContent(raw_ostream &OS, WasmYAML::ExportSection &Section);
47 void writeSectionContent(raw_ostream &OS, WasmYAML::StartSection &Section);
48 void writeSectionContent(raw_ostream &OS, WasmYAML::ElemSection &Section);
49 void writeSectionContent(raw_ostream &OS, WasmYAML::CodeSection &Section);
50 void writeSectionContent(raw_ostream &OS, WasmYAML::DataSection &Section);
51 void writeSectionContent(raw_ostream &OS, WasmYAML::DataCountSection &Section);
54 void writeSectionContent(raw_ostream &OS, WasmYAML::DylinkSection &Section);
55 void writeSectionContent(raw_ostream &OS, WasmYAML::NameSection &Section);
56 void writeSectionContent(raw_ostream &OS, WasmYAML::LinkingSection &Section);
57 void writeSectionContent(raw_ostream &OS, WasmYAML::ProducersSection &Section);
59 WasmYAML::TargetFeaturesSection &Section);
60 WasmYAML::Object &Obj;
118 static int writeLimits(const WasmYAML::Limits &Lim, raw_ostream &OS) { in writeLimits()
132 const WasmYAML::InitExpr &InitExpr) { in writeInitExpr()
163 WasmYAML::DylinkSection &Section) { in writeSectionContent()
186 WasmYAML::LinkingSection &Section) { in writeSectionContent()
197 const WasmYAML::SymbolInfo &Info = Sym.value(); in writeSectionContent()
234 for (const WasmYAML::SegmentInfo &SegmentInfo : Section.SegmentInfos) { in writeSectionContent()
246 for (const WasmYAML::InitFunction &Func : Section.InitFunctions) { in writeSectionContent()
261 for (const WasmYAML::ComdatEntry &Entry : C.Entries) { in writeSectionContent()
271 WasmYAML::NameSection &Section) { in writeSectionContent()
279 for (const WasmYAML::NameEntry &NameEntry : Section.FunctionNames) { in writeSectionContent()
292 for (const WasmYAML::NameEntry &NameEntry : Section.GlobalNames) { in writeSectionContent()
305 for (const WasmYAML::NameEntry &NameEntry : Section.DataSegmentNames) { in writeSectionContent()
315 WasmYAML::ProducersSection &Section) { in writeSectionContent()
337 WasmYAML::TargetFeaturesSection &Section) { in writeSectionContent()
347 WasmYAML::CustomSection &Section) { in writeSectionContent()
348 if (auto S = dyn_cast<WasmYAML::DylinkSection>(&Section)) { in writeSectionContent()
350 } else if (auto S = dyn_cast<WasmYAML::NameSection>(&Section)) { in writeSectionContent()
352 } else if (auto S = dyn_cast<WasmYAML::LinkingSection>(&Section)) { in writeSectionContent()
354 } else if (auto S = dyn_cast<WasmYAML::ProducersSection>(&Section)) { in writeSectionContent()
356 } else if (auto S = dyn_cast<WasmYAML::TargetFeaturesSection>(&Section)) { in writeSectionContent()
365 WasmYAML::TypeSection &Section) { in writeSectionContent()
368 for (const WasmYAML::Signature &Sig : Section.Signatures) { in writeSectionContent()
385 WasmYAML::ImportSection &Section) { in writeSectionContent()
387 for (const WasmYAML::Import &Import : Section.Imports) { in writeSectionContent()
422 WasmYAML::FunctionSection &Section) { in writeSectionContent()
429 WasmYAML::ExportSection &Section) { in writeSectionContent()
431 for (const WasmYAML::Export &Export : Section.Exports) { in writeSectionContent()
439 WasmYAML::StartSection &Section) { in writeSectionContent()
444 WasmYAML::TableSection &Section) { in writeSectionContent()
459 WasmYAML::MemorySection &Section) { in writeSectionContent()
461 for (const WasmYAML::Limits &Mem : Section.Memories) in writeSectionContent()
466 WasmYAML::TagSection &Section) { in writeSectionContent()
475 WasmYAML::GlobalSection &Section) { in writeSectionContent()
491 WasmYAML::ElemSection &Section) { in writeSectionContent()
519 WasmYAML::CodeSection &Section) { in writeSectionContent()
547 WasmYAML::DataSection &Section) { in writeSectionContent()
561 WasmYAML::DataCountSection &Section) { in writeSectionContent()
565 void WasmWriter::writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, in writeRelocSection()
575 auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec); in writeRelocSection()
602 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) { in writeWasm()
604 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
613 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
615 else if (auto S = dyn_cast<WasmYAML::TypeSection>(Sec.get())) in writeWasm()
617 else if (auto S = dyn_cast<WasmYAML::ImportSection>(Sec.get())) in writeWasm()
619 else if (auto S = dyn_cast<WasmYAML::FunctionSection>(Sec.get())) in writeWasm()
621 else if (auto S = dyn_cast<WasmYAML::TableSection>(Sec.get())) in writeWasm()
623 else if (auto S = dyn_cast<WasmYAML::MemorySection>(Sec.get())) in writeWasm()
625 else if (auto S = dyn_cast<WasmYAML::TagSection>(Sec.get())) in writeWasm()
627 else if (auto S = dyn_cast<WasmYAML::GlobalSection>(Sec.get())) in writeWasm()
629 else if (auto S = dyn_cast<WasmYAML::ExportSection>(Sec.get())) in writeWasm()
631 else if (auto S = dyn_cast<WasmYAML::StartSection>(Sec.get())) in writeWasm()
633 else if (auto S = dyn_cast<WasmYAML::ElemSection>(Sec.get())) in writeWasm()
635 else if (auto S = dyn_cast<WasmYAML::CodeSection>(Sec.get())) in writeWasm()
637 else if (auto S = dyn_cast<WasmYAML::DataSection>(Sec.get())) in writeWasm()
639 else if (auto S = dyn_cast<WasmYAML::DataCountSection>(Sec.get())) in writeWasm()
656 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) { in writeWasm()
678 bool yaml2wasm(WasmYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH) { in yaml2wasm()