Lines Matching refs:March
564 if (Value.startswith("-march="))
604 // Check if -march is valid by checking if it can be canonicalised and parsed.
605 // getARMArch is used here instead of just checking the -march value in order
606 // to handle -march=native correctly.
613 std::string MArch = arm::getARMArch(ArchName, Triple);
614 if (llvm::ARM::parseArch(MArch) == llvm::ARM::AK_INVALID ||
780 } else if (Value.startswith("-march=")) {
786 // Check -march. ClangAs gives preference to -Wa,-march=.
1150 // FIXME: Warn on inconsistent use of -march and -mabi.
1608 // FIXME: Reject attempts to use -march=native unless the target matches
1715 StringRef MArch, MCPU;
1716 getARMArchCPUFromArgs(Args, MArch, MCPU, FromAs);
1717 return arm::getARMTargetCPU(MCPU, MArch, T);
1950 // If -march=native, autodetect the feature list.
2134 getAArch64ArchFeaturesFromMarch(const Driver &D, StringRef March,
2137 std::string MarchLowerCase = March.lower();
2661 Value.startswith("-mhwdiv") || Value.startswith("-march")) {
6230 std::string MArchString = "-march=hexagon";
6334 CmdArgs.push_back("-march=hexagon");
6526 std::string MArch;
6528 MArch = Arch;
6530 MArch = Triple.getArchName();
6531 MArch = StringRef(MArch).split("+").first.lower();
6533 // Handle -march=native.
6534 if (MArch == "native") {
6538 StringRef Suffix = arm::getLLVMArchSuffixForARM(CPU, MArch, Triple);
6542 MArch = "";
6544 MArch
6548 return MArch;
6553 std::string MArch = getARMArch(Arch, Triple);
6554 // getARMCPUForArch defaults to the triple if MArch is empty, but empty MArch
6555 // here means an -march=native that we can't handle, so instead return no CPU.
6556 if (MArch.empty())
6559 // We need to return an empty string here on invalid MArch values as the
6561 return Triple.getARMCPUForArch(MArch);
6567 // FIXME: Warn on inconsistent use of -mcpu and -march.
6706 // historically the driver driver accepts this and also ties its -march=
7784 CmdArgs.push_back("-march");
8041 StringRef MArch, MCPU;
8042 getARMArchCPUFromArgs(Args, MArch, MCPU, /*FromAs*/ true);
8044 arm::getARMTargetCPU(MCPU, MArch, getToolChain().getTriple());
8057 CmdArgs.push_back("-march");
8410 // march from being picked in the absence of a cpu flag.
8429 CmdArgs.push_back("-march");
8503 // Always pass an -march option, since our default of z10 is later
8506 CmdArgs.push_back(Args.MakeArgString("-march=" + CPUName));