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