LLVM 20.0.0git
Classes | Typedefs | Enumerations | Functions | Variables
llvm::AArch64 Namespace Reference

Classes

struct  Alias
 
struct  ArchInfo
 
struct  CpuInfo
 
struct  ExtensionDependency
 
struct  ExtensionInfo
 
struct  ExtensionSet
 
struct  FMVInfo
 

Typedefs

using ExtensionBitset = Bitset< AEK_NUM_EXTENSIONS >
 

Enumerations

enum  ArchProfile { AProfile = 'A' , RProfile = 'R' , InvalidProfile = '?' }
 
enum  ElementSizeType {
  ElementSizeMask = TSFLAG_ELEMENT_SIZE_TYPE(0x7) , ElementSizeNone = TSFLAG_ELEMENT_SIZE_TYPE(0x0) , ElementSizeB = TSFLAG_ELEMENT_SIZE_TYPE(0x1) , ElementSizeH = TSFLAG_ELEMENT_SIZE_TYPE(0x2) ,
  ElementSizeS = TSFLAG_ELEMENT_SIZE_TYPE(0x3) , ElementSizeD = TSFLAG_ELEMENT_SIZE_TYPE(0x4)
}
 
enum  DestructiveInstType {
  DestructiveInstTypeMask = TSFLAG_DESTRUCTIVE_INST_TYPE(0xf) , NotDestructive = TSFLAG_DESTRUCTIVE_INST_TYPE(0x0) , DestructiveOther = TSFLAG_DESTRUCTIVE_INST_TYPE(0x1) , DestructiveUnary = TSFLAG_DESTRUCTIVE_INST_TYPE(0x2) ,
  DestructiveBinaryImm = TSFLAG_DESTRUCTIVE_INST_TYPE(0x3) , DestructiveBinaryShImmUnpred = TSFLAG_DESTRUCTIVE_INST_TYPE(0x4) , DestructiveBinary = TSFLAG_DESTRUCTIVE_INST_TYPE(0x5) , DestructiveBinaryComm = TSFLAG_DESTRUCTIVE_INST_TYPE(0x6) ,
  DestructiveBinaryCommWithRev = TSFLAG_DESTRUCTIVE_INST_TYPE(0x7) , DestructiveTernaryCommWithRev = TSFLAG_DESTRUCTIVE_INST_TYPE(0x8) , DestructiveUnaryPassthru = TSFLAG_DESTRUCTIVE_INST_TYPE(0x9)
}
 
enum  FalseLaneType { FalseLanesMask = TSFLAG_FALSE_LANE_TYPE(0x3) , FalseLanesZero = TSFLAG_FALSE_LANE_TYPE(0x1) , FalseLanesUndef = TSFLAG_FALSE_LANE_TYPE(0x2) }
 
enum  SMEMatrixType {
  SMEMatrixTypeMask = TSFLAG_SME_MATRIX_TYPE(0x7) , SMEMatrixNone = TSFLAG_SME_MATRIX_TYPE(0x0) , SMEMatrixTileB = TSFLAG_SME_MATRIX_TYPE(0x1) , SMEMatrixTileH = TSFLAG_SME_MATRIX_TYPE(0x2) ,
  SMEMatrixTileS = TSFLAG_SME_MATRIX_TYPE(0x3) , SMEMatrixTileD = TSFLAG_SME_MATRIX_TYPE(0x4) , SMEMatrixTileQ = TSFLAG_SME_MATRIX_TYPE(0x5) , SMEMatrixArray = TSFLAG_SME_MATRIX_TYPE(0x6)
}
 
enum  Rounding {
  RN = 0 , RP = 1 , RM = 2 , RZ = 3 ,
  rmMask = 3
}
 Possible values of current rounding mode, which is specified in bits 23:22 of FPCR. More...
 
enum  Fixups {
  fixup_aarch64_pcrel_adr_imm21 = FirstTargetFixupKind , fixup_aarch64_pcrel_adrp_imm21 , fixup_aarch64_add_imm12 , fixup_aarch64_ldst_imm12_scale1 ,
  fixup_aarch64_ldst_imm12_scale2 , fixup_aarch64_ldst_imm12_scale4 , fixup_aarch64_ldst_imm12_scale8 , fixup_aarch64_ldst_imm12_scale16 ,
  fixup_aarch64_ldr_pcrel_imm19 , fixup_aarch64_movw , fixup_aarch64_pcrel_branch14 , fixup_aarch64_pcrel_branch16 ,
  fixup_aarch64_pcrel_branch19 , fixup_aarch64_pcrel_branch26 , fixup_aarch64_pcrel_call26 , LastTargetFixupKind ,
  NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
}
 
enum  OperandType { OPERAND_IMPLICIT_IMM_0 = MCOI::OPERAND_FIRST_TARGET }
 

Functions

const std::vector< FMVInfo > & getFMVInfo ()
 
const ExtensionInfogetExtensionByID (ArchExtKind(ExtID))
 
bool getExtensionFeatures (const AArch64::ExtensionBitset &Extensions, std::vector< StringRef > &Features)
 
StringRef getArchExtFeature (StringRef ArchExt)
 
StringRef resolveCPUAlias (StringRef CPU)
 
const ArchInfogetArchForCpu (StringRef CPU)
 
const ArchInfoparseArch (StringRef Arch)
 
std::optional< ExtensionInfotargetFeatureToExtension (StringRef TargetFeature)
 
std::optional< ExtensionInfoparseArchExtension (StringRef Extension)
 
std::optional< FMVInfoparseFMVExtension (StringRef Extension)
 
std::optional< CpuInfoparseCpu (StringRef Name)
 
void fillValidCPUArchList (SmallVectorImpl< StringRef > &Values)
 
bool isX18ReservedByDefault (const Triple &TT)
 
uint64_t getCpuSupportsMask (ArrayRef< StringRef > FeatureStrs)
 
void PrintSupportedExtensions ()
 
void printEnabledExtensions (const std::set< StringRef > &EnabledFeatureNames)
 
int getSVEPseudoMap (uint16_t Opcode)
 
int getSVERevInstr (uint16_t Opcode)
 
int getSVENonRevInstr (uint16_t Opcode)
 
int getSMEPseudoMap (uint16_t Opcode)
 
ArrayRef< MCPhysReggetGPRArgRegs ()
 
ArrayRef< MCPhysReggetFPRArgRegs ()
 
FastISelcreateFastISel (FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo)
 

Variables

static const uint64_t InstrFlagIsWhile = TSFLAG_INSTR_FLAGS(0x1)
 
static const uint64_t InstrFlagIsPTestLike = TSFLAG_INSTR_FLAGS(0x2)
 
const unsigned RoundingBitsPos = 22
 
const uint64_t ReservedFPControlBits = 0xfffffffff80040f8
 
const unsigned StackProbeMaxUnprobedStack = 1024
 Maximum allowed number of unprobed bytes above SP at an ABI boundary.
 
const unsigned StackProbeMaxLoopUnroll = 4
 Maximum number of iterations to unroll for a constant size probing loop.
 
static constexpr unsigned SVEBitsPerBlock = 128
 
static constexpr unsigned SVEMaxBitsPerVector = 2048
 

Typedef Documentation

◆ ExtensionBitset

using llvm::AArch64::ExtensionBitset = typedef Bitset<AEK_NUM_EXTENSIONS>

Definition at line 46 of file AArch64TargetParser.h.

Enumeration Type Documentation

◆ ArchProfile

Enumerator
AProfile 
RProfile 
InvalidProfile 

Definition at line 100 of file AArch64TargetParser.h.

◆ DestructiveInstType

Enumerator
DestructiveInstTypeMask 
NotDestructive 
DestructiveOther 
DestructiveUnary 
DestructiveBinaryImm 
DestructiveBinaryShImmUnpred 
DestructiveBinary 
DestructiveBinaryComm 
DestructiveBinaryCommWithRev 
DestructiveTernaryCommWithRev 
DestructiveUnaryPassthru 

Definition at line 781 of file AArch64InstrInfo.h.

◆ ElementSizeType

Enumerator
ElementSizeMask 
ElementSizeNone 
ElementSizeB 
ElementSizeH 
ElementSizeS 
ElementSizeD 

Definition at line 772 of file AArch64InstrInfo.h.

◆ FalseLaneType

Enumerator
FalseLanesMask 
FalseLanesZero 
FalseLanesUndef 

Definition at line 795 of file AArch64InstrInfo.h.

◆ Fixups

Enumerator
fixup_aarch64_pcrel_adr_imm21 
fixup_aarch64_pcrel_adrp_imm21 
fixup_aarch64_add_imm12 
fixup_aarch64_ldst_imm12_scale1 
fixup_aarch64_ldst_imm12_scale2 
fixup_aarch64_ldst_imm12_scale4 
fixup_aarch64_ldst_imm12_scale8 
fixup_aarch64_ldst_imm12_scale16 
fixup_aarch64_ldr_pcrel_imm19 
fixup_aarch64_movw 
fixup_aarch64_pcrel_branch14 
fixup_aarch64_pcrel_branch16 
fixup_aarch64_pcrel_branch19 
fixup_aarch64_pcrel_branch26 
fixup_aarch64_pcrel_call26 
LastTargetFixupKind 
NumTargetFixupKinds 

Definition at line 17 of file AArch64FixupKinds.h.

◆ OperandType

Enumerator
OPERAND_IMPLICIT_IMM_0 

Definition at line 71 of file AArch64MCTargetDesc.h.

◆ Rounding

Possible values of current rounding mode, which is specified in bits 23:22 of FPCR.

Enumerator
RN 
RP 
RM 
RZ 
rmMask 

Definition at line 530 of file AArch64ISelLowering.h.

◆ SMEMatrixType

Enumerator
SMEMatrixTypeMask 
SMEMatrixNone 
SMEMatrixTileB 
SMEMatrixTileH 
SMEMatrixTileS 
SMEMatrixTileD 
SMEMatrixTileQ 
SMEMatrixArray 

Definition at line 805 of file AArch64InstrInfo.h.

Function Documentation

◆ createFastISel()

FastISel * llvm::AArch64::createFastISel ( FunctionLoweringInfo funcInfo,
const TargetLibraryInfo libInfo 
)

◆ fillValidCPUArchList()

void llvm::AArch64::fillValidCPUArchList ( SmallVectorImpl< StringRef > &  Values)

◆ getArchExtFeature()

StringRef llvm::AArch64::getArchExtFeature ( StringRef  ArchExt)

◆ getArchForCpu()

const AArch64::ArchInfo * llvm::AArch64::getArchForCpu ( StringRef  CPU)

Definition at line 36 of file AArch64TargetParser.cpp.

References parseCpu().

◆ getCpuSupportsMask()

uint64_t llvm::AArch64::getCpuSupportsMask ( ArrayRef< StringRef FeatureStrs)

Definition at line 51 of file AArch64TargetParser.cpp.

References parseFMVExtension().

◆ getExtensionByID()

const ExtensionInfo & llvm::AArch64::getExtensionByID ( ArchExtKind(ExtID)  )

◆ getExtensionFeatures()

bool llvm::AArch64::getExtensionFeatures ( const AArch64::ExtensionBitset Extensions,
std::vector< StringRef > &  Features 
)

Definition at line 60 of file AArch64TargetParser.cpp.

References Extensions, and llvm::Bitset< NumBits >::test().

◆ getFMVInfo()

const std::vector< FMVInfo > & llvm::AArch64::getFMVInfo ( )

Referenced by parseFMVExtension().

◆ getFPRArgRegs()

ArrayRef< MCPhysReg > llvm::AArch64::getFPRArgRegs ( )

Definition at line 170 of file AArch64ISelLowering.cpp.

References FPRArgRegs.

◆ getGPRArgRegs()

ArrayRef< MCPhysReg > llvm::AArch64::getGPRArgRegs ( )

Definition at line 168 of file AArch64ISelLowering.cpp.

References GPRArgRegs.

◆ getSMEPseudoMap()

int llvm::AArch64::getSMEPseudoMap ( uint16_t  Opcode)

◆ getSVENonRevInstr()

int llvm::AArch64::getSVENonRevInstr ( uint16_t  Opcode)

◆ getSVEPseudoMap()

int llvm::AArch64::getSVEPseudoMap ( uint16_t  Opcode)

◆ getSVERevInstr()

int llvm::AArch64::getSVERevInstr ( uint16_t  Opcode)

◆ isX18ReservedByDefault()

bool llvm::AArch64::isX18ReservedByDefault ( const Triple TT)

Definition at line 102 of file AArch64TargetParser.cpp.

Referenced by llvm::AArch64Subtarget::AArch64Subtarget().

◆ parseArch()

const AArch64::ArchInfo * llvm::AArch64::parseArch ( StringRef  Arch)

◆ parseArchExtension()

std::optional< AArch64::ExtensionInfo > llvm::AArch64::parseArchExtension ( StringRef  Extension)

◆ parseCpu()

std::optional< AArch64::CpuInfo > llvm::AArch64::parseCpu ( StringRef  Name)

Definition at line 152 of file AArch64TargetParser.cpp.

References llvm::CallingConv::C, Name, and resolveCPUAlias().

Referenced by getArchForCpu().

◆ parseFMVExtension()

std::optional< AArch64::FMVInfo > llvm::AArch64::parseFMVExtension ( StringRef  Extension)

Definition at line 132 of file AArch64TargetParser.cpp.

References getFMVInfo(), and I.

Referenced by getCpuSupportsMask().

◆ printEnabledExtensions()

void llvm::AArch64::printEnabledExtensions ( const std::set< StringRef > &  EnabledFeatureNames)

◆ PrintSupportedExtensions()

void llvm::AArch64::PrintSupportedExtensions ( )

◆ resolveCPUAlias()

StringRef llvm::AArch64::resolveCPUAlias ( StringRef  CPU)

Definition at line 71 of file AArch64TargetParser.cpp.

References A, and Name.

Referenced by createAArch64MCSubtargetInfo(), and parseCpu().

◆ targetFeatureToExtension()

std::optional< AArch64::ExtensionInfo > llvm::AArch64::targetFeatureToExtension ( StringRef  TargetFeature)

Variable Documentation

◆ InstrFlagIsPTestLike

const uint64_t llvm::AArch64::InstrFlagIsPTestLike = TSFLAG_INSTR_FLAGS(0x2)
static

Definition at line 803 of file AArch64InstrInfo.h.

Referenced by llvm::AArch64InstrInfo::isPTestLikeOpcode().

◆ InstrFlagIsWhile

const uint64_t llvm::AArch64::InstrFlagIsWhile = TSFLAG_INSTR_FLAGS(0x1)
static

Definition at line 802 of file AArch64InstrInfo.h.

Referenced by llvm::AArch64InstrInfo::isWhileOpcode().

◆ ReservedFPControlBits

const uint64_t llvm::AArch64::ReservedFPControlBits = 0xfffffffff80040f8

Definition at line 542 of file AArch64ISelLowering.h.

◆ RoundingBitsPos

const unsigned llvm::AArch64::RoundingBitsPos = 22

Definition at line 539 of file AArch64ISelLowering.h.

◆ StackProbeMaxLoopUnroll

const unsigned llvm::AArch64::StackProbeMaxLoopUnroll = 4

Maximum number of iterations to unroll for a constant size probing loop.

Definition at line 553 of file AArch64ISelLowering.h.

◆ StackProbeMaxUnprobedStack

const unsigned llvm::AArch64::StackProbeMaxUnprobedStack = 1024

Maximum allowed number of unprobed bytes above SP at an ABI boundary.

Definition at line 550 of file AArch64ISelLowering.h.

Referenced by llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr().

◆ SVEBitsPerBlock

constexpr unsigned llvm::AArch64::SVEBitsPerBlock = 128
staticconstexpr

◆ SVEMaxBitsPerVector

constexpr unsigned llvm::AArch64::SVEMaxBitsPerVector = 2048
staticconstexpr

Definition at line 866 of file AArch64BaseInfo.h.