LLVM 22.0.0git
Platform.cpp File Reference
#include "llvm/TextAPI/Platform.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/TargetParser/Triple.h"
#include "llvm/BinaryFormat/MachO.def"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::MachO

Macros

#define PLATFORM(platform, id, name, build_name, target, tapi_target, marketing)
#define PLATFORM(platform, id, name, build_name, target, tapi_target, marketing)

Functions

LLVM_ABI PlatformType llvm::MachO::mapToPlatformType (PlatformType Platform, bool WantSim)
LLVM_ABI PlatformType llvm::MachO::mapToPlatformType (const Triple &Target)
LLVM_ABI PlatformSet llvm::MachO::mapToPlatformSet (ArrayRef< Triple > Targets)
LLVM_ABI StringRef llvm::MachO::getPlatformName (PlatformType Platform)
LLVM_ABI PlatformType llvm::MachO::getPlatformFromName (StringRef Name)
LLVM_ABI std::string llvm::MachO::getOSAndEnvironmentName (PlatformType Platform, std::string Version="")
LLVM_ABI VersionTuple llvm::MachO::mapToSupportedOSVersion (const Triple &Triple)

Macro Definition Documentation

◆ PLATFORM [1/2]

#define PLATFORM ( platform,
id,
name,
build_name,
target,
tapi_target,
marketing )
Value:
case PLATFORM_##platform: \
return #marketing;

◆ PLATFORM [2/2]

#define PLATFORM ( platform,
id,
name,
build_name,
target,
tapi_target,
marketing )
Value:
.Case(#target, PLATFORM_##platform)