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 "--all-blocks\0"
26 "Display all basic blocks\0"
27 "-a\0"
28 "Alias for --all-blocks\0"
29 "--branch-counts\0"
30 "Display branch counts instead of percentages (requires -b)\0"
31 "--branch-probabilities\0"
32 "Display branch probabilities\0"
33 "-b\0"
34 "Alias for --branch-probabilities\0"
35 "-c\0"
36 "Alias for --branch-counts\0"
37 "--demangled-names\0"
38 "Demangle function names\0"
39 "--dump\0"
40 "Dump the gcov file to stderr\0"
41 "--function-summaries\0"
42 "Show coverage for each function\0"
43 "-f\0"
44 "Alias for --function-summaries\0"
45 "--gcda=\0"
46 "Override inferred gcda file\0"
47 "<file>\0"
48 "--gcda\0"
49 "--gcno=\0"
50 "Override inferred gcno file\0"
51 "--gcno\0"
52 "--hash-filenames\0"
53 "Hash long pathnames\0"
54 "--help\0"
55 "Display this help\0"
56 "--intermediate-format\0"
57 "Output .gcov in intermediate text format\0"
58 "-i\0"
59 "Alias for --intermediate-format\0"
60 "--long-file-names\0"
61 "Prefix filenames with the main file\0"
62 "-l\0"
63 "Alias for --long-file-names\0"
64 "-m\0"
65 "Alias for --demangled-names\0"
66 "--no-output\0"
67 "Do not output any .gcov files\0"
68 "-n\0"
69 "Alias for --no-output\0"
70 "--object-directory=\0"
71 "Find objects in DIR or based on FILE's path\0"
72 "<DIR>\0"
73 "--object-directory\0"
74 "--object-file=\0"
75 "Alias for --object-directory\0"
76 "<FILE>\0"
77 "--object-file\0"
78 "-o\0"
79 "<DIR|FILE>\0"
80 "--preserve-paths\0"
81 "Preserve path components\0"
82 "-p\0"
83 "Alias for --preserve-paths\0"
84 "--relative-only\0"
85 "Only dump files with relative paths or absolute paths with the prefix specified by -s\0"
86 "-r\0"
87 "Alias for --relative-only\0"
88 "--source-prefix=\0"
89 "Source prefix to elide\0"
90 "<prefix>\0"
91 "--source-prefix\0"
92 "--stdout\0"
93 "Print to stdout\0"
94 "-s\0"
95 "Alias for --source-prefix\0"
96 "-t\0"
97 "Alias for --stdout\0"
98 "--unconditional-branches\0"
99 "Display unconditional branch info (requires -b)\0"
100 "-u\0"
101 "Alias for --unconditional-branches\0"
102 "--version\0"
103 "Display the version\0"
104 "-x\0"
105 "Alias for --hash-filenames\0"
106 ;
107#ifdef __GNUC__
108#pragma GCC diagnostic pop
109#endif
110
111static constexpr llvm::StringTable
112OptionStrTable = OptionStrTableStorage;
113
114 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
115 0 /* prefixes */,
116 1 /* prefixes */, 1 /* '-' */,
117 1 /* prefixes */, 3 /* '--' */
118 };
119
120 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
121 {0, 0},
122 };
123
124 static constexpr unsigned OptionSubCommandIDsTable[] = {
125 0 /* subcommands */
126 };
127
128 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
129 {0, 0, 0, 0, 0, 0, 0, 0},
130 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
131 {481, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
132 {945, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
133 {1014, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
134 {1038, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
135 {1292, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
136 };
137
138 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
139 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
140 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
141 {24 /* --all-blocks */, 37, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
142 {62 /* -a */, 65, 0, 3, 1, 1, llvm::opt::Option::FlagClass},
143 {88 /* --branch-counts */, 104, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
144 {163 /* --branch-probabilities */, 186, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
145 {215 /* -b */, 218, 0, 6, 1, 1, llvm::opt::Option::FlagClass},
146 {251 /* -c */, 254, 0, 5, 1, 1, llvm::opt::Option::FlagClass},
147 {280 /* --demangled-names */, 298, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
148 {322 /* --dump */, 329, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
149 {358 /* --function-summaries */, 379, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
150 {411 /* -f */, 414, 0, 11, 1, 1, llvm::opt::Option::FlagClass},
151 {445 /* --gcda= */, 453, 0, 0, 2, 3, llvm::opt::Option::JoinedClass},
152 {488 /* --gcda */, 0, 0, 13, 2, 3, llvm::opt::Option::SeparateClass},
153 {495 /* --gcno= */, 503, 0, 0, 2, 3, llvm::opt::Option::JoinedClass},
154 {531 /* --gcno */, 0, 0, 15, 2, 3, llvm::opt::Option::SeparateClass},
155 {538 /* --hash-filenames */, 555, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
156 {575 /* --help */, 582, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
157 {600 /* --intermediate-format */, 622, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
158 {663 /* -i */, 666, 0, 19, 1, 1, llvm::opt::Option::FlagClass},
159 {698 /* --long-file-names */, 716, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
160 {752 /* -l */, 755, 0, 21, 1, 1, llvm::opt::Option::FlagClass},
161 {783 /* -m */, 786, 0, 9, 1, 1, llvm::opt::Option::FlagClass},
162 {814 /* --no-output */, 826, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
163 {856 /* -n */, 859, 0, 24, 1, 1, llvm::opt::Option::FlagClass},
164 {881 /* --object-directory= */, 901, 0, 0, 3, 3, llvm::opt::Option::JoinedClass},
165 {951 /* --object-directory */, 0, 0, 26, 3, 3, llvm::opt::Option::SeparateClass},
166 {970 /* --object-file= */, 985, 0, 26, 4, 3, llvm::opt::Option::JoinedClass},
167 {1021 /* --object-file */, 0, 0, 26, 1, 3, llvm::opt::Option::SeparateClass},
168 {1035 /* -o */, 985, 0, 26, 5, 1, llvm::opt::Option::JoinedOrSeparateClass},
169 {1049 /* --preserve-paths */, 1066, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
170 {1091 /* -p */, 1094, 0, 31, 1, 1, llvm::opt::Option::FlagClass},
171 {1121 /* --relative-only */, 1137, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
172 {1223 /* -r */, 1226, 0, 33, 1, 1, llvm::opt::Option::FlagClass},
173 {1252 /* --source-prefix= */, 1269, 0, 0, 6, 3, llvm::opt::Option::JoinedClass},
174 {1301 /* --source-prefix */, 0, 0, 35, 6, 3, llvm::opt::Option::SeparateClass},
175 {1317 /* --stdout */, 1326, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
176 {1342 /* -s */, 1345, 0, 35, 6, 1, llvm::opt::Option::JoinedOrSeparateClass},
177 {1371 /* -t */, 1374, 0, 37, 1, 1, llvm::opt::Option::FlagClass},
178 {1393 /* --unconditional-branches */, 1418, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
179 {1466 /* -u */, 1469, 0, 40, 1, 1, llvm::opt::Option::FlagClass},
180 {1504 /* --version */, 1514, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
181 {1534 /* -x */, 1537, 0, 17, 1, 1, llvm::opt::Option::FlagClass},
182 };
183
184 return {OptionStrTable, OptionPrefixesTable,
185 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
186}
187#undef OPTTABLE_CODE
188#endif // OPTTABLE_CODE
189
190/////////
191// ValuesCode
192
193#ifdef OPTTABLE_VALUES_CODE
194static llvm::StringRef getOptionValuesCode(unsigned ID) {
195 switch (ID) {
196 }
197 return {};
198}
199#undef OPTTABLE_VALUES_CODE
200#endif // OPTTABLE_VALUES_CODE
201/////////
202// Groups
203
204#ifdef OPTION
205
206//////////
207// Options
208
209OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
210OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
211OPTION(3, 24 /* --all-blocks */, all_blocks, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 37, 0, 0, 0, 0)
212OPTION(1, 62 /* -a */, anonymous_6, Flag, INVALID, all_blocks, 0, 0, static_cast<unsigned>(DefaultVis), 0, 65, 0, 0, 0, 0)
213OPTION(3, 88 /* --branch-counts */, branch_counts, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 104, 0, 0, 0, 0)
214OPTION(3, 163 /* --branch-probabilities */, branch_probabilities, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 186, 0, 0, 0, 0)
215OPTION(1, 215 /* -b */, anonymous_7, Flag, INVALID, branch_probabilities, 0, 0, static_cast<unsigned>(DefaultVis), 0, 218, 0, 0, 0, 0)
216OPTION(1, 251 /* -c */, anonymous_8, Flag, INVALID, branch_counts, 0, 0, static_cast<unsigned>(DefaultVis), 0, 254, 0, 0, 0, 0)
217OPTION(3, 280 /* --demangled-names */, demangled_names, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 298, 0, 0, 0, 0)
218OPTION(3, 322 /* --dump */, dump_gcov, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 329, 0, 0, 0, 0)
219OPTION(3, 358 /* --function-summaries */, function_summaries, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 379, 0, 0, 0, 0)
220OPTION(1, 411 /* -f */, anonymous_9, Flag, INVALID, function_summaries, 0, 0, static_cast<unsigned>(DefaultVis), 0, 414, 0, 0, 0, 0)
221OPTION(3, 445 /* --gcda= */, gcda_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 453, 0, 481, 0, 0)
222OPTION(3, 488 /* --gcda */, anonymous_0, Separate, INVALID, gcda_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 481, 0, 0)
223OPTION(3, 495 /* --gcno= */, gcno_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 503, 0, 481, 0, 0)
224OPTION(3, 531 /* --gcno */, anonymous_1, Separate, INVALID, gcno_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 481, 0, 0)
225OPTION(3, 538 /* --hash-filenames */, hash_filenames, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 555, 0, 0, 0, 0)
226OPTION(3, 575 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 582, 0, 0, 0, 0)
227OPTION(3, 600 /* --intermediate-format */, intermediate_format, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 622, 0, 0, 0, 0)
228OPTION(1, 663 /* -i */, anonymous_10, Flag, INVALID, intermediate_format, 0, 0, static_cast<unsigned>(DefaultVis), 0, 666, 0, 0, 0, 0)
229OPTION(3, 698 /* --long-file-names */, long_file_names, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 716, 0, 0, 0, 0)
230OPTION(1, 752 /* -l */, anonymous_11, Flag, INVALID, long_file_names, 0, 0, static_cast<unsigned>(DefaultVis), 0, 755, 0, 0, 0, 0)
231OPTION(1, 783 /* -m */, anonymous_12, Flag, INVALID, demangled_names, 0, 0, static_cast<unsigned>(DefaultVis), 0, 786, 0, 0, 0, 0)
232OPTION(3, 814 /* --no-output */, no_output, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 826, 0, 0, 0, 0)
233OPTION(1, 856 /* -n */, anonymous_13, Flag, INVALID, no_output, 0, 0, static_cast<unsigned>(DefaultVis), 0, 859, 0, 0, 0, 0)
234OPTION(3, 881 /* --object-directory= */, object_directory_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 901, 0, 945, 0, 0)
235OPTION(3, 951 /* --object-directory */, anonymous_2, Separate, INVALID, object_directory_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 945, 0, 0)
236OPTION(3, 970 /* --object-file= */, anonymous_3, Joined, INVALID, object_directory_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 985, 0, 1014, 0, 0)
237OPTION(3, 1021 /* --object-file */, anonymous_4, Separate, INVALID, object_directory_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
238OPTION(1, 1035 /* -o */, anonymous_14, JoinedOrSeparate, INVALID, object_directory_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 985, 0, 1038, 0, 0)
239OPTION(3, 1049 /* --preserve-paths */, preserve_paths, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1066, 0, 0, 0, 0)
240OPTION(1, 1091 /* -p */, anonymous_15, Flag, INVALID, preserve_paths, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1094, 0, 0, 0, 0)
241OPTION(3, 1121 /* --relative-only */, relative_only, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1137, 0, 0, 0, 0)
242OPTION(1, 1223 /* -r */, anonymous_16, Flag, INVALID, relative_only, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1226, 0, 0, 0, 0)
243OPTION(3, 1252 /* --source-prefix= */, source_prefix_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1269, 0, 1292, 0, 0)
244OPTION(3, 1301 /* --source-prefix */, anonymous_5, Separate, INVALID, source_prefix_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 1292, 0, 0)
245OPTION(3, 1317 /* --stdout */, print_stdout, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1326, 0, 0, 0, 0)
246OPTION(1, 1342 /* -s */, anonymous_17, JoinedOrSeparate, INVALID, source_prefix_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1345, 0, 1292, 0, 0)
247OPTION(1, 1371 /* -t */, anonymous_18, Flag, INVALID, print_stdout, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1374, 0, 0, 0, 0)
248OPTION(3, 1393 /* --unconditional-branches */, unconditional_branches, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1418, 0, 0, 0, 0)
249OPTION(1, 1466 /* -u */, anonymous_19, Flag, INVALID, unconditional_branches, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1469, 0, 0, 0, 0)
250OPTION(3, 1504 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1514, 0, 0, 0, 0)
251OPTION(1, 1534 /* -x */, anonymous_20, Flag, INVALID, hash_filenames, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1537, 0, 0, 0, 0)
252#endif // OPTION
253
254#ifdef SIMPLE_ENUM_VALUE_TABLE
255
256struct SimpleEnumValue {
257 const char *Name;
258 unsigned Value;
259};
260
261struct SimpleEnumValueTable {
262 const SimpleEnumValue *Table;
263 unsigned Size;
264};
265static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
266static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
267#endif // SIMPLE_ENUM_VALUE_TABLE
268