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 "--build-accelerator=\0"
26 "--build-accelerator\0"
27 "Build accelerator tables(default: none)\n =none - Do not build accelerators\n =DWARF - .debug_names are generated for all DWARF versions\n\0"
28 "[none,DWARF]\0"
29 "--compress-debug-sections=\0"
30 "Compress debug sections (by default, the output debug sections are compressed only if the input debug sections are compressed, using the same format)\n =none - Do not compress debug sections\n =zlib - Compress debug sections using zlib\n =zstd - Compress debug sections using zstd\n\0"
31 "[none,zlib,zstd]\0"
32 "--compress-debug-sections\0"
33 "Alias for --compress-debug-sections=zlib\0"
34 "zlib\0"
35 "\0"
36 "--garbage-collection\0"
37 "Do garbage collection for debug info(default)\0"
38 "--help\0"
39 "Prints this help output\0"
40 "-h\0"
41 "Alias for --help\0"
42 "-j\0"
43 "Alias for --num-threads\0"
44 "--linker=\0"
45 "--linker\0"
46 "Specify the desired type of DWARF linker. Defaults to 'classic'\0"
47 "<DWARF linker type>\0"
48 "--no-compress-debug-sections\0"
49 "Alias for --compress-debug-sections=none\0"
50 "none\0"
51 "\0"
52 "--no-garbage-collection\0"
53 "Don`t do garbage collection for debug info\0"
54 "--no-odr-deduplication\0"
55 "Don`t do ODR deduplication for debug types\0"
56 "--no-odr\0"
57 "Alias for --no-odr-deduplication\0"
58 "--no-separate-debug-file\0"
59 "Create single output file, containing debug tables(default)\0"
60 "--num-threads\0"
61 "Number of available threads for multi-threaded execution. Defaults to the number of cores on the current machine\0"
62 "<threads>\0"
63 "--odr-deduplication\0"
64 "Do ODR deduplication for debug types(default)\0"
65 "--odr\0"
66 "Alias for --odr-deduplication\0"
67 "--separate-debug-file\0"
68 "Create two output files: file w/o debug tables and file with debug tables\0"
69 "--tombstone=\0"
70 "--tombstone\0"
71 "Tombstone value used as a marker of invalid address(default: universal)\n =bfd - Zero for all addresses and [1,1] for DWARF v4 (or less) address ranges and exec\n =maxpc - Minus 1 for all addresses and minus 2 for DWARF v4 (or less) address ranges\n =exec - Match with address ranges of executable sections\n =universal - Both: bfd and maxpc\0"
72 "[bfd,maxpc,exec,universal]\0"
73 "--verbose\0"
74 "Enable verbose logging\0"
75 "--verify\0"
76 "Run the DWARF verifier on the resulting debug info\0"
77 "--version\0"
78 "Print the version and exit\0"
79 "-V\0"
80 "Alias for --version\0"
81 ;
82#ifdef __GNUC__
83#pragma GCC diagnostic pop
84#endif
85
86static constexpr llvm::StringTable
87OptionStrTable = OptionStrTableStorage;
88
89 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
90 0 /* prefixes */,
91 1 /* prefixes */, 1 /* '-' */,
92 1 /* prefixes */, 3 /* '--' */,
93 2 /* prefixes */, 3 /* '--' */, 1 /* '-' */
94 };
95
96 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
97 {0, 0},
98 };
99
100 static constexpr unsigned OptionSubCommandIDsTable[] = {
101 0 /* subcommands */
102 };
103
104 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
105 {0, 0, 0, 0, 0, 0, 0, 0},
106 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
107 {207, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
108 {535, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
109 {0, 619, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
110 {853, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
111 {0, 943, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
112 {1336, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
113 {1919, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
114 };
115
116 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
117 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
118 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
119 {24 /* --build-accelerator= */, 0, 0, 4, 1, 5, llvm::opt::Option::JoinedClass},
120 {45 /* --build-accelerator */, 65, 0, 0, 2, 5, llvm::opt::Option::SeparateClass},
121 {220 /* --compress-debug-sections= */, 247, 0, 0, 3, 3, llvm::opt::Option::JoinedClass},
122 {552 /* --compress-debug-sections */, 578, 0, 5, 4, 3, llvm::opt::Option::FlagClass},
123 {625 /* --garbage-collection */, 646, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
124 {692 /* --help */, 699, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
125 {723 /* -h */, 726, 0, 8, 1, 1, llvm::opt::Option::FlagClass},
126 {743 /* -j */, 746, 0, 18, 1, 1, llvm::opt::Option::SeparateClass},
127 {770 /* --linker= */, 0, 0, 12, 1, 5, llvm::opt::Option::JoinedClass},
128 {780 /* --linker */, 789, 0, 0, 5, 5, llvm::opt::Option::SeparateClass},
129 {873 /* --no-compress-debug-sections */, 902, 0, 5, 6, 3, llvm::opt::Option::FlagClass},
130 {949 /* --no-garbage-collection */, 973, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
131 {1016 /* --no-odr-deduplication */, 1039, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
132 {1082 /* --no-odr */, 1091, 0, 15, 1, 3, llvm::opt::Option::FlagClass},
133 {1124 /* --no-separate-debug-file */, 1149, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
134 {1209 /* --num-threads */, 1223, 0, 0, 7, 5, llvm::opt::Option::SeparateClass},
135 {1346 /* --odr-deduplication */, 1366, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
136 {1412 /* --odr */, 1418, 0, 19, 1, 3, llvm::opt::Option::FlagClass},
137 {1448 /* --separate-debug-file */, 1470, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
138 {1544 /* --tombstone= */, 0, 0, 23, 1, 5, llvm::opt::Option::JoinedClass},
139 {1557 /* --tombstone */, 1569, 0, 0, 8, 5, llvm::opt::Option::SeparateClass},
140 {1946 /* --verbose */, 1956, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
141 {1979 /* --verify */, 1988, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
142 {2039 /* --version */, 2049, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
143 {2076 /* -V */, 2079, 0, 26, 1, 1, llvm::opt::Option::FlagClass},
144 };
145
146 return {OptionStrTable, OptionPrefixesTable,
147 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
148}
149#undef OPTTABLE_CODE
150#endif // OPTTABLE_CODE
151
152/////////
153// ValuesCode
154
155#ifdef OPTTABLE_VALUES_CODE
156static llvm::StringRef getOptionValuesCode(unsigned ID) {
157 switch (ID) {
158 }
159 return {};
160}
161#undef OPTTABLE_VALUES_CODE
162#endif // OPTTABLE_VALUES_CODE
163/////////
164// Groups
165
166#ifdef OPTION
167
168//////////
169// Options
170
171OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
172OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
173OPTION(5, 24 /* --build-accelerator= */, anonymous_0, Joined, INVALID, build_accelerator, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
174OPTION(5, 45 /* --build-accelerator */, build_accelerator, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 65, 0, 207, 0, 0)
175OPTION(3, 220 /* --compress-debug-sections= */, compress_debug_sections, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 247, 0, 535, 0, 0)
176OPTION(3, 552 /* --compress-debug-sections */, anonymous_1, Flag, INVALID, compress_debug_sections, 619, 0, static_cast<unsigned>(DefaultVis), 0, 578, 0, 0, 0, 0)
177OPTION(3, 625 /* --garbage-collection */, garbage_collection, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 646, 0, 0, 0, 0)
178OPTION(3, 692 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 699, 0, 0, 0, 0)
179OPTION(1, 723 /* -h */, h, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 726, 0, 0, 0, 0)
180OPTION(1, 743 /* -j */, anonymous_5, Separate, INVALID, threads, 0, 0, static_cast<unsigned>(DefaultVis), 0, 746, 0, 0, 0, 0)
181OPTION(5, 770 /* --linker= */, anonymous_3, Joined, INVALID, linker, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
182OPTION(5, 780 /* --linker */, linker, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 789, 0, 853, 0, 0)
183OPTION(3, 873 /* --no-compress-debug-sections */, anonymous_2, Flag, INVALID, compress_debug_sections, 943, 0, static_cast<unsigned>(DefaultVis), 0, 902, 0, 0, 0, 0)
184OPTION(3, 949 /* --no-garbage-collection */, no_garbage_collection, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 973, 0, 0, 0, 0)
185OPTION(3, 1016 /* --no-odr-deduplication */, no_odr_deduplication, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1039, 0, 0, 0, 0)
186OPTION(3, 1082 /* --no-odr */, no_odr, Flag, INVALID, no_odr_deduplication, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1091, 0, 0, 0, 0)
187OPTION(3, 1124 /* --no-separate-debug-file */, no_separate_debug_file, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1149, 0, 0, 0, 0)
188OPTION(5, 1209 /* --num-threads */, threads, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1223, 0, 1336, 0, 0)
189OPTION(3, 1346 /* --odr-deduplication */, odr_deduplication, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1366, 0, 0, 0, 0)
190OPTION(3, 1412 /* --odr */, odr, Flag, INVALID, odr_deduplication, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1418, 0, 0, 0, 0)
191OPTION(3, 1448 /* --separate-debug-file */, separate_debug_file, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1470, 0, 0, 0, 0)
192OPTION(5, 1544 /* --tombstone= */, anonymous_4, Joined, INVALID, tombstone, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
193OPTION(5, 1557 /* --tombstone */, tombstone, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1569, 0, 1919, 0, 0)
194OPTION(3, 1946 /* --verbose */, verbose, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1956, 0, 0, 0, 0)
195OPTION(3, 1979 /* --verify */, verify, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1988, 0, 0, 0, 0)
196OPTION(3, 2039 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2049, 0, 0, 0, 0)
197OPTION(1, 2076 /* -V */, V, Flag, INVALID, version, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2079, 0, 0, 0, 0)
198#endif // OPTION
199
200#ifdef SIMPLE_ENUM_VALUE_TABLE
201
202struct SimpleEnumValue {
203 const char *Name;
204 unsigned Value;
205};
206
207struct SimpleEnumValueTable {
208 const SimpleEnumValue *Table;
209 unsigned Size;
210};
211static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
212static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
213#endif // SIMPLE_ENUM_VALUE_TABLE
214