| 1 |
include "llvm/Option/OptParser.td" |
| 2 |
|
| 3 |
def LinkerOnlyOption : OptionFlag; |
| 4 |
|
| 5 |
def help : Flag<["-", "--"], "help">, |
| 6 |
HelpText<"Display available options (--help-hidden for more)">; |
| 7 |
|
| 8 |
def help_hidden : Flag<["-", "--"], "help-hidden">, |
| 9 |
HelpText<"Display all available options">; |
| 10 |
|
| 11 |
def verbose : Flag<["-"], "v">, HelpText<"Print verbose information">; |
| 12 |
def version : Flag<["--"], "version">, |
| 13 |
HelpText<"Display the version number and exit">; |
| 14 |
|
| 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">; |
| 19 |
|
| 20 |
def library_path_EQ : Joined<["--", "-"], "library-path=">, |
| 21 |
Flags<[HelpHidden]>, HelpText<"Add <dir> to the library search path">; |
| 22 |
|
| 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.">; |
| 26 |
|
| 27 |
def arch_EQ : Joined<["--", "-"], "arch=">, |
| 28 |
Flags<[LinkerOnlyOption]>, |
| 29 |
MetaVarName<"<arch>">, |
| 30 |
HelpText<"The device architecture">; |
| 31 |
def triple_EQ : Joined<["--", "-"], "triple=">, |
| 32 |
Flags<[LinkerOnlyOption]>, |
| 33 |
MetaVarName<"<triple>">, |
| 34 |
HelpText<"The device target triple">; |
| 35 |
|
| 36 |
def save_temps : Flag<["--", "-"], "save-temps">, |
| 37 |
Flags<[LinkerOnlyOption]>, HelpText<"Save intermediate results">; |
| 38 |
|
| 39 |
def dry_run : Flag<["--", "-"], "dry-run">, Flags<[LinkerOnlyOption]>, |
| 40 |
HelpText<"Print generated commands without running.">; |
| 41 |
|
| 42 |
def spirv_dump_device_code_EQ : Joined<["--", "-"], "spirv-dump-device-code=">, |
| 43 |
Flags<[LinkerOnlyOption]>, |
| 44 |
HelpText<"Path to the folder where the tool dumps SPIR-V device code. Other formats aren't dumped.">; |
| 45 |
|
| 46 |
def print_linked_module : Flag<["--"], "print-linked-module">, |
| 47 |
Flags<[LinkerOnlyOption]>, |
| 48 |
HelpText<"Print the linked module's IR for testing">; |
| 49 |
|
| 50 |
def ocloc_options_EQ : Joined<["--", "-"], "ocloc-options=">, |
| 51 |
Flags<[LinkerOnlyOption]>, |
| 52 |
HelpText<"Options passed to ocloc for Intel GPU AOT compilation">; |
| 53 |
|
| 54 |
def opencl_aot_options_EQ : Joined<["--", "-"], "opencl-aot-options=">, |
| 55 |
Flags<[LinkerOnlyOption]>, |
| 56 |
HelpText<"Options passed to opencl-aot for Intel CPU AOT compilation">; |