Lines Matching refs:ARM

31 ARM::ArchKind ARM::parseArch(StringRef Arch) {  in parseArch()
42 unsigned ARM::parseArchVersion(StringRef Arch) { in parseArchVersion()
97 static ARM::ProfileKind getProfileKind(ARM::ArchKind AK) { in getProfileKind()
99 case ARM::ArchKind::ARMV6M: in getProfileKind()
100 case ARM::ArchKind::ARMV7M: in getProfileKind()
101 case ARM::ArchKind::ARMV7EM: in getProfileKind()
102 case ARM::ArchKind::ARMV8MMainline: in getProfileKind()
103 case ARM::ArchKind::ARMV8MBaseline: in getProfileKind()
104 case ARM::ArchKind::ARMV8_1MMainline: in getProfileKind()
105 return ARM::ProfileKind::M; in getProfileKind()
106 case ARM::ArchKind::ARMV7R: in getProfileKind()
107 case ARM::ArchKind::ARMV8R: in getProfileKind()
108 return ARM::ProfileKind::R; in getProfileKind()
109 case ARM::ArchKind::ARMV7A: in getProfileKind()
110 case ARM::ArchKind::ARMV7VE: in getProfileKind()
111 case ARM::ArchKind::ARMV7K: in getProfileKind()
112 case ARM::ArchKind::ARMV8A: in getProfileKind()
113 case ARM::ArchKind::ARMV8_1A: in getProfileKind()
114 case ARM::ArchKind::ARMV8_2A: in getProfileKind()
115 case ARM::ArchKind::ARMV8_3A: in getProfileKind()
116 case ARM::ArchKind::ARMV8_4A: in getProfileKind()
117 case ARM::ArchKind::ARMV8_5A: in getProfileKind()
118 case ARM::ArchKind::ARMV8_6A: in getProfileKind()
119 case ARM::ArchKind::ARMV8_7A: in getProfileKind()
120 case ARM::ArchKind::ARMV8_8A: in getProfileKind()
121 case ARM::ArchKind::ARMV8_9A: in getProfileKind()
122 case ARM::ArchKind::ARMV9A: in getProfileKind()
123 case ARM::ArchKind::ARMV9_1A: in getProfileKind()
124 case ARM::ArchKind::ARMV9_2A: in getProfileKind()
125 case ARM::ArchKind::ARMV9_3A: in getProfileKind()
126 case ARM::ArchKind::ARMV9_4A: in getProfileKind()
127 case ARM::ArchKind::ARMV9_5A: in getProfileKind()
128 return ARM::ProfileKind::A; in getProfileKind()
129 case ARM::ArchKind::ARMV4: in getProfileKind()
130 case ARM::ArchKind::ARMV4T: in getProfileKind()
131 case ARM::ArchKind::ARMV5T: in getProfileKind()
132 case ARM::ArchKind::ARMV5TE: in getProfileKind()
133 case ARM::ArchKind::ARMV5TEJ: in getProfileKind()
134 case ARM::ArchKind::ARMV6: in getProfileKind()
135 case ARM::ArchKind::ARMV6K: in getProfileKind()
136 case ARM::ArchKind::ARMV6T2: in getProfileKind()
137 case ARM::ArchKind::ARMV6KZ: in getProfileKind()
138 case ARM::ArchKind::ARMV7S: in getProfileKind()
139 case ARM::ArchKind::IWMMXT: in getProfileKind()
140 case ARM::ArchKind::IWMMXT2: in getProfileKind()
141 case ARM::ArchKind::XSCALE: in getProfileKind()
142 case ARM::ArchKind::INVALID: in getProfileKind()
143 return ARM::ProfileKind::INVALID; in getProfileKind()
149 ARM::ProfileKind ARM::parseArchProfile(StringRef Arch) { in parseArchProfile()
154 bool ARM::getFPUFeatures(ARM::FPUKind FPUKind, in getFPUFeatures()
219 ARM::FPUKind ARM::parseFPU(StringRef FPU) { in parseFPU()
228 ARM::NeonSupportLevel ARM::getFPUNeonSupportLevel(ARM::FPUKind FPUKind) { in getFPUNeonSupportLevel()
234 StringRef ARM::getFPUSynonym(StringRef FPU) { in getFPUSynonym()
251 StringRef ARM::getFPUName(ARM::FPUKind FPUKind) { in getFPUName()
257 ARM::FPUVersion ARM::getFPUVersion(ARM::FPUKind FPUKind) { in getFPUVersion()
263 ARM::FPURestriction ARM::getFPURestriction(ARM::FPUKind FPUKind) { in getFPURestriction()
269 ARM::FPUKind ARM::getDefaultFPU(StringRef CPU, ARM::ArchKind AK) { in getDefaultFPU()
271 return ARM::ARMArchNames[static_cast<unsigned>(AK)].DefaultFPU; in getDefaultFPU()
273 return StringSwitch<ARM::FPUKind>(CPU) in getDefaultFPU()
277 .Default(ARM::FK_INVALID); in getDefaultFPU()
280 uint64_t ARM::getDefaultExtensions(StringRef CPU, ARM::ArchKind AK) { in getDefaultExtensions()
282 return ARM::ARMArchNames[static_cast<unsigned>(AK)].ArchBaseExtensions; in getDefaultExtensions()
290 .Default(ARM::AEK_INVALID); in getDefaultExtensions()
293 bool ARM::getHWDivFeatures(uint64_t HWDivKind, in getHWDivFeatures()
312 bool ARM::getExtensionFeatures(uint64_t Extensions, in getExtensionFeatures()
328 StringRef ARM::getArchName(ARM::ArchKind AK) { in getArchName()
332 StringRef ARM::getCPUAttr(ARM::ArchKind AK) { in getCPUAttr()
336 StringRef ARM::getSubArch(ARM::ArchKind AK) { in getSubArch()
340 unsigned ARM::getArchAttr(ARM::ArchKind AK) { in getArchAttr()
344 StringRef ARM::getArchExtName(uint64_t ArchExtKind) { in getArchExtName()
356 StringRef ARM::getArchExtFeature(StringRef ArchExt) { in getArchExtFeature()
366 static ARM::FPUKind findDoublePrecisionFPU(ARM::FPUKind InputFPUKind) { in findDoublePrecisionFPU()
367 if (InputFPUKind == ARM::FK_INVALID || InputFPUKind == ARM::FK_NONE) in findDoublePrecisionFPU()
368 return ARM::FK_INVALID; in findDoublePrecisionFPU()
370 const ARM::FPUName &InputFPU = ARM::FPUNames[InputFPUKind]; in findDoublePrecisionFPU()
374 if (ARM::isDoublePrecision(InputFPU.Restriction)) in findDoublePrecisionFPU()
379 for (const ARM::FPUName &CandidateFPU : ARM::FPUNames) { in findDoublePrecisionFPU()
382 ARM::has32Regs(CandidateFPU.Restriction) == in findDoublePrecisionFPU()
383 ARM::has32Regs(InputFPU.Restriction) && in findDoublePrecisionFPU()
384 ARM::isDoublePrecision(CandidateFPU.Restriction)) { in findDoublePrecisionFPU()
390 return ARM::FK_INVALID; in findDoublePrecisionFPU()
393 static ARM::FPUKind findSinglePrecisionFPU(ARM::FPUKind InputFPUKind) { in findSinglePrecisionFPU()
394 if (InputFPUKind == ARM::FK_INVALID || InputFPUKind == ARM::FK_NONE) in findSinglePrecisionFPU()
395 return ARM::FK_INVALID; in findSinglePrecisionFPU()
397 const ARM::FPUName &InputFPU = ARM::FPUNames[InputFPUKind]; in findSinglePrecisionFPU()
401 if (!ARM::isDoublePrecision(InputFPU.Restriction)) in findSinglePrecisionFPU()
406 for (const ARM::FPUName &CandidateFPU : ARM::FPUNames) { in findSinglePrecisionFPU()
409 ARM::has32Regs(CandidateFPU.Restriction) == in findSinglePrecisionFPU()
410 ARM::has32Regs(InputFPU.Restriction) && in findSinglePrecisionFPU()
411 !ARM::isDoublePrecision(CandidateFPU.Restriction)) { in findSinglePrecisionFPU()
417 return ARM::FK_INVALID; in findSinglePrecisionFPU()
420 bool ARM::appendArchExtFeatures(StringRef CPU, ARM::ArchKind AK, in appendArchExtFeatures()
423 ARM::FPUKind &ArgFPUKind) { in appendArchExtFeatures()
446 const ARM::FPUKind DefaultFPU = getDefaultFPU(CPU, AK); in appendArchExtFeatures()
447 ARM::FPUKind FPUKind; in appendArchExtFeatures()
449 const bool IsDP = ArgFPUKind != ARM::FK_INVALID && in appendArchExtFeatures()
450 ArgFPUKind != ARM::FK_NONE && in appendArchExtFeatures()
456 if (ArgFPUKind != ARM::FK_INVALID && !IsDP) in appendArchExtFeatures()
459 if (FPUKind == ARM::FK_INVALID) in appendArchExtFeatures()
460 FPUKind = ARM::FK_NONE; in appendArchExtFeatures()
465 if (FPUKind == ARM::FK_INVALID) in appendArchExtFeatures()
469 FPUKind = ARM::FK_NONE; in appendArchExtFeatures()
479 ARM::ArchKind ARM::convertV9toV8(ARM::ArchKind AK) { in convertV9toV8()
481 return ARM::ArchKind::INVALID; in convertV9toV8()
482 if (AK < ARM::ArchKind::ARMV9A || AK > ARM::ArchKind::ARMV9_3A) in convertV9toV8()
483 return ARM::ArchKind::INVALID; in convertV9toV8()
484 unsigned AK_v8 = static_cast<unsigned>(ARM::ArchKind::ARMV8_5A); in convertV9toV8()
486 static_cast<unsigned>(ARM::ArchKind::ARMV9A); in convertV9toV8()
487 return static_cast<ARM::ArchKind>(AK_v8); in convertV9toV8()
490 StringRef ARM::getDefaultCPU(StringRef Arch) { in getDefaultCPU()
505 uint64_t ARM::parseHWDiv(StringRef HWDiv) { in parseHWDiv()
514 uint64_t ARM::parseArchExt(StringRef ArchExt) { in parseArchExt()
522 ARM::ArchKind ARM::parseCPUArch(StringRef CPU) { in parseCPUArch()
530 void ARM::fillValidCPUArchList(SmallVectorImpl<StringRef> &Values) { in fillValidCPUArchList()
537 StringRef ARM::computeDefaultTargetABI(const Triple &TT, StringRef CPU) { in computeDefaultTargetABI()
577 StringRef ARM::getARMCPUForArch(const llvm::Triple &Triple, StringRef MArch) { in getARMCPUForArch()
580 MArch = llvm::ARM::getCanonicalArchName(MArch); in getARMCPUForArch()
595 if (llvm::ARM::parseArchVersion(MArch) <= 7) in getARMCPUForArch()
614 StringRef CPU = llvm::ARM::getDefaultCPU(MArch); in getARMCPUForArch()
651 void ARM::PrintSupportedExtensions(StringMap<StringRef> DescMap) { in PrintSupportedExtensions()