LLVM 19.0.0git
Platform.h
Go to the documentation of this file.
1//===- llvm/TextAPI/Platform.h - Platform -----------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Defines the Platforms supported by Tapi and helpers.
10//
11//===----------------------------------------------------------------------===//
12#ifndef LLVM_TEXTAPI_PLATFORM_H
13#define LLVM_TEXTAPI_PLATFORM_H
14
15#include "llvm/ADT/SmallSet.h"
18
19namespace llvm {
20namespace MachO {
21
24
25PlatformType mapToPlatformType(PlatformType Platform, bool WantSim);
30std::string getOSAndEnvironmentName(PlatformType Platform,
31 std::string Version = "");
33
34} // end namespace MachO.
35} // end namespace llvm.
36
37#endif // LLVM_TEXTAPI_PLATFORM_H
std::string Name
This file defines the SmallSet class.
Defines the llvm::VersionTuple class, which represents a version in the form major[....
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Definition: SmallSet.h:135
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
Represents a version number in the form major[.minor[.subminor[.build]]].
Definition: VersionTuple.h:29
std::string getOSAndEnvironmentName(PlatformType Platform, std::string Version="")
Definition: Platform.cpp:84
PlatformType
Definition: MachO.h:500
VersionTuple mapToSupportedOSVersion(const Triple &Triple)
Definition: Platform.cpp:117
PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
Definition: Platform.cpp:56
PlatformType mapToPlatformType(PlatformType Platform, bool WantSim)
Definition: Platform.cpp:21
StringRef getPlatformName(PlatformType Platform)
Definition: Platform.cpp:63
PlatformType getPlatformFromName(StringRef Name)
Definition: Platform.cpp:74
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18