Lines Matching refs: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))
178 // unaligned-scalar-mem is enabled if the CPU supports it or the target is
195 // unaligned-vector-mem is enabled if the CPU supports it or the target is
300 // 2. Based on `-mcpu` if the target CPU has a default ISA string
313 StringRef CPU = A->getValue();
314 if (CPU == "native") {
315 CPU = llvm::sys::getHostCPUName();
317 if (CPU.starts_with("generic")) {
332 StringRef MArch = llvm::RISCV::getMArchFromMcpu(CPU);
383 std::string CPU;
386 CPU = A->getValue();
388 // Handle CPU name is 'native'.
389 if (CPU == "native")
390 CPU = llvm::sys::getHostCPUName();
392 if (!CPU.empty())
393 return CPU;