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 "Action\0"
24 "Action (required)\0"
25 "Genric Options\0"
26 "Generic Options\0"
27 "<input>\0"
28 "<unknown>\0"
29 "--cgdata-version\0"
30 "Display the cgdata version\0"
31 "--convert\0"
32 "Convert the (indexed) codegen data file in either text or binary format.\0"
33 "-c\0"
34 "Alias for --convert\0"
35 "--format\0"
36 "Specify the output format (text or binary)\0"
37 "<value>\0"
38 "-f\0"
39 "Alias for --format\0"
40 "--help\0"
41 "Display this help\0"
42 "-h\0"
43 "Alias for --help\0"
44 "-indexed-codegen-data-lazy-loading\0"
45 "Lazily load indexed CodeGenData for testing purpose.\0"
46 "--merge\0"
47 "Take binary files having raw codegen data in custom sections, and merge them into an indexed codegen data file.\0"
48 "-m\0"
49 "Alias for --merge\0"
50 "--output\0"
51 "Specify the name for the output file to be created\0"
52 "<file>\0"
53 "-o\0"
54 "Alias for --output\0"
55 "--show\0"
56 "Show summary of the (indexed) codegen data file.\0"
57 "--skip-trim\0"
58 "Skip trimming content when merging the cgdata\0"
59 "-s\0"
60 "Alias for --show\0"
61 "--version\0"
62 "Display the LLVM version\0"
63 "-v\0"
64 "Alias for --version\0"
65 ;
66#ifdef __GNUC__
67#pragma GCC diagnostic pop
68#endif
69
70static constexpr llvm::StringTable
71OptionStrTable = OptionStrTableStorage;
72
73 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
74 0 /* prefixes */,
75 1 /* prefixes */, 1 /* '-' */,
76 1 /* prefixes */, 3 /* '--' */
77 };
78
79 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
80 {0, 0},
81 };
82
83 static constexpr unsigned OptionSubCommandIDsTable[] = {
84 0 /* subcommands */
85 };
86
87 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
88 {0, 0, 0, 0, 0, 0, 0, 0},
89 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
90 {282, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
91 {0, 0, 0, static_cast<unsigned>(HelpHidden), static_cast<unsigned>(DefaultVis), 0, 0, 0},
92 {646, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
93 };
94
95 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
96 {6 /* Action */, 13, 0, 0, 0, 0, llvm::opt::Option::GroupClass},
97 {31 /* Genric Options */, 46, 0, 0, 0, 0, llvm::opt::Option::GroupClass},
98 {62 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
99 {70 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
100 {80 /* --cgdata-version */, 97, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
101 {124 /* --convert */, 134, 1, 0, 1, 3, llvm::opt::Option::FlagClass},
102 {207 /* -c */, 210, 1, 6, 1, 1, llvm::opt::Option::FlagClass},
103 {230 /* --format */, 239, 0, 0, 2, 3, llvm::opt::Option::SeparateClass},
104 {290 /* -f */, 293, 0, 8, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
105 {312 /* --help */, 319, 2, 0, 1, 3, llvm::opt::Option::FlagClass},
106 {337 /* -h */, 340, 2, 10, 1, 1, llvm::opt::Option::FlagClass},
107 {357 /* -indexed-codegen-data-lazy-loading */, 392, 0, 0, 3, 1, llvm::opt::Option::FlagClass},
108 {445 /* --merge */, 453, 1, 0, 1, 3, llvm::opt::Option::FlagClass},
109 {565 /* -m */, 568, 1, 13, 1, 1, llvm::opt::Option::FlagClass},
110 {586 /* --output */, 595, 0, 0, 4, 3, llvm::opt::Option::SeparateClass},
111 {653 /* -o */, 656, 0, 15, 4, 1, llvm::opt::Option::JoinedOrSeparateClass},
112 {675 /* --show */, 682, 1, 0, 1, 3, llvm::opt::Option::FlagClass},
113 {731 /* --skip-trim */, 743, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
114 {789 /* -s */, 792, 1, 17, 1, 1, llvm::opt::Option::FlagClass},
115 {809 /* --version */, 819, 2, 0, 1, 3, llvm::opt::Option::FlagClass},
116 {844 /* -v */, 847, 2, 20, 1, 1, llvm::opt::Option::FlagClass},
117 };
118
119 return {OptionStrTable, OptionPrefixesTable,
120 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
121}
122#undef OPTTABLE_CODE
123#endif // OPTTABLE_CODE
124
125/////////
126// ValuesCode
127
128#ifdef OPTTABLE_VALUES_CODE
129static llvm::StringRef getOptionValuesCode(unsigned ID) {
130 switch (ID) {
131 }
132 return {};
133}
134#undef OPTTABLE_VALUES_CODE
135#endif // OPTTABLE_VALUES_CODE
136/////////
137// Groups
138
139#ifdef OPTION
140OPTION(0 /* no prefixes */, 6 /* Action */, action_group, Group, INVALID, INVALID, 0, 0, 0, 0, 13, 0, 0, 0, 0)
141OPTION(0 /* no prefixes */, 31 /* Genric Options */, generic_group, Group, INVALID, INVALID, 0, 0, 0, 0, 46, 0, 0, 0, 0)
142
143//////////
144// Options
145
146OPTION(0, 62 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
147OPTION(0, 70 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
148OPTION(3, 80 /* --cgdata-version */, cgdata_version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 97, 0, 0, 0, 0)
149OPTION(3, 124 /* --convert */, convert, Flag, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 134, 0, 0, 0, 0)
150OPTION(1, 207 /* -c */, anonymous_3, Flag, action_group, convert, 0, 0, static_cast<unsigned>(DefaultVis), 0, 210, 0, 0, 0, 0)
151OPTION(3, 230 /* --format */, format, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 239, 0, 282, 0, 0)
152OPTION(1, 290 /* -f */, anonymous_6, JoinedOrSeparate, INVALID, format, 0, 0, static_cast<unsigned>(DefaultVis), 0, 293, 0, 0, 0, 0)
153OPTION(3, 312 /* --help */, help, Flag, generic_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 319, 0, 0, 0, 0)
154OPTION(1, 337 /* -h */, anonymous_0, Flag, generic_group, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 340, 0, 0, 0, 0)
155OPTION(1, 357 /* -indexed-codegen-data-lazy-loading */, indexed_codegen_data_lazy_loading, Flag, INVALID, INVALID, 0, static_cast<unsigned>(HelpHidden), static_cast<unsigned>(DefaultVis), 0, 392, 0, 0, 0, 0)
156OPTION(3, 445 /* --merge */, merge, Flag, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 453, 0, 0, 0, 0)
157OPTION(1, 565 /* -m */, anonymous_4, Flag, action_group, merge, 0, 0, static_cast<unsigned>(DefaultVis), 0, 568, 0, 0, 0, 0)
158OPTION(3, 586 /* --output */, output, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 595, 0, 646, 0, 0)
159OPTION(1, 653 /* -o */, anonymous_5, JoinedOrSeparate, INVALID, output, 0, 0, static_cast<unsigned>(DefaultVis), 0, 656, 0, 646, 0, 0)
160OPTION(3, 675 /* --show */, show, Flag, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 682, 0, 0, 0, 0)
161OPTION(3, 731 /* --skip-trim */, skip_trim, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 743, 0, 0, 0, 0)
162OPTION(1, 789 /* -s */, anonymous_2, Flag, action_group, show, 0, 0, static_cast<unsigned>(DefaultVis), 0, 792, 0, 0, 0, 0)
163OPTION(3, 809 /* --version */, version, Flag, generic_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 819, 0, 0, 0, 0)
164OPTION(1, 844 /* -v */, anonymous_1, Flag, generic_group, version, 0, 0, static_cast<unsigned>(DefaultVis), 0, 847, 0, 0, 0, 0)
165#endif // OPTION
166
167#ifdef SIMPLE_ENUM_VALUE_TABLE
168
169struct SimpleEnumValue {
170 const char *Name;
171 unsigned Value;
172};
173
174struct SimpleEnumValueTable {
175 const SimpleEnumValue *Table;
176 unsigned Size;
177};
178static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
179static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
180#endif // SIMPLE_ENUM_VALUE_TABLE
181