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()
194 WasmYAML::LinkingSection &Section) { in writeSectionContent()
205 const WasmYAML::SymbolInfo &Info = Sym.value(); in writeSectionContent()
242 for (const WasmYAML::SegmentInfo &SegmentInfo : Section.SegmentInfos) { in writeSectionContent()
254 for (const WasmYAML::InitFunction &Func : Section.InitFunctions) { in writeSectionContent()
269 for (const WasmYAML::ComdatEntry &Entry : C.Entries) { in writeSectionContent()
279 WasmYAML::NameSection &Section) { in writeSectionContent()
287 for (const WasmYAML::NameEntry &NameEntry : Section.FunctionNames) { in writeSectionContent()
300 for (const WasmYAML::NameEntry &NameEntry : Section.GlobalNames) { in writeSectionContent()
313 for (const WasmYAML::NameEntry &NameEntry : Section.DataSegmentNames) { in writeSectionContent()
323 WasmYAML::ProducersSection &Section) { in writeSectionContent()
345 WasmYAML::TargetFeaturesSection &Section) { in writeSectionContent()
355 WasmYAML::CustomSection &Section) { in writeSectionContent()
356 if (auto S = dyn_cast<WasmYAML::DylinkSection>(&Section)) { in writeSectionContent()
358 } else if (auto S = dyn_cast<WasmYAML::NameSection>(&Section)) { in writeSectionContent()
360 } else if (auto S = dyn_cast<WasmYAML::LinkingSection>(&Section)) { in writeSectionContent()
362 } else if (auto S = dyn_cast<WasmYAML::ProducersSection>(&Section)) { in writeSectionContent()
364 } else if (auto S = dyn_cast<WasmYAML::TargetFeaturesSection>(&Section)) { in writeSectionContent()
373 WasmYAML::TypeSection &Section) { in writeSectionContent()
376 for (const WasmYAML::Signature &Sig : Section.Signatures) { in writeSectionContent()
393 WasmYAML::ImportSection &Section) { in writeSectionContent()
395 for (const WasmYAML::Import &Import : Section.Imports) { in writeSectionContent()
430 WasmYAML::FunctionSection &Section) { in writeSectionContent()
437 WasmYAML::ExportSection &Section) { in writeSectionContent()
439 for (const WasmYAML::Export &Export : Section.Exports) { in writeSectionContent()
447 WasmYAML::StartSection &Section) { in writeSectionContent()
452 WasmYAML::TableSection &Section) { in writeSectionContent()
467 WasmYAML::MemorySection &Section) { in writeSectionContent()
469 for (const WasmYAML::Limits &Mem : Section.Memories) in writeSectionContent()
474 WasmYAML::TagSection &Section) { in writeSectionContent()
483 WasmYAML::GlobalSection &Section) { in writeSectionContent()
499 WasmYAML::ElemSection &Section) { in writeSectionContent()
527 WasmYAML::CodeSection &Section) { in writeSectionContent()
555 WasmYAML::DataSection &Section) { in writeSectionContent()
569 WasmYAML::DataCountSection &Section) { in writeSectionContent()
573 void WasmWriter::writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, in writeRelocSection()
583 auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec); in writeRelocSection()
610 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) { in writeWasm()
612 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
622 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
624 else if (auto S = dyn_cast<WasmYAML::TypeSection>(Sec.get())) in writeWasm()
626 else if (auto S = dyn_cast<WasmYAML::ImportSection>(Sec.get())) in writeWasm()
628 else if (auto S = dyn_cast<WasmYAML::FunctionSection>(Sec.get())) in writeWasm()
630 else if (auto S = dyn_cast<WasmYAML::TableSection>(Sec.get())) in writeWasm()
632 else if (auto S = dyn_cast<WasmYAML::MemorySection>(Sec.get())) in writeWasm()
634 else if (auto S = dyn_cast<WasmYAML::TagSection>(Sec.get())) in writeWasm()
636 else if (auto S = dyn_cast<WasmYAML::GlobalSection>(Sec.get())) in writeWasm()
638 else if (auto S = dyn_cast<WasmYAML::ExportSection>(Sec.get())) in writeWasm()
640 else if (auto S = dyn_cast<WasmYAML::StartSection>(Sec.get())) in writeWasm()
642 else if (auto S = dyn_cast<WasmYAML::ElemSection>(Sec.get())) in writeWasm()
644 else if (auto S = dyn_cast<WasmYAML::CodeSection>(Sec.get())) in writeWasm()
646 else if (auto S = dyn_cast<WasmYAML::DataSection>(Sec.get())) in writeWasm()
648 else if (auto S = dyn_cast<WasmYAML::DataCountSection>(Sec.get())) in writeWasm()
675 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) { in writeWasm()
697 bool yaml2wasm(WasmYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH) { in yaml2wasm()