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 "--docnum=\0"
26 "Read the specified document from the input (default = 1)\0"
27 "<n>\0"
28 "--docnum\0"
29 "-D\0"
30 "Define the specified macro to the specified definition\0"
31 "<macro>=<definition>\0"
32 "-E\0"
33 "Just print the preprocessed file\0"
34 "--help\0"
35 "Display this help\0"
36 "-h\0"
37 "Alias for --help\0"
38 "--max-size=\0"
39 "Set the maximum allowed output size (0 means no limit) [ELF and COFF only]\0"
40 "<bytes>\0"
41 "--max-size\0"
42 "-o\0"
43 "Output filename\0"
44 "<filename>\0"
45 "--version\0"
46 "Display the version\0"
47 ;
48#ifdef __GNUC__
49#pragma GCC diagnostic pop
50#endif
51
52static constexpr llvm::StringTable
53OptionStrTable = OptionStrTableStorage;
54
55 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
56 0 /* prefixes */,
57 1 /* prefixes */, 1 /* '-' */,
58 1 /* prefixes */, 3 /* '--' */
59 };
60
61 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
62 {0, 0},
63 };
64
65 static constexpr unsigned OptionSubCommandIDsTable[] = {
66 0 /* subcommands */
67 };
68
69 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
70 {0, 0, 0, 0, 0, 0, 0, 0},
71 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
72 {91, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
73 {162, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
74 {351, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
75 {389, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
76 };
77
78 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
79 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
80 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
81 {24 /* --docnum= */, 34, 0, 0, 2, 3, llvm::opt::Option::JoinedClass},
82 {95 /* --docnum */, 0, 0, 3, 2, 3, llvm::opt::Option::SeparateClass},
83 {104 /* -D */, 107, 0, 0, 3, 1, llvm::opt::Option::JoinedOrSeparateClass},
84 {183 /* -E */, 186, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
85 {219 /* --help */, 226, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
86 {244 /* -h */, 247, 0, 7, 1, 1, llvm::opt::Option::FlagClass},
87 {264 /* --max-size= */, 276, 0, 0, 4, 3, llvm::opt::Option::JoinedClass},
88 {359 /* --max-size */, 0, 0, 9, 4, 3, llvm::opt::Option::SeparateClass},
89 {370 /* -o */, 373, 0, 0, 5, 1, llvm::opt::Option::JoinedOrSeparateClass},
90 {400 /* --version */, 410, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
91 };
92
93 return {OptionStrTable, OptionPrefixesTable,
94 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
95}
96#undef OPTTABLE_CODE
97#endif // OPTTABLE_CODE
98
99/////////
100// ValuesCode
101
102#ifdef OPTTABLE_VALUES_CODE
103static llvm::StringRef getOptionValuesCode(unsigned ID) {
104 switch (ID) {
105 }
106 return {};
107}
108#undef OPTTABLE_VALUES_CODE
109#endif // OPTTABLE_VALUES_CODE
110/////////
111// Groups
112
113#ifdef OPTION
114
115//////////
116// Options
117
118OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
119OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
120OPTION(3, 24 /* --docnum= */, docnum_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 34, 0, 91, 0, 0)
121OPTION(3, 95 /* --docnum */, anonymous_0, Separate, INVALID, docnum_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 91, 0, 0)
122OPTION(1, 104 /* -D */, D, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 107, 0, 162, 0, 0)
123OPTION(1, 183 /* -E */, E, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 186, 0, 0, 0, 0)
124OPTION(3, 219 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 226, 0, 0, 0, 0)
125OPTION(1, 244 /* -h */, anonymous_1, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 247, 0, 0, 0, 0)
126OPTION(3, 264 /* --max-size= */, max_size_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 276, 0, 351, 0, 0)
127OPTION(3, 359 /* --max-size */, anonymous_2, Separate, INVALID, max_size_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 351, 0, 0)
128OPTION(1, 370 /* -o */, o, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 373, 0, 389, 0, 0)
129OPTION(3, 400 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 410, 0, 0, 0, 0)
130#endif // OPTION
131
132#ifdef SIMPLE_ENUM_VALUE_TABLE
133
134struct SimpleEnumValue {
135 const char *Name;
136 unsigned Value;
137};
138
139struct SimpleEnumValueTable {
140 const SimpleEnumValue *Table;
141 unsigned Size;
142};
143static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
144static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
145#endif // SIMPLE_ENUM_VALUE_TABLE
146