Lines Matching refs:CPUArch
4324 bool supportsThumb(StringRef ArchName, StringRef CPUArch, in supportsThumb() argument
4326 return CPUArchVer >= 7 || (CPUArch.find('T') != StringRef::npos) || in supportsThumb()
4327 (CPUArch.find('M') != StringRef::npos); in supportsThumb()
4329 bool supportsThumb2(StringRef ArchName, StringRef CPUArch, in supportsThumb2() argument
4334 ArchName.endswith("v8") || CPUArch == "6T2" || CPUArchVer >= 7; in supportsThumb2()
4345 StringRef CPUArch = getCPUDefineSuffix(CPU); in getTargetDefines() local
4347 if (CPUArch.substr(0, 1).getAsInteger<unsigned int>(10, CPUArchVer)) in getTargetDefines()
4349 Builder.defineMacro("__ARM_ARCH_" + CPUArch + "__"); in getTargetDefines()
4356 Builder.defineMacro("__ARM_ARCH", CPUArch.substr(0, 1)); in getTargetDefines()
4357 if (CPUArch[0] >= '8') { in getTargetDefines()
4371 if (supportsThumb2(ArchName, CPUArch, CPUArchVer)) in getTargetDefines()
4373 else if (supportsThumb(ArchName, CPUArch, CPUArchVer)) in getTargetDefines()
4421 if (supportsThumb2(ArchName, CPUArch, CPUArchVer)) in getTargetDefines()
4461 if (CPUArchVer >= 6 && CPUArch != "6M") { in getTargetDefines()
4470 CPUArch.find('E') != StringRef::npos)); in getTargetDefines()
4471 bool is32Bit = (!IsThumb || supportsThumb2(ArchName, CPUArch, CPUArchVer)); in getTargetDefines()
4472 if (is5EOrAbove && is32Bit && (CPUProfile != "M" || CPUArch == "7EM")) in getTargetDefines()