Lines Matching refs:getOption
143 StringRef Option = A.getOption().getName(); in getRefinementStep()
242 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Val; in ParseMRecip()
249 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Val; in ParseMRecip()
287 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Value; in ParseMPreferVectorWidth()
453 ExceptionArg->getOption().matches(options::OPT_fcxx_exceptions) || in addExceptionArgs()
454 ExceptionArg->getOption().matches(options::OPT_fexceptions); in addExceptionArgs()
492 assert(A.getOption().matches(options::OPT_gN_Group) && in DebugLevelToInfoKind()
494 if (A.getOption().matches(options::OPT_g0) || in DebugLevelToInfoKind()
495 A.getOption().matches(options::OPT_ggdb0)) in DebugLevelToInfoKind()
497 if (A.getOption().matches(options::OPT_gline_tables_only) || in DebugLevelToInfoKind()
498 A.getOption().matches(options::OPT_ggdb1)) in DebugLevelToInfoKind()
500 if (A.getOption().matches(options::OPT_gline_directives_only)) in DebugLevelToInfoKind()
606 bool OmitFP = A && A->getOption().matches(options::OPT_fomit_frame_pointer); in getFramePointerKind()
608 A && A->getOption().matches(options::OPT_fno_omit_frame_pointer); in getFramePointerKind()
628 if (A->getOption().matches(options::OPT_ffile_compilation_dir_EQ)) in addDebugCompDirArg()
676 AddOneArg(A->getValue(), A->getOption().getName()); in addDebugPrefixMapArg()
693 << Map << A->getOption().getName(); in addMacroPrefixMapArg()
708 << Map << A->getOption().getName(); in addCoveragePrefixMapArg()
720 if (A->getOption().matches(options::OPT_O4) || in shouldEnableVectorizerAtOLevel()
721 A->getOption().matches(options::OPT_Ofast)) in shouldEnableVectorizerAtOLevel()
724 if (A->getOption().matches(options::OPT_O0)) in shouldEnableVectorizerAtOLevel()
727 assert(A->getOption().matches(options::OPT_O) && "Must have a -O flag"); in shouldEnableVectorizerAtOLevel()
788 PGOGenerateArg->getOption().matches(options::OPT_fno_profile_generate)) in addPGOAndCoverageFlags()
795 CSPGOGenerateArg->getOption().matches(options::OPT_fno_profile_generate)) in addPGOAndCoverageFlags()
803 ProfileGenerateArg->getOption().matches( in addPGOAndCoverageFlags()
837 if (ProfileGenerateArg->getOption().matches( in addPGOAndCoverageFlags()
867 if (PGOGenArg->getOption().matches( in addPGOAndCoverageFlags()
878 if (ProfileUseArg->getOption().matches(options::OPT_fprofile_instr_use_EQ)) in addPGOAndCoverageFlags()
881 else if ((ProfileUseArg->getOption().matches( in addPGOAndCoverageFlags()
883 ProfileUseArg->getOption().matches( in addPGOAndCoverageFlags()
915 if (A->getOption().matches(options::OPT_ffile_compilation_dir_EQ)) in addPGOAndCoverageFlags()
954 << A->getOption().getName() << Val; in addPGOAndCoverageFlags()
1037 RelaxDefault = A->getOption().matches(options::OPT_O0); in UseRelaxAll()
1150 << A->getOption().getName() << Value; in RenderDebugInfoCompressionArgs()
1242 if (A->getOption().matches(options::OPT_MT)) { in AddPreprocessingOptions()
1276 if (ArgM->getOption().matches(options::OPT_M) || in AddPreprocessingOptions()
1277 ArgM->getOption().matches(options::OPT_MD)) in AddPreprocessingOptions()
1286 if (!ArgM || ArgM->getOption().matches(options::OPT_MD) || in AddPreprocessingOptions()
1287 ArgM->getOption().matches(options::OPT_MMD)) in AddPreprocessingOptions()
1364 if (A->getOption().matches(options::OPT_include) && in AddPreprocessingOptions()
1398 } else if (A->getOption().matches(options::OPT_isystem_after)) { in AddPreprocessingOptions()
1405 } else if (A->getOption().matches(options::OPT_stdlibxx_isystem)) { in AddPreprocessingOptions()
1690 if (A->getOption().matches(options::OPT_msign_return_address_EQ)) { in CollectARMPACBTIOptions()
1694 << A->getOption().getName() << Scope; in CollectARMPACBTIOptions()
1702 << A->getOption().getName() << DiagMsg; in CollectARMPACBTIOptions()
1747 if (A->getOption().matches(options::OPT_mno_global_merge)) in AddARMTargetArgs()
1885 if (A->getOption().matches(options::OPT_mno_global_merge)) in AddAArch64TargetArgs()
1920 << A->getOption().getName() << Val; in AddAArch64TargetArgs()
1962 if (A->getOption().matches(options::OPT_mno_ldc1_sdc1)) { in AddMIPSTargetArgs()
1970 if (A->getOption().matches(options::OPT_mno_check_zero_division)) { in AddMIPSTargetArgs()
2003 ABICalls && ABICalls->getOption().matches(options::OPT_mno_abicalls); in AddMIPSTargetArgs()
2014 bool WantGPOpt = GPOpt && GPOpt->getOption().matches(options::OPT_mgpopt); in AddMIPSTargetArgs()
2028 if (LocalSData->getOption().matches(options::OPT_mlocal_sdata)) { in AddMIPSTargetArgs()
2038 if (ExternSData->getOption().matches(options::OPT_mextern_sdata)) { in AddMIPSTargetArgs()
2048 if (EmbeddedData->getOption().matches(options::OPT_membedded_data)) { in AddMIPSTargetArgs()
2070 << A->getOption().getName() << Val; in AddMIPSTargetArgs()
2077 if (A->getOption().matches(options::OPT_mno_relax_pic_calls)) { in AddMIPSTargetArgs()
2277 const Option &O = A->getOption(); in AddX86TargetArgs()
2292 << A->getOption().getName() << Value; in AddX86TargetArgs()
2301 if (A->getOption().matches(options::OPT_mskip_rax_setup)) in AddX86TargetArgs()
2375 << A->getOption().getName() << Value; in AddLanaiTargetArgs()
2439 auto &O = A->getOption(); in DumpCompilationDatabase()
2548 if (A->getOption().getID() == options::OPT_mimplicit_it_EQ) { in CollectArgsForIntegratedAssembler()
2558 << A->getOption().getName() << ImplicitIt; in CollectArgsForIntegratedAssembler()
2714 << A->getOption().getName() << Value; in CollectArgsForIntegratedAssembler()
2784 auto optID = A->getOption().getID(); in RenderFloatingPointOptions()
2841 << A->getOption().getName() << Val; in RenderFloatingPointOptions()
2927 << A->getOption().getName() << Val; in RenderFloatingPointOptions()
2955 << A->getOption().getName() << Val; in RenderFloatingPointOptions()
2967 << A->getOption().getName() << Val; in RenderFloatingPointOptions()
3264 if (A->getOption().matches(options::OPT_fstack_protector)) in RenderSSPOptions()
3267 else if (A->getOption().matches(options::OPT_fstack_protector_strong)) in RenderSSPOptions()
3269 else if (A->getOption().matches(options::OPT_fstack_protector_all)) in RenderSSPOptions()
3304 << A->getOption().getName() << Value << "tls global"; in RenderSSPOptions()
3334 << A->getOption().getName() << Value << "sysreg global"; in RenderSSPOptions()
3348 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Value; in RenderSSPOptions()
3354 << A->getOption().getName() << Value; in RenderSSPOptions()
3367 << A->getOption().getName() << Value << "fs gs"; in RenderSSPOptions()
3371 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Value; in RenderSSPOptions()
3381 << A->getOption().getName() << "legal symbol name"; in RenderSSPOptions()
3411 switch (A->getOption().getID()) { in RenderTrivialAutoVarInitOptions()
3421 << A->getOption().getName() << Val; in RenderTrivialAutoVarInitOptions()
3490 CmdArgs.push_back(Args.MakeArgString(A->getOption().getPrefixedName())); in RenderOpenCLOptions()
3528 switch (A->getOption().getID()) { in RenderARCMigrateToolOptions()
3827 if (A->getOption().matches(options::OPT_funsigned_char) || in RenderCharacterOptions()
3828 A->getOption().matches(options::OPT_fno_signed_char)) { in RenderCharacterOptions()
3840 if (A->getOption().matches(options::OPT_fshort_wchar)) { in RenderCharacterOptions()
3920 Arg->getOption().matches( in RenderObjCOptions()
3937 if (WeakArg->getOption().matches(options::OPT_fobjc_weak)) in RenderObjCOptions()
3956 switch (A->getOption().getID()) { in RenderDiagnosticsOptions()
4009 const Option &O = A->getOption(); in RenderDiagnosticsOptions()
4026 << Value << A->getOption().getName(); in RenderDiagnosticsOptions()
4053 if (!Arg || Arg->getOption().matches(options::OPT_gno_split_dwarf)) in getDebugFissionKind()
4056 if (Arg->getOption().matches(options::OPT_gsplit_dwarf)) in getDebugFissionKind()
4066 << Arg->getOption().getName() << Arg->getValue(); in getDebugFissionKind()
4078 if (DwarfFormatArg->getOption().matches(options::OPT_gdwarf64)) { in renderDwarfFormat()
4137 A->getOption().matches(options::OPT_gN_Group)) { in renderDebugOptions()
4155 if (A->getOption().matches(options::OPT_glldb)) in renderDebugOptions()
4157 else if (A->getOption().matches(options::OPT_gsce)) in renderDebugOptions()
4159 else if (A->getOption().matches(options::OPT_gdbx)) in renderDebugOptions()
4346 (!PubnamesArg->getOption().matches(options::OPT_gno_gnu_pubnames) && in renderDebugOptions()
4347 !PubnamesArg->getOption().matches(options::OPT_gno_pubnames))) in renderDebugOptions()
4348 CmdArgs.push_back(PubnamesArg && PubnamesArg->getOption().matches( in renderDebugOptions()
4358 const auto &Opt = SimpleTemplateNamesArg->getOption(); in renderDebugOptions()
4796 !MemProfArg->getOption().matches(options::OPT_fno_memory_profile)) in ConstructJob()
4857 if (llvm::is_contained(kBitcodeOptionIgnorelist, A->getOption().getID())) in ConstructJob()
4884 if (A->getOption().matches(options::OPT_O4)) { in ConstructJob()
5077 else if (A->getOption().matches(options::OPT_fsemantic_interposition)) in ConstructJob()
5126 if (A->getOption().getID() == options::OPT_mabi_EQ_vec_extabi) in ConstructJob()
5175 } else if (A->getOption().matches(options::OPT_maix_struct_return)) { in ConstructJob()
5178 assert(A->getOption().matches(options::OPT_msvr4_struct_return)); in ConstructJob()
5188 } else if (A->getOption().matches(options::OPT_fpcc_struct_return)) { in ConstructJob()
5191 assert(A->getOption().matches(options::OPT_freg_struct_return)); in ConstructJob()
5281 << A->getValue() << A->getOption().getName(); in ConstructJob()
5284 << A->getOption().getName() << TripleStr; in ConstructJob()
5299 (A->getOption().getID() != options::OPT_mlong_double_80)) in ConstructJob()
5326 << A->getValue() << A->getOption().getName(); in ConstructJob()
5364 if (A->getOption().matches(options::OPT_fdirect_access_external_data) != in ConstructJob()
5427 << CM << A->getOption().getName(); in ConstructJob()
5437 << A->getOption().getName() << TripleStr; in ConstructJob()
5440 << A->getOption().getName() << Value; in ConstructJob()
5528 << Unsupported->getOption().getName(); in ConstructJob()
5533 << Unsupported->getOption().getName() in ConstructJob()
5537 << Unsupported->getOption().getName() << "please use -mno-altivec"; in ConstructJob()
5622 if (A->getOption().matches(options::OPT_fsplit_machine_functions)) in ConstructJob()
5683 if (A->getOption().matches(options::OPT_O4)) { in ConstructJob()
5711 if (A->getOption().getID() == options::OPT__SLASH_wd) { in ConstructJob()
5756 if (Std->getOption().matches(options::OPT_ansi)) in ConstructJob()
5812 WriteStrings->getOption().matches(options::OPT_Wwrite_strings)) in ConstructJob()
5827 if (Asm->getOption().matches(options::OPT_fasm)) in ConstructJob()
5954 << V << A->getOption().getName(); in ConstructJob()
5975 if (A->getOption().matches(options::OPT_fvisibility_EQ)) { in ConstructJob()
5979 assert(A->getOption().matches(options::OPT_fvisibility_ms_compat)); in ConstructJob()
5997 if (A->getOption().matches( in ConstructJob()
6178 << S0 << A->getOption().getName(); in ConstructJob()
6245 if (A->getOption().matches(options::OPT_fwrapv)) in ConstructJob()
6249 if (A->getOption().matches(options::OPT_fno_strict_overflow)) in ConstructJob()
6255 if (A->getOption().matches(options::OPT_freroll_loops)) in ConstructJob()
6303 if (A->getOption().matches(options::OPT_mrestrict_it)) { in ConstructJob()
6586 if (A->getOption().matches(options::OPT_fno_inline)) in ConstructJob()
6639 const Option &Opt = A->getOption(); in ConstructJob()
6684 if (A->getOption().matches(options::OPT_fno_aligned_allocation)) in ConstructJob()
6806 if (A->getOption().matches(options::OPT_fdollars_in_identifiers)) in ConstructJob()
7139 if (A->getOption().matches(options::OPT_fglobal_isel)) { in ConstructJob()
7150 if (!A || A->getOption().matches(options::OPT_O0)) in ConstructJob()
7180 if (A->getOption().matches(options::OPT_fforce_enable_int128)) in ConstructJob()
7200 << Triple.getArchName() << A->getOption().getName(); in ConstructJob()
7202 if (A->getOption().matches(options::OPT_moutline_atomics)) { in ConstructJob()
7341 runtimeArg->getOption().matches(options::OPT_fobjc_runtime_EQ)) { in AddObjCRuntimeArgs()
7433 } else if (runtimeArg->getOption().matches(options::OPT_fnext_runtime)) { in AddObjCRuntimeArgs()
7445 assert(runtimeArg->getOption().matches(options::OPT_fgnu_runtime)); in AddObjCRuntimeArgs()
7542 RTOptionID = A->getOption().getID(); in AddClangCLArgs()
7591 if (ShowIncludes->getOption().matches(options::OPT__SLASH_showIncludes)) in AddClangCLArgs()
7612 if (DebugInfoArg->getOption().matches(options::OPT__SLASH_Z7)) in AddClangCLArgs()
7654 VolatileOptionID = A->getOption().getID(); in AddClangCLArgs()
7722 unsigned DCCOptId = CCArg->getOption().getID(); in AddClangCLArgs()
7838 << A->getOption().getName() << Value; in AddX86TargetArgs()
7928 WantDebug = !A->getOption().matches(options::OPT_g0) && in ConstructJob()
7929 !A->getOption().matches(options::OPT_ggdb0); in ConstructJob()
8441 if (A->getOption().matches(options::OPT_O4) || in ConstructJob()
8442 A->getOption().matches(options::OPT_Ofast)) in ConstructJob()
8444 else if (A->getOption().matches(options::OPT_O)) { in ConstructJob()
8450 } else if (A->getOption().matches(options::OPT_O0)) in ConstructJob()
8463 if (!A->getOption().matches(options::OPT_g0)) in ConstructJob()