LLVM  14.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 
18 namespace llvm {
19 namespace MachO {
20 
22 
23 PlatformType mapToPlatformType(PlatformType Platform, bool WantSim);
28 std::string getOSAndEnvironmentName(PlatformType Platform,
29  std::string Version = "");
30 
31 } // end namespace MachO.
32 } // end namespace llvm.
33 
34 #endif // LLVM_TEXTAPI_PLATFORM_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::MachO::Target
Definition: Target.h:24
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
llvm::SmallSet
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Definition: SmallSet.h:134
llvm::MachO::mapToPlatformType
PlatformType mapToPlatformType(PlatformType Platform, bool WantSim)
Definition: Platform.cpp:21
llvm::MachO::getOSAndEnvironmentName
std::string getOSAndEnvironmentName(PlatformType Platform, std::string Version="")
Definition: Platform.cpp:106
llvm::MachO::PlatformType
PlatformType
Definition: MachO.h:491
llvm::MachO::getPlatformFromName
PlatformType getPlatformFromName(StringRef Name)
Definition: Platform.cpp:91
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: APInt.h:32
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:57
llvm::GraphProgram::Name
Name
Definition: GraphWriter.h:52
Version
uint64_t Version
Definition: RawMemProfReader.cpp:25
llvm::MachO::mapToPlatformSet
PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
Definition: Platform.cpp:56
MachO.h
llvm::MachO::getPlatformName
StringRef getPlatformName(PlatformType Platform)
Definition: Platform.cpp:63
SmallSet.h