Lines Matching refs:CPU
443 /// CPU.
447 static const char *getLLVMArchSuffixForARM(StringRef CPU) {
448 return llvm::StringSwitch<const char *>(CPU)
472 /// getARMTargetCPU - Get the (LLVM) name of the ARM cpu we are targeting.
491 // Otherwise, if we have -march= choose the base CPU for that arch.
501 std::string CPU = llvm::sys::getHostCPUName();
502 if (CPU != "generic") {
503 // Translate the native cpu into the architecture. The switch below will
504 // then chose the minimum cpu for that arch.
505 NativeMArch = std::string("arm") + getLLVMArchSuffixForARM(CPU);
534 // If all else failed, return the most base CPU with thumb interworking
610 ArgStringList &CmdArgs, StringRef CPU) {
618 if (CPU != "cortex-a5" && CPU != "cortex-a7" &&
619 CPU != "cortex-a8" && CPU != "cortex-a9" &&
620 CPU != "cortex-a9-mp" && CPU != "cortex-a15")
621 D.Diag(diag::err_drv_invalid_feature) << "-mfpmath=neon" << CPU;
628 // FIXME: Add warnings when disabling a feature not present for a given CPU.
755 // Set the CPU based on -march= and -mcpu=.
756 CmdArgs.push_back("-target-cpu");
841 // Translate MIPS CPU name alias option to CPU name.
855 // Get CPU and ABI names. They are not independent
883 // Setup default CPU and ABI names.
900 // Deduce CPU name from ABI name.
907 // Deduce ABI name from CPU name.
914 // FIXME: Warn on inconsistent cpu and abi usage.
977 CmdArgs.push_back("-target-cpu");
1058 /// getPPCTargetCPU - Get the (LLVM) name of the PowerPC cpu we are targeting.
1064 std::string CPU = llvm::sys::getHostCPUName();
1065 if (!CPU.empty() && CPU != "generic")
1066 return CPU;
1124 // LLVM may default to generating code for the native CPU,
1138 CmdArgs.push_back("-target-cpu");
1161 // to using the a2q CPU.
1188 CmdArgs.push_back("-target-cpu");
1197 CmdArgs.push_back("-target-cpu");
1240 CmdArgs.push_back("-target-cpu");
1255 std::string CPU = llvm::sys::getHostCPUName();
1256 if (!CPU.empty() && CPU != "generic")
1257 return Args.MakeArgString(CPU);
1260 // Select the default CPU if none was given (or detection failed).
1320 CmdArgs.push_back("-target-cpu");
1385 CmdArgs.push_back("-target-cpu");
2464 // Add target specific cpu and features flags.
3653 // Set the CPU based on -march= and -mcpu=.
3654 CmdArgs.push_back("-target-cpu");
3668 // Set the CPU based on -march=.
3670 CmdArgs.push_back("-target-cpu");
3838 // Add target specific cpu and features flags.
6243 // Handle architecture-specific flags for selecting CPU variants.