18 auto Result = TargetValue.
split(
'-');
19 auto ArchitectureStr = Result.first;
21 auto PlatformStr = Result.second;
24#define PLATFORM(platform, id, name, build_name, target, tapi_target, \
26 .Case(#tapi_target, PLATFORM_##platform)
27#include "llvm/BinaryFormat/MachO.def"
31 if (PlatformStr.starts_with(
"<") && PlatformStr.ends_with(
">")) {
32 PlatformStr = PlatformStr.drop_front().drop_back();
33 unsigned long long RawValue;
34 if (!PlatformStr.getAsInteger(10, RawValue))
42Target::operator std::string()
const {
43 auto Version = MinDeployment.empty() ?
"" : MinDeployment.getAsString();
57 for (
const auto &
Target : Targets)
64 for (
const auto &
Target : Targets)
71 for (
const auto &
Target : Targets)
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Tagged union holding either a T or a Error.
static llvm::Expected< Target > create(StringRef Target)
VersionTuple MinDeployment
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.
std::pair< StringRef, StringRef > split(char Separator) const
Split into two substrings around the first occurrence of a separator character.
A switch()-like statement whose cases are string literals.
std::string getAsString() const
Retrieve a string representation of the version number.
bool empty() const
Determine whether this version information is empty (e.g., all version components are zero).
This class implements an extremely fast bulk output stream that can only output to a stream.
std::string getTargetTripleName(const Target &Targ)
Architecture getArchitectureFromName(StringRef Name)
Convert a name to an architecture slice.
StringRef getArchitectureName(Architecture Arch)
Convert an architecture slice to a string.
std::string getOSAndEnvironmentName(PlatformType Platform, std::string Version="")
PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
PlatformVersionSet mapToPlatformVersionSet(ArrayRef< Target > Targets)
StringRef getPlatformName(PlatformType Platform)
raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
ArchitectureSet mapToArchitectureSet(ArrayRef< Target > Targets)
This is an optimization pass for GlobalISel generic memory operations.