LLVM: include/llvm/TextAPI/Target.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_TEXTAPI_TARGET_H
10#define LLVM_TEXTAPI_TARGET_H
11
19
20namespace llvm {
21
23
25
26
27
28
30public:
38
40
41 LLVM_ABI operator std::string() const;
42
46};
47
49
50 return std::tie(LHS.Arch, LHS.Platform) == std::tie(RHS.Arch, RHS.Platform);
51}
52
56
58
59 return std::tie(LHS.Arch, LHS.Platform) < std::tie(RHS.Arch, RHS.Platform);
60}
61
64}
65
68}
69
73
75
77
78}
79}
80
81#endif
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),...
Tagged union holding either a T or a Error.
PlatformType Platform
Definition Target.h:44
Target(Architecture Arch, PlatformType Platform, VersionTuple MinDeployment={})
Definition Target.h:32
static LLVM_ABI llvm::Expected< Target > create(StringRef Target)
Target(const llvm::Triple &Triple)
Definition Target.h:35
Architecture Arch
Definition Target.h:43
VersionTuple MinDeployment
Definition Target.h:45
StringRef - Represent a constant reference to a string, i.e.
Target - Wrapper for Target specific information.
Triple - Helper class for working with autoconf configuration names.
Represents a version number in the form major[.minor[.subminor[.build]]].
This class implements an extremely fast bulk output stream that can only output to a stream.
LLVM_ABI std::string getTargetTripleName(const Target &Targ)
LLVM_ABI VersionTuple mapToSupportedOSVersion(const Triple &Triple)
SmallSet< std::pair< PlatformType, VersionTuple >, 3 > PlatformVersionSet
bool operator!=(const Target &LHS, const Target &RHS)
Definition Target.h:53
LLVM_ABI PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
SmallSet< PlatformType, 3 > PlatformSet
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
LLVM_ABI PlatformType mapToPlatformType(PlatformType Platform, bool WantSim)
bool operator==(const Target &LHS, const Target &RHS)
Definition Target.h:48
LLVM_ABI PlatformVersionSet mapToPlatformVersionSet(ArrayRef< Target > Targets)
LLVM_ABI raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
LLVM_ABI Architecture mapToArchitecture(const llvm::Triple &Target)
Convert a target to an architecture slice.
LLVM_ABI ArchitectureSet mapToArchitectureSet(ArrayRef< Target > Targets)
bool operator<(const Target &LHS, const Target &RHS)
Definition Target.h:57
This is an optimization pass for GlobalISel generic memory operations.