LLVM 20.0.0git
Namespaces | Macros | Functions
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)    .Case(#target, PLATFORM_##platform)
 

Functions

PlatformType llvm::MachO::mapToPlatformType (PlatformType Platform, bool WantSim)
 
PlatformType llvm::MachO::mapToPlatformType (const Triple &Target)
 
PlatformSet llvm::MachO::mapToPlatformSet (ArrayRef< Triple > Targets)
 
StringRef llvm::MachO::getPlatformName (PlatformType Platform)
 
PlatformType llvm::MachO::getPlatformFromName (StringRef Name)
 
std::string llvm::MachO::getOSAndEnvironmentName (PlatformType Platform, std::string Version="")
 
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 
)     .Case(#target, PLATFORM_##platform)