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\0"
26 "Silently ignored. Present for GNU strings compatibility\0"
27 "-a\0"
28 "Alias for --all\0"
29 "--bytes=\0"
30 "Print sequences of the specified length\0"
31 "--bytes\0"
32 "-f\0"
33 "Alias for --print-file-name\0"
34 "--help\0"
35 "Display this help\0"
36 "-h\0"
37 "Alias for --help\0"
38 "-n\0"
39 "Alias for --bytes\0"
40 "--print-file-name\0"
41 "Print the name of the file before each string\0"
42 "--radix=\0"
43 "Print the offset within the file with the specified radix: o (octal), d (decimal), x (hexadecimal)\0"
44 "<radix>\0"
45 "--radix\0"
46 "-t\0"
47 "Alias for --radix\0"
48 "--version\0"
49 "Display the version\0"
50 ;
51#ifdef __GNUC__
52#pragma GCC diagnostic pop
53#endif
54
55static constexpr llvm::StringTable
56OptionStrTable = OptionStrTableStorage;
57
58 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
59 0 /* prefixes */,
60 1 /* prefixes */, 1 /* '-' */,
61 1 /* prefixes */, 3 /* '--' */
62 };
63
64 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
65 {0, 0},
66 };
67
68 static constexpr unsigned OptionSubCommandIDsTable[] = {
69 0 /* subcommands */
70 };
71
72 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
73 {0, 0, 0, 0, 0, 0, 0, 0},
74 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
75 {431, 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 /* --all */, 30, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
82 {86 /* -a */, 89, 0, 3, 1, 1, llvm::opt::Option::FlagClass},
83 {105 /* --bytes= */, 114, 0, 0, 1, 3, llvm::opt::Option::JoinedClass},
84 {154 /* --bytes */, 0, 0, 5, 1, 3, llvm::opt::Option::SeparateClass},
85 {162 /* -f */, 165, 0, 11, 1, 1, llvm::opt::Option::FlagClass},
86 {193 /* --help */, 200, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
87 {218 /* -h */, 221, 0, 8, 1, 1, llvm::opt::Option::FlagClass},
88 {238 /* -n */, 241, 0, 5, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
89 {259 /* --print-file-name */, 277, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
90 {323 /* --radix= */, 332, 0, 0, 2, 3, llvm::opt::Option::JoinedClass},
91 {439 /* --radix */, 0, 0, 12, 2, 3, llvm::opt::Option::SeparateClass},
92 {447 /* -t */, 450, 0, 12, 2, 1, llvm::opt::Option::JoinedOrSeparateClass},
93 {468 /* --version */, 478, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
94 };
95
96 return {OptionStrTable, OptionPrefixesTable,
97 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
98}
99#undef OPTTABLE_CODE
100#endif // OPTTABLE_CODE
101
102/////////
103// ValuesCode
104
105#ifdef OPTTABLE_VALUES_CODE
106static llvm::StringRef getOptionValuesCode(unsigned ID) {
107 switch (ID) {
108 }
109 return {};
110}
111#undef OPTTABLE_VALUES_CODE
112#endif // OPTTABLE_VALUES_CODE
113/////////
114// Groups
115
116#ifdef OPTION
117
118//////////
119// Options
120
121OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
122OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
123OPTION(3, 24 /* --all */, all, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 30, 0, 0, 0, 0)
124OPTION(1, 86 /* -a */, anonymous_2, Flag, INVALID, all, 0, 0, static_cast<unsigned>(DefaultVis), 0, 89, 0, 0, 0, 0)
125OPTION(3, 105 /* --bytes= */, bytes_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 114, 0, 0, 0, 0)
126OPTION(3, 154 /* --bytes */, anonymous_0, Separate, INVALID, bytes_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
127OPTION(1, 162 /* -f */, anonymous_3, Flag, INVALID, print_file_name, 0, 0, static_cast<unsigned>(DefaultVis), 0, 165, 0, 0, 0, 0)
128OPTION(3, 193 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 200, 0, 0, 0, 0)
129OPTION(1, 218 /* -h */, anonymous_4, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 221, 0, 0, 0, 0)
130OPTION(1, 238 /* -n */, anonymous_5, JoinedOrSeparate, INVALID, bytes_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 241, 0, 0, 0, 0)
131OPTION(3, 259 /* --print-file-name */, print_file_name, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 277, 0, 0, 0, 0)
132OPTION(3, 323 /* --radix= */, radix_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 332, 0, 431, 0, 0)
133OPTION(3, 439 /* --radix */, anonymous_1, Separate, INVALID, radix_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 431, 0, 0)
134OPTION(1, 447 /* -t */, anonymous_6, JoinedOrSeparate, INVALID, radix_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 450, 0, 431, 0, 0)
135OPTION(3, 468 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 478, 0, 0, 0, 0)
136#endif // OPTION
137
138#ifdef SIMPLE_ENUM_VALUE_TABLE
139
140struct SimpleEnumValue {
141 const char *Name;
142 unsigned Value;
143};
144
145struct SimpleEnumValueTable {
146 const SimpleEnumValue *Table;
147 unsigned Size;
148};
149static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
150static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
151#endif // SIMPLE_ENUM_VALUE_TABLE
152