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_ABI 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.
LLVM_ABI 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.
LLVM_ABI std::string getTargetTripleName(const Target &Targ)
LLVM_ABI Architecture getArchitectureFromName(StringRef Name)
Convert a name to an architecture slice.
LLVM_ABI StringRef getArchitectureName(Architecture Arch)
Convert an architecture slice to a string.
LLVM_ABI std::string getOSAndEnvironmentName(PlatformType Platform, std::string Version="")
LLVM_ABI PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
LLVM_ABI PlatformVersionSet mapToPlatformVersionSet(ArrayRef< Target > Targets)
LLVM_ABI StringRef getPlatformName(PlatformType Platform)
LLVM_ABI raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
LLVM_ABI ArchitectureSet mapToArchitectureSet(ArrayRef< Target > Targets)
This is an optimization pass for GlobalISel generic memory operations.