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 "--dump-tli\0"
25 "Dump TLI's list of functions and whether they are available\0"
26 "--help\0"
27 "Display available options\0"
28 "-h\0"
29 "Alias for --help\0"
30 "--libdir=\0"
31 "Root directory for finding library files\0"
32 "<directory>\0"
33 "--libdir\0"
34 "--report=\0"
35 "Level of detail to report\0"
36 "summary,discrepancy,full\0"
37 "--separate\0"
38 "Report on each library file separately\0"
39 "--triple=\0"
40 "Target triple\0"
41 "<triple>\0"
42 "--triple\0"
43 ;
44#ifdef __GNUC__
45#pragma GCC diagnostic pop
46#endif
47
48static constexpr llvm::StringTable
49OptionStrTable = OptionStrTableStorage;
50#undef OPTTABLE_STR_TABLE_CODE
51#endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE
52
53/////////
54// Tables
55
56#ifdef OPTTABLE_CODE
57static llvm::opt::OptTable::Tables optionTables() {
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},
74 {199, 0, 0, 0, 0},
75 {0, 0, 256, 0, 0},
76 {355, 0, 0, 0, 0},
77 };
78
79 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
80 {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0},
81 {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0},
82 {24 /* --dump-tli */, 35, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
83 {95 /* --help */, 102, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
84 {128 /* -h */, 131, 0, DefaultVis, 1, 0, 4, 0, llvm::opt::Option::FlagClass, 0},
85 {148 /* --libdir= */, 158, 0, DefaultVis, 3, 0, 0, 1, llvm::opt::Option::JoinedClass, 0},
86 {211 /* --libdir */, 0, 0, DefaultVis, 3, 0, 6, 0, llvm::opt::Option::SeparateClass, 0},
87 {220 /* --report= */, 230, 0, DefaultVis, 3, 0, 0, 2, llvm::opt::Option::JoinedClass, 0},
88 {281 /* --separate */, 292, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
89 {331 /* --triple= */, 341, 0, DefaultVis, 3, 0, 0, 3, llvm::opt::Option::JoinedClass, 0},
90 {364 /* --triple */, 0, 0, DefaultVis, 3, 0, 10, 0, llvm::opt::Option::SeparateClass, 0},
91 };
92
93 return {OptionStrTableStorage, 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, DefaultVis, 0, 0, 0, 0, 0, 0)
119OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
120OPTION(3, 24 /* --dump-tli */, dump_tli, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 35, 0, 0, 0, 0)
121OPTION(3, 95 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 102, 0, 0, 0, 0)
122OPTION(1, 128 /* -h */, anonymous_1, Flag, INVALID, help, 0, 0, DefaultVis, 0, 131, 0, 0, 0, 0)
123OPTION(3, 148 /* --libdir= */, libdir_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 158, 0, 199, 0, 0)
124OPTION(3, 211 /* --libdir */, anonymous_2, Separate, INVALID, libdir_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
125OPTION(3, 220 /* --report= */, report_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 230, 0, 0, 256, 0)
126OPTION(3, 281 /* --separate */, separate, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 292, 0, 0, 0, 0)
127OPTION(3, 331 /* --triple= */, triple_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 341, 0, 355, 0, 0)
128OPTION(3, 364 /* --triple */, anonymous_0, Separate, INVALID, triple_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
129#endif // OPTION
130
131#ifdef SIMPLE_ENUM_VALUE_TABLE
132
133struct SimpleEnumValue {
134 const char *Name;
135 unsigned Value;
136};
137
138struct SimpleEnumValueTable {
139 const SimpleEnumValue *Table;
140 unsigned Size;
141};
142static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
143static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
144#endif // SIMPLE_ENUM_VALUE_TABLE
145