Home | History | Annotate | Download | only in ObjectYAML

Lines Matching defs:WasmYAML

1 //===- WasmYAML.cpp - Wasm YAMLIO implementation --------------------------===//
14 #include "llvm/ObjectYAML/WasmYAML.h"
22 namespace WasmYAML {
28 } // end namespace WasmYAML
32 void MappingTraits<WasmYAML::FileHeader>::mapping(
33 IO &IO, WasmYAML::FileHeader &FileHdr) {
37 void MappingTraits<WasmYAML::Object>::mapping(IO &IO,
38 WasmYAML::Object &Object) {
46 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) {
51 static void sectionMapping(IO &IO, WasmYAML::NameSection &Section) {
57 static void sectionMapping(IO &IO, WasmYAML::LinkingSection &Section) {
67 static void sectionMapping(IO &IO, WasmYAML::CustomSection &Section) {
73 static void sectionMapping(IO &IO, WasmYAML::TypeSection &Section) {
78 static void sectionMapping(IO &IO, WasmYAML::ImportSection &Section) {
83 static void sectionMapping(IO &IO, WasmYAML::FunctionSection &Section) {
88 static void sectionMapping(IO &IO, WasmYAML::TableSection &Section) {
93 static void sectionMapping(IO &IO, WasmYAML::MemorySection &Section) {
98 static void sectionMapping(IO &IO, WasmYAML::GlobalSection &Section) {
103 static void sectionMapping(IO &IO, WasmYAML::ExportSection &Section) {
108 static void sectionMapping(IO &IO, WasmYAML::StartSection &Section) {
113 static void sectionMapping(IO &IO, WasmYAML::ElemSection &Section) {
118 static void sectionMapping(IO &IO, WasmYAML::CodeSection &Section) {
123 static void sectionMapping(IO &IO, WasmYAML::DataSection &Section) {
128 void MappingTraits<std::unique_ptr<WasmYAML::Section>>::mapping(
129 IO &IO, std::unique_ptr<WasmYAML::Section> &Section) {
130 WasmYAML::SectionType SectionType;
140 auto CustomSection = cast<WasmYAML::CustomSection>(Section.get());
147 Section.reset(new WasmYAML::LinkingSection());
148 sectionMapping(IO, *cast<WasmYAML::LinkingSection>(Section.get()));
151 Section.reset(new WasmYAML::NameSection());
152 sectionMapping(IO, *cast<WasmYAML::NameSection>(Section.get()));
155 Section.reset(new WasmYAML::CustomSection(SectionName));
156 sectionMapping(IO, *cast<WasmYAML::CustomSection>(Section.get()));
162 Section.reset(new WasmYAML::TypeSection());
163 sectionMapping(IO, *cast<WasmYAML::TypeSection>(Section.get()));
167 Section.reset(new WasmYAML::ImportSection());
168 sectionMapping(IO, *cast<WasmYAML::ImportSection>(Section.get()));
172 Section.reset(new WasmYAML::FunctionSection());
173 sectionMapping(IO, *cast<WasmYAML::FunctionSection>(Section.get()));
177 Section.reset(new WasmYAML::TableSection());
178 sectionMapping(IO, *cast<WasmYAML::TableSection>(Section.get()));
182 Section.reset(new WasmYAML::MemorySection());
183 sectionMapping(IO, *cast<WasmYAML::MemorySection>(Section.get()));
187 Section.reset(new WasmYAML::GlobalSection());
188 sectionMapping(IO, *cast<WasmYAML::GlobalSection>(Section.get()));
192 Section.reset(new WasmYAML::ExportSection());
193 sectionMapping(IO, *cast<WasmYAML::ExportSection>(Section.get()));
197 Section.reset(new WasmYAML::StartSection());
198 sectionMapping(IO, *cast<WasmYAML::StartSection>(Section.get()));
202 Section.reset(new WasmYAML::ElemSection());
203 sectionMapping(IO, *cast<WasmYAML::ElemSection>(Section.get()));
207 Section.reset(new WasmYAML::CodeSection());
208 sectionMapping(IO, *cast<WasmYAML::CodeSection>(Section.get()));
212 Section.reset(new WasmYAML::DataSection());
213 sectionMapping(IO, *cast<WasmYAML::DataSection>(Section.get()));
220 void ScalarEnumerationTraits<WasmYAML::SectionType>::enumeration(
221 IO &IO, WasmYAML::SectionType &Type) {
238 void MappingTraits<WasmYAML::Signature>::mapping(
239 IO &IO, WasmYAML::Signature &Signature) {
245 void MappingTraits<WasmYAML::Table>::mapping(IO &IO, WasmYAML::Table &Table) {
250 void MappingTraits<WasmYAML::Function>::mapping(IO &IO,
251 WasmYAML::Function &Function) {
257 void MappingTraits<WasmYAML::Relocation>::mapping(
258 IO &IO, WasmYAML::Relocation &Relocation) {
265 void MappingTraits<WasmYAML::NameEntry>::mapping(
266 IO &IO, WasmYAML::NameEntry &NameEntry) {
271 void MappingTraits<WasmYAML::SegmentInfo>::mapping(
272 IO &IO, WasmYAML::SegmentInfo &SegmentInfo) {
279 void MappingTraits<WasmYAML::LocalDecl>::mapping(
280 IO &IO, WasmYAML::LocalDecl &LocalDecl) {
285 void MappingTraits<WasmYAML::Limits>::mapping(IO &IO,
286 WasmYAML::Limits &Limits) {
294 void MappingTraits<WasmYAML::ElemSegment>::mapping(
295 IO &IO, WasmYAML::ElemSegment &Segment) {
300 void MappingTraits<WasmYAML::Import>::mapping(IO &IO,
301 WasmYAML::Import &Import) {
319 void MappingTraits<WasmYAML::Export>::mapping(IO &IO,
320 WasmYAML::Export &Export) {
326 void MappingTraits<WasmYAML::Global>::mapping(IO &IO,
327 WasmYAML::Global &Global) {
336 WasmYAML::Opcode Op = Expr.Opcode;
358 void MappingTraits<WasmYAML::DataSegment>::mapping(
359 IO &IO, WasmYAML::DataSegment &Segment) {
366 void MappingTraits<WasmYAML::InitFunction>::mapping(
367 IO &IO, WasmYAML::InitFunction &Init) {
372 void ScalarEnumerationTraits<WasmYAML::ComdatKind>::enumeration(
373 IO &IO, WasmYAML::ComdatKind &Kind) {
380 void MappingTraits<WasmYAML::ComdatEntry>::mapping(
381 IO &IO, WasmYAML::ComdatEntry &ComdatEntry) {
386 void MappingTraits<WasmYAML::Comdat>::mapping(
387 IO &IO, WasmYAML::Comdat &Comdat) {
392 void MappingTraits<WasmYAML::SymbolInfo>::mapping(IO &IO,
393 WasmYAML::SymbolInfo &Info) {
415 void ScalarBitSetTraits<WasmYAML::LimitFlags>::bitset(
416 IO &IO, WasmYAML::LimitFlags &Value) {
422 void ScalarBitSetTraits<WasmYAML::SegmentFlags>::bitset(
423 IO &IO, WasmYAML::SegmentFlags &Value) {
426 void ScalarBitSetTraits<WasmYAML::SymbolFlags>::bitset(
427 IO &IO, WasmYAML::SymbolFlags &Value) {
438 void ScalarEnumerationTraits<WasmYAML::SymbolKind>::enumeration(
439 IO &IO, WasmYAML::SymbolKind &Kind) {
448 void ScalarEnumerationTraits<WasmYAML::ValueType>::enumeration(
449 IO &IO, WasmYAML::ValueType &Type) {
461 void ScalarEnumerationTraits<WasmYAML::ExportKind>::enumeration(
462 IO &IO, WasmYAML::ExportKind &Kind) {
471 void ScalarEnumerationTraits<WasmYAML::Opcode>::enumeration(
472 IO &IO, WasmYAML::Opcode &Code) {
483 void ScalarEnumerationTraits<WasmYAML::TableType>::enumeration(
484 IO &IO, WasmYAML::TableType &Type) {
490 void ScalarEnumerationTraits<WasmYAML::RelocType>::enumeration(
491 IO &IO, WasmYAML::RelocType &Type) {