Home | History | Annotate | Download | only in Driver

Lines Matching refs:CPU

844 /// getAArch64TargetCPU - Get the (LLVM) name of the AArch64 cpu we are
893 CmdArgs.push_back("-target-cpu");
910 // Get CPU and ABI names. They are not independent
941 // Setup default CPU and ABI names.
967 // Deduce CPU name from ABI name.
1122 /// getPPCTargetCPU - Get the (LLVM) name of the PowerPC cpu we are targeting.
1128 std::string CPU = llvm::sys::getHostCPUName();
1129 if (!CPU.empty() && CPU != "generic")
1130 return CPU;
1299 std::string CPU = llvm::sys::getHostCPUName();
1300 if (!CPU.empty() && CPU != "generic")
1301 return Args.MakeArgString(CPU);
1304 // Select the default CPU if none was given (or detection failed).
1373 // LLVM may default to generating code for the native CPU,
1420 // Handle flags for selecting CPU variants.
1421 std::string CPU = getCPUName(Args, ToolChain.getTriple());
1422 if (!CPU.empty())
1423 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU));
2816 // Add the target cpu
2819 std::string CPU = getCPUName(Args, ETriple);
2820 if (!CPU.empty()) {
2821 CmdArgs.push_back("-target-cpu");
2822 CmdArgs.push_back(Args.MakeArgString(CPU));
4549 // Add the target cpu
4551 std::string CPU = getCPUName(Args, Triple);
4552 if (!CPU.empty()) {
4553 CmdArgs.push_back("-target-cpu");
4554 CmdArgs.push_back(Args.MakeArgString(CPU));
5042 // Otherwise, if we have -march= choose the base CPU for that arch.
5051 std::string CPU = llvm::sys::getHostCPUName();
5052 if (CPU != "generic") {
5053 // Translate the native cpu into the architecture. The switch below will
5054 // then chose the minimum cpu for that arch.
5055 MArch = std::string("arm") + arm::getLLVMArchSuffixForARM(CPU);
5062 /// Get the (LLVM) name of the minimum ARM CPU for the arch we are targeting.
5119 // If all else failed, return the most base CPU with thumb interworking
5144 /// getARMTargetCPU - Get the (LLVM) name of the ARM cpu we are targeting.
5162 /// CPU.
5166 const char *arm::getLLVMArchSuffixForARM(StringRef CPU) {
5167 return llvm::StringSwitch<const char *>(CPU)
6891 // FIXME: remove krait check when GNU tools support krait cpu
6893 // march from being picked in the absence of a cpu flag.