Lines Matching refs:WasmYAML

28   WasmWriter(WasmYAML::Object &Obj, yaml::ErrorHandler EH)  in WasmWriter()
33 void writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec,
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()
158 WasmYAML::DylinkSection &Section) { in writeSectionContent()
170 WasmYAML::LinkingSection &Section) { in writeSectionContent()
184 for (const WasmYAML::SymbolInfo &Info : Section.SymbolTable) { in writeSectionContent()
221 for (const WasmYAML::SegmentInfo &SegmentInfo : Section.SegmentInfos) { in writeSectionContent()
233 for (const WasmYAML::InitFunction &Func : Section.InitFunctions) { in writeSectionContent()
248 for (const WasmYAML::ComdatEntry &Entry : C.Entries) { in writeSectionContent()
258 WasmYAML::NameSection &Section) { in writeSectionContent()
266 for (const WasmYAML::NameEntry &NameEntry : Section.FunctionNames) { in writeSectionContent()
279 for (const WasmYAML::NameEntry &NameEntry : Section.GlobalNames) { in writeSectionContent()
292 for (const WasmYAML::NameEntry &NameEntry : Section.DataSegmentNames) { in writeSectionContent()
302 WasmYAML::ProducersSection &Section) { in writeSectionContent()
324 WasmYAML::TargetFeaturesSection &Section) { in writeSectionContent()
334 WasmYAML::CustomSection &Section) { in writeSectionContent()
335 if (auto S = dyn_cast<WasmYAML::DylinkSection>(&Section)) { in writeSectionContent()
337 } else if (auto S = dyn_cast<WasmYAML::NameSection>(&Section)) { in writeSectionContent()
339 } else if (auto S = dyn_cast<WasmYAML::LinkingSection>(&Section)) { in writeSectionContent()
341 } else if (auto S = dyn_cast<WasmYAML::ProducersSection>(&Section)) { in writeSectionContent()
343 } else if (auto S = dyn_cast<WasmYAML::TargetFeaturesSection>(&Section)) { in writeSectionContent()
352 WasmYAML::TypeSection &Section) { in writeSectionContent()
355 for (const WasmYAML::Signature &Sig : Section.Signatures) { in writeSectionContent()
372 WasmYAML::ImportSection &Section) { in writeSectionContent()
374 for (const WasmYAML::Import &Import : Section.Imports) { in writeSectionContent()
409 WasmYAML::FunctionSection &Section) { in writeSectionContent()
416 WasmYAML::ExportSection &Section) { in writeSectionContent()
418 for (const WasmYAML::Export &Export : Section.Exports) { in writeSectionContent()
426 WasmYAML::StartSection &Section) { in writeSectionContent()
431 WasmYAML::TableSection &Section) { in writeSectionContent()
446 WasmYAML::MemorySection &Section) { in writeSectionContent()
448 for (const WasmYAML::Limits &Mem : Section.Memories) in writeSectionContent()
453 WasmYAML::TagSection &Section) { in writeSectionContent()
468 WasmYAML::GlobalSection &Section) { in writeSectionContent()
484 WasmYAML::ElemSection &Section) { in writeSectionContent()
512 WasmYAML::CodeSection &Section) { in writeSectionContent()
540 WasmYAML::DataSection &Section) { in writeSectionContent()
554 WasmYAML::DataCountSection &Section) { in writeSectionContent()
558 void WasmWriter::writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, in writeRelocSection()
568 auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec); in writeRelocSection()
606 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) { in writeWasm()
608 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
617 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
619 else if (auto S = dyn_cast<WasmYAML::TypeSection>(Sec.get())) in writeWasm()
621 else if (auto S = dyn_cast<WasmYAML::ImportSection>(Sec.get())) in writeWasm()
623 else if (auto S = dyn_cast<WasmYAML::FunctionSection>(Sec.get())) in writeWasm()
625 else if (auto S = dyn_cast<WasmYAML::TableSection>(Sec.get())) in writeWasm()
627 else if (auto S = dyn_cast<WasmYAML::MemorySection>(Sec.get())) in writeWasm()
629 else if (auto S = dyn_cast<WasmYAML::TagSection>(Sec.get())) in writeWasm()
631 else if (auto S = dyn_cast<WasmYAML::GlobalSection>(Sec.get())) in writeWasm()
633 else if (auto S = dyn_cast<WasmYAML::ExportSection>(Sec.get())) in writeWasm()
635 else if (auto S = dyn_cast<WasmYAML::StartSection>(Sec.get())) in writeWasm()
637 else if (auto S = dyn_cast<WasmYAML::ElemSection>(Sec.get())) in writeWasm()
639 else if (auto S = dyn_cast<WasmYAML::CodeSection>(Sec.get())) in writeWasm()
641 else if (auto S = dyn_cast<WasmYAML::DataSection>(Sec.get())) in writeWasm()
643 else if (auto S = dyn_cast<WasmYAML::DataCountSection>(Sec.get())) in writeWasm()
660 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) { in writeWasm()
682 bool yaml2wasm(WasmYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH) { in yaml2wasm()