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