21 auto Result = TargetValue.
split(
'-');
22 auto ArchitectureStr = Result.first;
24 auto PlatformStr = Result.second;
39 if (PlatformStr.startswith(
"<") && PlatformStr.endswith(
">")) {
40 PlatformStr = PlatformStr.drop_front().drop_back();
41 unsigned long long RawValue;
42 if (!PlatformStr.getAsInteger(10, RawValue))
50 Target::operator std::string()
const {
56 OS << std::string(Target);
62 for (
const auto &
Target : Targets)
69 for (
const auto &
Target : Targets)
PlatformKind
Defines the list of MachO platforms.
This class represents lattice values for constants.
ArchitectureSet mapToArchitectureSet(ArrayRef< Target > Targets)
StringSwitch & Case(StringLiteral S, T Value)
LLVM_NODISCARD R Default(T Value)
Tagged union holding either a T or a Error.
void set(Architecture Arch)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
static llvm::Expected< Target > create(StringRef Target)
A switch()-like statement whose cases are string literals.
StringRef getPlatformName(PlatformKind Platform)
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
std::pair< NoneType, bool > insert(const T &V)
insert - Insert an element into the set if it isn't already there.
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.
Architecture getArchitectureFromName(StringRef Name)
Convert a name to an architecture slice.
PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
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.
StringRef getArchitectureName(Architecture Arch)
Convert an architecture slice to a string.