Lines Matching defs:CPU
23 /// \returns true if the given triple can determine the default CPU type even
34 std::string CPU;
38 CPU = Mcpu.split("+").first.lower();
41 CPU = llvm::AArch64::resolveCPUAlias(CPU);
43 // Handle CPU name is 'native'.
44 if (CPU == "native")
47 if (CPU.size())
48 return CPU;
65 // Make sure we pick the appropriate Apple CPU when targetting a Darwin OS.
91 // Check if the CPU name and feature modifiers in -mcpu are legal. If yes,
92 // decode CPU and feature.
93 static bool DecodeAArch64Mcpu(const Driver &D, StringRef Mcpu, StringRef &CPU,
96 CPU = Split.first;
98 if (CPU == "native")
99 CPU = llvm::sys::getHostCPUName();
102 llvm::AArch64::parseCpu(CPU);
142 StringRef CPU;
144 if (!DecodeAArch64Mcpu(D, McpuLowerCase, CPU, Extensions))
155 // Check CPU name is valid, but ignore any extensions on it.
161 // Handle CPU name is 'native'.
179 StringRef CPU;
180 // Check CPU name is valid, but ignore any extensions on it.
183 if (!DecodeAArch64Mcpu(D, McpuLowerCase, CPU, DecodedFeature))
186 return getAArch64MicroArchFeaturesFromMtune(D, CPU, Args, Features);
444 std::string CPU = getCPUName(D, Args, Triple);
445 if (CPU.empty() || CPU == "generic" || CPU == "cortex-a53")