CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
64 lines
2.2 KiB
TableGen
64 lines
2.2 KiB
TableGen
include "llvm/Option/OptParser.td"
|
|
|
|
multiclass Long<string name, string help> {
|
|
def NAME: Separate<["--"], name>;
|
|
def NAME # _eq: Joined<["--"], name # "=">, Alias<!cast<Separate>(NAME)>,
|
|
HelpText<help>;
|
|
}
|
|
|
|
multiclass LongAlias<string name, Option orig> {
|
|
def NAME: Separate<["--"], name>, Alias<orig>;
|
|
def NAME # _eq: Joined<["--"], name # "=">, Alias<orig>;
|
|
}
|
|
|
|
multiclass LongShort<string short, string long, string help> {
|
|
def NAME: Separate<["--"], long>;
|
|
def NAME # _eq: Joined<["--"], long # "=">, Alias<!cast<Separate>(NAME)>,
|
|
HelpText<help>;
|
|
def NAME # _short: JoinedOrSeparate<["-"], short>, Alias<!cast<Separate>(NAME)>;
|
|
}
|
|
|
|
multiclass F<string short, string long, string help> {
|
|
def NAME: Flag<["-"], short>;
|
|
def NAME # _long: Flag<["--"], long>, Alias<!cast<Flag>(NAME)>,
|
|
HelpText<help>;
|
|
}
|
|
|
|
defm input : LongShort<"i", "input", "Input file">;
|
|
|
|
defm output : LongShort<"o", "output", "Output file">;
|
|
|
|
defm input_format : LongShort<"J", "input-format", "Input format">;
|
|
|
|
defm output_format : LongShort<"O", "output-format", "Output format">;
|
|
|
|
defm preprocessor : Long<"preprocessor", "Custom preprocessor command">;
|
|
defm preprocessor_arg : Long<"preprocessor-arg", "Preprocessor command argument">;
|
|
|
|
defm target : LongShort<"F", "target", "Target BFD format name">;
|
|
|
|
defm include_dir : LongShort<"I", "include-dir", "Include directory">;
|
|
defm include_alias : LongAlias<"include", include_dir>;
|
|
|
|
defm define : LongShort<"D", "define", "Define to pass to the preprocessor">;
|
|
|
|
defm undef : LongShort<"U", "undefine", "Undefine to pass to the preprocessor">;
|
|
|
|
defm codepage : LongShort<"c", "codepage", "Default codepage to use">;
|
|
|
|
defm language : LongShort<"l", "language", "Default language to use (0x0-0xffff)">;
|
|
|
|
def use_temp_file: Flag<["--"], "use-temp-file">,
|
|
HelpText<"Mimic GNU windres preprocessor option handling "
|
|
"(don't unescape preprocessor options)">;
|
|
|
|
defm verbose : F<"v", "verbose", "Enable verbose output">;
|
|
defm version : F<"V", "version", "Display version">;
|
|
|
|
defm help : F<"h", "help", "Display this message and exit">;
|
|
|
|
// Print (but do not run) the commands to run for preprocessing
|
|
def _HASH_HASH_HASH : Flag<["-"], "###">;
|
|
|
|
def no_preprocess : Flag<["--"], "no-preprocess">;
|