| 1 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
| 2 | |* *| |
| 3 | |* Option Parsing Definitions *| |
| 4 | |* *| |
| 5 | |* Automatically generated file, do not edit! *| |
| 6 | |* *| |
| 7 | \*===----------------------------------------------------------------------===*/ |
| 8 | |
| 9 | ///////// |
| 10 | // String table |
| 11 | |
| 12 | #if defined(OPTTABLE_STR_TABLE_CODE) || defined(OPTTABLE_CODE) |
| 13 | |
| 14 | #ifdef __GNUC__ |
| 15 | #pragma GCC diagnostic push |
| 16 | #pragma GCC diagnostic ignored "-Woverlength-strings" |
| 17 | #endif |
| 18 | static constexpr char OptionStrTableStorage[] = |
| 19 | "\0" |
| 20 | "-\0" |
| 21 | "--\0" |
| 22 | "<input>\0" |
| 23 | "<unknown>\0" |
| 24 | "--address=\0" |
| 25 | "Lookup an address in a GSYM file\0" |
| 26 | "--addresses-from-stdin\0" |
| 27 | "Lookup addresses in a GSYM file that are read from stdin\nEach input line is expected to be of the following format: <addr> <gsym-path>\0" |
| 28 | "--address\0" |
| 29 | "--arch=\0" |
| 30 | "Process debug information for the specified CPU architecture only.\nArchitectures may be specified by name or by number.\nThis option can be specified multiple times, once for each desired architecture\0" |
| 31 | "--arch\0" |
| 32 | "--benchmark-reader=\0" |
| 33 | "Benchmark reader with start,stride (default: 0,1 = every address)\0" |
| 34 | "--benchmark-reader\0" |
| 35 | "Benchmark reader by looking up every address\0" |
| 36 | "--callsites-yaml-file=\0" |
| 37 | "Load call site info from YAML file. Useful for testing.\0" |
| 38 | "--callsites-yaml-file\0" |
| 39 | "--convert=\0" |
| 40 | "Convert the specified file to the GSYM format.\nSupported files include ELF and mach-o files that will have their debug info (DWARF) and symbol table converted\0" |
| 41 | "--convert\0" |
| 42 | "--dwarf-callsites\0" |
| 43 | "Load call site info from DWARF, if available\0" |
| 44 | "--help\0" |
| 45 | "Display this help\0" |
| 46 | "-h\0" |
| 47 | "Alias for --help\0" |
| 48 | "--json-summary-file=\0" |
| 49 | "Output a categorized summary of errors into the JSON file specified.\0" |
| 50 | "--json-summary-file\0" |
| 51 | "--merged-functions-filter=\0" |
| 52 | "When used with --address/--addresses-from-stdin and --merged-functions,\nfilters the merged functions output to only show functions matching any of the specified regex patterns.\nCan be specified multiple times.\0" |
| 53 | "--merged-functions-filter\0" |
| 54 | "--merged-functions\0" |
| 55 | "When used with --convert, encodes merged function information for functions in debug info that have matching address ranges.\nWithout this option one function per unique address range will be emitted.\nWhen used with --address/--addresses-from-stdin, all merged functions for a particular address will be displayed.\nWithout this option only one function will be displayed.\0" |
| 56 | "--num-threads=\0" |
| 57 | "Specify the maximum number (n) of simultaneous threads to use when converting files to GSYM.\nDefaults to the number of cores on the current machine\0" |
| 58 | "--num-threads\0" |
| 59 | "--out-file=\0" |
| 60 | "Specify the path where the converted GSYM file will be saved.\nWhen not specified, a '.gsym' extension will be appended to the file name specified in the --convert option\0" |
| 61 | "--out-file\0" |
| 62 | "--output-version=\0" |
| 63 | "Set the GSYM output version (1 or 2). Default: 1.\0" |
| 64 | "--output-version\0" |
| 65 | "-o\0" |
| 66 | "Alias for --out-file\0" |
| 67 | "--quiet\0" |
| 68 | "Do not output warnings or errors about the debug information. The aggregated counts are still printed\0" |
| 69 | "--segment-size=\0" |
| 70 | "Specify the size in bytes of the size the final GSYM file should be segmented into. This allows GSYM files to be split across multiple files\0" |
| 71 | "--segment-size\0" |
| 72 | "--statistics=\0" |
| 73 | "Print the size of each section in the input GSYM file(s).\nFormat: text (default), json, or pretty-json\0" |
| 74 | "--statistics\0" |
| 75 | "Alias for --statistics=text\0" |
| 76 | "text\0" |
| 77 | "\0" |
| 78 | "--symtab-file=\0" |
| 79 | "Specify a separate file to read the symbol table from during GSYM conversion.\nUse when the symbol table and debug info are in separate files.\nMatching architectures are selected automatically for universal binaries\0" |
| 80 | "--symtab-file\0" |
| 81 | "--verbose\0" |
| 82 | "Enable verbose logging and encoding details\0" |
| 83 | "--verify\0" |
| 84 | "Verify the generated GSYM file against the information in the file that was converted\0" |
| 85 | "--version\0" |
| 86 | "Display the version\0" |
| 87 | "-v\0" |
| 88 | "Alias for --version\0" |
| 89 | ; |
| 90 | #ifdef __GNUC__ |
| 91 | #pragma GCC diagnostic pop |
| 92 | #endif |
| 93 | |
| 94 | static constexpr llvm::StringTable |
| 95 | OptionStrTable = OptionStrTableStorage; |
| 96 | #undef OPTTABLE_STR_TABLE_CODE |
| 97 | #endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE |
| 98 | |
| 99 | ///////// |
| 100 | // Tables |
| 101 | |
| 102 | #ifdef OPTTABLE_CODE |
| 103 | static llvm::opt::OptTable::Tables optionTables() { |
| 104 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 105 | 0 /* prefixes */, |
| 106 | 1 /* prefixes */, 1 /* '-' */, |
| 107 | 1 /* prefixes */, 3 /* '--' */ |
| 108 | }; |
| 109 | |
| 110 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 111 | {0, 0}, |
| 112 | }; |
| 113 | |
| 114 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 115 | 0 /* subcommands */ |
| 116 | }; |
| 117 | |
| 118 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 119 | {0, 0, 0, 0, 0}, |
| 120 | {0, 2672, 0, 0, 0}, |
| 121 | }; |
| 122 | |
| 123 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 124 | {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0}, |
| 125 | {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0}, |
| 126 | {24 /* --address= */, 35, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 127 | {68 /* --addresses-from-stdin */, 91, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 128 | {226 /* --address */, 0, 0, DefaultVis, 3, 0, 3, 0, llvm::opt::Option::SeparateClass, 0}, |
| 129 | {236 /* --arch= */, 244, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 130 | {444 /* --arch */, 0, 0, DefaultVis, 3, 0, 6, 0, llvm::opt::Option::SeparateClass, 0}, |
| 131 | {451 /* --benchmark-reader= */, 471, HelpHidden, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 132 | {537 /* --benchmark-reader */, 556, HelpHidden, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 133 | {601 /* --callsites-yaml-file= */, 624, HelpHidden, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 134 | {680 /* --callsites-yaml-file */, 0, HelpHidden, DefaultVis, 3, 0, 10, 0, llvm::opt::Option::SeparateClass, 0}, |
| 135 | {702 /* --convert= */, 713, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 136 | {872 /* --convert */, 0, 0, DefaultVis, 3, 0, 12, 0, llvm::opt::Option::SeparateClass, 0}, |
| 137 | {882 /* --dwarf-callsites */, 900, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 138 | {945 /* --help */, 952, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 139 | {970 /* -h */, 973, 0, DefaultVis, 1, 0, 15, 0, llvm::opt::Option::FlagClass, 0}, |
| 140 | {990 /* --json-summary-file= */, 1011, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 141 | {1080 /* --json-summary-file */, 0, 0, DefaultVis, 3, 0, 17, 0, llvm::opt::Option::SeparateClass, 0}, |
| 142 | {1100 /* --merged-functions-filter= */, 1127, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 143 | {1337 /* --merged-functions-filter */, 0, 0, DefaultVis, 3, 0, 19, 0, llvm::opt::Option::SeparateClass, 0}, |
| 144 | {1363 /* --merged-functions */, 1382, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 145 | {1753 /* --num-threads= */, 1768, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 146 | {1916 /* --num-threads */, 0, 0, DefaultVis, 3, 0, 22, 0, llvm::opt::Option::SeparateClass, 0}, |
| 147 | {1930 /* --out-file= */, 1942, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 148 | {2112 /* --out-file */, 0, 0, DefaultVis, 3, 0, 24, 0, llvm::opt::Option::SeparateClass, 0}, |
| 149 | {2123 /* --output-version= */, 2141, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 150 | {2191 /* --output-version */, 0, 0, DefaultVis, 3, 0, 26, 0, llvm::opt::Option::SeparateClass, 0}, |
| 151 | {2208 /* -o */, 2211, 0, DefaultVis, 1, 0, 24, 0, llvm::opt::Option::SeparateClass, 0}, |
| 152 | {2232 /* --quiet */, 2240, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 153 | {2342 /* --segment-size= */, 2358, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 154 | {2499 /* --segment-size */, 0, 0, DefaultVis, 3, 0, 30, 0, llvm::opt::Option::SeparateClass, 0}, |
| 155 | {2514 /* --statistics= */, 2528, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 156 | {2631 /* --statistics */, 2644, 0, DefaultVis, 3, 0, 32, 1, llvm::opt::Option::FlagClass, 0}, |
| 157 | {2678 /* --symtab-file= */, 2693, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 158 | {2908 /* --symtab-file */, 0, 0, DefaultVis, 3, 0, 34, 0, llvm::opt::Option::SeparateClass, 0}, |
| 159 | {2922 /* --verbose */, 2932, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 160 | {2976 /* --verify */, 2985, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 161 | {3071 /* --version */, 3081, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 162 | {3101 /* -v */, 3104, 0, DefaultVis, 1, 0, 38, 0, llvm::opt::Option::FlagClass, 0}, |
| 163 | }; |
| 164 | |
| 165 | return {OptionStrTableStorage, OptionPrefixesTable, |
| 166 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 167 | } |
| 168 | #undef OPTTABLE_CODE |
| 169 | #endif // OPTTABLE_CODE |
| 170 | |
| 171 | ///////// |
| 172 | // ValuesCode |
| 173 | |
| 174 | #ifdef OPTTABLE_VALUES_CODE |
| 175 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 176 | switch (ID) { |
| 177 | } |
| 178 | return {}; |
| 179 | } |
| 180 | #undef OPTTABLE_VALUES_CODE |
| 181 | #endif // OPTTABLE_VALUES_CODE |
| 182 | ///////// |
| 183 | // Groups |
| 184 | |
| 185 | #ifdef OPTION |
| 186 | |
| 187 | ////////// |
| 188 | // Options |
| 189 | |
| 190 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 191 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 192 | OPTION(3, 24 /* --address= */, address_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 35, 0, 0, 0, 0) |
| 193 | OPTION(3, 68 /* --addresses-from-stdin */, addresses_from_stdin, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 91, 0, 0, 0, 0) |
| 194 | OPTION(3, 226 /* --address */, anonymous_10, Separate, INVALID, address_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 195 | OPTION(3, 236 /* --arch= */, arch_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 244, 0, 0, 0, 0) |
| 196 | OPTION(3, 444 /* --arch */, anonymous_5, Separate, INVALID, arch_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 197 | OPTION(3, 451 /* --benchmark-reader= */, benchmark_reader, Joined, INVALID, INVALID, 0, HelpHidden, DefaultVis, 0, 471, 0, 0, 0, 0) |
| 198 | OPTION(3, 537 /* --benchmark-reader */, benchmark_reader_all, Flag, INVALID, INVALID, 0, HelpHidden, DefaultVis, 0, 556, 0, 0, 0, 0) |
| 199 | OPTION(3, 601 /* --callsites-yaml-file= */, callsites_yaml_file_EQ, Joined, INVALID, INVALID, 0, HelpHidden, DefaultVis, 0, 624, 0, 0, 0, 0) |
| 200 | OPTION(3, 680 /* --callsites-yaml-file */, anonymous_4, Separate, INVALID, callsites_yaml_file_EQ, 0, HelpHidden, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 201 | OPTION(3, 702 /* --convert= */, convert_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 713, 0, 0, 0, 0) |
| 202 | OPTION(3, 872 /* --convert */, anonymous_0, Separate, INVALID, convert_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 203 | OPTION(3, 882 /* --dwarf-callsites */, dwarf_callsites, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 900, 0, 0, 0, 0) |
| 204 | OPTION(3, 945 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 952, 0, 0, 0, 0) |
| 205 | OPTION(1, 970 /* -h */, anonymous_1, Flag, INVALID, help, 0, 0, DefaultVis, 0, 973, 0, 0, 0, 0) |
| 206 | OPTION(3, 990 /* --json-summary-file= */, json_summary_file_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 1011, 0, 0, 0, 0) |
| 207 | OPTION(3, 1080 /* --json-summary-file */, anonymous_11, Separate, INVALID, json_summary_file_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 208 | OPTION(3, 1100 /* --merged-functions-filter= */, merged_functions_filter_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 1127, 0, 0, 0, 0) |
| 209 | OPTION(3, 1337 /* --merged-functions-filter */, anonymous_12, Separate, INVALID, merged_functions_filter_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 210 | OPTION(3, 1363 /* --merged-functions */, merged_functions, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1382, 0, 0, 0, 0) |
| 211 | OPTION(3, 1753 /* --num-threads= */, num_threads_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 1768, 0, 0, 0, 0) |
| 212 | OPTION(3, 1916 /* --num-threads */, anonymous_8, Separate, INVALID, num_threads_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 213 | OPTION(3, 1930 /* --out-file= */, out_file_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 1942, 0, 0, 0, 0) |
| 214 | OPTION(3, 2112 /* --out-file */, anonymous_6, Separate, INVALID, out_file_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 215 | OPTION(3, 2123 /* --output-version= */, output_version_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 2141, 0, 0, 0, 0) |
| 216 | OPTION(3, 2191 /* --output-version */, anonymous_13, Separate, INVALID, output_version_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 217 | OPTION(1, 2208 /* -o */, anonymous_7, Separate, INVALID, out_file_EQ, 0, 0, DefaultVis, 0, 2211, 0, 0, 0, 0) |
| 218 | OPTION(3, 2232 /* --quiet */, quiet, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 2240, 0, 0, 0, 0) |
| 219 | OPTION(3, 2342 /* --segment-size= */, segment_size_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 2358, 0, 0, 0, 0) |
| 220 | OPTION(3, 2499 /* --segment-size */, anonymous_9, Separate, INVALID, segment_size_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 221 | OPTION(3, 2514 /* --statistics= */, statistics_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 2528, 0, 0, 0, 0) |
| 222 | OPTION(3, 2631 /* --statistics */, statistics, Flag, INVALID, statistics_EQ, 2672, 0, DefaultVis, 0, 2644, 0, 0, 0, 0) |
| 223 | OPTION(3, 2678 /* --symtab-file= */, symtab_file_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 2693, 0, 0, 0, 0) |
| 224 | OPTION(3, 2908 /* --symtab-file */, anonymous_3, Separate, INVALID, symtab_file_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 225 | OPTION(3, 2922 /* --verbose */, verbose, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 2932, 0, 0, 0, 0) |
| 226 | OPTION(3, 2976 /* --verify */, verify, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 2985, 0, 0, 0, 0) |
| 227 | OPTION(3, 3071 /* --version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 3081, 0, 0, 0, 0) |
| 228 | OPTION(1, 3101 /* -v */, anonymous_2, Flag, INVALID, version, 0, 0, DefaultVis, 0, 3104, 0, 0, 0, 0) |
| 229 | #endif // OPTION |
| 230 | |
| 231 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 232 | |
| 233 | struct SimpleEnumValue { |
| 234 | const char *Name; |
| 235 | unsigned Value; |
| 236 | }; |
| 237 | |
| 238 | struct SimpleEnumValueTable { |
| 239 | const SimpleEnumValue *Table; |
| 240 | unsigned Size; |
| 241 | }; |
| 242 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 243 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 244 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 245 | |