Lines Matching refs:ArchKind
75 ArchNames<ARM::ArchKind> ARCHNames[] = {
82 ArchNames<AArch64::ArchKind> AArch64ARCHNames[] = {
85 sizeof(SUB_ARCH) - 1, ARCH_FPU, ARCH_BASE_EXT, AArch64::ArchKind::ID, ARCH_ATTR},
138 CpuNames<ARM::ArchKind> CPUNames[] = {
144 CpuNames<AArch64::ArchKind> AArch64CPUNames[] = {
146 { NAME, sizeof(NAME) - 1, AArch64::ArchKind::ID, IS_DEFAULT, DEFAULT_EXT },
180 unsigned llvm::ARM::getDefaultFPU(StringRef CPU, unsigned ArchKind) {
182 return ARCHNames[ArchKind].DefaultFPU;
191 unsigned llvm::ARM::getDefaultExtensions(StringRef CPU, unsigned ArchKind) {
193 return ARCHNames[ArchKind].ArchBaseExtensions;
322 StringRef llvm::ARM::getArchName(unsigned ArchKind) {
323 if (ArchKind >= ARM::AK_LAST)
325 return ARCHNames[ArchKind].getName();
328 StringRef llvm::ARM::getCPUAttr(unsigned ArchKind) {
329 if (ArchKind == ARM::AK_INVALID || ArchKind >= ARM::AK_LAST)
331 return ARCHNames[ArchKind].getCPUAttr();
334 StringRef llvm::ARM::getSubArch(unsigned ArchKind) {
335 if (ArchKind == ARM::AK_INVALID || ArchKind >= ARM::AK_LAST)
337 return ARCHNames[ArchKind].getSubArch();
340 unsigned llvm::ARM::getArchAttr(unsigned ArchKind) {
341 if (ArchKind >= ARM::AK_LAST)
343 return ARCHNames[ArchKind].ArchAttr;
409 unsigned llvm::AArch64::getDefaultFPU(StringRef CPU, unsigned ArchKind) {
411 return AArch64ARCHNames[ArchKind].DefaultFPU;
420 unsigned llvm::AArch64::getDefaultExtensions(StringRef CPU, unsigned ArchKind) {
422 return AArch64ARCHNames[ArchKind].ArchBaseExtensions;
460 bool llvm::AArch64::getArchFeatures(unsigned ArchKind,
462 if (ArchKind == static_cast<unsigned>(AArch64::ArchKind::AK_ARMV8_1A))
464 if (ArchKind == static_cast<unsigned>(AArch64::ArchKind::AK_ARMV8_2A))
467 return ArchKind > static_cast<unsigned>(AArch64::ArchKind::AK_INVALID) &&
468 ArchKind < static_cast<unsigned>(AArch64::ArchKind::AK_LAST);
471 StringRef llvm::AArch64::getArchName(unsigned ArchKind) {
472 if (ArchKind >= static_cast<unsigned>(AArch64::ArchKind::AK_LAST))
474 return AArch64ARCHNames[ArchKind].getName();
477 StringRef llvm::AArch64::getCPUAttr(unsigned ArchKind) {
478 if (ArchKind == static_cast<unsigned>(AArch64::ArchKind::AK_INVALID) ||
479 ArchKind >= static_cast<unsigned>(AArch64::ArchKind::AK_LAST))
481 return AArch64ARCHNames[ArchKind].getCPUAttr();
484 StringRef llvm::AArch64::getSubArch(unsigned ArchKind) {
485 if (ArchKind == static_cast<unsigned>(AArch64::ArchKind::AK_INVALID) ||
486 ArchKind >= static_cast<unsigned>(AArch64::ArchKind::AK_LAST))
488 return AArch64ARCHNames[ArchKind].getSubArch();
491 unsigned llvm::AArch64::getArchAttr(unsigned ArchKind) {
492 if (ArchKind >= static_cast<unsigned>(AArch64::ArchKind::AK_LAST))
494 return AArch64ARCHNames[ArchKind].ArchAttr;
521 if (AK == static_cast<unsigned>(AArch64::ArchKind
793 return static_cast<unsigned>(AArch64::ArchKind::AK_INVALID);
800 return static_cast<unsigned>(AArch64::ArchKind::AK_INVALID);
816 return static_cast<unsigned>(AArch64::ArchKind::AK_INVALID);