14#ifndef LLVM_TARGETPARSER_ARMTARGETPARSER_H 
   15#define LLVM_TARGETPARSER_ARMTARGETPARSER_H 
   90#define ARM_ARCH_EXT_NAME(NAME, ID, FEATURE, NEGFEATURE)                       \ 
   91  {NAME, ID, FEATURE, NEGFEATURE}, 
   92#include "ARMTargetParser.def" 
 
  101#define ARM_HW_DIV_NAME(NAME, ID) {NAME, ID}, 
  102#include "ARMTargetParser.def" 
  107#define ARM_ARCH(NAME, ID, CPU_ATTR, ARCH_FEATURE, ARCH_ATTR, ARCH_FPU,        \ 
  110#include "ARMTargetParser.def" 
 
  125#define ARM_CPU_NAME(NAME, ID, DEFAULT_FPU, IS_DEFAULT, DEFAULT_EXT)           \ 
  126  {NAME, ARM::ArchKind::ID, IS_DEFAULT, DEFAULT_EXT}, 
  127#include "ARMTargetParser.def" 
 
  132#define ARM_FPU(NAME, KIND, VERSION, NEON_SUPPORT, RESTRICTION) KIND, 
  133#include "ARMTargetParser.def" 
 
  186#define ARM_FPU(NAME, KIND, VERSION, NEON_SUPPORT, RESTRICTION)                \ 
  187  {NAME, KIND, VERSION, NEON_SUPPORT, RESTRICTION}, 
  188#include "llvm/TargetParser/ARMTargetParser.def" 
 
  212#define ARM_ARCH(NAME, ID, CPU_ATTR, ARCH_FEATURE, ARCH_ATTR, ARCH_FPU,        \ 
  214  {NAME,          CPU_ATTR,     ARCH_FEATURE, ARCH_FPU,                        \ 
  215   ARCH_BASE_EXT, ArchKind::ID, ARCH_ATTR}, 
  216#include "llvm/TargetParser/ARMTargetParser.def" 
 
  220  assert((Kind >= ArchKind::ARMV8A && Kind <= ArchKind::ARMV9_3A) &&
 
  221         "We only expect operator-- to be called with ARMV8/V9");
 
  222  if (Kind == ArchKind::INVALID || Kind == ArchKind::ARMV8A ||
 
  223      Kind == ArchKind::ARMV8_1A || Kind == ArchKind::ARMV9A ||
 
  224      Kind == ArchKind::ARMV8R)
 
  225    Kind = ArchKind::INVALID;
 
  227    unsigned KindAsInteger = 
static_cast<unsigned>(Kind);
 
  228    Kind = 
static_cast<ArchKind>(--KindAsInteger);
 
 
  241                               std::vector<StringRef> &Features);
 
  243                                   std::vector<StringRef> &Features);
 
  253                                    std::vector<StringRef> &Features,
 
  254                                    FPUKind &ArgFPUKind);
 
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
 
This file defines the StringMap class.
 
static cl::opt< std::set< SPIRV::Extension::Extension >, false, SPIRVExtensionsParser > Extensions("spirv-ext", cl::desc("Specify list of enabled SPIR-V extensions"))
 
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
 
StringRef - Represent a constant reference to a string, i.e.
 
Triple - Helper class for working with autoconf configuration names.
 
Define some predicates that are used for node matching.
 
constexpr struct llvm::ARM::@324103115345140202011004052154345301224214323271 HWDivNames[]
 
LLVM_ABI StringRef getArchExtName(uint64_t ArchExtKind)
 
LLVM_ABI StringRef getFPUSynonym(StringRef FPU)
 
LLVM_ABI bool getFPUFeatures(FPUKind FPUKind, std::vector< StringRef > &Features)
 
LLVM_ABI uint64_t parseHWDiv(StringRef HWDiv)
 
LLVM_ABI StringRef getCPUAttr(ArchKind AK)
 
LLVM_ABI StringRef getArchName(ArchKind AK)
 
LLVM_ABI void fillValidCPUArchList(SmallVectorImpl< StringRef > &Values)
 
LLVM_ABI LLVM_READONLY ARMABI computeTargetABI(const Triple &TT, StringRef ABIName="")
 
LLVM_ABI uint64_t parseArchExt(StringRef ArchExt)
 
LLVM_ABI ArchKind convertV9toV8(ArchKind AK)
 
LLVM_ABI LLVM_READONLY StringRef computeDefaultTargetABI(const Triple &TT)
 
@ Crypto
Neon with Crypto.
 
LLVM_ABI ArchKind parseArch(StringRef Arch)
 
LLVM_ABI FPURestriction getFPURestriction(FPUKind FPUKind)
 
LLVM_ABI bool appendArchExtFeatures(StringRef CPU, ARM::ArchKind AK, StringRef ArchExt, std::vector< StringRef > &Features, FPUKind &ArgFPUKind)
 
static constexpr FPUName FPUNames[]
 
LLVM_ABI StringRef getDefaultCPU(StringRef Arch)
 
LLVM_ABI StringRef getArchExtFeature(StringRef ArchExt)
 
LLVM_ABI ProfileKind parseArchProfile(StringRef Arch)
 
LLVM_ABI FPUKind parseFPU(StringRef FPU)
 
LLVM_ABI StringRef getSubArch(ArchKind AK)
 
LLVM_ABI StringRef getARMCPUForArch(const llvm::Triple &Triple, StringRef MArch={})
Get the (LLVM) name of the minimum ARM CPU for the arch we are targeting.
 
LLVM_ABI unsigned parseArchVersion(StringRef Arch)
 
bool has32Regs(const FPURestriction restriction)
 
LLVM_ABI NeonSupportLevel getFPUNeonSupportLevel(FPUKind FPUKind)
 
LLVM_ABI ArchKind parseCPUArch(StringRef CPU)
 
bool isDoublePrecision(const FPURestriction restriction)
 
constexpr ExtName ARCHExtNames[]
 
LLVM_ABI unsigned getArchAttr(ArchKind AK)
 
LLVM_ABI StringRef getFPUName(FPUKind FPUKind)
 
LLVM_ABI FPUVersion getFPUVersion(FPUKind FPUKind)
 
ArchKind & operator--(ArchKind &Kind)
 
LLVM_ABI bool getHWDivFeatures(uint64_t HWDivKind, std::vector< StringRef > &Features)
 
@ SP_D16
Only single-precision instructions, with 16 D registers.
 
@ D16
Only 16 D registers.
 
LLVM_ABI uint64_t getDefaultExtensions(StringRef CPU, ArchKind AK)
 
LLVM_ABI FPUKind getDefaultFPU(StringRef CPU, ArchKind AK)
 
LLVM_ABI bool getExtensionFeatures(uint64_t Extensions, std::vector< StringRef > &Features)
 
static constexpr ArchNames ARMArchNames[]
 
constexpr CpuNames CPUNames[]
 
LLVM_ABI void PrintSupportedExtensions(StringMap< StringRef > DescMap)
 
This is an optimization pass for GlobalISel generic memory operations.
 
StringRef getSubArch() const
 
uint64_t ArchBaseExtensions
 
ARMBuildAttrs::CPUArch ArchAttr
 
uint64_t DefaultExtensions
 
FPURestriction Restriction
 
NeonSupportLevel NeonSupport