Lines Matching refs:CPU
442 /// CPU.
446 static const char *getLLVMArchSuffixForARM(StringRef CPU) {
447 return llvm::StringSwitch<const char *>(CPU)
470 /// getARMTargetCPU - Get the (LLVM) name of the ARM cpu we are targeting.
489 // Otherwise, if we have -march= choose the base CPU for that arch.
499 std::string CPU = llvm::sys::getHostCPUName();
500 if (CPU != "generic") {
501 // Translate the native cpu into the architecture. The switch below will
502 // then chose the minimum cpu for that arch.
503 NativeMArch = std::string("arm") + getLLVMArchSuffixForARM(CPU);
530 // If all else failed, return the most base CPU LLVM supports.
593 ArgStringList &CmdArgs, StringRef CPU) {
601 if (CPU != "cortex-a5" && CPU != "cortex-a7" &&
602 CPU != "cortex-a8" && CPU != "cortex-a9" &&
603 CPU != "cortex-a9-mp" && CPU != "cortex-a15")
604 D.Diag(diag::err_drv_invalid_feature) << "-mfpmath=neon" << CPU;
611 // FIXME: Add warnings when disabling a feature not present for a given CPU.
738 // Set the CPU based on -march= and -mcpu=.
739 CmdArgs.push_back("-target-cpu");
822 // Translate MIPS CPU name alias option to CPU name.
836 // Get CPU and ABI names. They are not independent
857 // Setup default CPU and ABI names.
874 // Deduce CPU name from ABI name.
881 // Deduce ABI name from CPU name.
888 // FIXME: Warn on inconsistent cpu and abi usage.
953 CmdArgs.push_back("-target-cpu");
1018 /// getPPCTargetCPU - Get the (LLVM) name of the PowerPC cpu we are targeting.
1024 std::string CPU = llvm::sys::getHostCPUName();
1025 if (!CPU.empty() && CPU != "generic")
1026 return CPU;
1083 // LLVM may default to generating code for the native CPU,
1095 CmdArgs.push_back("-target-cpu");
1116 CmdArgs.push_back("-target-cpu");
1165 std::string CPU = llvm::sys::getHostCPUName();
1166 if (!CPU.empty() && CPU != "generic")
1167 return Args.MakeArgString(CPU);
1170 // Select the default CPU if none was given (or detection failed).
1229 CmdArgs.push_back("-target-cpu");
1294 CmdArgs.push_back("-target-cpu");
2217 // Add target specific cpu and features flags.
3325 // Set the CPU based on -march= and -mcpu=.
3326 CmdArgs.push_back("-target-cpu");
3340 // Set the CPU based on -march=.
3342 CmdArgs.push_back("-target-cpu");
3513 // Add target specific cpu and features flags.
5861 // Handle architecture-specific flags for selecting CPU variants.