Home | History | Annotate | Download | only in Driver

Lines Matching refs:Std

56                                       std::vector<const char *> &Features,
201 CmdArgs.push_back(Args.MakeArgString(std::string(ArgName) + "."));
209 Args.MakeArgString(std::string(ArgName) + Dirs.substr(0, Delim)));
220 CmdArgs.push_back(Args.MakeArgString(std::string(ArgName) + "."));
227 CmdArgs.push_back(Args.MakeArgString(std::string(ArgName) + Dirs));
677 std::vector<const char *> &Features) {
686 std::vector<const char *> &Features) {
694 std::vector<const char *> &Features) {
713 std::vector<const char *> &Features,
715 std::pair<StringRef, StringRef> Split = ArchName.split("+");
717 std::string MArch = arm::getARMArch(ArchName, Triple);
726 std::vector<const char *> &Features,
728 std::pair<StringRef, StringRef> Split = CPUName.split("+");
730 std::string CPU = arm::getARMTargetCPU(CPUName, ArchName, Triple);
850 std::vector<const char *> &Features,
1121 static std::string getAArch64TargetCPU(const ArgList &Args) {
1123 std::string CPU;
1148 std::string TripleStr = getToolChain().ComputeEffectiveClangTriple(Args);
1293 std::string mips::getMipsABILibSuffix(const ArgList &Args,
1297 return llvm::StringSwitch<std::string>(ABIName)
1347 std::vector<const char *> &Features,
1360 std::vector<const char *> &Features) {
1504 static std::string getPPCTargetCPU(const ArgList &Args) {
1509 std::string CPU = llvm::sys::getHostCPUName();
1571 std::vector<const char *> &Features) {
1682 static std::string getR600TargetGPU(const ArgList &Args) {
1698 static std::string getLanaiTargetCPU(const ArgList &Args) {
1741 std::vector<const char *> &Features) {
1778 std::vector<const char *> &Features) {
1810 std::string CPU = llvm::sys::getHostCPUName();
1898 static std::string getCPUName(const ArgList &Args, const llvm::Triple &T,
1935 std::string TargetCPUName = getPPCTargetCPU(Args);
1987 std::string Plugin =
1995 std::string CPU = getCPUName(Args, ToolChain.getTriple());
2095 OptionStrings.insert(std::make_pair("divd", false));
2096 OptionStrings.insert(std::make_pair("divf", false));
2097 OptionStrings.insert(std::make_pair("vec-divd", false));
2098 OptionStrings.insert(std::make_pair("vec-divf", false));
2099 OptionStrings.insert(std::make_pair("sqrtd", false));
2100 OptionStrings.insert(std::make_pair("sqrtf", false));
2101 OptionStrings.insert(std::make_pair("vec-sqrtd", false));
2102 OptionStrings.insert(std::make_pair("vec-sqrtf", false));
2160 std::vector<const char *> &Features) {
2268 std
2269 std::string Opt = std::string("-hexagon-small-data-threshold=") + N;
2319 std::vector<const char *> &Features) {
2353 std::vector<const char *> &Features) {
2354 std::pair<StringRef, StringRef> Split = Mcpu.split("+");
2380 std::vector<const char *> &Features) {
2381 std::string MarchLowerCase = March.lower();
2382 std::pair<StringRef, StringRef> Split = StringRef(MarchLowerCase).split("+");
2403 std::vector<const char *> &Features) {
2405 std::string McpuLowerCase = Mcpu.lower();
2415 std::vector<const char *> &Features) {
2416 std::string MtuneLowerCase = Mtune.lower();
2430 std::vector<const char *> &Features) {
2432 std::vector<const char *> DecodedFeature;
2433 std::string McpuLowerCase = Mcpu.lower();
2441 std::vector<const char *> &Features) {
2491 std::vector<const char *> &Features) {
2517 std::vector<const char *> &Features) {
2522 std::vector<const char *> &Features) {
2542 std::vector<const char *> Features;
3438 std::string UID = llvm::utostr(getuid());
3441 std::string UID = "9999";
3620 static std::tuple<llvm::Reloc::Model, unsigned, bool>
3745 return std::make_tuple(llvm::Reloc::DynamicNoPIC, PIC ? 2 : 0, false);
3749 return std::make_tuple(llvm::Reloc::PIC_, IsPICLevelTwo ? 2 : 1, PIE);
3751 return std::make_tuple(llvm::Reloc::Static, 0, false);
3771 std::tie(RelocationModel, PICLevel, IsPIE) =
3781 std::string TripleStr = getToolChain().ComputeEffectiveClangTriple(Args);
4042 std::tie(RelocationModel, PICLevel, IsPIE) =
4358 std::string CPU = getCPUName(Args, Triple, /*FromAs*/ false);
4766 // Handle -{std, ansi, trigraphs} -- take the last of -{std, ansi}
4767 // (-ansi is equivalent to -std=c89 or -std=c++98).
4769 // If a std is supplied, only add -trigraphs if it follows the
4772 if (Arg *Std = Args.getLastArg(options::OPT_std_EQ, options::OPT_ansi)) {
4773 if (Std->getOption().matches(options::OPT_ansi))
4775 CmdArgs.push_back("-std=c++98");
4777 CmdArgs.push_back("-std=c89");
4779 Std->render(Args, CmdArgs);
4785 if (A != Std)
4788 // Honor -std-default.
4790 // FIXME: Clang doesn't correctly handle -std= when the input language
4795 Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ, "-std=",
5086 StackProtectorLevel = std::max<unsigned>(
5194 std::string CLStdStr = "-cl-std=";
5456 .Case("c++14", "-std=c++14")
5457 .Case("c++latest", "-std=c++1z")
5466 LanguageStandard = "-std=c++14";
5468 LanguageStandard = "-std=c++11";
5661 std::string PackStructStr = "-fpack-struct=";
5673 std::string MaxTypeAlignStr = "-fmax-type-align=";
5679 std::string MaxTypeAlignStr = "-fmax-type-align=16";
5998 for (auto I = std::next(Inputs.begin()), E = Inputs.end(); I != E; ++I) {
6021 JA, *this, Exec, CmdArgs, Inputs, std
6183 static bool maybeConsumeDash(const std::string &EH, size_t &I) {
6207 std::vector<std::string> EHArgs =
6277 CmdArgs.push_back("-flto-visibility-public-std");
6283 CmdArgs.push_back("-flto-visibility-public-std");
6435 std::string TripleStr =
6466 std::string CPU = getCPUName(Args, Triple, /*FromAs*/ true);
6531 std::tie(RelocationModel, PICLevel, IsPIE) =
6718 const std::string &customGCCName = D.getCCCGenericGCCName();
6785 std::string MArchString = "-march=hexagon";
6790 std::string AsName = "hexagon-llvm-mc";
6791 std::string MCpuString = "-mcpu=hexagon" +
6805 std::string N = llvm::utostr(G.getValue());
6806 CmdArgs.push_back(Args.MakeArgString(std::string("-gpsize=") + N));
6890 std::string CpuVer =
6892 std::string MCpuString = "-mcpu=hexagon" + CpuVer;
6908 std::string N = llvm::utostr(G.getValue());
6909 CmdArgs.push_back(Args.MakeArgString(std::string("-G") + N));
6922 std::vector<std::string> OsLibs;
6938 const std::string MCpuSuffix = "/" + CpuVer;
6939 const std::string MCpuG0Suffix = MCpuSuffix + "/G0";
6940 const std::string RootDir =
6942 const std::string StartSubDir =
6945 auto Find = [&HTC] (const std::string &RootDir, const std::string &SubDir,
6946 const char *Name) -> std::string {
6947 std::string RelName = SubDir + Name;
6948 std::string P = HTC.GetFilePath(RelName.c_str());
6957 std::string Crt0SA = Find(RootDir, StartSubDir, "/crt0_standalone.o");
6960 std::string Crt0 = Find(RootDir, StartSubDir, "/crt0.o");
6963 std::string Init = UseShared
6997 for (const std::string &Lib : OsLibs)
7010 std::string Fini = UseShared
7028 std::string Linker = HTC.GetProgramPath("hexagon-link");
7040 std::string Linker = getToolChain().GetProgramPath(getShortName());
7127 const std::string arm::getARMArch(StringRef Arch, const llvm::Triple &Triple) {
7128 std::string MArch;
7137 std::string CPU = llvm::sys::getHostCPUName();
7146 MArch = std::string("arm") + Suffix.str();
7155 std::string MArch = getARMArch(Arch, Triple);
7167 std::string arm::getARMTargetCPU(StringRef CPU, StringRef Arch,
7172 std::string MCPU = StringRef(CPU).split("+").first.lower();
7190 std::string ARMArch = tools::arm::getARMArch(Arch, Triple);
7378 return Args.MakeArgString(std::string(Str, End));
7386 std::string Res;
7389 std::string Str(OutputOpt->getValue());
7887 CmdArgs.push_back(Args.MakeArgString(std::string("-F") + A->getValue()));
7899 std::unique_ptr<Command> Cmd =
7901 Cmd->setInputFileList(std::move(InputFileList));
7902 C.addCommand(std::move(Cmd));
8091 std::string CPU = getCPUName(Args, getToolChain().getTriple());
8099 std::string CPU = getCPUName(Args, getToolChain().getTriple());
8206 std::string Triple = getToolChain().getTripleString();
8464 std::string CPU = getCPUName(Args, getToolChain().getTriple());
8693 std::string Arch =
8726 std::string CPU = getCPUName(Args, getToolChain().getTriple());
8734 std::string CPU = getCPUName(Args, getToolChain().getTriple());
8974 std::string TripleStr = getToolChain().ComputeEffectiveClangTriple(Args);
8982 std::tie(RelocationModel, PICLevel, IsPIE) =
9018 std::string CPU = getCPUName(Args, getToolChain().getTriple());
9025 std::string CPU = getCPUName(Args, getToolChain().getTriple());
9310 std::string TripleStr = getToolChain().ComputeEffectiveClangTriple(Args);
9381 const std::string Loader =
9946 static std::string FindVisualStudioExecutable(const ToolChain &TC,
9950 std::string visualStudioBinDir;
9973 Args.MakeArgString(std::string("-out:") + Output.getFilename()));
9984 std::string VisualStudioDir;
10003 Args.MakeArgString(std::string("-libpath:") + LibDir.c_str()));
10006 std::string UniversalCRTLibPath;
10008 CmdArgs.push_back(Args.MakeArgString(std::string("-libpath:") +
10013 std::string WindowsSdkLibPath;
10015 CmdArgs.push_back(Args.MakeArgString(std::string("-libpath:") +
10036 CmdArgs.push_back(Args.MakeArgString(std::string("-implib:") + ImplibName));
10062 CmdArgs.push_back(Args.MakeArgString(std::string("-libpath:") +
10145 std::unique_ptr<Command> visualstudio::Compiler::GetCommand(
10213 std::vector<std::string> Includes =
10216 CmdArgs.push_back(Args.MakeArgString(std::string("/FI") + Include));
10248 Args.MakeArgString(std::string("/Fo") + Output.getFilename());
10252 std::string Exec = FindVisualStudioExecutable(getToolChain(), "cl.exe",
10576 const std::string Assembler = TC.GetProgramPath("as");
10681 const std::string CRTPath(D.SysRoot + "/usr/lib/");
10783 std::string Exec =
10812 Args.MakeArgString(std::string("-i:") + A->getValue(0)));
10817 Args.MakeArgString(std::string("-o:") + Output.getFilename()));
10819 std::string Exec =
10894 std::string Exec =
11206 std::vector<std::string> gpu_archs =
11209 const std::string& gpu_arch = gpu_archs[0];