Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Driver/Options.td
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,072 Lines • ▼ Show 20 Lines | |||||
def dylinker__install__name : JoinedOrSeparate<["-"], "dylinker_install_name">; | def dylinker__install__name : JoinedOrSeparate<["-"], "dylinker_install_name">; | ||||
def dylinker : Flag<["-"], "dylinker">; | def dylinker : Flag<["-"], "dylinker">; | ||||
def dynamiclib : Flag<["-"], "dynamiclib">; | def dynamiclib : Flag<["-"], "dynamiclib">; | ||||
def dynamic : Flag<["-"], "dynamic">, Flags<[NoArgumentUnused]>; | def dynamic : Flag<["-"], "dynamic">, Flags<[NoArgumentUnused]>; | ||||
def d_Flag : Flag<["-"], "d">, Group<d_Group>; | def d_Flag : Flag<["-"], "d">, Group<d_Group>; | ||||
def d_Joined : Joined<["-"], "d">, Group<d_Group>; | def d_Joined : Joined<["-"], "d">, Group<d_Group>; | ||||
def emit_ast : Flag<["-"], "emit-ast">, | def emit_ast : Flag<["-"], "emit-ast">, | ||||
HelpText<"Emit Clang AST files for source inputs">; | HelpText<"Emit Clang AST files for source inputs">; | ||||
def emit_llvm : Flag<["-"], "emit-llvm">, Flags<[CC1Option, FC1Option]>, Group<Action_Group>, | def emit_llvm : Flag<["-"], "emit-llvm">, Flags<[CC1Option, FC1Option, FlangOption]>, Group<Action_Group>, | ||||
HelpText<"Use the LLVM representation for assembler and object files">; | HelpText<"Use the LLVM representation for assembler and object files">; | ||||
def emit_interface_stubs : Flag<["-"], "emit-interface-stubs">, Flags<[CC1Option]>, Group<Action_Group>, | def emit_interface_stubs : Flag<["-"], "emit-interface-stubs">, Flags<[CC1Option]>, Group<Action_Group>, | ||||
HelpText<"Generate Interface Stub Files.">; | HelpText<"Generate Interface Stub Files.">; | ||||
def emit_merged_ifs : Flag<["-"], "emit-merged-ifs">, | def emit_merged_ifs : Flag<["-"], "emit-merged-ifs">, | ||||
Flags<[CC1Option]>, Group<Action_Group>, | Flags<[CC1Option]>, Group<Action_Group>, | ||||
HelpText<"Generate Interface Stub Files, emit merged text not binary.">; | HelpText<"Generate Interface Stub Files, emit merged text not binary.">; | ||||
def end_no_unused_arguments : Flag<["--"], "end-no-unused-arguments">, Flags<[CoreOption]>, | def end_no_unused_arguments : Flag<["--"], "end-no-unused-arguments">, Flags<[CoreOption]>, | ||||
HelpText<"Start emitting warnings for unused driver arguments">; | HelpText<"Start emitting warnings for unused driver arguments">; | ||||
▲ Show 20 Lines • Show All 2,799 Lines • ▼ Show 20 Lines | |||||
def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">, | def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">, | ||||
HelpText<"Print the library path for the currently used compiler runtime " | HelpText<"Print the library path for the currently used compiler runtime " | ||||
"library (\"libgcc.a\" or \"libclang_rt.builtins.*.a\")">; | "library (\"libgcc.a\" or \"libclang_rt.builtins.*.a\")">; | ||||
def print_multi_directory : Flag<["-", "--"], "print-multi-directory">; | def print_multi_directory : Flag<["-", "--"], "print-multi-directory">; | ||||
def print_multi_lib : Flag<["-", "--"], "print-multi-lib">; | def print_multi_lib : Flag<["-", "--"], "print-multi-lib">; | ||||
def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">, | def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">, | ||||
Flags<[Unsupported]>; | Flags<[Unsupported]>; | ||||
def print_target_triple : Flag<["-", "--"], "print-target-triple">, | def print_target_triple : Flag<["-", "--"], "print-target-triple">, | ||||
HelpText<"Print the normalized target triple">; | HelpText<"Print the normalized target triple">, Flags<[FlangOption]>; | ||||
def print_effective_triple : Flag<["-", "--"], "print-effective-triple">, | def print_effective_triple : Flag<["-", "--"], "print-effective-triple">, | ||||
HelpText<"Print the effective target triple">; | HelpText<"Print the effective target triple">, Flags<[FlangOption]>; | ||||
def print_multiarch : Flag<["-", "--"], "print-multiarch">, | def print_multiarch : Flag<["-", "--"], "print-multiarch">, | ||||
HelpText<"Print the multiarch target triple">; | HelpText<"Print the multiarch target triple">; | ||||
def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">, | def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">, | ||||
HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">; | HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">; | ||||
def print_resource_dir : Flag<["-", "--"], "print-resource-dir">, | def print_resource_dir : Flag<["-", "--"], "print-resource-dir">, | ||||
HelpText<"Print the resource directory pathname">; | HelpText<"Print the resource directory pathname">; | ||||
def print_search_dirs : Flag<["-", "--"], "print-search-dirs">, | def print_search_dirs : Flag<["-", "--"], "print-search-dirs">, | ||||
HelpText<"Print the paths used for finding libraries and programs">; | HelpText<"Print the paths used for finding libraries and programs">; | ||||
▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | HelpText<"Treat all #include paths starting with <prefix> as including a " | ||||
"system header.">; | "system header.">; | ||||
def : Separate<["--"], "system-header-prefix">, Alias<system_header_prefix>; | def : Separate<["--"], "system-header-prefix">, Alias<system_header_prefix>; | ||||
def no_system_header_prefix : Joined<["--"], "no-system-header-prefix=">, | def no_system_header_prefix : Joined<["--"], "no-system-header-prefix=">, | ||||
Group<clang_i_Group>, Flags<[CC1Option]>, MetaVarName<"<prefix>">, | Group<clang_i_Group>, Flags<[CC1Option]>, MetaVarName<"<prefix>">, | ||||
HelpText<"Treat all #include paths starting with <prefix> as not including a " | HelpText<"Treat all #include paths starting with <prefix> as not including a " | ||||
"system header.">; | "system header.">; | ||||
def : Separate<["--"], "no-system-header-prefix">, Alias<no_system_header_prefix>; | def : Separate<["--"], "no-system-header-prefix">, Alias<no_system_header_prefix>; | ||||
def s : Flag<["-"], "s">, Group<Link_Group>; | def s : Flag<["-"], "s">, Group<Link_Group>; | ||||
def target : Joined<["--"], "target=">, Flags<[NoXarchOption, CoreOption]>, | def target : Joined<["--"], "target=">, Flags<[NoXarchOption, CoreOption, FlangOption]>, | ||||
HelpText<"Generate code for the given target">; | HelpText<"Generate code for the given target">; | ||||
def darwin_target_variant : Separate<["-"], "darwin-target-variant">, | def darwin_target_variant : Separate<["-"], "darwin-target-variant">, | ||||
Flags<[NoXarchOption, CoreOption]>, | Flags<[NoXarchOption, CoreOption]>, | ||||
HelpText<"Generate code for an additional runtime variant of the deployment target">; | HelpText<"Generate code for an additional runtime variant of the deployment target">; | ||||
def print_supported_cpus : Flag<["-", "--"], "print-supported-cpus">, | def print_supported_cpus : Flag<["-", "--"], "print-supported-cpus">, | ||||
Group<CompileOnly_Group>, Flags<[CC1Option, CoreOption]>, | Group<CompileOnly_Group>, Flags<[CC1Option, CoreOption]>, | ||||
HelpText<"Print supported cpu models for the given target (if target is not specified," | HelpText<"Print supported cpu models for the given target (if target is not specified," | ||||
" it will print the supported cpus for the default target)">, | " it will print the supported cpus for the default target)">, | ||||
▲ Show 20 Lines • Show All 772 Lines • ▼ Show 20 Lines | |||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// CC1 Options | // CC1 Options | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
let Flags = [CC1Option, NoDriverOption] in { | let Flags = [CC1Option, NoDriverOption] in { | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// Target Options | // Target Options (cc1 + cc1as) | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
let Flags = [CC1Option, CC1AsOption, NoDriverOption] in { | let Flags = [CC1Option, CC1AsOption, NoDriverOption] in { | ||||
def target_cpu : Separate<["-"], "target-cpu">, | def target_cpu : Separate<["-"], "target-cpu">, | ||||
HelpText<"Target a specific cpu type">, | HelpText<"Target a specific cpu type">, | ||||
MarshallingInfoString<TargetOpts<"CPU">>; | MarshallingInfoString<TargetOpts<"CPU">>; | ||||
def tune_cpu : Separate<["-"], "tune-cpu">, | def tune_cpu : Separate<["-"], "tune-cpu">, | ||||
HelpText<"Tune for a specific cpu type">, | HelpText<"Tune for a specific cpu type">, | ||||
MarshallingInfoString<TargetOpts<"TuneCPU">>; | MarshallingInfoString<TargetOpts<"TuneCPU">>; | ||||
def target_feature : Separate<["-"], "target-feature">, | def target_feature : Separate<["-"], "target-feature">, | ||||
HelpText<"Target specific attributes">, | HelpText<"Target specific attributes">, | ||||
MarshallingInfoStringVector<TargetOpts<"FeaturesAsWritten">>; | MarshallingInfoStringVector<TargetOpts<"FeaturesAsWritten">>; | ||||
def triple : Separate<["-"], "triple">, | |||||
HelpText<"Specify target triple (e.g. i686-apple-darwin9)">, | |||||
MarshallingInfoString<TargetOpts<"Triple">, "llvm::Triple::normalize(llvm::sys::getDefaultTargetTriple())">, | |||||
AlwaysEmit, Normalizer<"normalizeTriple">; | |||||
def target_abi : Separate<["-"], "target-abi">, | def target_abi : Separate<["-"], "target-abi">, | ||||
HelpText<"Target a particular ABI type">, | HelpText<"Target a particular ABI type">, | ||||
MarshallingInfoString<TargetOpts<"ABI">>; | MarshallingInfoString<TargetOpts<"ABI">>; | ||||
def target_sdk_version_EQ : Joined<["-"], "target-sdk-version=">, | def target_sdk_version_EQ : Joined<["-"], "target-sdk-version=">, | ||||
HelpText<"The version of target SDK used for compilation">; | HelpText<"The version of target SDK used for compilation">; | ||||
def darwin_target_variant_triple : Separate<["-"], "darwin-target-variant-triple">, | def darwin_target_variant_triple : Separate<["-"], "darwin-target-variant-triple">, | ||||
HelpText<"Specify the darwin target variant triple">, | HelpText<"Specify the darwin target variant triple">, | ||||
MarshallingInfoString<TargetOpts<"DarwinTargetVariantTriple">>, | MarshallingInfoString<TargetOpts<"DarwinTargetVariantTriple">>, | ||||
Normalizer<"normalizeTriple">; | Normalizer<"normalizeTriple">; | ||||
def darwin_target_variant_sdk_version_EQ : Joined<["-"], | def darwin_target_variant_sdk_version_EQ : Joined<["-"], | ||||
"darwin-target-variant-sdk-version=">, | "darwin-target-variant-sdk-version=">, | ||||
HelpText<"The version of darwin target variant SDK used for compilation">; | HelpText<"The version of darwin target variant SDK used for compilation">; | ||||
} | } // let Flags = [CC1Option, CC1AsOption, NoDriverOption] | ||||
//===----------------------------------------------------------------------===// | |||||
// Target Options (cc1 + cc1as + fc1) | |||||
//===----------------------------------------------------------------------===// | |||||
let Flags = [CC1Option, CC1AsOption, FC1Option, NoDriverOption] in { | |||||
def triple : Separate<["-"], "triple">, | |||||
HelpText<"Specify target triple (e.g. i686-apple-darwin9)">, | |||||
MarshallingInfoString<TargetOpts<"Triple">, "llvm::Triple::normalize(llvm::sys::getDefaultTargetTriple())">, | |||||
AlwaysEmit, Normalizer<"normalizeTriple">; | |||||
} // let Flags = [CC1Option, CC1ASOption, FC1Option, NoDriverOption] | |||||
//===----------------------------------------------------------------------===// | |||||
// Target Options (other) | |||||
//===----------------------------------------------------------------------===// | |||||
schweitz: Is this comment something left over from edits? | |||||
This is intentional (there's already a precedent in this file). The nesting of let statements in this file can be very confusing. Also, some let blocks are really large. I think that adding such comments helps to separate them visually. awarzynski: This is intentional (there's already a [[ https://github.com/llvm/llvm… | |||||
def target_linker_version : Separate<["-"], "target-linker-version">, | def target_linker_version : Separate<["-"], "target-linker-version">, | ||||
HelpText<"Target linker version">, | HelpText<"Target linker version">, | ||||
MarshallingInfoString<TargetOpts<"LinkerVersion">>; | MarshallingInfoString<TargetOpts<"LinkerVersion">>; | ||||
def triple_EQ : Joined<["-"], "triple=">, Alias<triple>; | def triple_EQ : Joined<["-"], "triple=">, Alias<triple>; | ||||
def mfpmath : Separate<["-"], "mfpmath">, | def mfpmath : Separate<["-"], "mfpmath">, | ||||
HelpText<"Which unit to use for fp math">, | HelpText<"Which unit to use for fp math">, | ||||
MarshallingInfoString<TargetOpts<"FPMath">>; | MarshallingInfoString<TargetOpts<"FPMath">>; | ||||
▲ Show 20 Lines • Show All 1,748 Lines • Show Last 20 Lines |
Is this comment something left over from edits?