1 include "llvm/Option/OptParser.td"
3 def LinkerOnlyOption : OptionFlag;
5 def help : Flag<["-", "--"], "help">,
6 HelpText<"Display available options (--help-hidden for more)">;
8 def help_hidden : Flag<["-", "--"], "help-hidden">,
9 HelpText<"Display all available options">;
11 def verbose : Flag<["-"], "v">, HelpText<"Print verbose information">;
12 def version : Flag<["--"], "version">,
13 HelpText<"Display the version number and exit">;
15 def o : JoinedOrSeparate<["-"], "o">, MetaVarName<"<path>">,
16 HelpText<"Path to file to write output">;
17 def output : Separate<["--"], "output-file">, Alias<o>, Flags<[HelpHidden]>,
18 HelpText<"Alias for -o">;
20 def library_path_EQ : Joined<["--", "-"], "library-path=">,
21 Flags<[HelpHidden]>, HelpText<"Add <dir> to the library search path">;
23 def device_libs_EQ : CommaJoined<["--", "-"], "device-libs=">,
24 Flags<[LinkerOnlyOption]>,
25 HelpText<"A comma separated list of device libraries that are linked during the device link.">;
27 def triple : Joined<["--"], "triple">,
28 HelpText<"The device target triple">;
29 def arch : Separate<["--", "-"], "arch">,
30 HelpText<"Specify the name of the target architecture.">;
32 def save_temps : Flag<["--", "-"], "save-temps">,
33 Flags<[LinkerOnlyOption]>, HelpText<"Save intermediate results">;
35 def dry_run : Flag<["--", "-"], "dry-run">, Flags<[LinkerOnlyOption]>,
36 HelpText<"Print generated commands without running.">;
38 def spirv_dump_device_code_EQ : Joined<["--", "-"], "spirv-dump-device-code=">,
39 Flags<[LinkerOnlyOption]>,
40 HelpText<"Path to the folder where the tool dumps SPIR-V device code. Other formats aren't dumped.">;
42 def is_windows_msvc_env : Flag<["--", "-"], "is-windows-msvc-env">,
43 Flags<[LinkerOnlyOption, HelpHidden]>;
45 def llvm_spirv_path_EQ : Joined<["--"], "llvm-spirv-path=">,
46 Flags<[LinkerOnlyOption]>, MetaVarName<"<dir>">,
47 HelpText<"Set the system llvm-spirv path">;
49 // Options to pass to llvm-spirv tool
50 def llvm_spirv_options_EQ : Joined<["--", "-"], "llvm-spirv-options=">,
51 Flags<[LinkerOnlyOption]>,
52 HelpText<"Options that will control llvm-spirv step">;