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 "/?\0"
24 "-?\0"
25 "/??\0"
26 "-??\0"
27 "<input>\0"
28 "<unknown>\0"
29 "/def:\0"
30 "def file to use to generate import library\0"
31 "/defArm64Native:\0"
32 "def file to use to generate native ARM64 symbols in ARM64EC import library\0"
33 "/help\0"
34 "/ignore:\0"
35 "Specify warning codes to ignore\0"
36 "/libpath:\0"
37 "Object file search path\0"
38 "/list\0"
39 "List contents of .lib file on stdout\0"
40 "/llvmlibempty\0"
41 "When given no contents, produce an empty .lib file\0"
42 "/llvmlibindex:no\0"
43 "Do not write an index to the output\0"
44 "/llvmlibindex\0"
45 "Write an index to the output (default)\0"
46 "/llvmlibthin\0"
47 "Make .lib point to .obj files instead of copying their contents\0"
48 "/ltcg\0"
49 "/machine:\0"
50 "Specify target platform\0"
51 "/nodefaultlib:\0"
52 "\0"
53 "\0"
54 "/nodefaultlib\0"
55 "/nologo\0"
56 "/out:\0"
57 "Path to file to write output\0"
58 "/subsystem:\0"
59 "/verbose\0"
60 "/WX:no\0"
61 "Don't treat warnings as errors (default)\0"
62 "/WX\0"
63 "Treat warnings as errors\0"
64 ;
65#ifdef __GNUC__
66#pragma GCC diagnostic pop
67#endif
68
69static constexpr llvm::StringTable
70OptionStrTable = OptionStrTableStorage;
71
72 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
73 0 /* prefixes */,
74 4 /* prefixes */, 1 /* '/' */, 3 /* '-' */, 5 /* '/?' */, 8 /* '-?' */,
75 4 /* prefixes */, 11 /* '/??' */, 15 /* '-??' */, 5 /* '/?' */, 8 /* '-?' */
76 };
77
78 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
79 {0, 0},
80 };
81
82 static constexpr unsigned OptionSubCommandIDsTable[] = {
83 0 /* subcommands */
84 };
85
86 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
87 {0, 0, 0, 0, 0, 0, 0, 0},
88 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
89 };
90
91 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
92 {19 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
93 {27 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
94 {37 /* /def: */, 43, 0, 0, 1, 1, llvm::opt::Option::JoinedClass},
95 {86 /* /defArm64Native: */, 103, 0, 0, 1, 1, llvm::opt::Option::JoinedClass},
96 {178 /* /help */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
97 {184 /* /ignore: */, 193, 0, 0, 1, 1, llvm::opt::Option::JoinedClass},
98 {225 /* /libpath: */, 235, 0, 0, 1, 1, llvm::opt::Option::JoinedClass},
99 {259 /* /list */, 265, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
100 {302 /* /llvmlibempty */, 316, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
101 {367 /* /llvmlibindex:no */, 384, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
102 {420 /* /llvmlibindex */, 434, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
103 {473 /* /llvmlibthin */, 486, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
104 {550 /* /ltcg */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
105 {556 /* /machine: */, 566, 0, 0, 1, 1, llvm::opt::Option::JoinedClass},
106 {590 /* /nodefaultlib: */, 605, 0, 0, 1, 1, llvm::opt::Option::JoinedClass},
107 {607 /* /nodefaultlib */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
108 {621 /* /nologo */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
109 {629 /* /out: */, 635, 0, 0, 1, 1, llvm::opt::Option::JoinedClass},
110 {664 /* /subsystem: */, 605, 0, 0, 1, 1, llvm::opt::Option::JoinedClass},
111 {676 /* /verbose */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
112 {685 /* /WX:no */, 692, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
113 {733 /* /WX */, 737, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
114 {11 /* /?? */, 0, 0, 5, 1, 6, llvm::opt::Option::FlagClass},
115 };
116
117 return {OptionStrTable, OptionPrefixesTable,
118 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
119}
120#undef OPTTABLE_CODE
121#endif // OPTTABLE_CODE
122
123/////////
124// ValuesCode
125
126#ifdef OPTTABLE_VALUES_CODE
127static llvm::StringRef getOptionValuesCode(unsigned ID) {
128 switch (ID) {
129 }
130 return {};
131}
132#undef OPTTABLE_VALUES_CODE
133#endif // OPTTABLE_VALUES_CODE
134/////////
135// Groups
136
137#ifdef OPTION
138
139//////////
140// Options
141
142OPTION(0, 19 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
143OPTION(0, 27 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
144OPTION(1, 37 /* /def: */, deffile, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 43, 0, 0, 0, 0)
145OPTION(1, 86 /* /defArm64Native: */, nativedeffile, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 103, 0, 0, 0, 0)
146OPTION(1, 178 /* /help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
147OPTION(1, 184 /* /ignore: */, ignore, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 193, 0, 0, 0, 0)
148OPTION(1, 225 /* /libpath: */, libpath, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 235, 0, 0, 0, 0)
149OPTION(1, 259 /* /list */, lst, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 265, 0, 0, 0, 0)
150OPTION(1, 302 /* /llvmlibempty */, llvmlibempty, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 316, 0, 0, 0, 0)
151OPTION(1, 367 /* /llvmlibindex:no */, llvmlibindex_no, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 384, 0, 0, 0, 0)
152OPTION(1, 420 /* /llvmlibindex */, llvmlibindex, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 434, 0, 0, 0, 0)
153OPTION(1, 473 /* /llvmlibthin */, llvmlibthin, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 486, 0, 0, 0, 0)
154OPTION(1, 550 /* /ltcg */, ltcg, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
155OPTION(1, 556 /* /machine: */, machine, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 566, 0, 0, 0, 0)
156OPTION(1, 590 /* /nodefaultlib: */, nodefaultlib, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 605, 0, 0, 0, 0)
157OPTION(1, 607 /* /nodefaultlib */, nodefaultlib_all, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
158OPTION(1, 621 /* /nologo */, nologo, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
159OPTION(1, 629 /* /out: */, out, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 635, 0, 0, 0, 0)
160OPTION(1, 664 /* /subsystem: */, subsystem, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 605, 0, 0, 0, 0)
161OPTION(1, 676 /* /verbose */, verbose, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
162OPTION(1, 685 /* /WX:no */, WX_no, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 692, 0, 0, 0, 0)
163OPTION(1, 733 /* /WX */, WX, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 737, 0, 0, 0, 0)
164OPTION(6, 11 /* /?? */, help_q, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
165#endif // OPTION
166
167#ifdef SIMPLE_ENUM_VALUE_TABLE
168
169struct SimpleEnumValue {
170 const char *Name;
171 unsigned Value;
172};
173
174struct SimpleEnumValueTable {
175 const SimpleEnumValue *Table;
176 unsigned Size;
177};
178static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
179static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
180#endif // SIMPLE_ENUM_VALUE_TABLE
181