Lines Matching defs:CPU
55 // Get Arch/CPU from args.
57 llvm::StringRef &CPU, bool FromAs) {
59 CPU = A->getValue();
71 CPU = Value.substr(6);
99 static bool DecodeARMFeatures(const Driver &D, StringRef text, StringRef CPU,
107 if (!appendArchExtFeatures(CPU, ArchKind, Feature, Features, ArgFPUKind))
113 static void DecodeARMFeaturesFromCPU(const Driver &D, StringRef CPU,
115 CPU = CPU.split("+").first;
116 if (CPU != "generic") {
117 llvm::ARM::ArchKind ArchKind = llvm::ARM::parseCPUArch(CPU);
118 uint64_t Extension = llvm::ARM::getDefaultExtensions(CPU, ArchKind);
151 std::string CPU = arm::getARMTargetCPU(CPUName, ArchName, Triple);
153 arm::getLLVMArchKindForARM(CPU, ArchName, Triple);
155 (Split.second.size() && !DecodeARMFeatures(D, Split.second, CPU, ArchKind,
162 // floating point registers are available on the target CPU.
233 std::string CPU = Triple.isOSBinFormatMachO()
236 StringRef Suffix = tools::arm::getLLVMArchSuffixForARM(CPU, MArch, Triple);
264 D.Diag(diag::err_cpu_unsupported_isa) << CPU << "ARM";
599 // Add CPU features for generic CPUs
605 // This sets the default features for the specified CPU. We certainly don't
643 std::string CPU = arm::getARMTargetCPU(CPUName, ArchName, Triple);
645 arm::getLLVMArchKindForARM(CPU, ArchName, Triple);
646 FPUKind = llvm::ARM::getDefaultFPU(CPU, ArchKind);
1003 std::string CPU = std::string(llvm::sys::getHostCPUName());
1004 if (CPU != "generic") {
1005 // Translate the native cpu into the architecture suffix for that CPU.
1006 StringRef Suffix = arm::getLLVMArchSuffixForARM(CPU, MArch, Triple);
1007 // If there is no valid architecture suffix for this CPU we don't know how
1019 /// Get the (LLVM) name of the minimum ARM CPU for the arch we are targeting.
1023 // here means an -march=native that we can't handle, so instead return no CPU.
1033 std::string arm::getARMTargetCPU(StringRef CPU, StringRef Arch,
1037 if (!CPU.empty()) {
1038 std::string MCPU = StringRef(CPU).split("+").first.lower();
1050 /// particular CPU (or Arch, if CPU is generic). This is needed to
1052 /// ArchKind as well as a CPU name.
1053 llvm::ARM::ArchKind arm::getLLVMArchKindForARM(StringRef CPU, StringRef Arch,
1056 if (CPU == "generic" || CPU.empty()) {
1069 : llvm::ARM::parseCPUArch(CPU);
1075 /// CPU (or Arch, if CPU is generic).
1077 StringRef arm::getLLVMArchSuffixForARM(StringRef CPU, StringRef Arch,
1079 llvm::ARM::ArchKind ArchKind = getLLVMArchKindForARM(CPU, Arch, Triple);