LLVM 22.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"
19
20namespace llvm {
21namespace MachO {
22
25
32 std::string Version = "");
34
35} // end namespace MachO.
36} // end namespace llvm.
37
38#endif // LLVM_TEXTAPI_PLATFORM_H
#define LLVM_ABI
Definition: Compiler.h:213
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:134
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:55
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:47
Represents a version number in the form major[.minor[.subminor[.build]]].
Definition: VersionTuple.h:30
LLVM_ABI std::string getOSAndEnvironmentName(PlatformType Platform, std::string Version="")
Definition: Platform.cpp:90
PlatformType
Definition: MachO.h:500
LLVM_ABI VersionTuple mapToSupportedOSVersion(const Triple &Triple)
Definition: Platform.cpp:123
LLVM_ABI PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
Definition: Platform.cpp:62
LLVM_ABI PlatformType mapToPlatformType(PlatformType Platform, bool WantSim)
Definition: Platform.cpp:21
LLVM_ABI StringRef getPlatformName(PlatformType Platform)
Definition: Platform.cpp:69
LLVM_ABI PlatformType getPlatformFromName(StringRef Name)
Definition: Platform.cpp:80
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18