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