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
18static constexpr char OptionStrTableStorage[] =
19 "\0"
20 "-\0"
21 "--\0"
22 "<input>\0"
23 "<unknown>\0"
24 "--arch=\0"
25 "Specify the architecture, e.g. x86_64\0"
26 "--arch\0"
27 "--bitwidth=\0"
28 "Specify the bit width\0"
29 "--bitwidth\0"
30 "--endianness=\0"
31 "Specify the endianness\0"
32 "--endianness\0"
33 "--exclude=\0"
34 "Remove symbols which match the pattern. Can be specified multiple times\0"
35 "--exclude\0"
36 "--help\0"
37 "Display this help\0"
38 "--hint-ifs-target=\0"
39 "When --output-format is 'IFS', this flag will hint the expected target triple for IFS output\0"
40 "--hint-ifs-target\0"
41 "-h\0"
42 "Alias for --help\0"
43 "--input-format=\0"
44 "Specify the input file format\0"
45 "--input-format\0"
46 "--input=\0"
47 "input\0"
48 "--input\0"
49 "--output-elf=\0"
50 "Output path for ELF file\0"
51 "--output-elf\0"
52 "--output-format=\0"
53 "Specify the output file format **DEPRECATED**\0"
54 "--output-format\0"
55 "--output-ifs=\0"
56 "Output path for IFS file\0"
57 "--output-ifs\0"
58 "--output-tbd=\0"
59 "Output path for TBD file\0"
60 "--output-tbd\0"
61 "--output=\0"
62 "Output file **DEPRECATED**\0"
63 "--output\0"
64 "-o\0"
65 "Alias for --output\0"
66 "--soname=\0"
67 "name\0"
68 "--soname\0"
69 "--strip-ifs-arch\0"
70 "Strip target architecture information away from IFS output\0"
71 "--strip-ifs-bitwidth\0"
72 "Strip target bit width information away from IFS output\0"
73 "--strip-ifs-endianness\0"
74 "Strip target endianness information away from IFS output\0"
75 "--strip-ifs-target\0"
76 "Strip all target information away from IFS output\0"
77 "--strip-needed\0"
78 "Strip needed libs from output\0"
79 "--strip-size\0"
80 "Remove object size from the output\0"
81 "--strip-undefined\0"
82 "Strip undefined symbols from IFS output\0"
83 "--target=\0"
84 "Specify the target triple, e.g. x86_64-linux-gnu\0"
85 "--target\0"
86 "--version\0"
87 "Display the version\0"
88 "-V\0"
89 "Alias for --version\0"
90 "--write-if-changed\0"
91 "Write the output file only if it is new or has changed\0"
92 ;
93#ifdef __GNUC__
94#pragma GCC diagnostic pop
95#endif
96
97static constexpr llvm::StringTable
98OptionStrTable = OptionStrTableStorage;
99#undef OPTTABLE_STR_TABLE_CODE
100#endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE
101
102/////////
103// Tables
104
105#ifdef OPTTABLE_CODE
106static llvm::opt::OptTable::Tables optionTables() {
107 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
108 0 /* prefixes */,
109 1 /* prefixes */, 1 /* '-' */,
110 1 /* prefixes */, 3 /* '--' */
111 };
112
113 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
114 {0, 0},
115 };
116
117 static constexpr unsigned OptionSubCommandIDsTable[] = {
118 0 /* subcommands */
119 };
120
121 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
122 {0, 0, 0, 0, 0},
123 };
124
125 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
126 {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0},
127 {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0},
128 {24 /* --arch= */, 32, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
129 {70 /* --arch */, 0, 0, DefaultVis, 3, 0, 3, 0, llvm::opt::Option::SeparateClass, 0},
130 {77 /* --bitwidth= */, 89, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
131 {111 /* --bitwidth */, 0, 0, DefaultVis, 3, 0, 5, 0, llvm::opt::Option::SeparateClass, 0},
132 {122 /* --endianness= */, 136, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
133 {159 /* --endianness */, 0, 0, DefaultVis, 3, 0, 7, 0, llvm::opt::Option::SeparateClass, 0},
134 {172 /* --exclude= */, 183, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
135 {255 /* --exclude */, 0, 0, DefaultVis, 3, 0, 9, 0, llvm::opt::Option::SeparateClass, 0},
136 {265 /* --help */, 272, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
137 {290 /* --hint-ifs-target= */, 309, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
138 {402 /* --hint-ifs-target */, 0, 0, DefaultVis, 3, 0, 12, 0, llvm::opt::Option::SeparateClass, 0},
139 {420 /* -h */, 423, 0, DefaultVis, 1, 0, 11, 0, llvm::opt::Option::FlagClass, 0},
140 {440 /* --input-format= */, 456, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
141 {486 /* --input-format */, 0, 0, DefaultVis, 3, 0, 15, 0, llvm::opt::Option::SeparateClass, 0},
142 {501 /* --input= */, 510, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
143 {516 /* --input */, 0, 0, DefaultVis, 3, 0, 17, 0, llvm::opt::Option::SeparateClass, 0},
144 {524 /* --output-elf= */, 538, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
145 {563 /* --output-elf */, 0, 0, DefaultVis, 3, 0, 19, 0, llvm::opt::Option::SeparateClass, 0},
146 {576 /* --output-format= */, 593, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
147 {639 /* --output-format */, 0, 0, DefaultVis, 3, 0, 21, 0, llvm::opt::Option::SeparateClass, 0},
148 {655 /* --output-ifs= */, 669, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
149 {694 /* --output-ifs */, 0, 0, DefaultVis, 3, 0, 23, 0, llvm::opt::Option::SeparateClass, 0},
150 {707 /* --output-tbd= */, 721, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
151 {746 /* --output-tbd */, 0, 0, DefaultVis, 3, 0, 25, 0, llvm::opt::Option::SeparateClass, 0},
152 {759 /* --output= */, 769, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
153 {796 /* --output */, 0, 0, DefaultVis, 3, 0, 27, 0, llvm::opt::Option::SeparateClass, 0},
154 {805 /* -o */, 808, 0, DefaultVis, 1, 0, 27, 0, llvm::opt::Option::SeparateClass, 0},
155 {827 /* --soname= */, 837, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
156 {842 /* --soname */, 0, 0, DefaultVis, 3, 0, 30, 0, llvm::opt::Option::SeparateClass, 0},
157 {851 /* --strip-ifs-arch */, 868, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
158 {927 /* --strip-ifs-bitwidth */, 948, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
159 {1004 /* --strip-ifs-endianness */, 1027, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
160 {1084 /* --strip-ifs-target */, 1103, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
161 {1153 /* --strip-needed */, 1168, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
162 {1198 /* --strip-size */, 1211, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
163 {1246 /* --strip-undefined */, 1264, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
164 {1304 /* --target= */, 1314, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0},
165 {1363 /* --target */, 0, 0, DefaultVis, 3, 0, 39, 0, llvm::opt::Option::SeparateClass, 0},
166 {1372 /* --version */, 1382, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
167 {1402 /* -V */, 1405, 0, DefaultVis, 1, 0, 41, 0, llvm::opt::Option::FlagClass, 0},
168 {1425 /* --write-if-changed */, 1444, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
169 };
170
171 return {OptionStrTableStorage, OptionPrefixesTable,
172 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
173}
174#undef OPTTABLE_CODE
175#endif // OPTTABLE_CODE
176
177/////////
178// ValuesCode
179
180#ifdef OPTTABLE_VALUES_CODE
181static llvm::StringRef getOptionValuesCode(unsigned ID) {
182 switch (ID) {
183 }
184 return {};
185}
186#undef OPTTABLE_VALUES_CODE
187#endif // OPTTABLE_VALUES_CODE
188/////////
189// Groups
190
191#ifdef OPTION
192
193//////////
194// Options
195
196OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
197OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
198OPTION(3, 24 /* --arch= */, arch_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 32, 0, 0, 0, 0)
199OPTION(3, 70 /* --arch */, anonymous_0, Separate, INVALID, arch_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
200OPTION(3, 77 /* --bitwidth= */, bitwidth_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 89, 0, 0, 0, 0)
201OPTION(3, 111 /* --bitwidth */, anonymous_1, Separate, INVALID, bitwidth_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
202OPTION(3, 122 /* --endianness= */, endianness_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 136, 0, 0, 0, 0)
203OPTION(3, 159 /* --endianness */, anonymous_2, Separate, INVALID, endianness_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
204OPTION(3, 172 /* --exclude= */, exclude_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 183, 0, 0, 0, 0)
205OPTION(3, 255 /* --exclude */, anonymous_3, Separate, INVALID, exclude_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
206OPTION(3, 265 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 272, 0, 0, 0, 0)
207OPTION(3, 290 /* --hint-ifs-target= */, hint_ifs_target_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 309, 0, 0, 0, 0)
208OPTION(3, 402 /* --hint-ifs-target */, anonymous_5, Separate, INVALID, hint_ifs_target_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
209OPTION(1, 420 /* -h */, anonymous_4, Flag, INVALID, help, 0, 0, DefaultVis, 0, 423, 0, 0, 0, 0)
210OPTION(3, 440 /* --input-format= */, input_format_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 456, 0, 0, 0, 0)
211OPTION(3, 486 /* --input-format */, anonymous_7, Separate, INVALID, input_format_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
212OPTION(3, 501 /* --input= */, input_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 510, 0, 0, 0, 0)
213OPTION(3, 516 /* --input */, anonymous_6, Separate, INVALID, input_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
214OPTION(3, 524 /* --output-elf= */, output_elf_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 538, 0, 0, 0, 0)
215OPTION(3, 563 /* --output-elf */, anonymous_10, Separate, INVALID, output_elf_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
216OPTION(3, 576 /* --output-format= */, output_format_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 593, 0, 0, 0, 0)
217OPTION(3, 639 /* --output-format */, anonymous_11, Separate, INVALID, output_format_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
218OPTION(3, 655 /* --output-ifs= */, output_ifs_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 669, 0, 0, 0, 0)
219OPTION(3, 694 /* --output-ifs */, anonymous_12, Separate, INVALID, output_ifs_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
220OPTION(3, 707 /* --output-tbd= */, output_tbd_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 721, 0, 0, 0, 0)
221OPTION(3, 746 /* --output-tbd */, anonymous_13, Separate, INVALID, output_tbd_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
222OPTION(3, 759 /* --output= */, output_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 769, 0, 0, 0, 0)
223OPTION(3, 796 /* --output */, anonymous_8, Separate, INVALID, output_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
224OPTION(1, 805 /* -o */, anonymous_9, Separate, INVALID, output_EQ, 0, 0, DefaultVis, 0, 808, 0, 0, 0, 0)
225OPTION(3, 827 /* --soname= */, soname_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 837, 0, 0, 0, 0)
226OPTION(3, 842 /* --soname */, anonymous_14, Separate, INVALID, soname_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
227OPTION(3, 851 /* --strip-ifs-arch */, strip_ifs_arch, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 868, 0, 0, 0, 0)
228OPTION(3, 927 /* --strip-ifs-bitwidth */, strip_ifs_bitwidth, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 948, 0, 0, 0, 0)
229OPTION(3, 1004 /* --strip-ifs-endianness */, strip_ifs_endianness, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1027, 0, 0, 0, 0)
230OPTION(3, 1084 /* --strip-ifs-target */, strip_ifs_target, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1103, 0, 0, 0, 0)
231OPTION(3, 1153 /* --strip-needed */, strip_needed, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1168, 0, 0, 0, 0)
232OPTION(3, 1198 /* --strip-size */, strip_size, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1211, 0, 0, 0, 0)
233OPTION(3, 1246 /* --strip-undefined */, strip_undefined, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1264, 0, 0, 0, 0)
234OPTION(3, 1304 /* --target= */, target_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 1314, 0, 0, 0, 0)
235OPTION(3, 1363 /* --target */, anonymous_15, Separate, INVALID, target_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
236OPTION(3, 1372 /* --version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1382, 0, 0, 0, 0)
237OPTION(1, 1402 /* -V */, anonymous_16, Flag, INVALID, version, 0, 0, DefaultVis, 0, 1405, 0, 0, 0, 0)
238OPTION(3, 1425 /* --write-if-changed */, write_if_changed, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1444, 0, 0, 0, 0)
239#endif // OPTION
240
241#ifdef SIMPLE_ENUM_VALUE_TABLE
242
243struct SimpleEnumValue {
244 const char *Name;
245 unsigned Value;
246};
247
248struct SimpleEnumValueTable {
249 const SimpleEnumValue *Table;
250 unsigned Size;
251};
252static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
253static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
254#endif // SIMPLE_ENUM_VALUE_TABLE
255