LLVM 20.0.0git
Namespaces | Macros | Functions
Architecture.cpp File Reference
#include "llvm/TextAPI/Architecture.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/Triple.h"
#include "llvm/TextAPI/Architecture.def"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::MachO
 

Macros

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

Functions

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

Macro Definition Documentation

◆ ARCHINFO [1/5]

#define ARCHINFO (   Arch,
  Type,
  Subtype,
  NumBits 
)
Value:
if (CPUType == (Type) && \
(CPUSubType & ~MachO::CPU_SUBTYPE_MASK) == (Subtype)) \
return AK_##Arch;
RelocType Type
Definition: COFFYAML.cpp:410

◆ ARCHINFO [2/5]

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

◆ ARCHINFO [3/5]

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

◆ ARCHINFO [4/5]

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

◆ ARCHINFO [5/5]

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