Home
last modified time | relevance | path

Searched refs:getOption (Results 1 – 25 of 61) sorted by relevance

123

/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/
H A DSanitizerArgs.cpp180 if (Arg->getOption().matches(SCLOptionID)) { in parseSpecialCaseListArg()
189 } else if (Arg->getOption().matches(NoSCLOptionID)) { in parseSpecialCaseListArg()
219 if (Arg->getOption().matches(options::OPT_fsanitize_trap_EQ)) { in parseSanitizeTrapArgs()
230 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_trap_EQ)) { in parseSanitizeTrapArgs()
310 !OptLevel || OptLevel->getOption().matches(options::OPT_O0); in SanitizerArgs()
315 if (Arg->getOption().matches(options::OPT_fsanitize_EQ)) { in SanitizerArgs()
387 assert(NoRTTIArg->getOption().matches(options::OPT_fno_rtti) && in SanitizerArgs()
429 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) { in SanitizerArgs()
548 if (Arg->getOption().matches(options::OPT_fsanitize_recover_EQ)) { in SanitizerArgs()
557 << Arg->getOption().getName() << toString(SetToDiagnose); in SanitizerArgs()
[all …]
H A DDriver.cpp188 getOpts().getOption(options::OPT_driver_mode).getPrefixedName(); in setDriverModeFromOption()
237 if (A->getOption().hasFlag(options::Unsupported)) { in ParseArgStrings()
256 if (A->getOption().matches(options::OPT_mcpu_EQ) && A->containsValue("")) { in ParseArgStrings()
337 Arg *A = new Arg(Opts.getOption(options::OPT_INPUT), Value, in MakeInputArg()
359 if ((A->getOption().matches(options::OPT_Wl_COMMA) || in TranslateInputArgs()
360 A->getOption().matches(options::OPT_Xlinker)) && in TranslateInputArgs()
363 DAL->AddFlagArg(A, Opts.getOption(options::OPT_Z_Xlinker__no_demangle)); in TranslateInputArgs()
368 DAL->AddSeparateArg(A, Opts.getOption(options::OPT_Xlinker), Val); in TranslateInputArgs()
376 if (A->getOption().matches(options::OPT_Wp_COMMA) && in TranslateInputArgs()
381 DAL->AddFlagArg(A, Opts.getOption(options::OPT_MD)); in TranslateInputArgs()
[all …]
H A DToolChain.cpp64 if (CachedRTTIArg->getOption().matches(options::OPT_frtti)) in CalculateRTTIMode()
973 if (!A || A->getOption().getID() == options::OPT_fno_fast_math || in isFastMathRuntimeAvailable()
974 A->getOption().getID() == options::OPT_fno_unsafe_math_optimizations) in isFastMathRuntimeAvailable()
1099 if (A->getOption().matches(options::OPT_m_Group)) { in TranslateOpenMPTargetArgs()
1110 A->getOption().matches(options::OPT_Xopenmp_target); in TranslateOpenMPTargetArgs()
1112 if (A->getOption().matches(options::OPT_Xopenmp_target_EQ)) { in TranslateOpenMPTargetArgs()
1162 if (A->getOption().matches(options::OPT_Xarch_device) || in TranslateXarchArgs()
1163 A->getOption().matches(options::OPT_Xarch_host)) in TranslateXarchArgs()
1181 } else if (XarchArg->getOption().hasFlag(options::NoXarchOption)) { in TranslateXarchArgs()
1209 if (A->getOption().matches(options::OPT_Xarch_device)) { in TranslateXarchArgs()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ToolChains/Arch/
H A DMips.cpp158 if (A->getOption().matches(options::OPT_msoft_float)) in getMipsFloatABI()
160 else if (A->getOption().matches(options::OPT_mhard_float)) in getMipsFloatABI()
236 Option O = LastPICArg->getOption(); in getMIPSTargetFeatures()
250 !ABICallsArg || ABICallsArg->getOption().matches(options::OPT_mabicalls); in getMIPSTargetFeatures()
268 if (A->getOption().matches(options::OPT_mno_long_calls)) in getMIPSTargetFeatures()
277 if (A->getOption().matches(options::OPT_mxgot)) in getMIPSTargetFeatures()
309 << A->getOption().getName() << Val; in getMIPSTargetFeatures()
330 << A->getOption().getName() << Val; in getMIPSTargetFeatures()
352 if (A->getOption().matches(options::OPT_mfp32)) in getMIPSTargetFeatures()
354 else if (A->getOption().matches(options::OPT_mfpxx)) { in getMIPSTargetFeatures()
[all …]
H A DSystemZ.cpp31 if (A->getOption().matches(clang::driver::options::OPT_msoft_float)) in getSystemZFloatABI()
58 if (A->getOption().matches(options::OPT_mhtm)) in getSystemZTargetFeatures()
65 if (A->getOption().matches(options::OPT_mvx)) in getSystemZTargetFeatures()
H A DSparc.cpp87 if (A->getOption().matches(clang::driver::options::OPT_msoft_float)) in getSparcFloatABI()
89 else if (A->getOption().matches(options::OPT_mhard_float)) in getSparcFloatABI()
H A DM68k.cpp114 if (A->getOption().matches(options::OPT_msoft_float)) in getM68kFloatABI()
116 else if (A->getOption().matches(options::OPT_mhard_float)) in getM68kFloatABI()
H A DPPC.cpp140 if (A->getOption().matches(options::OPT_msoft_float)) in getPPCFloatABI()
142 else if (A->getOption().matches(options::OPT_mhard_float)) in getPPCFloatABI()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ToolChains/
H A DClang.cpp162 StringRef Option = A.getOption().getName(); in getRefinementStep()
256 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Val; in ParseMRecip()
263 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Val; in ParseMRecip()
298 D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Value; in ParseMPreferVectorWidth()
457 ExceptionArg->getOption().matches(options::OPT_fcxx_exceptions) || in addExceptionArgs()
458 ExceptionArg->getOption().matches(options::OPT_fexceptions); in addExceptionArgs()
504 assert(A.getOption().matches(options::OPT_gN_Group) && in DebugLevelToInfoKind()
506 if (A.getOption().matches(options::OPT_g0) || in DebugLevelToInfoKind()
507 A.getOption().matches(options::OPT_ggdb0)) in DebugLevelToInfoKind()
509 if (A.getOption().matches(options::OPT_gline_tables_only) || in DebugLevelToInfoKind()
[all …]
H A DCommonArgs.cpp131 StringRef Name = A->getOption().getName(); in handleTargetFeaturesGroup()
261 if (A.getOption().matches(options::OPT_Z_reserved_lib_stdcxx)) in AddLinkerInputs()
263 else if (A.getOption().matches(options::OPT_Z_reserved_lib_cckext)) in AddLinkerInputs()
265 else if (A.getOption().matches(options::OPT_z)) { in AddLinkerInputs()
289 << A->getOption().getName() << V; in addLinkerCompressDebugSectionsOption()
298 if (A->getOption().matches(OnOpt)) in AddTargetFeature()
517 if (A->getOption().matches(options::OPT_O4) || in addLTOOptions()
518 A->getOption().matches(options::OPT_Ofast)) in addLTOOptions()
520 else if (A->getOption().matches(options::OPT_O)) { in addLTOOptions()
526 } else if (A->getOption().matches(options::OPT_O0)) in addLTOOptions()
[all …]
H A DMSVC.cpp112 if (A->getOption().getID() == options::OPT__SLASH_winsysroot) { in findVCToolChainViaCommandLine()
559 if (A.getOption().matches(options::OPT_l)) { in ConstructJob()
1012 if (A->getOption().getID() == options::OPT__SLASH_winsysroot) { in getWindowsSDKDirViaCommandLine()
1383 assert(A->getOption().matches(options::OPT__SLASH_O)); in TranslateOptArg()
1402 DAL.AddFlagArg(A, Opts.getOption(options::OPT_O0)); in TranslateOptArg()
1405 DAL.AddJoinedArg(A, Opts.getOption(options::OPT_O), "s"); in TranslateOptArg()
1407 DAL.AddFlagArg(A, Opts.getOption(options::OPT_fbuiltin)); in TranslateOptArg()
1408 DAL.AddJoinedArg(A, Opts.getOption(options::OPT_O), "2"); in TranslateOptArg()
1412 DAL.AddFlagArg(A, Opts.getOption(options::OPT_fomit_frame_pointer)); in TranslateOptArg()
1414 DAL.AddFlagArg(A, Opts.getOption(options::OPT_ffunction_sections)); in TranslateOptArg()
[all …]
H A DDarwin.cpp191 if (A->getOption().matches(options::OPT_O0)) in shouldLinkerNotDedup()
193 if (A->getOption().matches(options::OPT_O)) in shouldLinkerNotDedup()
356 if (A->getOption().matches(options::OPT_fpie) || in AddLinkArgs()
357 A->getOption().matches(options::OPT_fPIE)) in AddLinkArgs()
379 if (A->getOption().matches(options::OPT_fglobal_isel)) { in AddLinkArgs()
572 if (A->getOption().matches(options::OPT_moutline)) { in ConstructJob()
1186 if (A->getOption().matches(options::OPT_exported__symbols__list)) in hasExportSymbolDirective()
1188 if (!A->getOption().matches(options::OPT_Wl_COMMA) && in hasExportSymbolDirective()
1189 !A->getOption().matches(options::OPT_Xlinker)) in hasExportSymbolDirective()
1441 Argument = Args.MakeJoinedArg(nullptr, Opts.getOption(Opt), OSVersion); in addOSVersionMinArgument()
[all …]
H A DHexagon.cpp43 << A->getOption().getName() << Val; in handleHVXWarnings()
61 if (A->getOption().matches(options::OPT_mno_hexagon_hvx)) in handleHVXTargetFeatures()
63 if (A->getOption().matches(options::OPT_mhexagon_hvx_EQ)) { in handleHVXTargetFeatures()
67 } else if (A->getOption().matches(options::OPT_mhexagon_hvx)) { in handleHVXTargetFeatures()
79 else if (A->getOption().matches(options::OPT_mhexagon_hvx_length_EQ)) in handleHVXTargetFeatures()
102 if (A->getOption().matches(options::OPT_mlong_calls)) in getHexagonTargetFeatures()
550 if (A->getOption().matches(options::OPT_O0)) in getOptimizationLevel()
552 if (A->getOption().matches(options::OPT_Ofast) || in getOptimizationLevel()
553 A->getOption().matches(options::OPT_O4)) in getOptimizationLevel()
660 return A->getOption().matches(options::OPT_fvectorize); in isAutoHVXEnabled()
H A DCuda.cpp375 bool IsDebugEnabled = !A || A->getOption().matches(options::OPT_O0) || in mustEmitDebugInfo()
380 const Option &Opt = A->getOption(); in mustEmitDebugInfo()
439 if (A->getOption().matches(options::OPT_O4) || in ConstructJob()
440 A->getOption().matches(options::OPT_Ofast)) in ConstructJob()
442 else if (A->getOption().matches(options::OPT_O0)) in ConstructJob()
444 else if (A->getOption().matches(options::OPT_O)) { in ConstructJob()
505 if (!(A->getOption().matches(options::OPT_cuda_include_ptx_EQ) || in shouldIncludePTX()
506 A->getOption().matches(options::OPT_no_cuda_include_ptx_EQ))) in shouldIncludePTX()
511 includePTX = A->getOption().matches(options::OPT_cuda_include_ptx_EQ); in shouldIncludePTX()
775 const Option &O = A->getOption(); in supportsDebugInfoOption()
[all …]
H A DAMDGPUOpenMP.cpp50 if (A->getOption().matches(options::OPT_O4) || in addLLCOptArg()
51 A->getOption().matches(options::OPT_Ofast)) in addLLCOptArg()
53 else if (A->getOption().matches(options::OPT_O0)) in addLLCOptArg()
55 else if (A->getOption().matches(options::OPT_O)) { in addLLCOptArg()
248 DAL->AddJoinedArg(nullptr, Opts.getOption(options::OPT_march_EQ), in TranslateArgs()
H A DWebAssembly.cpp99 << CM << A->getOption().getName(); in ConstructJob()
136 if (A->getOption().matches(options::OPT_O4) || in ConstructJob()
137 A->getOption().matches(options::OPT_Ofast)) in ConstructJob()
139 else if (A->getOption().matches(options::OPT_O0)) in ConstructJob()
141 else if (A->getOption().matches(options::OPT_O)) in ConstructJob()
/netbsd-src/external/bsd/elftosb/dist/elftosb2/
H A DBootImageGenerator.cpp37 stringValue = dynamic_cast<const StringValue *>(m_options->getOption(kProductVersionOption)); in processVersionOptions()
52 stringValue = dynamic_cast<const StringValue *>(m_options->getOption(kComponentVersionOption)); in processVersionOptions()
69 …const IntegerValue * intValue = dynamic_cast<const IntegerValue *>(m_options->getOption(kDriveTagO… in processDriveTagOption()
H A DEncoreBootImageGenerator.cpp63 …const IntegerValue * intValue = dynamic_cast<const IntegerValue *>(m_options->getOption(kFlagsOpti… in processOptions()
91 const Value * value = context->getOption(kSectionFlagsOption); in processSectionOptions()
107 const Value * value = context->getOption(kAlignmentOption); in processSectionOptions()
128 const Value * value = context->getOption(kCleartextOption); in processSectionOptions()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Option/
H A DArgList.cpp37 for (Option O = A->getOption().getUnaliasedOption(); O.isValid(); in append()
75 return A->getOption().matches(Pos); in hasFlag()
82 return A->getOption().matches(Pos) || A->getOption().matches(PosAlias); in hasFlag()
104 if (Arg->getOption().matches(Id)) { in AddAllArgsExcept()
111 if (Arg->getOption().matches(Id)) { in AddAllArgsExcept()
H A DOptTable.cpp132 getOption(i).dump(); in OptTable()
133 getOption(i + 1).dump(); in OptTable()
162 const Option OptTable::getOption(OptSpecifier Opt) const { in getOption() function in OptTable
347 return new Arg(getOption(TheInputOptionID), Str, Index++, CStr); in parseOneArgGrouped()
388 return new Arg(getOption(TheUnknownOptionID), Str, Index++, CStr); in parseOneArgGrouped()
400 return new Arg(getOption(TheInputOptionID), Str, Index++, Str); in ParseOneArg()
446 return new Arg(getOption(TheInputOptionID), Str, Index++, Str); in ParseOneArg()
448 return new Arg(getOption(TheUnknownOptionID), Str, Index++, Str); in ParseOneArg()
525 const Option O = Opts.getOption(Id); in getOptionHelpName()
653 const Option Alias = getOption(Id).getAlias(); in PrintHelp()
H A DArg.cpp88 if (!getOption().hasNoOptAsInput()) { in renderAsInput()
97 switch (getOption().getRenderStyle()) { in render()
/netbsd-src/external/bsd/elftosb/dist/common/
H A DOptionDictionary.cpp50 const Value * OptionDictionary::getOption(const std::string & name) const in getOption() function in OptionDictionary
57 return m_parent->getOption(name); in getOption()
168 return getOption(name); in operator []()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Option/
H A DOption.h106 return Owner->getOption(Info->GroupID); in getGroup()
112 return Owner->getOption(Info->AliasID); in getAlias()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DCompilerInvocation.cpp211 return A->getOption().matches(Opt) ? Value : OtherValue; in makeBooleanOptionNormalizer()
546 if (A->getOption().matches(options::OPT_O0)) in getOptimizationLevel()
549 if (A->getOption().matches(options::OPT_Ofast)) in getOptimizationLevel()
552 assert(A->getOption().matches(options::OPT_O)); in getOptimizationLevel()
569 if (A->getOption().matches(options::OPT_O)) { in getOptimizationLevelSize()
586 Option Opt = getDriverOptTable().getOption(OptSpecifier); in GenerateArg()
595 Option Opt = getDriverOptTable().getOption(OptSpecifier); in GenerateArg()
746 if (A->getOption().getKind() == Option::FlagClass) { in addDiagnosticArgs()
750 std::string(A->getOption().getName().drop_front(1))); in addDiagnosticArgs()
751 } else if (A->getOption().matches(GroupWithValue)) { in addDiagnosticArgs()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-mt/
H A Dllvm-mt.cpp105 if (Arg->getOption().matches(OPT_unsupported)) { in main()
106 outs() << "llvm-mt: ignoring unsupported '" << Arg->getOption().getName() in main()

123