13#ifndef LLVM_TEXTAPI_TEXT_STUB_COMMON_H
14#define LLVM_TEXTAPI_TEXT_STUB_COMMON_H
24using UUID = std::pair<llvm::MachO::Target, std::string>;
49Expected<std::unique_ptr<InterfaceFile>>
53 const FileType FileKind,
bool Compact);
58template <>
struct ScalarTraits<FlowStringRef> {
59 static void output(
const FlowStringRef &,
void *,
raw_ostream &);
64template <>
struct ScalarEnumerationTraits<MachO::ObjCConstraintType> {
68template <>
struct ScalarTraits<MachO::PlatformSet> {
74template <>
struct ScalarBitSetTraits<MachO::ArchitectureSet> {
78template <>
struct ScalarTraits<MachO::Architecture> {
84template <>
struct ScalarTraits<MachO::PackedVersion> {
90template <>
struct ScalarTraits<SwiftVersion> {
91 static void output(
const SwiftVersion &,
void *,
raw_ostream &);
98template <>
struct ScalarTraits<
UUID> {
std::pair< llvm::MachO::Target, std::string > UUID
@ LLVM_MARK_AS_BITMASK_ENUM
@ NotApplicationExtensionSafe
#define LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(type)
#define LLVM_YAML_STRONG_TYPEDEF(_base, _type)
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
FileType
Defines the file type TextAPI files can represent.
Error serializeInterfaceFileToJSON(raw_ostream &OS, const InterfaceFile &File, const FileType FileKind, bool Compact)
ObjCConstraintType
Defines a list of Objective-C constraints.
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
Expected< std::unique_ptr< InterfaceFile > > getInterfaceFileFromJSON(StringRef JSON)
This is an optimization pass for GlobalISel generic memory operations.
static void bitset(IO &, MachO::ArchitectureSet &)
static void enumeration(IO &, MachO::ObjCConstraintType &)
static QuotingType mustQuote(StringRef)
static void output(const MachO::Architecture &, void *, raw_ostream &)
static StringRef input(StringRef, void *, MachO::Architecture &)
static void output(const MachO::PackedVersion &, void *, raw_ostream &)
static QuotingType mustQuote(StringRef)
static StringRef input(StringRef, void *, MachO::PackedVersion &)