LLVM 17.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"
17
18namespace llvm {
19namespace MachO {
20
22
23PlatformType mapToPlatformType(PlatformType Platform, bool WantSim);
28std::string getOSAndEnvironmentName(PlatformType Platform,
29 std::string Version = "");
30
31} // end namespace MachO.
32} // end namespace llvm.
33
34#endif // LLVM_TEXTAPI_PLATFORM_H
std::string Name
This file defines the SmallSet class.
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
std::string getOSAndEnvironmentName(PlatformType Platform, std::string Version="")
Definition: Platform.cpp:106
PlatformType
Definition: MachO.h:497
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:91
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18