include "llvm/Option/OptParser.td" class F : Flag<["-"], letter>, HelpText; class FF : Flag<["--"], name>, HelpText; // General options def generic_group : OptionGroup<"Genric Options">, HelpText<"Generic Options">; def help : FF<"help", "Display this help">, Group; def : F<"h", "Alias for --help">, Alias, Group; def version : FF<"version", "Display the LLVM version">, Group; def : F<"v", "Alias for --version">, Alias, Group; // Action options def action_group : OptionGroup<"Action">, HelpText<"Action (required)">; def show : FF<"show", "Show summary of the (indexed) codegen data file.">, Group; def : F<"s", "Alias for --show">, Alias, Group; def convert : FF<"convert", "Convert the (indexed) codegen data file in either text or binary format.">, Group; def : F<"c", "Alias for --convert">, Alias, Group; def merge : FF<"merge", "Take binary files having raw codegen data in custom sections, and merge them into an indexed codegen data file.">, Group; def : F<"m", "Alias for --merge">, Alias, Group; // Additional options def cgdata_version : FF<"cgdata-version", "Display the cgdata version">; def skip_trim : FF<"skip-trim", "Skip trimming content when merging the cgdata">; def output : Option<["--"], "output", KIND_SEPARATE>, HelpText<"Specify the name for the output file to be created">, MetaVarName<"">; def : JoinedOrSeparate<["-"], "o">, Alias, MetaVarName<"">, HelpText<"Alias for --output">; def format : Option<["--"], "format", KIND_SEPARATE>, HelpText<"Specify the output format (text or binary)">, MetaVarName<"">; def : JoinedOrSeparate<["-"], "f">, Alias, HelpText<"Alias for --format">; def indexed_codegen_data_lazy_loading : F<"indexed-codegen-data-lazy-loading", "Lazily load indexed CodeGenData for testing purpose.">, Flags<[HelpHidden]>;