21 #define ARCHINFO(Arch, Type, Subtype) \ 22 if (CPUType == (Type) && \ 23 (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) == (Subtype)) \ 25 #include "llvm/TextAPI/MachO/Architecture.def" 33 #define
ARCHINFO(Arch,
Type, Subtype) .Case(#Arch, AK_##Arch)
34 #include "llvm/TextAPI/MachO/Architecture.def" 41 #define ARCHINFO(Arch, Type, Subtype) \ 44 #include "llvm/TextAPI/MachO/Architecture.def" 57 #define ARCHINFO(Arch, Type, Subtype) \ 59 return std::make_pair(Type, Subtype); 60 #include "llvm/TextAPI/MachO/Architecture.def" 63 return std::make_pair(0, 0);
68 return std::make_pair(0, 0);
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
#define ARCHINFO(Arch, Type, Subtype)
A switch()-like statement whose cases are string literals.
The instances of the Type class are immutable: once they are created, they are never changed...
raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
Triple - Helper class for working with autoconf configuration names.
StringRef getArchName() const
getArchName - Get the architecture (first) component of the triple.
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
std::pair< uint32_t, uint32_t > getCPUTypeFromArchitecture(Architecture Arch)
Convert an architecture slice to a CPU Type and Subtype pair.
Architecture getArchitectureFromName(StringRef Name)
Convert a name to an architecture slice.
Architecture getArchitectureFromCpuType(uint32_t CPUType, uint32_t CPUSubType)
Convert a CPU Type and Subtype pair to an architecture slice.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
StringRef getArchitectureName(Architecture Arch)
Convert an architecture slice to a string.
Architecture mapToArchitecture(const llvm::Triple &Target)
Convert a target to an architecture slice.