41 if (
Target.isSimulatorEnvironment())
58 for (
const auto &
Target : Targets)
80 return "iOS Simulator";
82 return "tvOS Simulator";
84 return "watchOS Simulator";
108 std::string Version) {
111 return "darwin" + Version;
113 return "macos" + Version;
115 return "ios" + Version;
117 return "tvos" + Version;
119 return "watchos" + Version;
121 return "bridgeos" + Version;
123 return "ios" + Version +
"-macabi";
125 return "ios" + Version +
"-simulator";
127 return "tvos" + Version +
"-simulator";
129 return "watchos" + Version +
"-simulator";
131 return "driverkit" + Version;
139 return MinSupportedOS;
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),...
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.
A switch()-like statement whose cases are string literals.
StringSwitch & Case(StringLiteral S, T Value)
Triple - Helper class for working with autoconf configuration names.
VersionTuple getOSVersion() const
Parse the version number from the OS name component of the triple, if present.
VersionTuple getMinimumSupportedOSVersion() const
Some platforms have different minimum supported OS versions that varies by the architecture specified...
Represents a version number in the form major[.minor[.subminor[.build]]].
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
std::string getOSAndEnvironmentName(PlatformType Platform, std::string Version="")
@ PLATFORM_WATCHOSSIMULATOR
VersionTuple mapToSupportedOSVersion(const Triple &Triple)
PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
PlatformType mapToPlatformType(PlatformType Platform, bool WantSim)
StringRef getPlatformName(PlatformType Platform)
PlatformType getPlatformFromName(StringRef Name)
This is an optimization pass for GlobalISel generic memory operations.