Lines Matching defs:CPU
62 // Try inverting Is64Bit in case the CPU is valid, but for the wrong target.
86 StringRef CPU = A->getValue();
87 if (CPU == "native")
88 CPU = llvm::sys::getHostCPUName();
90 getRISCFeaturesFromMcpu(D, A, Triple, CPU, Features);
92 if (llvm::RISCV::hasFastScalarUnalignedAccess(CPU))
94 if (llvm::RISCV::hasFastVectorUnalignedAccess(CPU))
150 // unaligned-scalar-mem is enabled if the CPU supports it or the target is
167 // unaligned-vector-mem is enabled if the CPU supports it or the target is
272 // 2. Based on `-mcpu` if the target CPU has a default ISA string
285 StringRef CPU = A->getValue();
286 if (CPU == "native") {
287 CPU = llvm::sys::getHostCPUName();
289 if (CPU.starts_with("generic")) {
304 StringRef MArch = llvm::RISCV::getMArchFromMcpu(CPU);
355 std::string CPU;
358 CPU = A->getValue();
360 // Handle CPU name is 'native'.
361 if (CPU == "native")
362 CPU = llvm::sys::getHostCPUName();
364 if (!CPU.empty())
365 return CPU;