Lines Matching refs:Args
27 static const char *makeArgString(const ArgList &Args, const char *Prefix, in makeArgString() argument
30 return Args.MakeArgString(Twine(StringRef(Prefix), Base) + Suffix); in makeArgString()
33 void tools::PScpu::addProfileRTArgs(const ToolChain &TC, const ArgList &Args, in addProfileRTArgs() argument
38 if ((Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs, in addProfileRTArgs()
40 Args.hasFlag(options::OPT_fprofile_generate, in addProfileRTArgs()
42 Args.hasFlag(options::OPT_fprofile_generate_EQ, in addProfileRTArgs()
44 Args.hasFlag(options::OPT_fprofile_instr_generate, in addProfileRTArgs()
46 Args.hasFlag(options::OPT_fprofile_instr_generate_EQ, in addProfileRTArgs()
48 Args.hasFlag(options::OPT_fcs_profile_generate, in addProfileRTArgs()
50 Args.hasFlag(options::OPT_fcs_profile_generate_EQ, in addProfileRTArgs()
52 Args.hasArg(options::OPT_fcreate_profile) || in addProfileRTArgs()
53 Args.hasArg(options::OPT_coverage))) in addProfileRTArgs()
55 Args, "--dependent-lib=", PSTC.getProfileRTLibName(), "")); in addProfileRTArgs()
61 const ArgList &Args, in ConstructJob() argument
64 claimNoWarnArgs(Args); in ConstructJob()
67 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
78 const char *Exec = Args.MakeArgString(TC.GetProgramPath(AsName.c_str())); in ConstructJob()
84 void tools::PScpu::addSanitizerArgs(const ToolChain &TC, const ArgList &Args, in addSanitizerArgs() argument
88 PSTC.addSanitizerArgs(Args, CmdArgs, "--dependent-lib=lib", ".a"); in addSanitizerArgs()
91 void toolchains::PS4CPU::addSanitizerArgs(const ArgList &Args, in addSanitizerArgs() argument
96 return makeArgString(Args, Prefix, Name, Suffix); in addSanitizerArgs()
98 const SanitizerArgs &SanArgs = getSanitizerArgs(Args); in addSanitizerArgs()
105 void toolchains::PS5CPU::addSanitizerArgs(const ArgList &Args, in addSanitizerArgs() argument
110 return makeArgString(Args, Prefix, Name, Suffix); in addSanitizerArgs()
112 const SanitizerArgs &SanArgs = getSanitizerArgs(Args); in addSanitizerArgs()
124 const ArgList &Args, in ConstructJob() argument
131 Args.ClaimAllArgs(options::OPT_g_Group); in ConstructJob()
133 Args.ClaimAllArgs(options::OPT_emit_llvm); in ConstructJob()
136 Args.ClaimAllArgs(options::OPT_w); in ConstructJob()
139 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
141 if (Args.hasArg(options::OPT_pie)) in ConstructJob()
144 if (Args.hasArg(options::OPT_rdynamic)) in ConstructJob()
146 if (Args.hasArg(options::OPT_shared)) in ConstructJob()
157 Args.hasFlag(options::OPT_fjmc, options::OPT_fno_jmc, false); in ConstructJob()
161 LTOArgs = Args.MakeArgString(Twine(LTOArgs) + " " + Flag); in ConstructJob()
173 if (Arg *A = Args.getLastArg(options::OPT_fcrash_diagnostics_dir)) in ConstructJob()
176 StringRef Parallelism = getLTOParallelism(Args, D); in ConstructJob()
188 CmdArgs.push_back(Args.MakeArgString(Twine(Prefix) + LTOArgs)); in ConstructJob()
191 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) in ConstructJob()
192 TC.addSanitizerArgs(Args, CmdArgs, "-l", ""); in ConstructJob()
194 if (D.isUsingLTO() && Args.hasArg(options::OPT_funified_lto)) { in ConstructJob()
201 Args.addAllArgs(CmdArgs, {options::OPT_L, options::OPT_T_Group, in ConstructJob()
204 if (Args.hasArg(options::OPT_Z_Xlinker__no_demangle)) in ConstructJob()
207 AddLinkerInputs(TC, Inputs, Args, CmdArgs, JA); in ConstructJob()
209 if (Args.hasArg(options::OPT_pthread)) { in ConstructJob()
219 if (Args.hasArg(options::OPT_fuse_ld_EQ)) { in ConstructJob()
225 const char *Exec = Args.MakeArgString(TC.GetProgramPath(LdName.c_str())); in ConstructJob()
235 const ArgList &Args, in ConstructJob() argument
242 Args.ClaimAllArgs(options::OPT_g_Group); in ConstructJob()
244 Args.ClaimAllArgs(options::OPT_emit_llvm); in ConstructJob()
247 Args.ClaimAllArgs(options::OPT_w); in ConstructJob()
250 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
252 if (Args.hasArg(options::OPT_pie)) in ConstructJob()
255 if (Args.hasArg(options::OPT_rdynamic)) in ConstructJob()
257 if (Args.hasArg(options::OPT_shared)) in ConstructJob()
268 Args.hasFlag(options::OPT_fjmc, options::OPT_fno_jmc, false); in ConstructJob()
271 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=") + Flag)); in ConstructJob()
283 if (Arg *A = Args.getLastArg(options::OPT_fcrash_diagnostics_dir)) in ConstructJob()
286 StringRef Parallelism = getLTOParallelism(Args, D); in ConstructJob()
288 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=jobs=") + Parallelism)); in ConstructJob()
291 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) in ConstructJob()
292 TC.addSanitizerArgs(Args, CmdArgs, "-l", ""); in ConstructJob()
294 if (D.isUsingLTO() && Args.hasArg(options::OPT_funified_lto)) { in ConstructJob()
301 Args.addAllArgs(CmdArgs, {options::OPT_L, options::OPT_T_Group, in ConstructJob()
304 if (Args.hasArg(options::OPT_Z_Xlinker__no_demangle)) in ConstructJob()
307 AddLinkerInputs(TC, Inputs, Args, CmdArgs, JA); in ConstructJob()
309 if (Args.hasArg(options::OPT_pthread)) { in ConstructJob()
319 if (Args.hasArg(options::OPT_fuse_ld_EQ)) { in ConstructJob()
325 const char *Exec = Args.MakeArgString(TC.GetProgramPath(LdName.c_str())); in ConstructJob()
333 const ArgList &Args, StringRef Platform, in PS4PS5Base() argument
335 : Generic_ELF(D, Triple, Args) { in PS4PS5Base()
336 if (Args.hasArg(clang::driver::options::OPT_static)) in PS4PS5Base()
345 if (const Arg *A = Args.getLastArg(options::OPT_isysroot)) { in PS4PS5Base()
360 if (!Args.hasArg(options::OPT_nostdinc) && in PS4PS5Base()
361 !Args.hasArg(options::OPT_nostdlibinc) && in PS4PS5Base()
362 !Args.hasArg(options::OPT_isysroot) && in PS4PS5Base()
363 !Args.hasArg(options::OPT__sysroot_EQ) && in PS4PS5Base()
371 if (!Args.hasArg(options::OPT_nostdlib) && in PS4PS5Base()
372 !Args.hasArg(options::OPT_nodefaultlibs) && in PS4PS5Base()
373 !Args.hasArg(options::OPT__sysroot_EQ) && !Args.hasArg(options::OPT_E) && in PS4PS5Base()
374 !Args.hasArg(options::OPT_c) && !Args.hasArg(options::OPT_S) && in PS4PS5Base()
375 !Args.hasArg(options::OPT_emit_ast) && in PS4PS5Base()
507 const llvm::opt::ArgList &Args) in PS4CPU() argument
508 : PS4PS5Base(D, Triple, Args, "PS4", "SCE_ORBIS_SDK_DIR") {} in PS4CPU()
512 const llvm::opt::ArgList &Args) in PS5CPU() argument
513 : PS4PS5Base(D, Triple, Args, "PS5", "SCE_PROSPERO_SDK_DIR") {} in PS5CPU()