Go to the documentation of this file.
18 auto Result = TargetValue.
split(
'-');
19 auto ArchitectureStr = Result.first;
21 auto PlatformStr = Result.second;
37 if (PlatformStr.startswith(
"<") && PlatformStr.endswith(
">")) {
38 PlatformStr = PlatformStr.drop_front().drop_back();
39 unsigned long long RawValue;
40 if (!PlatformStr.getAsInteger(10, RawValue))
48 Target::operator std::string()
const {
60 for (
const auto &
Target : Targets)
67 for (
const auto &
Target : Targets)
StringSwitch & Case(StringLiteral S, T Value)
This is an optimization pass for GlobalISel generic memory operations.
@ PLATFORM_WATCHOSSIMULATOR
ArchitectureSet mapToArchitectureSet(ArrayRef< Target > Targets)
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Tagged union holding either a T or a Error.
static llvm::Expected< Target > create(StringRef Target)
std::string getOSAndEnvironmentName(PlatformType Platform, std::string Version="")
This class implements an extremely fast bulk output stream that can only output to a stream.
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
Architecture getArchitectureFromName(StringRef Name)
Convert a name to an architecture slice.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
StringRef - Represent a constant reference to a string, i.e.
std::string getTargetTripleName(const Target &Targ)
PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
A switch()-like statement whose cases are string literals.
StringRef getArchitectureName(Architecture Arch)
Convert an architecture slice to a string.
std::pair< StringRef, StringRef > split(char Separator) const
Split into two substrings around the first occurrence of a separator character.
StringRef getPlatformName(PlatformType Platform)