LLVM  10.0.0svn
Namespaces | Macros | Functions
Architecture.cpp File Reference
#include "llvm/TextAPI/MachO/Architecture.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/TextAPI/MachO/Architecture.def"
Include dependency graph for Architecture.cpp:

Go to the source code of this file.

Namespaces

 llvm
 This class represents lattice values for constants.
 
 llvm::MachO
 

Macros

#define ARCHINFO(Arch, Type, Subtype)
 
#define ARCHINFO(Arch, Type, Subtype)   .Case(#Arch, AK_##Arch)
 
#define ARCHINFO(Arch, Type, Subtype)
 
#define ARCHINFO(Arch, Type, Subtype)
 

Functions

Architecture llvm::MachO::getArchitectureFromCpuType (uint32_t CPUType, uint32_t CPUSubType)
 Convert a CPU Type and Subtype pair to an architecture slice. More...
 
Architecture llvm::MachO::getArchitectureFromName (StringRef Name)
 Convert a name to an architecture slice. More...
 
StringRef llvm::MachO::getArchitectureName (Architecture Arch)
 Convert an architecture slice to a string. More...
 
std::pair< uint32_t, uint32_tllvm::MachO::getCPUTypeFromArchitecture (Architecture Arch)
 Convert an architecture slice to a CPU Type and Subtype pair. More...
 
Architecture llvm::MachO::mapToArchitecture (const llvm::Triple &Target)
 Convert a target to an architecture slice. More...
 
raw_ostream & llvm::MachO::operator<< (raw_ostream &OS, Architecture Arch)
 

Macro Definition Documentation

◆ ARCHINFO [1/4]

#define ARCHINFO (   Arch,
  Type,
  Subtype 
)
Value:
if (CPUType == (Type) && \
(CPUSubType & ~MachO::CPU_SUBTYPE_MASK) == (Subtype)) \
return AK_##Arch;
Type
MessagePack types as defined in the standard, with the exception of Integer being divided into a sign...
Definition: MsgPackReader.h:48

Referenced by llvm::MachO::getArchitectureFromName().

◆ ARCHINFO [2/4]

#define ARCHINFO (   Arch,
  Type,
  Subtype 
)    .Case(#Arch, AK_##Arch)

◆ ARCHINFO [3/4]

#define ARCHINFO (   Arch,
  Type,
  Subtype 
)
Value:
case AK_##Arch: \
return #Arch;

◆ ARCHINFO [4/4]

#define ARCHINFO (   Arch,
  Type,
  Subtype 
)
Value:
case AK_##Arch: \
return std::make_pair(Type, Subtype);
Type
MessagePack types as defined in the standard, with the exception of Integer being divided into a sign...
Definition: MsgPackReader.h:48