1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Option Parsing Definitions *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9/////////
10// String table
11
12#if defined(OPTTABLE_STR_TABLE_CODE) || defined(OPTTABLE_CODE)
13
14#ifdef __GNUC__
15#pragma GCC diagnostic push
16#pragma GCC diagnostic ignored "-Woverlength-strings"
17#endif
18static constexpr char OptionStrTableStorage[] =
19 "\0"
20 "-\0"
21 "--\0"
22 "<input>\0"
23 "<unknown>\0"
24 "--help\0"
25 "-h\0"
26 "-o\0"
27 "Write output to <file>\0"
28 "<file>\0"
29 "-r\0"
30 "Remove the __LLVM bitcode segment entirely\0"
31 "--version\0"
32 "Print the version and exit\0"
33 "-V\0"
34 "Alias for --version\0"
35 ;
36#ifdef __GNUC__
37#pragma GCC diagnostic pop
38#endif
39
40static constexpr llvm::StringTable
41OptionStrTable = OptionStrTableStorage;
42#undef OPTTABLE_STR_TABLE_CODE
43#endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE
44
45/////////
46// Tables
47
48#ifdef OPTTABLE_CODE
49static llvm::opt::OptTable::Tables optionTables() {
50 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
51 0 /* prefixes */,
52 1 /* prefixes */, 1 /* '-' */,
53 1 /* prefixes */, 3 /* '--' */
54 };
55
56 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
57 {0, 0},
58 };
59
60 static constexpr unsigned OptionSubCommandIDsTable[] = {
61 0 /* subcommands */
62 };
63
64 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
65 {0, 0, 0, 0, 0},
66 {60, 0, 0, 0, 0},
67 };
68
69 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
70 {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0},
71 {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0},
72 {24 /* --help */, 0, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
73 {31 /* -h */, 0, 0, DefaultVis, 1, 0, 3, 0, llvm::opt::Option::FlagClass, 0},
74 {34 /* -o */, 37, 0, DefaultVis, 1, 0, 0, 1, llvm::opt::Option::JoinedOrSeparateClass, 0},
75 {67 /* -r */, 70, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
76 {113 /* --version */, 123, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
77 {150 /* -V */, 153, 0, DefaultVis, 1, 0, 7, 0, llvm::opt::Option::FlagClass, 0},
78 };
79
80 return {OptionStrTableStorage, OptionPrefixesTable,
81 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
82}
83#undef OPTTABLE_CODE
84#endif // OPTTABLE_CODE
85
86/////////
87// ValuesCode
88
89#ifdef OPTTABLE_VALUES_CODE
90static llvm::StringRef getOptionValuesCode(unsigned ID) {
91 switch (ID) {
92 }
93 return {};
94}
95#undef OPTTABLE_VALUES_CODE
96#endif // OPTTABLE_VALUES_CODE
97/////////
98// Groups
99
100#ifdef OPTION
101
102//////////
103// Options
104
105OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
106OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
107OPTION(3, 24 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
108OPTION(1, 31 /* -h */, h, Flag, INVALID, help, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
109OPTION(1, 34 /* -o */, output, JoinedOrSeparate, INVALID, INVALID, 0, 0, DefaultVis, 0, 37, 0, 60, 0, 0)
110OPTION(1, 67 /* -r */, remove, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 70, 0, 0, 0, 0)
111OPTION(3, 113 /* --version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 123, 0, 0, 0, 0)
112OPTION(1, 150 /* -V */, V, Flag, INVALID, version, 0, 0, DefaultVis, 0, 153, 0, 0, 0, 0)
113#endif // OPTION
114
115#ifdef SIMPLE_ENUM_VALUE_TABLE
116
117struct SimpleEnumValue {
118 const char *Name;
119 unsigned Value;
120};
121
122struct SimpleEnumValueTable {
123 const SimpleEnumValue *Table;
124 unsigned Size;
125};
126static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
127static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
128#endif // SIMPLE_ENUM_VALUE_TABLE
129