Lines Matching refs:getOption
59 StringRef Name = A->getOption().getName(); in handleTargetFeaturesGroup()
258 if (A.getOption().matches(options::OPT_Z_reserved_lib_stdcxx)) in AddLinkerInputs()
260 else if (A.getOption().matches(options::OPT_Z_reserved_lib_cckext)) in AddLinkerInputs()
262 else if (A.getOption().matches(options::OPT_z)) { in AddLinkerInputs()
324 } else if (A->getOption().matches(options::OPT_M) || in AddPreprocessingOptions()
325 A->getOption().matches(options::OPT_MM)) { in AddPreprocessingOptions()
358 if (A->getOption().matches(options::OPT_M) || in AddPreprocessingOptions()
359 A->getOption().matches(options::OPT_MD)) in AddPreprocessingOptions()
368 if (!A || A->getOption().matches(options::OPT_MD) || in AddPreprocessingOptions()
369 A->getOption().matches(options::OPT_MMD)) in AddPreprocessingOptions()
381 if (A->getOption().matches(options::OPT_MQ)) { in AddPreprocessingOptions()
407 if (!A->getOption().matches(options::OPT_include)) in AddPreprocessingOptions()
429 A->getOption().matches(options::OPT_include)) { in AddPreprocessingOptions()
464 } else if (A->getOption().matches(options::OPT_include)) { in AddPreprocessingOptions()
513 } else if (A->getOption().matches(options::OPT_isystem_after)) { in AddPreprocessingOptions()
753 if (A->getOption().matches(options::OPT_msoft_float)) { in getARMFloatABI()
755 } else if (A->getOption().matches(options::OPT_mhard_float)) { in getARMFloatABI()
970 if (A->getOption().matches(options::OPT_mcrc)) in getARMTargetFeatures()
981 if (A->getOption().matches(options::OPT_mlong_calls)) in getARMTargetFeatures()
993 if (A->getOption().matches(options::OPT_munaligned_access)) { in getARMTargetFeatures()
1107 if (A->getOption().matches(options::OPT_mno_global_merge)) in AddARMTargetArgs()
1174 if (A->getOption().matches(options::OPT_mfix_cortex_a53_835769)) in AddAArch64TargetArgs()
1188 if (A->getOption().matches(options::OPT_mno_global_merge)) in AddAArch64TargetArgs()
1318 if (A->getOption().matches(options::OPT_msoft_float)) in getMipsFloatABI()
1320 else if (A->getOption().matches(options::OPT_mhard_float)) in getMipsFloatABI()
1351 if (A->getOption().matches(OnOpt)) in AddTargetFeature()
1395 << A->getOption().getName() << Val; in getMIPSTargetFeatures()
1416 if (A->getOption().matches(options::OPT_mfp32)) in getMIPSTargetFeatures()
1418 else if (A->getOption().matches(options::OPT_mfpxx)) { in getMIPSTargetFeatures()
1460 if (A->getOption().matches(options::OPT_mxgot)) { in AddMIPSTargetArgs()
1468 if (A->getOption().matches(options::OPT_mno_ldc1_sdc1)) { in AddMIPSTargetArgs()
1476 if (A->getOption().matches(options::OPT_mno_check_zero_division)) { in AddMIPSTargetArgs()
1497 << A->getOption().getName() << Val; in AddMIPSTargetArgs()
1595 if (A->getOption().matches(options::OPT_msoft_float)) in getPPCFloatABI()
1597 else if (A->getOption().matches(options::OPT_mhard_float)) in getPPCFloatABI()
1711 if (A->getOption().matches(options::OPT_msoft_float)) in getSparcFloatABI()
1713 else if (A->getOption().matches(options::OPT_mhard_float)) in getSparcFloatABI()
1781 if (A->getOption().matches(options::OPT_mhtm)) in getSystemZTargetFeatures()
1788 if (A->getOption().matches(options::OPT_mvx)) in getSystemZTargetFeatures()
2001 if (A->getOption().matches(options::OPT_O4) || in AddGoldPlugin()
2002 A->getOption().matches(options::OPT_Ofast)) in AddGoldPlugin()
2004 else if (A->getOption().matches(options::OPT_O)) in AddGoldPlugin()
2006 else if (A->getOption().matches(options::OPT_O0)) in AddGoldPlugin()
2018 if (A->getOption().matches(options::OPT_glldb)) in AddGoldPlugin()
2020 else if (A->getOption().matches(options::OPT_gsce)) in AddGoldPlugin()
2036 StringRef Option = A.getOption().getName(); in getRefinementStep()
2130 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Val; in ParseMRecip()
2137 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Val; in ParseMRecip()
2236 const Option &O = A->getOption(); in AddX86TargetArgs()
2250 << A->getOption().getName() << Value; in AddX86TargetArgs()
2301 << A->getOption().getName() << Value; in AddLanaiTargetArgs()
2475 if (A->getOption().matches(options::OPT_mcrc)) in getAArch64TargetFeatures()
2483 if (A->getOption().matches(options::OPT_mno_unaligned_access)) in getAArch64TargetFeatures()
2498 auto &Opt = A->getOption(); in getHexagonTargetFeatures()
2679 ExceptionArg->getOption().matches(options::OPT_fcxx_exceptions) || in addExceptionArgs()
2680 ExceptionArg->getOption().matches(options::OPT_fexceptions); in addExceptionArgs()
2745 RelaxDefault = A->getOption().matches(options::OPT_O0); in UseRelaxAll()
2764 assert(A.getOption().matches(options::OPT_gN_Group) && in DebugLevelToInfoKind()
2766 if (A.getOption().matches(options::OPT_g0) || in DebugLevelToInfoKind()
2767 A.getOption().matches(options::OPT_ggdb0)) in DebugLevelToInfoKind()
2769 if (A.getOption().matches(options::OPT_gline_tables_only) || in DebugLevelToInfoKind()
2770 A.getOption().matches(options::OPT_ggdb1)) in DebugLevelToInfoKind()
2952 << A->getOption().getName() << Value; in CollectArgsForIntegratedAssembler()
3018 << A->getOption().getName() << A->getValue(); in getOpenMPRuntime()
3214 return !A->getOption().matches(options::OPT_O0); in areOptimizationsEnabled()
3272 return A->getOption().matches(options::OPT_fno_omit_frame_pointer); in shouldUseFramePointer()
3283 return A->getOption().matches(options::OPT_mno_omit_leaf_frame_pointer); in shouldUseLeafFramePointer()
3347 if (A->getOption().matches(options::OPT_O4) || in shouldEnableVectorizerAtOLevel()
3348 A->getOption().matches(options::OPT_Ofast)) in shouldEnableVectorizerAtOLevel()
3351 if (A->getOption().matches(options::OPT_O0)) in shouldEnableVectorizerAtOLevel()
3354 assert(A->getOption().matches(options::OPT_O) && "Must have a -O flag"); in shouldEnableVectorizerAtOLevel()
3509 ProfileGenerateArg->getOption().matches( in addPGOAndCoverageFlags()
3518 ProfileUseArg->getOption().matches(options::OPT_fno_profile_instr_use)) in addPGOAndCoverageFlags()
3526 if (ProfileGenerateArg->getOption().matches( in addPGOAndCoverageFlags()
3530 else if (ProfileGenerateArg->getOption().matches( in addPGOAndCoverageFlags()
3542 if (ProfileUseArg->getOption().matches(options::OPT_fprofile_instr_use_EQ)) in addPGOAndCoverageFlags()
3545 else if ((ProfileUseArg->getOption().matches( in addPGOAndCoverageFlags()
3547 ProfileUseArg->getOption().matches( in addPGOAndCoverageFlags()
3696 Option O = LastPICArg->getOption(); in ParsePICArgs()
4107 } else if (A->getOption().matches(options::OPT_fpcc_struct_return)) { in ConstructJob()
4110 assert(A->getOption().matches(options::OPT_freg_struct_return)); in ConstructJob()
4168 if (A->getOption().getID() != options::OPT_fno_fast_math && in ConstructJob()
4169 A->getOption().getID() != options::OPT_fno_finite_math_only && in ConstructJob()
4170 A->getOption().getID() != options::OPT_fhonor_infinities) in ConstructJob()
4177 if (A->getOption().getID() != options::OPT_fno_fast_math && in ConstructJob()
4178 A->getOption().getID() != options::OPT_fno_finite_math_only && in ConstructJob()
4179 A->getOption().getID() != options::OPT_fhonor_nans) in ConstructJob()
4191 if (A->getOption().getID() == options::OPT_fno_math_errno || in ConstructJob()
4192 A->getOption().getID() == options::OPT_ffast_math || in ConstructJob()
4193 A->getOption().getID() == options::OPT_Ofast) in ConstructJob()
4195 else if (A->getOption().getID() == options::OPT_fmath_errno) in ConstructJob()
4211 if (A->getOption().getID() != options::OPT_fno_fast_math && in ConstructJob()
4212 A->getOption().getID() != options::OPT_fno_unsafe_math_optimizations && in ConstructJob()
4213 A->getOption().getID() != options::OPT_fno_associative_math) in ConstructJob()
4221 if (A->getOption().getID() != options::OPT_fno_fast_math && in ConstructJob()
4222 A->getOption().getID() != options::OPT_fno_unsafe_math_optimizations && in ConstructJob()
4223 A->getOption().getID() != options::OPT_fno_reciprocal_math) in ConstructJob()
4231 if (A->getOption().getID() != options::OPT_fno_fast_math && in ConstructJob()
4232 A->getOption().getID() != options::OPT_fno_unsafe_math_optimizations && in ConstructJob()
4233 A->getOption().getID() != options::OPT_fsigned_zeros) in ConstructJob()
4241 if (A->getOption().getID() != options::OPT_fno_fast_math && in ConstructJob()
4242 A->getOption().getID() != options::OPT_fno_unsafe_math_optimizations && in ConstructJob()
4243 A->getOption().getID() != options::OPT_ftrapping_math) in ConstructJob()
4259 if (A->getOption().getID() == options::OPT_ffp_contract) { in ConstructJob()
4265 << A->getOption().getName() << Val; in ConstructJob()
4267 } else if (A->getOption().matches(options::OPT_ffast_math) || in ConstructJob()
4268 (OFastEnabled && A->getOption().matches(options::OPT_Ofast))) { in ConstructJob()
4283 if (!A->getOption().matches(options::OPT_fno_fast_math)) in ConstructJob()
4287 if (A->getOption().matches(options::OPT_ffinite_math_only)) in ConstructJob()
4470 << Unsupported->getOption().getName(); in ConstructJob()
4494 if (A->getOption().matches(options::OPT_gN_Group)) { in ConstructJob()
4510 if (A->getOption().matches(options::OPT_glldb)) in ConstructJob()
4512 else if (A->getOption().matches(options::OPT_gsce)) in ConstructJob()
4662 switch (A->getOption().getID()) { in ConstructJob()
4742 if (A->getOption().matches(options::OPT_O4)) { in ConstructJob()
4773 if (Std->getOption().matches(options::OPT_ansi)) in ConstructJob()
4820 WriteStrings->getOption().matches(options::OPT_Wwrite_strings)) in ConstructJob()
4835 if (Asm->getOption().matches(options::OPT_fasm)) in ConstructJob()
4947 if (A->getOption().matches(options::OPT_fvisibility_EQ)) { in ConstructJob()
4951 assert(A->getOption().matches(options::OPT_fvisibility_ms_compat)); in ConstructJob()
5060 if (A->getOption().matches(options::OPT_fwrapv)) in ConstructJob()
5064 if (A->getOption().matches(options::OPT_fno_strict_overflow)) in ConstructJob()
5070 if (A->getOption().matches(options::OPT_freroll_loops)) in ConstructJob()
5085 if (A->getOption().matches(options::OPT_fstack_protector)) { in ConstructJob()
5089 } else if (A->getOption().matches(options::OPT_fstack_protector_strong)) in ConstructJob()
5091 else if (A->getOption().matches(options::OPT_fstack_protector_all)) in ConstructJob()
5150 if (A->getOption().matches(options::OPT_mrestrict_it)) { in ConstructJob()
5225 const Option &O = Arg->getOption(); in ConstructJob()
5405 if (A->getOption().matches(options::OPT_funsigned_char) || in ConstructJob()
5406 A->getOption().matches(options::OPT_fno_signed_char)) { in ConstructJob()
5605 if (WeakArg->getOption().matches(options::OPT_fobjc_weak)) in ConstructJob()
5608 if (WeakArg->getOption().matches(options::OPT_fobjc_weak)) in ConstructJob()
5748 if (A->getOption().matches( in ConstructJob()
5760 const Option &O = A->getOption(); in ConstructJob()
5837 if (A->getOption().matches(options::OPT_fdollars_in_identifiers)) in ConstructJob()
5847 if (A->getOption().matches(options::OPT_fno_unit_at_a_time)) in ConstructJob()
6073 runtimeArg->getOption().matches(options::OPT_fobjc_runtime_EQ)) { in AddObjCRuntimeArgs()
6157 } else if (runtimeArg->getOption().matches(options::OPT_fnext_runtime)) { in AddObjCRuntimeArgs()
6169 assert(runtimeArg->getOption().matches(options::OPT_fgnu_runtime)); in AddObjCRuntimeArgs()
6256 RTOptionID = A->getOption().getID(); in AddClangCLArgs()
6324 if (DebugInfoArg->getOption().matches(options::OPT__SLASH_Z7)) in AddClangCLArgs()
6357 VolatileOptionID = A->getOption().getID(); in AddClangCLArgs()
6494 WantDebug = !A->getOption().matches(options::OPT_g0) && in ConstructJob()
6495 !A->getOption().matches(options::OPT_ggdb0); in ConstructJob()
6616 if (forwardToGCC(A->getOption())) { in ConstructJob()
6625 A->getOption().matches(options::OPT_g_Group)) in ConstructJob()
6630 A->getOption().matches(options::OPT_W_Group)) in ConstructJob()
6708 if (A.getOption().matches(options::OPT_Z_reserved_lib_stdcxx)) { in ConstructJob()
7257 return A && A->getOption().matches(options::OPT_muclibc); in isUCLibc()
7315 if (A->getOption().matches(options::OPT_msingle_float)) in shouldUseFPXX()
7695 if (A->getOption().matches(options::OPT_fpie) || in AddLinkArgs()
7696 A->getOption().matches(options::OPT_fPIE)) in AddLinkArgs()
9122 if (A->getOption().matches(options::OPT_mips16)) { in ConstructJob()
9139 if (A->getOption().matches(options::OPT_mmsa)) in ConstructJob()
10095 if (A.getOption().matches(options::OPT_l)) { in ConstructJob()
10162 CmdArgs.push_back(A->getOption().getID() == options::OPT_fbuiltin ? "/Oi" in GetCommand()
10165 if (A->getOption().getID() == options::OPT_O0) { in GetCommand()
10181 CmdArgs.push_back(A->getOption().getID() == options::OPT_fomit_frame_pointer in GetCommand()
10200 CmdArgs.push_back(A->getOption().getID() == options::OPT_ffunction_sections in GetCommand()
10206 A->getOption().getID() == options::OPT_fdata_sections ? "/Gw" : "/Gw-"); in GetCommand()
10499 if (!A->getOption().matches(options::OPT_g0)) in ConstructJob()
11235 if (A->getOption().matches(options::OPT_O4) || in ConstructJob()
11236 A->getOption().matches(options::OPT_Ofast)) in ConstructJob()
11238 else if (A->getOption().matches(options::OPT_O0)) in ConstructJob()
11240 else if (A->getOption().matches(options::OPT_O)) { in ConstructJob()