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 {
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
StringRef - Represent a constant reference to a string, i.e.
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="")
SmallSet< std::pair< PlatformType, VersionTuple >, 3 > PlatformVersionSet
LLVM_ABI PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
SmallSet< PlatformType, 3 > PlatformSet
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.
FunctionAddr VTableAddr uintptr_t uintptr_t Version
FunctionAddr VTableAddr uintptr_t uintptr_t TargetValue