Lines Matching refs:IO

277   static void mapping(IO &IO, ExportSection &Section) {  in mapping()
278 const auto *Ctx = reinterpret_cast<TextAPIContext *>(IO.getContext()); in mapping()
282 IO.mapRequired("archs", Section.Architectures); in mapping()
284 IO.mapOptional("allowed-clients", Section.AllowableClients); in mapping()
286 IO.mapOptional("allowable-clients", Section.AllowableClients); in mapping()
287 IO.mapOptional("re-exports", Section.ReexportedLibraries); in mapping()
288 IO.mapOptional("symbols", Section.Symbols); in mapping()
289 IO.mapOptional("objc-classes", Section.Classes); in mapping()
291 IO.mapOptional("objc-eh-types", Section.ClassEHs); in mapping()
292 IO.mapOptional("objc-ivars", Section.IVars); in mapping()
293 IO.mapOptional("weak-def-symbols", Section.WeakDefSymbols); in mapping()
294 IO.mapOptional("thread-local-symbols", Section.TLVSymbols); in mapping()
299 static void mapping(IO &IO, UndefinedSection &Section) { in mapping()
300 const auto *Ctx = reinterpret_cast<TextAPIContext *>(IO.getContext()); in mapping()
304 IO.mapRequired("archs", Section.Architectures); in mapping()
305 IO.mapOptional("symbols", Section.Symbols); in mapping()
306 IO.mapOptional("objc-classes", Section.Classes); in mapping()
308 IO.mapOptional("objc-eh-types", Section.ClassEHs); in mapping()
309 IO.mapOptional("objc-ivars", Section.IVars); in mapping()
310 IO.mapOptional("weak-ref-symbols", Section.WeakRefSymbols); in mapping()
315 static void mapping(IO &IO, SymbolSection &Section) { in mapping()
316 IO.mapRequired("targets", Section.Targets); in mapping()
317 IO.mapOptional("symbols", Section.Symbols); in mapping()
318 IO.mapOptional("objc-classes", Section.Classes); in mapping()
319 IO.mapOptional("objc-eh-types", Section.ClassEHs); in mapping()
320 IO.mapOptional("objc-ivars", Section.Ivars); in mapping()
321 IO.mapOptional("weak-symbols", Section.WeakSymbols); in mapping()
322 IO.mapOptional("thread-local-symbols", Section.TlvSymbols); in mapping()
327 static void mapping(IO &IO, UmbrellaSection &Section) { in mapping()
328 IO.mapRequired("targets", Section.Targets); in mapping()
329 IO.mapRequired("umbrella", Section.Umbrella); in mapping()
334 static void mapping(IO &IO, UUIDv4 &UUID) { in mapping()
335 IO.mapRequired("target", UUID.TargetID); in mapping()
336 IO.mapRequired("value", UUID.Value); in mapping()
342 static void mapping(IO &IO, MetadataSection &Section, in mapping()
344 IO.mapRequired("targets", Section.Targets); in mapping()
347 IO.mapRequired("clients", Section.Values); in mapping()
350 IO.mapRequired("libraries", Section.Values); in mapping()
358 static void bitset(IO &IO, TBDFlags &Flags) { in bitset()
359 IO.bitSetCase(Flags, "flat_namespace", TBDFlags::FlatNamespace); in bitset()
360 IO.bitSetCase(Flags, "not_app_extension_safe", in bitset()
362 IO.bitSetCase(Flags, "installapi", TBDFlags::InstallAPI); in bitset()
363 IO.bitSetCase(Flags, "not_for_dyld_shared_cache", in bitset()
402 explicit NormalizedTBD(IO &IO) {} in NormalizedTBD()
403 NormalizedTBD(IO &IO, const InterfaceFile *&File) { in NormalizedTBD()
573 const InterfaceFile *denormalize(IO &IO) { in denormalize()
574 auto Ctx = reinterpret_cast<TextAPIContext *>(IO.getContext()); in denormalize()
710 static void setFileTypeForInput(TextAPIContext *Ctx, IO &IO) { in setFileTypeForInput()
711 if (IO.mapTag("!tapi-tbd", false)) in setFileTypeForInput()
713 else if (IO.mapTag("!tapi-tbd-v3", false)) in setFileTypeForInput()
715 else if (IO.mapTag("!tapi-tbd-v2", false)) in setFileTypeForInput()
717 else if (IO.mapTag("!tapi-tbd-v1", false) || in setFileTypeForInput()
718 IO.mapTag("tag:yaml.org,2002:map", false)) in setFileTypeForInput()
726 static void mapping(IO &IO, const InterfaceFile *&File) { in mapping()
727 auto *Ctx = reinterpret_cast<TextAPIContext *>(IO.getContext()); in mapping()
728 assert((!Ctx || !IO.outputting() || in mapping()
732 if (!IO.outputting()) { in mapping()
733 setFileTypeForInput(Ctx, IO); in mapping()
738 mapKeysToValuesV4(IO, File); in mapping()
741 IO.setError("unsupported file type"); in mapping()
750 mapKeysToValuesV4(IO, File); in mapping()
753 IO.mapTag("!tapi-tbd-v3", true); in mapping()
756 IO.mapTag("!tapi-tbd-v2", true); in mapping()
763 mapKeysToValues(Ctx->FileKind, IO, File); in mapping()
768 explicit NormalizedTBD_V4(IO &IO) {} in NormalizedTBD_V4()
769 NormalizedTBD_V4(IO &IO, const InterfaceFile *&File) { in NormalizedTBD_V4()
770 auto Ctx = reinterpret_cast<TextAPIContext *>(IO.getContext()); in NormalizedTBD_V4()
862 const InterfaceFile *denormalize(IO &IO) { in denormalize()
863 auto Ctx = reinterpret_cast<TextAPIContext *>(IO.getContext()); in denormalize()
985 static void mapKeysToValues(FileType FileKind, IO &IO, in mapKeysToValues()
987 MappingNormalization<NormalizedTBD, const InterfaceFile *> Keys(IO, File); in mapKeysToValues()
989 IO.mapRequired("archs", Keys->Architectures); in mapKeysToValues()
991 IO.mapOptional("uuids", EmptyUUID); in mapKeysToValues()
992 IO.mapRequired("platform", Keys->Platforms); in mapKeysToValues()
994 IO.mapOptional("flags", Keys->Flags, TBDFlags::None); in mapKeysToValues()
995 IO.mapRequired("install-name", Keys->InstallName); in mapKeysToValues()
996 IO.mapOptional("current-version", Keys->CurrentVersion, in mapKeysToValues()
998 IO.mapOptional("compatibility-version", Keys->CompatibilityVersion, in mapKeysToValues()
1001 IO.mapOptional("swift-version", Keys->SwiftABIVersion, SwiftVersion(0)); in mapKeysToValues()
1003 IO.mapOptional("swift-abi-version", Keys->SwiftABIVersion, in mapKeysToValues()
1005 IO.mapOptional("objc-constraint", Keys->ObjCConstraint, in mapKeysToValues()
1010 IO.mapOptional("parent-umbrella", Keys->ParentUmbrella, StringRef()); in mapKeysToValues()
1011 IO.mapOptional("exports", Keys->Exports); in mapKeysToValues()
1013 IO.mapOptional("undefineds", Keys->Undefineds); in mapKeysToValues()
1016 static void mapKeysToValuesV4(IO &IO, const InterfaceFile *&File) { in mapKeysToValuesV4()
1017 MappingNormalization<NormalizedTBD_V4, const InterfaceFile *> Keys(IO, in mapKeysToValuesV4()
1020 IO.mapTag("!tapi-tbd", true); in mapKeysToValuesV4()
1021 IO.mapRequired("tbd-version", Keys->TBDVersion); in mapKeysToValuesV4()
1022 IO.mapRequired("targets", Keys->Targets); in mapKeysToValuesV4()
1023 IO.mapOptional("uuids", EmptyUUID); in mapKeysToValuesV4()
1024 IO.mapOptional("flags", Keys->Flags, TBDFlags::None); in mapKeysToValuesV4()
1025 IO.mapRequired("install-name", Keys->InstallName); in mapKeysToValuesV4()
1026 IO.mapOptional("current-version", Keys->CurrentVersion, in mapKeysToValuesV4()
1028 IO.mapOptional("compatibility-version", Keys->CompatibilityVersion, in mapKeysToValuesV4()
1030 IO.mapOptional("swift-abi-version", Keys->SwiftABIVersion, SwiftVersion(0)); in mapKeysToValuesV4()
1031 IO.mapOptional("parent-umbrella", Keys->ParentUmbrellas); in mapKeysToValuesV4()
1033 IO.mapOptionalWithContext("allowable-clients", Keys->AllowableClients, in mapKeysToValuesV4()
1036 IO.mapOptionalWithContext("reexported-libraries", Keys->ReexportedLibraries, in mapKeysToValuesV4()
1038 IO.mapOptional("exports", Keys->Exports); in mapKeysToValuesV4()
1039 IO.mapOptional("reexports", Keys->Reexports); in mapKeysToValuesV4()
1040 IO.mapOptional("undefineds", Keys->Undefineds); in mapKeysToValuesV4()
1046 static size_t size(IO &IO, std::vector<const MachO::InterfaceFile *> &Seq) { in size()
1050 element(IO &IO, std::vector<const InterfaceFile *> &Seq, size_t Index) { in element()