41 if (
Target.isSimulatorEnvironment())
58 for (
const auto &
Target : Targets)
80 return "iOS Simulator";
82 return "tvOS Simulator";
84 return "watchOS Simulator";
107 std::string Version) {
110 return "darwin" + Version;
112 return "macos" + Version;
114 return "ios" + Version;
116 return "tvos" + Version;
118 return "watchos" + Version;
120 return "bridgeos" + Version;
122 return "ios" + Version +
"-macabi";
124 return "ios" + Version +
"-simulator";
126 return "tvos" + Version +
"-simulator";
128 return "watchos" + Version +
"-simulator";
130 return "driverkit" + Version;
This header is deprecated in favour of llvm/TargetParser/Triple.h.
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.
#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
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.