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 "--garbage-collection\0"
30 "Do garbage collection for debug info(default)\0"
31 "--help\0"
32 "Prints this help output\0"
33 "-h\0"
34 "Alias for --help\0"
35 "-j\0"
36 "Alias for --num-threads\0"
37 "--linker=\0"
38 "--linker\0"
39 "Specify the desired type of DWARF linker. Defaults to 'classic'\0"
40 "<DWARF linker type>\0"
41 "--no-garbage-collection\0"
42 "Don`t do garbage collection for debug info\0"
43 "--no-odr-deduplication\0"
44 "Don`t do ODR deduplication for debug types\0"
45 "--no-odr\0"
46 "Alias for --no-odr-deduplication\0"
47 "--no-separate-debug-file\0"
48 "Create single output file, containing debug tables(default)\0"
49 "--num-threads\0"
50 "Number of available threads for multi-threaded execution. Defaults to the number of cores on the current machine\0"
51 "<threads>\0"
52 "--odr-deduplication\0"
53 "Do ODR deduplication for debug types(default)\0"
54 "--odr\0"
55 "Alias for --odr-deduplication\0"
56 "--separate-debug-file\0"
57 "Create two output files: file w/o debug tables and file with debug tables\0"
58 "--tombstone=\0"
59 "--tombstone\0"
60 "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"
61 "[bfd,maxpc,exec,universal]\0"
62 "--verbose\0"
63 "Enable verbose logging\0"
64 "--verify\0"
65 "Run the DWARF verifier on the resulting debug info\0"
66 "--version\0"
67 "Print the version and exit\0"
68 "-V\0"
69 "Alias for --version\0"
70 ;
71#ifdef __GNUC__
72#pragma GCC diagnostic pop
73#endif
74
75static constexpr llvm::StringTable
76OptionStrTable = OptionStrTableStorage;
77
78 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
79 0 /* prefixes */,
80 1 /* prefixes */, 1 /* '-' */,
81 1 /* prefixes */, 3 /* '--' */,
82 2 /* prefixes */, 3 /* '--' */, 1 /* '-' */
83 };
84
85 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
86 {0, 0},
87 };
88
89 static constexpr unsigned OptionSubCommandIDsTable[] = {
90 0 /* subcommands */
91 };
92
93 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
94 {0, 0, 0, 0, 0, 0, 0, 0},
95 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
96 {207, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
97 {448, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
98 {855, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
99 {1438, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
100 };
101
102 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
103 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
104 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
105 {24 /* --build-accelerator= */, 0, 0, 4, 1, 5, llvm::opt::Option::JoinedClass},
106 {45 /* --build-accelerator */, 65, 0, 0, 2, 5, llvm::opt::Option::SeparateClass},
107 {220 /* --garbage-collection */, 241, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
108 {287 /* --help */, 294, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
109 {318 /* -h */, 321, 0, 6, 1, 1, llvm::opt::Option::FlagClass},
110 {338 /* -j */, 341, 0, 15, 1, 1, llvm::opt::Option::SeparateClass},
111 {365 /* --linker= */, 0, 0, 10, 1, 5, llvm::opt::Option::JoinedClass},
112 {375 /* --linker */, 384, 0, 0, 3, 5, llvm::opt::Option::SeparateClass},
113 {468 /* --no-garbage-collection */, 492, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
114 {535 /* --no-odr-deduplication */, 558, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
115 {601 /* --no-odr */, 610, 0, 12, 1, 3, llvm::opt::Option::FlagClass},
116 {643 /* --no-separate-debug-file */, 668, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
117 {728 /* --num-threads */, 742, 0, 0, 4, 5, llvm::opt::Option::SeparateClass},
118 {865 /* --odr-deduplication */, 885, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
119 {931 /* --odr */, 937, 0, 16, 1, 3, llvm::opt::Option::FlagClass},
120 {967 /* --separate-debug-file */, 989, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
121 {1063 /* --tombstone= */, 0, 0, 20, 1, 5, llvm::opt::Option::JoinedClass},
122 {1076 /* --tombstone */, 1088, 0, 0, 5, 5, llvm::opt::Option::SeparateClass},
123 {1465 /* --verbose */, 1475, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
124 {1498 /* --verify */, 1507, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
125 {1558 /* --version */, 1568, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
126 {1595 /* -V */, 1598, 0, 23, 1, 1, llvm::opt::Option::FlagClass},
127 };
128
129 return {OptionStrTable, OptionPrefixesTable,
130 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
131}
132#undef OPTTABLE_CODE
133#endif // OPTTABLE_CODE
134
135/////////
136// ValuesCode
137
138#ifdef OPTTABLE_VALUES_CODE
139static llvm::StringRef getOptionValuesCode(unsigned ID) {
140 switch (ID) {
141 }
142 return {};
143}
144#undef OPTTABLE_VALUES_CODE
145#endif // OPTTABLE_VALUES_CODE
146/////////
147// Groups
148
149#ifdef OPTION
150
151//////////
152// Options
153
154OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
155OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
156OPTION(5, 24 /* --build-accelerator= */, anonymous_0, Joined, INVALID, build_accelerator, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
157OPTION(5, 45 /* --build-accelerator */, build_accelerator, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 65, 0, 207, 0, 0)
158OPTION(3, 220 /* --garbage-collection */, garbage_collection, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 241, 0, 0, 0, 0)
159OPTION(3, 287 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 294, 0, 0, 0, 0)
160OPTION(1, 318 /* -h */, h, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 321, 0, 0, 0, 0)
161OPTION(1, 338 /* -j */, anonymous_3, Separate, INVALID, threads, 0, 0, static_cast<unsigned>(DefaultVis), 0, 341, 0, 0, 0, 0)
162OPTION(5, 365 /* --linker= */, anonymous_1, Joined, INVALID, linker, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
163OPTION(5, 375 /* --linker */, linker, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 384, 0, 448, 0, 0)
164OPTION(3, 468 /* --no-garbage-collection */, no_garbage_collection, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 492, 0, 0, 0, 0)
165OPTION(3, 535 /* --no-odr-deduplication */, no_odr_deduplication, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 558, 0, 0, 0, 0)
166OPTION(3, 601 /* --no-odr */, no_odr, Flag, INVALID, no_odr_deduplication, 0, 0, static_cast<unsigned>(DefaultVis), 0, 610, 0, 0, 0, 0)
167OPTION(3, 643 /* --no-separate-debug-file */, no_separate_debug_file, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 668, 0, 0, 0, 0)
168OPTION(5, 728 /* --num-threads */, threads, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 742, 0, 855, 0, 0)
169OPTION(3, 865 /* --odr-deduplication */, odr_deduplication, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 885, 0, 0, 0, 0)
170OPTION(3, 931 /* --odr */, odr, Flag, INVALID, odr_deduplication, 0, 0, static_cast<unsigned>(DefaultVis), 0, 937, 0, 0, 0, 0)
171OPTION(3, 967 /* --separate-debug-file */, separate_debug_file, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 989, 0, 0, 0, 0)
172OPTION(5, 1063 /* --tombstone= */, anonymous_2, Joined, INVALID, tombstone, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
173OPTION(5, 1076 /* --tombstone */, tombstone, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1088, 0, 1438, 0, 0)
174OPTION(3, 1465 /* --verbose */, verbose, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1475, 0, 0, 0, 0)
175OPTION(3, 1498 /* --verify */, verify, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1507, 0, 0, 0, 0)
176OPTION(3, 1558 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1568, 0, 0, 0, 0)
177OPTION(1, 1595 /* -V */, V, Flag, INVALID, version, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1598, 0, 0, 0, 0)
178#endif // OPTION
179
180#ifdef SIMPLE_ENUM_VALUE_TABLE
181
182struct SimpleEnumValue {
183 const char *Name;
184 unsigned Value;
185};
186
187struct SimpleEnumValueTable {
188 const SimpleEnumValue *Table;
189 unsigned Size;
190};
191static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
192static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
193#endif // SIMPLE_ENUM_VALUE_TABLE
194