| 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 | #ifdef OPTTABLE_STR_TABLE_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 | "--addresses-from-stdin\0" |
| 26 | "--address\0" |
| 27 | "--arch=\0" |
| 28 | "--arch\0" |
| 29 | "--benchmark-reader=\0" |
| 30 | "--benchmark-reader\0" |
| 31 | "--callsites-yaml-file=\0" |
| 32 | "--callsites-yaml-file\0" |
| 33 | "--convert=\0" |
| 34 | "--convert\0" |
| 35 | "--dwarf-callsites\0" |
| 36 | "--help\0" |
| 37 | "-h\0" |
| 38 | "--json-summary-file=\0" |
| 39 | "--json-summary-file\0" |
| 40 | "--merged-functions-filter=\0" |
| 41 | "--merged-functions-filter\0" |
| 42 | "--merged-functions\0" |
| 43 | "--num-threads=\0" |
| 44 | "--num-threads\0" |
| 45 | "--out-file=\0" |
| 46 | "--out-file\0" |
| 47 | "--output-version=\0" |
| 48 | "--output-version\0" |
| 49 | "-o\0" |
| 50 | "--quiet\0" |
| 51 | "--segment-size=\0" |
| 52 | "--segment-size\0" |
| 53 | "--symtab-file=\0" |
| 54 | "--symtab-file\0" |
| 55 | "--verbose\0" |
| 56 | "--verify\0" |
| 57 | "--version\0" |
| 58 | "-v\0" |
| 59 | ; |
| 60 | #ifdef __GNUC__ |
| 61 | #pragma GCC diagnostic pop |
| 62 | #endif |
| 63 | |
| 64 | static constexpr llvm::StringTable |
| 65 | OptionStrTable = OptionStrTableStorage; |
| 66 | #endif // OPTTABLE_STR_TABLE_CODE |
| 67 | |
| 68 | ///////// |
| 69 | // Prefixes |
| 70 | |
| 71 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
| 72 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 73 | 0 /* prefixes */, |
| 74 | 1 /* prefixes */, 1 /* '-' */, |
| 75 | 1 /* prefixes */, 3 /* '--' */ |
| 76 | }; |
| 77 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
| 78 | |
| 79 | /////////// SubCommand IDs |
| 80 | |
| 81 | #ifdef OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 82 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 83 | 0 /* subcommands */ |
| 84 | }; |
| 85 | #endif // OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 86 | |
| 87 | ///////// |
| 88 | // Prefix Union |
| 89 | |
| 90 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 91 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 92 | 1 /* '-' */, 3 /* '--' */ |
| 93 | }; |
| 94 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
| 95 | |
| 96 | ///////// |
| 97 | // ValuesCode |
| 98 | |
| 99 | #ifdef OPTTABLE_VALUES_CODE |
| 100 | #endif |
| 101 | ///////// |
| 102 | // Groups |
| 103 | |
| 104 | #ifdef OPTION |
| 105 | |
| 106 | ////////// |
| 107 | // Options |
| 108 | |
| 109 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 110 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 111 | OPTION(3, 24 /* --address= */, address_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 112 | "Lookup an address in a GSYM file" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 113 | OPTION(3, 35 /* --addresses-from-stdin */, addresses_from_stdin, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 114 | "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>" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 115 | OPTION(3, 58 /* --address */, anonymous_10, Separate, INVALID, address_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 116 | OPTION(3, 68 /* --arch= */, arch_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 117 | "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" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 118 | OPTION(3, 76 /* --arch */, anonymous_5, Separate, INVALID, arch_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 119 | OPTION(3, 83 /* --benchmark-reader= */, benchmark_reader, Joined, INVALID, INVALID, nullptr, HelpHidden, DefaultVis, 0, |
| 120 | "Benchmark reader with start,stride (default: 0,1 = every address)" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 121 | OPTION(3, 103 /* --benchmark-reader */, benchmark_reader_all, Flag, INVALID, INVALID, nullptr, HelpHidden, DefaultVis, 0, |
| 122 | "Benchmark reader by looking up every address" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 123 | OPTION(3, 122 /* --callsites-yaml-file= */, callsites_yaml_file_EQ, Joined, INVALID, INVALID, nullptr, HelpHidden, DefaultVis, 0, |
| 124 | "Load call site info from YAML file. Useful for testing." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 125 | OPTION(3, 145 /* --callsites-yaml-file */, anonymous_4, Separate, INVALID, callsites_yaml_file_EQ, nullptr, HelpHidden, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 126 | OPTION(3, 167 /* --convert= */, convert_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 127 | "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" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 128 | OPTION(3, 178 /* --convert */, anonymous_0, Separate, INVALID, convert_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 129 | OPTION(3, 188 /* --dwarf-callsites */, dwarf_callsites, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 130 | "Load call site info from DWARF, if available" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 131 | OPTION(3, 206 /* --help */, help, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 132 | "Display this help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 133 | OPTION(1, 213 /* -h */, anonymous_1, Flag, INVALID, help, nullptr, 0, DefaultVis, 0, |
| 134 | "Alias for --help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 135 | OPTION(3, 216 /* --json-summary-file= */, json_summary_file_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 136 | "Output a categorized summary of errors into the JSON file specified." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 137 | OPTION(3, 237 /* --json-summary-file */, anonymous_11, Separate, INVALID, json_summary_file_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 138 | OPTION(3, 257 /* --merged-functions-filter= */, merged_functions_filter_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 139 | "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." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 140 | OPTION(3, 284 /* --merged-functions-filter */, anonymous_12, Separate, INVALID, merged_functions_filter_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 141 | OPTION(3, 310 /* --merged-functions */, merged_functions, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 142 | "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." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 143 | OPTION(3, 329 /* --num-threads= */, num_threads_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 144 | "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" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 145 | OPTION(3, 344 /* --num-threads */, anonymous_8, Separate, INVALID, num_threads_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 146 | OPTION(3, 358 /* --out-file= */, out_file_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 147 | "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" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 148 | OPTION(3, 370 /* --out-file */, anonymous_6, Separate, INVALID, out_file_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 149 | OPTION(3, 381 /* --output-version= */, output_version_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 150 | "Set the GSYM output version (1 or 2). Default: 1." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 151 | OPTION(3, 399 /* --output-version */, anonymous_13, Separate, INVALID, output_version_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 152 | OPTION(1, 416 /* -o */, anonymous_7, Separate, INVALID, out_file_EQ, nullptr, 0, DefaultVis, 0, |
| 153 | "Alias for --out-file" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 154 | OPTION(3, 419 /* --quiet */, quiet, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 155 | "Do not output warnings about the debug information" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 156 | OPTION(3, 427 /* --segment-size= */, segment_size_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 157 | "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" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 158 | OPTION(3, 443 /* --segment-size */, anonymous_9, Separate, INVALID, segment_size_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 159 | OPTION(3, 458 /* --symtab-file= */, symtab_file_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 160 | "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" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 161 | OPTION(3, 473 /* --symtab-file */, anonymous_3, Separate, INVALID, symtab_file_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 162 | OPTION(3, 487 /* --verbose */, verbose, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 163 | "Enable verbose logging and encoding details" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 164 | OPTION(3, 497 /* --verify */, verify, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 165 | "Verify the generated GSYM file against the information in the file that was converted" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 166 | OPTION(3, 506 /* --version */, version, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 167 | "Display the version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 168 | OPTION(1, 516 /* -v */, anonymous_2, Flag, INVALID, version, nullptr, 0, DefaultVis, 0, |
| 169 | "Alias for --version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 170 | #endif // OPTION |
| 171 | |
| 172 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 173 | |
| 174 | struct SimpleEnumValue { |
| 175 | const char *Name; |
| 176 | unsigned Value; |
| 177 | }; |
| 178 | |
| 179 | struct SimpleEnumValueTable { |
| 180 | const SimpleEnumValue *Table; |
| 181 | unsigned Size; |
| 182 | }; |
| 183 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 184 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 185 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 186 | |
| 187 | ///////// |
| 188 | |
| 189 | // SubCommands |
| 190 | |
| 191 | #ifdef OPTTABLE_SUBCOMMANDS_CODE |
| 192 | static constexpr llvm::opt::OptTable::SubCommand OptionSubCommands[] = { |
| 193 | }; |
| 194 | #endif // OPTTABLE_SUBCOMMANDS_CODE |
| 195 | |
| 196 | |
| 197 | |