Lines Matching refs:MCPU
562 if (Value.startswith("-mcpu="))
619 // Check -mcpu=. Needs ArchName to handle -mcpu=generic.
776 } else if (Value.startswith("-mcpu=")) {
802 // Check -mcpu. ClangAs gives preference to -Wa,-mcpu=.
1010 // If we have -mtune or -mcpu, use that.
1014 StringRef Mcpu = A->getValue();
1015 CPU = Mcpu.split("+").first.lower();
1684 // If we have -mcpu=, use that.
1715 StringRef MArch, MCPU;
1716 getARMArchCPUFromArgs(Args, MArch, MCPU, FromAs);
1717 return arm::getARMTargetCPU(MCPU, MArch, T);
1797 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU));
2110 // Check if the CPU name and feature modifiers in -mcpu are legal. If yes,
2112 static bool DecodeAArch64Mcpu(const Driver &D, StringRef Mcpu, StringRef &CPU,
2114 std::pair<StringRef, StringRef> Split = Mcpu.split("+");
2157 getAArch64ArchFeaturesFromMcpu(const Driver &D, StringRef Mcpu,
2161 std::string McpuLowerCase = Mcpu.lower();
2184 getAArch64MicroArchFeaturesFromMcpu(const Driver &D, StringRef Mcpu,
2189 std::string McpuLowerCase = Mcpu.lower();
2660 } else if (Value.startswith("-mcpu") || Value.startswith("-mfpu") ||
6236 std::string MCpuString = "-mcpu=hexagon" +
6337 std::string MCpuString = "-mcpu=hexagon" + CpuVer;
6567 // FIXME: Warn on inconsistent use of -mcpu and -march.
6568 // If we have -mcpu=, use that.
6570 std::string MCPU = StringRef(CPU).split("+").first.lower();
6571 // Handle -mcpu=native.
6572 if (MCPU == "native")
6575 return MCPU;
6583 // FIXME: This is redundant with -mcpu, why does LLVM use this.
8041 StringRef MArch, MCPU;
8042 getARMArchCPUFromArgs(Args, MArch, MCPU, /*FromAs*/ true);
8044 arm::getARMTargetCPU(MCPU, MArch, getToolChain().getTriple());
8045 CmdArgs.push_back(Args.MakeArgString("-mcpu=" + Arch));
8409 // for now replace it with -mcpu=cortex-a15 to avoid a lower
8414 CmdArgs.push_back("-mcpu=cortex-a15");
10121 CmdArgs.push_back("-mcpu=myriad2");