reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Option/ArgList.h
   59       const Option &O = (*Current)->getOption();
lib/Option/Arg.cpp
   88   if (!getOption().hasNoOptAsInput()) {
   97   switch (getOption().getRenderStyle()) {
lib/Option/ArgList.cpp
   37   for (Option O = A->getOption().getUnaliasedOption(); O.isValid();
   75     return A->getOption().matches(Pos);
   82     return A->getOption().matches(Pos) || A->getOption().matches(PosAlias);
   82     return A->getOption().matches(Pos) || A->getOption().matches(PosAlias);
  104       if (Arg->getOption().matches(Id)) {
  111         if (Arg->getOption().matches(Id)) {
tools/clang/lib/Driver/Driver.cpp
  214     if (A->getOption().hasFlag(options::Unsupported)) {
  233     if (A->getOption().matches(options::OPT_mcpu_EQ) && A->containsValue("")) {
  340     if ((A->getOption().matches(options::OPT_Wl_COMMA) ||
  341          A->getOption().matches(options::OPT_Xlinker)) &&
  357     if (A->getOption().matches(options::OPT_Wp_COMMA) &&
  371     if (A->getOption().matches(options::OPT_l)) {
  389     if (A->getOption().matches(options::OPT__DASH_DASH)) {
  457     if (A->getOption().matches(options::OPT_mlittle_endian)) {
  479     if (A->getOption().matches(options::OPT_m64)) {
  483     } else if (A->getOption().matches(options::OPT_mx32) &&
  487     } else if (A->getOption().matches(options::OPT_m32)) {
  491     } else if (A->getOption().matches(options::OPT_m16) &&
  507     if (A && !A->getOption().matches(options::OPT_m32))
  567     Diag(diag::err_drv_unsupported_option_argument) << A->getOption().getName()
  589           << A->getOption().getName() << A->getValue();
  977       Arg *Copy = new llvm::opt::Arg(Opt->getOption(), Opt->getSpelling(),
  987       if (Opt->getOption().matches(options::OPT_config))
 1313     if (A->getOption().matches(options::OPT_arch)) {
 1935     if (A->getOption().matches(options::OPT_arch)) {
 1985     if (A && !A->getOption().matches(options::OPT_g0) &&
 1986         !A->getOption().matches(options::OPT_gstabs) &&
 2074     InputType = TCTP->getOption().matches(options::OPT__SLASH_TC)
 2097     if (A->getOption().getKind() == Option::InputClass) {
 2167         if (!InputTypeArg->getOption().matches(options::OPT_x)) {
 2183     } else if (A->getOption().matches(options::OPT__SLASH_Tc)) {
 2191     } else if (A->getOption().matches(options::OPT__SLASH_Tp)) {
 2199     } else if (A->getOption().hasFlag(options::LinkerInput)) {
 2204     } else if (A->getOption().matches(options::OPT_x)) {
 2216     } else if (A->getOption().getID() == options::OPT_U) {
 2504                         PartialCompilationArg->getOption().matches(
 2507                           PartialCompilationArg->getOption().matches(
 2516         if (!(A->getOption().matches(options::OPT_cuda_gpu_arch_EQ) ||
 2517               A->getOption().matches(options::OPT_no_cuda_gpu_arch_EQ)))
 2522         if (A->getOption().matches(options::OPT_no_cuda_gpu_arch_EQ) &&
 2531         } else if (A->getOption().matches(options::OPT_cuda_gpu_arch_EQ))
 2533         else if (A->getOption().matches(options::OPT_no_cuda_gpu_arch_EQ))
 3080         InputArg->getOption().getKind() == llvm::opt::Option::InputClass &&
 3294             << (FinalPhaseArg ? FinalPhaseArg->getOption().getName() : "");
 3299             << (FinalPhaseArg ? FinalPhaseArg->getOption().getName() : "");
 3641       if (A->getOption().matches(options::OPT_arch))
 3687       if (A->getOption().hasFlag(options::NoArgumentUnused))
 3692       const Option &Opt = A->getOption();
 3709       if (!IsCLMode() || !A->getOption().matches(options::OPT_UNKNOWN))
 4121     if (Input.getOption().matches(options::OPT_INPUT)) {
tools/clang/lib/Driver/SanitizerArgs.cpp
  175     if (Arg->getOption().matches(options::OPT_fsanitize_trap_EQ)) {
  186     } else if (Arg->getOption().matches(options::OPT_fno_sanitize_trap_EQ)) {
  189     } else if (Arg->getOption().matches(
  195     } else if (Arg->getOption().matches(
  272       !OptLevel || OptLevel->getOption().matches(options::OPT_O0);
  277     if (Arg->getOption().matches(options::OPT_fsanitize_EQ)) {
  349           assert(NoRTTIArg->getOption().matches(options::OPT_fno_rtti) &&
  391     } else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) {
  508     if (Arg->getOption().matches(options::OPT_fsanitize_recover)) {
  513     } else if (Arg->getOption().matches(options::OPT_fno_sanitize_recover)) {
  518     } else if (Arg->getOption().matches(options::OPT_fsanitize_recover_EQ)) {
  527             << Arg->getOption().getName() << toString(SetToDiagnose);
  532     } else if (Arg->getOption().matches(options::OPT_fno_sanitize_recover_EQ)) {
  541             << Arg->getOption().getName() << toString(SetToDiagnose);
  563     if (Arg->getOption().matches(options::OPT_fsanitize_blacklist)) {
  572     } else if (Arg->getOption().matches(options::OPT_fno_sanitize_blacklist)) {
  593       if (A->getOption().matches(options::OPT_fsanitize_memory_track_origins)) {
  595       } else if (A->getOption().matches(
  666     if (Arg->getOption().matches(options::OPT_fsanitize_coverage)) {
  688     } else if (Arg->getOption().matches(options::OPT_fno_sanitize_coverage)) {
  760       switch (WindowsDebugRTArg->getOption().getID()) {
 1065   assert((A->getOption().matches(options::OPT_fsanitize_EQ) ||
 1066           A->getOption().matches(options::OPT_fno_sanitize_EQ) ||
 1067           A->getOption().matches(options::OPT_fsanitize_recover_EQ) ||
 1068           A->getOption().matches(options::OPT_fno_sanitize_recover_EQ) ||
 1069           A->getOption().matches(options::OPT_fsanitize_trap_EQ) ||
 1070           A->getOption().matches(options::OPT_fno_sanitize_trap_EQ)) &&
 1077     if (A->getOption().matches(options::OPT_fsanitize_EQ) &&
 1087           << A->getOption().getName() << Value;
 1093   assert(A->getOption().matches(options::OPT_fsanitize_coverage) ||
 1094          A->getOption().matches(options::OPT_fno_sanitize_coverage));
 1117           << A->getOption().getName() << Value;
 1129     if (Arg->getOption().matches(options::OPT_fsanitize_EQ)) {
 1134     } else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) {
 1144   assert(A->getOption().matches(options::OPT_fsanitize_EQ)
tools/clang/lib/Driver/ToolChain.cpp
   63     if (CachedRTTIArg->getOption().matches(options::OPT_frtti))
  636       IsBigEndian = !A->getOption().matches(options::OPT_mlittle_endian);
  910     if (!A || A->getOption().getID() == options::OPT_fno_fast_math ||
  911         A->getOption().getID() == options::OPT_fno_unsafe_math_optimizations)
 1024     if (A->getOption().matches(options::OPT_m_Group)) {
 1035         A->getOption().matches(options::OPT_Xopenmp_target);
 1037     if (A->getOption().matches(options::OPT_Xopenmp_target_EQ)) {
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
  212     if (A->getOption().matches(options::OPT_mcrc))
  326     if (A->getOption().matches(options::OPT_mno_unaligned_access))
tools/clang/lib/Driver/ToolChains/Arch/ARM.cpp
  168     if (A->getOption().matches(options::OPT_msoft_float)) {
  170     } else if (A->getOption().matches(options::OPT_mhard_float)) {
  476     if (A->getOption().matches(options::OPT_mcrc))
  523     if (A->getOption().matches(options::OPT_mlong_calls))
  536       if (A->getOption().matches(options::OPT_mexecute_only)) {
  546           if (B->getOption().matches(options::OPT_mlong_calls))
  559     if (A->getOption().matches(options::OPT_munaligned_access)) {
tools/clang/lib/Driver/ToolChains/Arch/Mips.cpp
  158     if (A->getOption().matches(options::OPT_msoft_float))
  160     else if (A->getOption().matches(options::OPT_mhard_float))
  236     Option O = LastPICArg->getOption();
  250       !ABICallsArg || ABICallsArg->getOption().matches(options::OPT_mabicalls);
  268     if (A->getOption().matches(options::OPT_mno_long_calls))
  277     if (A->getOption().matches(options::OPT_mxgot))
  309           << A->getOption().getName() << Val;
  330           << A->getOption().getName() << Val;
  352     if (A->getOption().matches(options::OPT_mfp32))
  354     else if (A->getOption().matches(options::OPT_mfpxx)) {
  386       if (B && B->getOption().matches(options::OPT_mmicromips))
  389       else if (C && C->getOption().matches(options::OPT_mips16))
  441   return A && A->getOption().matches(options::OPT_muclibc);
  499     if (A->getOption().matches(options::OPT_msingle_float))
tools/clang/lib/Driver/ToolChains/Arch/PPC.cpp
  131     if (A->getOption().matches(options::OPT_msoft_float))
  133     else if (A->getOption().matches(options::OPT_mhard_float))
tools/clang/lib/Driver/ToolChains/Arch/Sparc.cpp
   80     if (A->getOption().matches(clang::driver::options::OPT_msoft_float))
   82     else if (A->getOption().matches(options::OPT_mhard_float))
tools/clang/lib/Driver/ToolChains/Arch/SystemZ.cpp
   28     if (A->getOption().matches(options::OPT_mhtm))
   35     if (A->getOption().matches(options::OPT_mvx))
tools/clang/lib/Driver/ToolChains/Clang.cpp
  162     StringRef Option = A.getOption().getName();
  256         D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Val;
  263       D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Val;
  298       D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Value;
  367           ExceptionArg->getOption().matches(options::OPT_fcxx_exceptions) ||
  368           ExceptionArg->getOption().matches(options::OPT_fexceptions);
  403   assert(A.getOption().matches(options::OPT_gN_Group) &&
  405   if (A.getOption().matches(options::OPT_g0) ||
  406       A.getOption().matches(options::OPT_ggdb0))
  408   if (A.getOption().matches(options::OPT_gline_tables_only) ||
  409       A.getOption().matches(options::OPT_ggdb1))
  411   if (A.getOption().matches(options::OPT_gline_directives_only))
  506   bool OmitFP = A && A->getOption().matches(options::OPT_fomit_frame_pointer);
  508       A && A->getOption().matches(options::OPT_fno_omit_frame_pointer);
  551     if (A->getOption().matches(options::OPT_O4) ||
  552         A->getOption().matches(options::OPT_Ofast))
  555     if (A->getOption().matches(options::OPT_O0))
  558     assert(A->getOption().matches(options::OPT_O) && "Must have a -O flag");
  651       PGOGenerateArg->getOption().matches(options::OPT_fno_profile_generate))
  658       CSPGOGenerateArg->getOption().matches(options::OPT_fno_profile_generate))
  666       ProfileGenerateArg->getOption().matches(
  689     if (ProfileGenerateArg->getOption().matches(
  718     if (PGOGenArg->getOption().matches(
  729     if (ProfileUseArg->getOption().matches(options::OPT_fprofile_instr_use_EQ))
  732     else if ((ProfileUseArg->getOption().matches(
  734               ProfileUseArg->getOption().matches(
  847     RelaxDefault = A->getOption().matches(options::OPT_O0);
  931     if (A->getOption().getID() == options::OPT_gz) {
  951           << A->getOption().getName() << Value;
 1021       if (A->getOption().matches(options::OPT_MT)) {
 1055     if (ArgM->getOption().matches(options::OPT_M) ||
 1056         ArgM->getOption().matches(options::OPT_MD))
 1065     if (!ArgM || ArgM->getOption().matches(options::OPT_MD) ||
 1066         ArgM->getOption().matches(options::OPT_MMD))
 1134     if (A->getOption().matches(options::OPT_include)) {
 1167     } else if (A->getOption().matches(options::OPT_isystem_after)) {
 1174     } else if (A->getOption().matches(options::OPT_stdlibxx_isystem)) {
 1345     if (A->getOption().matches(options::OPT_mno_global_merge))
 1519     if (A->getOption().matches(options::OPT_mfix_cortex_a53_835769))
 1533     if (A->getOption().matches(options::OPT_mno_global_merge))
 1548     if (A->getOption().matches(options::OPT_msign_return_address_EQ)) {
 1595     if (A->getOption().matches(options::OPT_mno_ldc1_sdc1)) {
 1603     if (A->getOption().matches(options::OPT_mno_check_zero_division)) {
 1631       ABICalls && ABICalls->getOption().matches(options::OPT_mno_abicalls);
 1642   bool WantGPOpt = GPOpt && GPOpt->getOption().matches(options::OPT_mgpopt);
 1656       if (LocalSData->getOption().matches(options::OPT_mlocal_sdata)) {
 1666       if (ExternSData->getOption().matches(options::OPT_mextern_sdata)) {
 1676       if (EmbeddedData->getOption().matches(options::OPT_membedded_data)) {
 1698             << A->getOption().getName() << Val;
 1705     if (A->getOption().matches(options::OPT_mno_relax_pic_calls)) {
 1829     const Option &O = A->getOption();
 1843           << A->getOption().getName() << Value;
 1896             << A->getOption().getName() << Value;
 1952     auto &O = A->getOption();
 2038             << A->getOption().getName() << Value;
 2198             << A->getOption().getName() << Value;
 2242     switch (A->getOption().getID()) {
 2273             << A->getOption().getName() << Val;
 2482     if (A->getOption().matches(options::OPT_fstack_protector))
 2485     else if (A->getOption().matches(options::OPT_fstack_protector_strong))
 2487     else if (A->getOption().matches(options::OPT_fstack_protector_all))
 2520     switch (A->getOption().getID()) {
 2530             << A->getOption().getName() << Val;
 2579       CmdArgs.push_back(Args.MakeArgString(A->getOption().getPrefixedName()));
 2590       switch (A->getOption().getID()) {
 2669     const Option &O = Arg->getOption();
 2871     if (A->getOption().matches(options::OPT_funsigned_char) ||
 2872         A->getOption().matches(options::OPT_fno_signed_char)) {
 2884     if (A->getOption().matches(options::OPT_fshort_wchar)) {
 2964         Arg->getOption().matches(
 2981       if (WeakArg->getOption().matches(options::OPT_fobjc_weak))
 2997     switch (A->getOption().getID()) {
 3053     const Option &O = A->getOption();
 3065     const Option &O = A->getOption();
 3113   if (Arg->getOption().matches(options::OPT_gsplit_dwarf))
 3123       << Arg->getOption().getName() << Arg->getValue();
 3173         A->getOption().matches(options::OPT_gN_Group)) {
 3191       if (A->getOption().matches(options::OPT_glldb))
 3193       else if (A->getOption().matches(options::OPT_gsce))
 3319         (!PubnamesArg->getOption().matches(options::OPT_gno_gnu_pubnames) &&
 3320          !PubnamesArg->getOption().matches(options::OPT_gno_pubnames)))
 3321       CmdArgs.push_back(PubnamesArg && PubnamesArg->getOption().matches(
 3703       if (llvm::find(kBitcodeOptionBlacklist, A->getOption().getID()) !=
 3731       if (A->getOption().matches(options::OPT_O4)) {
 3935     } else if (A->getOption().matches(options::OPT_fpcc_struct_return)) {
 3938       assert(A->getOption().matches(options::OPT_freg_struct_return));
 4019              (A->getOption().getID() != options::OPT_mlong_double_80))
 4156             << Unsupported->getOption().getName();
 4161           << Unsupported->getOption().getName()
 4165           << Unsupported->getOption().getName() << "please use -mno-altivec";
 4253     if (A->getOption().matches(options::OPT_O4)) {
 4297     if (Std->getOption().matches(options::OPT_ansi))
 4344         WriteStrings->getOption().matches(options::OPT_Wwrite_strings))
 4359     if (Asm->getOption().matches(options::OPT_fasm))
 4485     if (A->getOption().matches(options::OPT_fvisibility_EQ)) {
 4489       assert(A->getOption().matches(options::OPT_fvisibility_ms_compat));
 4612     if (A->getOption().matches(options::OPT_fwrapv))
 4616     if (A->getOption().matches(options::OPT_fno_strict_overflow))
 4622     if (A->getOption().matches(options::OPT_freroll_loops))
 4663     if (A->getOption().matches(options::OPT_mrestrict_it)) {
 4922     const Option &Opt = A->getOption();
 4970     if (A->getOption().matches(options::OPT_fno_aligned_allocation))
 5099     if (A->getOption().matches(options::OPT_fdollars_in_identifiers))
 5109     if (A->getOption().matches(options::OPT_fno_unit_at_a_time))
 5419     if (A->getOption().matches(options::OPT_fexperimental_isel)) {
 5430         if (!A || A->getOption().matches(options::OPT_O0))
 5460     if (A->getOption().matches(options::OPT_fforce_enable_int128))
 5474     if (A->getOption().matches(options::OPT_moutline)) {
 5602       runtimeArg->getOption().matches(options::OPT_fobjc_runtime_EQ)) {
 5694   } else if (runtimeArg->getOption().matches(options::OPT_fnext_runtime)) {
 5706     assert(runtimeArg->getOption().matches(options::OPT_fgnu_runtime));
 5793     RTOptionID = A->getOption().getID();
 5858     if (DebugInfoArg->getOption().matches(options::OPT__SLASH_Z7))
 5890     VolatileOptionID = A->getOption().getID();
 5936     unsigned DCCOptId = CCArg->getOption().getID();
 6051           << A->getOption().getName() << Value;
 6133     WantDebug = !A->getOption().matches(options::OPT_g0) &&
 6134                 !A->getOption().matches(options::OPT_ggdb0);
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
   75     StringRef Name = A->getOption().getName();
  182     if (A.getOption().matches(options::OPT_Z_reserved_lib_stdcxx))
  184     else if (A.getOption().matches(options::OPT_Z_reserved_lib_cckext))
  186     else if (A.getOption().matches(options::OPT_z)) {
  201     if (A->getOption().matches(OnOpt))
  392     if (A->getOption().matches(options::OPT_O4) ||
  393         A->getOption().matches(options::OPT_Ofast))
  395     else if (A->getOption().matches(options::OPT_O))
  397     else if (A->getOption().matches(options::OPT_O0))
  419     if (A->getOption().matches(options::OPT_glldb))
  421     else if (A->getOption().matches(options::OPT_gsce))
  453       CSPGOGenerateArg->getOption().matches(options::OPT_fno_profile_generate))
  460     if (CSPGOGenerateArg->getOption().matches(
  802     return !A->getOption().matches(options::OPT_O0);
  872       ProfileUseArg->getOption().matches(options::OPT_fno_profile_instr_use))
  885       (ProfileSampleUseArg->getOption().matches(
  887        ProfileSampleUseArg->getOption().matches(options::OPT_fno_auto_profile)))
  990       Option O = LastPICArg->getOption();
 1058   if (LastROPIArg && LastROPIArg->getOption().matches(options::OPT_fropi)) {
 1065   if (LastRWPIArg && LastRWPIArg->getOption().matches(options::OPT_frwpi)) {
 1128   if (!A || A->getOption().matches(options::OPT_fno_align_functions))
 1131   if (A->getOption().matches(options::OPT_falign_functions))
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  305   bool IsDebugEnabled = !A || A->getOption().matches(options::OPT_O0) ||
  310     const Option &Opt = A->getOption();
  369     if (A->getOption().matches(options::OPT_O4) ||
  370         A->getOption().matches(options::OPT_Ofast))
  372     else if (A->getOption().matches(options::OPT_O0))
  374     else if (A->getOption().matches(options::OPT_O)) {
  431     if (!(A->getOption().matches(options::OPT_cuda_include_ptx_EQ) ||
  432           A->getOption().matches(options::OPT_no_cuda_include_ptx_EQ)))
  437       includePTX = A->getOption().matches(options::OPT_cuda_include_ptx_EQ);
  721   const Option &O = A->getOption();
  795     if (A->getOption().matches(options::OPT_Xarch__)) {
  816       } else if (XarchArg->getOption().hasFlag(options::DriverOption)) {
tools/clang/lib/Driver/ToolChains/Darwin.cpp
  187     if (A->getOption().matches(options::OPT_O0))
  189     if (A->getOption().matches(options::OPT_O))
  348     if (A->getOption().matches(options::OPT_fpie) ||
  349         A->getOption().matches(options::OPT_fPIE))
  515     if (A->getOption().matches(options::OPT_moutline)) {
 1095     if (A->getOption().matches(options::OPT_exported__symbols__list))
 1097     if (!A->getOption().matches(options::OPT_Wl_COMMA) &&
 1098         !A->getOption().matches(options::OPT_Xlinker))
 2083     if (A->getOption().matches(options::OPT_Xarch__)) {
 2111       } else if (XarchArg->getOption().hasFlag(options::DriverOption)) {
 2125       if (A->getOption().hasFlag(options::LinkerInput)) {
 2138     switch ((options::ID)A->getOption().getID()) {
 2364       if (A->getOption().getID() != options::OPT_mkernel &&
 2365           A->getOption().getID() != options::OPT_fapple_kext)
 2369       assert(A->getOption().getID() == options::OPT_static &&
tools/clang/lib/Driver/ToolChains/Gnu.cpp
   73     if (forwardToGCC(A->getOption())) {
   82           A->getOption().matches(options::OPT_g_Group))
   87           A->getOption().matches(options::OPT_W_Group))
   93           (A->getOption().matches(options::OPT_munaligned_access) ||
   94            A->getOption().matches(options::OPT_mno_unaligned_access)))
  172       if (A.getOption().matches(options::OPT_Z_reserved_lib_stdcxx)) {
  249       IsBigEndian = !A->getOption().matches(options::OPT_mlittle_endian);
  321   return A->getOption().matches(options::OPT_pie);
  653     if (A->getOption().getID() == options::OPT_gz) {
  662             << A->getOption().getName() << Value;
  831       if (A->getOption().matches(options::OPT_mips16)) {
  848       if (A->getOption().matches(options::OPT_mmsa))
  915   return A->getOption().matches(options::OPT_msoft_float) ||
  916          (A->getOption().matches(options::OPT_mfloat_abi_EQ) &&
  930   return A && A->getOption().matches(options::OPT_mips16);
  935   return A && A->getOption().matches(options::OPT_mmicromips);
 2687       switch ((options::ID)A->getOption().getID()) {
tools/clang/lib/Driver/ToolChains/HIP.cpp
   98     if (A->getOption().matches(options::OPT_O4) ||
   99         A->getOption().matches(options::OPT_Ofast))
  101     else if (A->getOption().matches(options::OPT_O0))
  103     else if (A->getOption().matches(options::OPT_O)) {
  369     if (A->getOption().matches(options::OPT_Xarch__)) {
  390       } else if (XarchArg->getOption().hasFlag(options::DriverOption)) {
tools/clang/lib/Driver/ToolChains/Hexagon.cpp
   44           << A->getOption().getName() << Val;
   63     if (A->getOption().matches(options::OPT_mno_hexagon_hvx))
   65     if (A->getOption().matches(options::OPT_mhexagon_hvx_EQ)) {
   69     } else if (A->getOption().matches(options::OPT_mhexagon_hvx)) {
   81     else if (A->getOption().matches(options::OPT_mhexagon_hvx_length_EQ))
  104     if (A->getOption().matches(options::OPT_mlong_calls))
  494   if (A->getOption().matches(options::OPT_O0))
  496   if (A->getOption().matches(options::OPT_Ofast) ||
  497       A->getOption().matches(options::OPT_O4))
  563     return A->getOption().matches(options::OPT_fvectorize);
tools/clang/lib/Driver/ToolChains/MSVC.cpp
  473     if (A.getOption().matches(options::OPT_l)) {
  616     CmdArgs.push_back(A->getOption().getID() == options::OPT_fbuiltin ? "/Oi"
  619     if (A->getOption().getID() == options::OPT_O0) {
  635     CmdArgs.push_back(A->getOption().getID() == options::OPT_fomit_frame_pointer
  654     CmdArgs.push_back(A->getOption().getID() == options::OPT_ffunction_sections
  660         A->getOption().getID() == options::OPT_fdata_sections ? "/Gw" : "/Gw-");
  688     CmdArgs.push_back(A->getOption().getID() == options::OPT_fthreadsafe_statics
 1374   assert(A->getOption().matches(options::OPT__SLASH_O));
 1469   assert(A->getOption().matches(options::OPT_D));
 1517     if (A->getOption().matches(options::OPT__SLASH_O)) {
 1521     } else if (A->getOption().matches(options::OPT_D)) {
tools/clang/lib/Driver/ToolChains/MinGW.cpp
  437       ExceptionArg->getOption().matches(options::OPT_fseh_exceptions))
tools/clang/lib/Driver/ToolChains/Solaris.cpp
   95       HaveAnsi = Std->getOption().matches(options::OPT_ansi);
tools/clang/lib/Driver/ToolChains/XCore.cpp
   42     if (!A->getOption().matches(options::OPT_g0))
tools/clang/lib/Frontend/CompilerInvocation.cpp
  129     if (A->getOption().matches(options::OPT_O0))
  132     if (A->getOption().matches(options::OPT_Ofast))
  135     assert(A->getOption().matches(options::OPT_O));
  152     if (A->getOption().matches(options::OPT_O)) {
  170     if (A->getOption().getKind() == Option::FlagClass) {
  173       Diagnostics.push_back(A->getOption().getName().drop_front(1));
  174     } else if (A->getOption().matches(GroupWithValue)) {
  176       Diagnostics.push_back(A->getOption().getName().drop_front(1).rtrim("=-"));
  194     const Option &O = Arg->getOption();
  331     bool IsEnabled = A->getOption().getID() == OPT_analyzer_checker;
  697       const Option &InlineOpt = InlineArg->getOption();
  777     Opts.EmitLLVMUseLists = A->getOption().getID() == OPT_emit_llvm_uselists;
 1057       if (A->getOption().getID() == options::OPT_o ||
 1058           A->getOption().getID() == options::OPT_INPUT ||
 1059           A->getOption().getID() == options::OPT_x ||
 1060           A->getOption().getID() == options::OPT_fembed_bitcode ||
 1061           (A->getOption().getGroup().isValid() &&
 1062            A->getOption().getGroup().getID() == options::OPT_W_Group))
 1121     if (A->getOption().getID() == OPT_compress_debug_sections) {
 1140     if (A->getOption().matches(OPT_mlink_builtin_bitcode)) {
 1185         A->getOption().getID() ==
 1191         A->getOption().getID() == OPT_fsanitize_address_use_after_scope;
 1198         A->getOption().getID() == OPT_fsanitize_address_use_odr_indicator;
 1275     if (A->getOption().matches(OPT_fpcc_struct_return)) {
 1278       assert(A->getOption().matches(OPT_freg_struct_return));
 1465     const Option &O = A->getOption();
 1538     if (A->getOption().matches(OPT_fdiagnostics_show_note_include_stack))
 1678     switch (A->getOption().getID()) {
 1892     switch (A->getOption().getID()) {
 2102     if (A->getOption().matches(OPT_index_header_map)) {
 2111     bool IsFramework = A->getOption().matches(OPT_F);
 2130     if (A->getOption().matches(OPT_iprefix))
 2132     else if (A->getOption().matches(OPT_iwithprefix))
 2144                  !A->getOption().matches(OPT_iwithsysroot));
 2165     if (A->getOption().matches(OPT_internal_externc_isystem))
 2174         A->getValue(), A->getOption().matches(OPT_system_header_prefix));
 2570       if (!weakArg->getOption().matches(OPT_fobjc_weak)) {
 2738     const Option &Opt = A->getOption();
 3103     if (InlineArg->getOption().matches(options::OPT_fno_inline))
 3319     if (A->getOption().matches(OPT_D))
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
  167       const llvm::opt::Option &Opt = Arg->getOption();
  283     const llvm::opt::Option &Opt = Arg.getOption();
  300     if (Arg.getOption().matches(ClangCLMode ? OPT__SLASH_std : OPT_std_EQ))
tools/clang/tools/driver/cc1as_main.cpp
  225     if (A->getOption().getID() == OPT_compress_debug_sections) {
tools/lld/COFF/Driver.cpp
  359     switch (arg->getOption().getID()) {
  601     switch (arg->getOption().getID()) {
  702   if (arg->getOption().getID() == OPT_lldmap_file)
  705   assert(arg->getOption().getID() == OPT_lldmap);
 1264       dynamicBaseArg->getOption().getID() == OPT_dynamicbase_no)
 1273         dynamicBaseArg->getOption().getID() == OPT_dynamicbase) {
 1335     if (arg->getOption().getID() == OPT_repro) {
 1478     if (arg->getOption().getID() == OPT_manifest)
 1580     switch (arg->getOption().getID()) {
tools/lld/COFF/DriverUtils.cpp
  775   if (arg->getOption().getID() == OPT_color_diagnostics) {
  777   } else if (arg->getOption().getID() == OPT_no_color_diagnostics) {
tools/lld/Common/Reproduce.cpp
   58   if (arg.getOption().getRenderStyle() == opt::Option::RenderJoinedStyle)
tools/lld/ELF/Driver.cpp
  524     switch (arg->getOption().getID()) {
  581   if (arg->getOption().getID() == OPT_discard_all)
  583   if (arg->getOption().getID() == OPT_discard_locals)
  590   if (!arg || arg->getOption().getID() == OPT_no_dynamic_linker)
  597   if (!arg || arg->getOption().getID() == OPT_icf_none)
  599   if (arg->getOption().getID() == OPT_icf_safe)
  611   if (arg->getOption().getID() == OPT_strip_all)
  675   if (arg->getOption().getID() == OPT_build_id)
 1153     switch (arg->getOption().getID()) {
tools/lld/ELF/DriverUtils.cpp
   61   if (arg->getOption().getID() == OPT_color_diagnostics) {
   63   } else if (arg->getOption().getID() == OPT_no_color_diagnostics) {
  175     switch (arg->getOption().getID()) {
tools/lld/MinGW/Driver.cpp
  346     switch (a->getOption().getID()) {
tools/lld/lib/Driver/DarwinLdDriver.cpp
  344     switch (kind->getOption().getID()) {
  401     switch (minOS->getOption().getID()) {
  706     if (mod->getOption().getID() == OPT_multi_module)
  736             (pie->getOption().getID() == OPT_pie)) {
  743             (pie->getOption().getID() == OPT_pie)) {
  749         if (pie->getOption().getID() == OPT_no_pie) {
  757       ctx.setPIE(pie->getOption().getID() == OPT_pie);
  779       flagOn = arg->getOption().getID() == OPT_version_load_command;
  780       flagOff = arg->getOption().getID() == OPT_no_version_load_command;
  827       flagOn = arg->getOption().getID() == OPT_function_starts;
  828       flagOff = arg->getOption().getID() == OPT_no_function_starts;
  875       flagOn = arg->getOption().getID() == OPT_data_in_code_info;
  876       flagOff = arg->getOption().getID() == OPT_no_data_in_code_info;
  980     if (ns->getOption().getID() == OPT_flat_namespace)
 1057     switch (arg->getOption().getID()) {
 1071       upward = (arg->getOption().getID() == OPT_upward_l);
 1085       upward = (arg->getOption().getID() == OPT_upward_framework);
tools/lld/wasm/Driver.cpp
  134   if (arg->getOption().getID() == OPT_color_diagnostics) {
  136   } else if (arg->getOption().getID() == OPT_no_color_diagnostics) {
  272     switch (arg->getOption().getID()) {
  298   if (arg->getOption().getID() == OPT_no_entry)
  546     switch (arg->getOption().getID()) {
tools/lldb/tools/driver/Driver.cpp
  318     if (arg->getOption().matches(OPT_source_on_crash)) {
  325     if (arg->getOption().matches(OPT_one_line_on_crash)) {
  332     if (arg->getOption().matches(OPT_source)) {
  339     if (arg->getOption().matches(OPT_source_before_file)) {
  346     if (arg->getOption().matches(OPT_one_line)) {
  353     if (arg->getOption().matches(OPT_one_line_before_file)) {
tools/llvm-lipo/llvm-lipo.cpp
  369   switch (ActionArgs[0]->getOption().getID()) {
tools/llvm-mt/llvm-mt.cpp
  110     if (Arg->getOption().matches(OPT_unsupported)) {
  111       outs() << "llvm-mt: ignoring unsupported '" << Arg->getOption().getName()
tools/llvm-objcopy/CopyConfig.cpp
  474     if (Arg->getOption().getID() == OBJCOPY_compress_debug_sections_eq) {
  713     if (Arg->getOption().matches(OBJCOPY_set_start)) {
  720     } else if (Arg->getOption().matches(OBJCOPY_change_start)) {
  820     Config.StripAll = Arg->getOption().getID() == STRIP_strip_all;