21 void ScalarTraits<FlowStringRef>::output(
const FlowStringRef &
Value,
void *Ctx,
23 ScalarTraits<StringRef>::output(Value, Ctx, OS);
27 return ScalarTraits<StringRef>::input(Value, Ctx, Out.value);
30 return ScalarTraits<StringRef>::mustQuote(Name);
33 void ScalarEnumerationTraits<ObjCConstraintType>::enumeration(
37 IO.enumCase(Constraint,
"retain_release_for_simulator",
39 IO.enumCase(Constraint,
"retain_release_or_gc",
44 void ScalarTraits<PlatformSet>::output(
const PlatformSet &Values,
void *IO,
49 "File type is not set in context");
58 switch (*Values.
begin()) {
84 "File type is not set in context");
86 if (Scalar ==
"zippered") {
92 return "invalid platform";
107 return "invalid platform";
110 return "unknown platform";
116 QuotingType ScalarTraits<PlatformSet>::mustQuote(
StringRef) {
120 void ScalarBitSetTraits<ArchitectureSet>::bitset(IO &IO,
122 #define ARCHINFO(arch, type, subtype) \ 123 IO.bitSetCase(Archs, #arch, 1U << static_cast<int>(AK_##arch)); 124 #include "llvm/TextAPI/MachO/Architecture.def" 137 QuotingType ScalarTraits<Architecture>::mustQuote(
StringRef) {
141 void ScalarTraits<PackedVersion>::output(
const PackedVersion &Value,
void *,
148 return "invalid packed version string.";
151 QuotingType ScalarTraits<PackedVersion>::mustQuote(
StringRef) {
155 void ScalarTraits<SwiftVersion>::output(
const SwiftVersion &Value,
void *,
176 SwiftVersion &Value) {
179 "File type is not set in context");
183 return "invalid Swift ABI version.";
194 if (Value != SwiftVersion(0))
198 return "invalid Swift ABI version.";
202 QuotingType ScalarTraits<SwiftVersion>::mustQuote(
StringRef) {
207 OS << Value.first <<
": " << Value.second;
210 auto Split = Scalar.
split(
':');
211 auto Arch = Split.first.trim();
212 auto UUID = Split.second.trim();
214 return "invalid uuid string pair";
This class represents lattice values for constants.
Retain/Release or Garbage Collection.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
StringSwitch & Case(StringLiteral S, T Value)
const_iterator begin() const
LLVM_NODISCARD R Default(T Value)
bool parse32(StringRef Str)
A switch()-like statement whose cases are string literals.
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Text-based stub file (.tbd) version 3.0.
Retain/Release for Simulator.
std::pair< NoneType, bool > insert(const T &V)
insert - Insert an element into the set if it isn't already there.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
ObjCConstraintType
Defines a list of Objective-C constraints.
std::enable_if< std::numeric_limits< T >::is_signed, bool >::type getAsInteger(unsigned Radix, T &Result) const
Parse the current string as an integer of the specified radix.
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
LLVM_NODISCARD std::pair< StringRef, StringRef > split(char Separator) const
Split into two substrings around the first occurrence of a separator character.
std::pair< llvm::MachO::Target, std::string > UUID
Architecture getArchitectureFromName(StringRef Name)
Convert a name to an architecture slice.
Target - Wrapper for Target specific information.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
Text-based stub file (.tbd) version 4.0.
size_type count(const T &V) const
count - Return 1 if the element is in the set, 0 otherwise.