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 "--dump-tli\0"
26 "Dump TLI's list of functions and whether they are available\0"
27 "--help\0"
28 "Display available options\0"
29 "-h\0"
30 "Alias for --help\0"
31 "--libdir=\0"
32 "Root directory for finding library files\0"
33 "<directory>\0"
34 "--libdir\0"
35 "--report=\0"
36 "Level of detail to report\0"
37 "summary,discrepancy,full\0"
38 "--separate\0"
39 "Report on each library file separately\0"
40 "--triple=\0"
41 "Target triple\0"
42 "<triple>\0"
43 "--triple\0"
44 ;
45#ifdef __GNUC__
46#pragma GCC diagnostic pop
47#endif
48
49static constexpr llvm::StringTable
50OptionStrTable = OptionStrTableStorage;
51
52 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
53 0 /* prefixes */,
54 1 /* prefixes */, 1 /* '-' */,
55 1 /* prefixes */, 3 /* '--' */
56 };
57
58 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
59 {0, 0},
60 };
61
62 static constexpr unsigned OptionSubCommandIDsTable[] = {
63 0 /* subcommands */
64 };
65
66 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
67 {0, 0, 0, 0, 0, 0, 0, 0},
68 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
69 {199, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
70 {0, 0, 256, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
71 {355, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
72 };
73
74 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
75 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
76 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
77 {24 /* --dump-tli */, 35, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
78 {95 /* --help */, 102, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
79 {128 /* -h */, 131, 0, 4, 1, 1, llvm::opt::Option::FlagClass},
80 {148 /* --libdir= */, 158, 0, 0, 2, 3, llvm::opt::Option::JoinedClass},
81 {211 /* --libdir */, 0, 0, 6, 1, 3, llvm::opt::Option::SeparateClass},
82 {220 /* --report= */, 230, 0, 0, 3, 3, llvm::opt::Option::JoinedClass},
83 {281 /* --separate */, 292, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
84 {331 /* --triple= */, 341, 0, 0, 4, 3, llvm::opt::Option::JoinedClass},
85 {364 /* --triple */, 0, 0, 10, 1, 3, llvm::opt::Option::SeparateClass},
86 };
87
88 return {OptionStrTable, OptionPrefixesTable,
89 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
90}
91#undef OPTTABLE_CODE
92#endif // OPTTABLE_CODE
93
94/////////
95// ValuesCode
96
97#ifdef OPTTABLE_VALUES_CODE
98static llvm::StringRef getOptionValuesCode(unsigned ID) {
99 switch (ID) {
100 }
101 return {};
102}
103#undef OPTTABLE_VALUES_CODE
104#endif // OPTTABLE_VALUES_CODE
105/////////
106// Groups
107
108#ifdef OPTION
109
110//////////
111// Options
112
113OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
114OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
115OPTION(3, 24 /* --dump-tli */, dump_tli, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 35, 0, 0, 0, 0)
116OPTION(3, 95 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 102, 0, 0, 0, 0)
117OPTION(1, 128 /* -h */, anonymous_1, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 131, 0, 0, 0, 0)
118OPTION(3, 148 /* --libdir= */, libdir_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 158, 0, 199, 0, 0)
119OPTION(3, 211 /* --libdir */, anonymous_2, Separate, INVALID, libdir_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
120OPTION(3, 220 /* --report= */, report_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 230, 0, 0, 256, 0)
121OPTION(3, 281 /* --separate */, separate, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 292, 0, 0, 0, 0)
122OPTION(3, 331 /* --triple= */, triple_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 341, 0, 355, 0, 0)
123OPTION(3, 364 /* --triple */, anonymous_0, Separate, INVALID, triple_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
124#endif // OPTION
125
126#ifdef SIMPLE_ENUM_VALUE_TABLE
127
128struct SimpleEnumValue {
129 const char *Name;
130 unsigned Value;
131};
132
133struct SimpleEnumValueTable {
134 const SimpleEnumValue *Table;
135 unsigned Size;
136};
137static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
138static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
139#endif // SIMPLE_ENUM_VALUE_TABLE
140