24#define ARCHINFO(Arch, Name, Type, Subtype, NumBits)                           \ 
   25  if (CPUType == (Type) &&                                                     \ 
   26      (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) == (Subtype))                    \ 
   28#include "llvm/TextAPI/Architecture.def" 
 
   36#define ARCHINFO(Arch, Name, Type, Subtype, NumBits) .Case(#Name, AK_##Arch) 
   37#include "llvm/TextAPI/Architecture.def" 
 
   44#define ARCHINFO(Arch, Name, Type, Subtype, NumBits)                           \ 
   47#include "llvm/TextAPI/Architecture.def" 
 
   60#define ARCHINFO(Arch, Name, Type, Subtype, NumBits)                           \ 
   62    return std::make_pair(Type, Subtype); 
   63#include "llvm/TextAPI/Architecture.def" 
   66    return std::make_pair(0, 0);
 
   71  return std::make_pair(0, 0);
 
 
   80#define ARCHINFO(Arch, Name, Type, Subtype, NumBits)                           \ 
   83#include "llvm/TextAPI/Architecture.def" 
 
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
StringRef - Represent a constant reference to a string, i.e.
A switch()-like statement whose cases are string literals.
Triple - Helper class for working with autoconf configuration names.
This class implements an extremely fast bulk output stream that can only output to a stream.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
LLVM_ABI Architecture getArchitectureFromName(StringRef Name)
Convert a name to an architecture slice.
LLVM_ABI StringRef getArchitectureName(Architecture Arch)
Convert an architecture slice to a string.
LLVM_ABI std::pair< uint32_t, uint32_t > getCPUTypeFromArchitecture(Architecture Arch)
Convert an architecture slice to a CPU Type and Subtype pair.
LLVM_ABI bool is64Bit(Architecture)
Check if architecture is 64 bit.
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
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 Architecture getArchitectureFromCpuType(uint32_t CPUType, uint32_t CPUSubType)
Convert a CPU Type and Subtype pair to an architecture slice.
This is an optimization pass for GlobalISel generic memory operations.