| 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 |
| 18 | static constexpr char OptionStrTableStorage[] = |
| 19 | "\0" |
| 20 | "-\0" |
| 21 | "--\0" |
| 22 | "Action\0" |
| 23 | "Action (required)\0" |
| 24 | "Genric Options\0" |
| 25 | "Generic Options\0" |
| 26 | "<input>\0" |
| 27 | "<unknown>\0" |
| 28 | "--cgdata-version\0" |
| 29 | "Display the cgdata version\0" |
| 30 | "--convert\0" |
| 31 | "Convert the (indexed) codegen data file in either text or binary format.\0" |
| 32 | "-c\0" |
| 33 | "Alias for --convert\0" |
| 34 | "--format\0" |
| 35 | "Specify the output format (text or binary)\0" |
| 36 | "<value>\0" |
| 37 | "-f\0" |
| 38 | "Alias for --format\0" |
| 39 | "--help\0" |
| 40 | "Display this help\0" |
| 41 | "-h\0" |
| 42 | "Alias for --help\0" |
| 43 | "-indexed-codegen-data-lazy-loading\0" |
| 44 | "Lazily load indexed CodeGenData for testing purpose.\0" |
| 45 | "--merge\0" |
| 46 | "Take binary files having raw codegen data in custom sections, and merge them into an indexed codegen data file.\0" |
| 47 | "-m\0" |
| 48 | "Alias for --merge\0" |
| 49 | "--output\0" |
| 50 | "Specify the name for the output file to be created\0" |
| 51 | "<file>\0" |
| 52 | "-o\0" |
| 53 | "Alias for --output\0" |
| 54 | "--show\0" |
| 55 | "Show summary of the (indexed) codegen data file.\0" |
| 56 | "--skip-trim\0" |
| 57 | "Skip trimming content when merging the cgdata\0" |
| 58 | "-s\0" |
| 59 | "Alias for --show\0" |
| 60 | "--version\0" |
| 61 | "Display the LLVM version\0" |
| 62 | "-v\0" |
| 63 | "Alias for --version\0" |
| 64 | ; |
| 65 | #ifdef __GNUC__ |
| 66 | #pragma GCC diagnostic pop |
| 67 | #endif |
| 68 | |
| 69 | static constexpr llvm::StringTable |
| 70 | OptionStrTable = OptionStrTableStorage; |
| 71 | #undef OPTTABLE_STR_TABLE_CODE |
| 72 | #endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE |
| 73 | |
| 74 | ///////// |
| 75 | // Tables |
| 76 | |
| 77 | #ifdef OPTTABLE_CODE |
| 78 | static llvm::opt::OptTable::Tables optionTables() { |
| 79 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 80 | 0 /* prefixes */, |
| 81 | 1 /* prefixes */, 1 /* '-' */, |
| 82 | 1 /* prefixes */, 3 /* '--' */ |
| 83 | }; |
| 84 | |
| 85 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 86 | {0, 0}, |
| 87 | }; |
| 88 | |
| 89 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 90 | 0 /* subcommands */ |
| 91 | }; |
| 92 | |
| 93 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 94 | {0, 0, 0, 0, 0}, |
| 95 | {282, 0, 0, 0, 0}, |
| 96 | {646, 0, 0, 0, 0}, |
| 97 | }; |
| 98 | |
| 99 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 100 | {6 /* Action */, 13, 0, 0, 0, 0, 0, 0, llvm::opt::Option::GroupClass, 0}, |
| 101 | {31 /* Genric Options */, 46, 0, 0, 0, 0, 0, 0, llvm::opt::Option::GroupClass, 0}, |
| 102 | {62 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0}, |
| 103 | {70 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0}, |
| 104 | {80 /* --cgdata-version */, 97, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 105 | {124 /* --convert */, 134, 0, DefaultVis, 3, 1, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 106 | {207 /* -c */, 210, 0, DefaultVis, 1, 1, 6, 0, llvm::opt::Option::FlagClass, 0}, |
| 107 | {230 /* --format */, 239, 0, DefaultVis, 3, 0, 0, 1, llvm::opt::Option::SeparateClass, 0}, |
| 108 | {290 /* -f */, 293, 0, DefaultVis, 1, 0, 8, 0, llvm::opt::Option::JoinedOrSeparateClass, 0}, |
| 109 | {312 /* --help */, 319, 0, DefaultVis, 3, 2, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 110 | {337 /* -h */, 340, 0, DefaultVis, 1, 2, 10, 0, llvm::opt::Option::FlagClass, 0}, |
| 111 | {357 /* -indexed-codegen-data-lazy-loading */, 392, HelpHidden, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 112 | {445 /* --merge */, 453, 0, DefaultVis, 3, 1, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 113 | {565 /* -m */, 568, 0, DefaultVis, 1, 1, 13, 0, llvm::opt::Option::FlagClass, 0}, |
| 114 | {586 /* --output */, 595, 0, DefaultVis, 3, 0, 0, 2, llvm::opt::Option::SeparateClass, 0}, |
| 115 | {653 /* -o */, 656, 0, DefaultVis, 1, 0, 15, 2, llvm::opt::Option::JoinedOrSeparateClass, 0}, |
| 116 | {675 /* --show */, 682, 0, DefaultVis, 3, 1, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 117 | {731 /* --skip-trim */, 743, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 118 | {789 /* -s */, 792, 0, DefaultVis, 1, 1, 17, 0, llvm::opt::Option::FlagClass, 0}, |
| 119 | {809 /* --version */, 819, 0, DefaultVis, 3, 2, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 120 | {844 /* -v */, 847, 0, DefaultVis, 1, 2, 20, 0, llvm::opt::Option::FlagClass, 0}, |
| 121 | }; |
| 122 | |
| 123 | return {OptionStrTableStorage, OptionPrefixesTable, |
| 124 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 125 | } |
| 126 | #undef OPTTABLE_CODE |
| 127 | #endif // OPTTABLE_CODE |
| 128 | |
| 129 | ///////// |
| 130 | // ValuesCode |
| 131 | |
| 132 | #ifdef OPTTABLE_VALUES_CODE |
| 133 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 134 | switch (ID) { |
| 135 | } |
| 136 | return {}; |
| 137 | } |
| 138 | #undef OPTTABLE_VALUES_CODE |
| 139 | #endif // OPTTABLE_VALUES_CODE |
| 140 | ///////// |
| 141 | // Groups |
| 142 | |
| 143 | #ifdef OPTION |
| 144 | OPTION(0 /* no prefixes */, 6 /* Action */, action_group, Group, INVALID, INVALID, 0, 0, 0, 0, 13, 0, 0, 0, 0) |
| 145 | OPTION(0 /* no prefixes */, 31 /* Genric Options */, generic_group, Group, INVALID, INVALID, 0, 0, 0, 0, 46, 0, 0, 0, 0) |
| 146 | |
| 147 | ////////// |
| 148 | // Options |
| 149 | |
| 150 | OPTION(0, 62 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 151 | OPTION(0, 70 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 152 | OPTION(3, 80 /* --cgdata-version */, cgdata_version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 97, 0, 0, 0, 0) |
| 153 | OPTION(3, 124 /* --convert */, convert, Flag, action_group, INVALID, 0, 0, DefaultVis, 0, 134, 0, 0, 0, 0) |
| 154 | OPTION(1, 207 /* -c */, anonymous_3, Flag, action_group, convert, 0, 0, DefaultVis, 0, 210, 0, 0, 0, 0) |
| 155 | OPTION(3, 230 /* --format */, format, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 239, 0, 282, 0, 0) |
| 156 | OPTION(1, 290 /* -f */, anonymous_6, JoinedOrSeparate, INVALID, format, 0, 0, DefaultVis, 0, 293, 0, 0, 0, 0) |
| 157 | OPTION(3, 312 /* --help */, help, Flag, generic_group, INVALID, 0, 0, DefaultVis, 0, 319, 0, 0, 0, 0) |
| 158 | OPTION(1, 337 /* -h */, anonymous_0, Flag, generic_group, help, 0, 0, DefaultVis, 0, 340, 0, 0, 0, 0) |
| 159 | OPTION(1, 357 /* -indexed-codegen-data-lazy-loading */, indexed_codegen_data_lazy_loading, Flag, INVALID, INVALID, 0, HelpHidden, DefaultVis, 0, 392, 0, 0, 0, 0) |
| 160 | OPTION(3, 445 /* --merge */, merge, Flag, action_group, INVALID, 0, 0, DefaultVis, 0, 453, 0, 0, 0, 0) |
| 161 | OPTION(1, 565 /* -m */, anonymous_4, Flag, action_group, merge, 0, 0, DefaultVis, 0, 568, 0, 0, 0, 0) |
| 162 | OPTION(3, 586 /* --output */, output, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 595, 0, 646, 0, 0) |
| 163 | OPTION(1, 653 /* -o */, anonymous_5, JoinedOrSeparate, INVALID, output, 0, 0, DefaultVis, 0, 656, 0, 646, 0, 0) |
| 164 | OPTION(3, 675 /* --show */, show, Flag, action_group, INVALID, 0, 0, DefaultVis, 0, 682, 0, 0, 0, 0) |
| 165 | OPTION(3, 731 /* --skip-trim */, skip_trim, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 743, 0, 0, 0, 0) |
| 166 | OPTION(1, 789 /* -s */, anonymous_2, Flag, action_group, show, 0, 0, DefaultVis, 0, 792, 0, 0, 0, 0) |
| 167 | OPTION(3, 809 /* --version */, version, Flag, generic_group, INVALID, 0, 0, DefaultVis, 0, 819, 0, 0, 0, 0) |
| 168 | OPTION(1, 844 /* -v */, anonymous_1, Flag, generic_group, version, 0, 0, DefaultVis, 0, 847, 0, 0, 0, 0) |
| 169 | #endif // OPTION |
| 170 | |
| 171 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 172 | |
| 173 | struct SimpleEnumValue { |
| 174 | const char *Name; |
| 175 | unsigned Value; |
| 176 | }; |
| 177 | |
| 178 | struct SimpleEnumValueTable { |
| 179 | const SimpleEnumValue *Table; |
| 180 | unsigned Size; |
| 181 | }; |
| 182 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 183 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 184 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 185 | |