| 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 | #ifdef OPTTABLE_STR_TABLE_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 | "Genric Options\0" |
| 24 | "<input>\0" |
| 25 | "<unknown>\0" |
| 26 | "--cgdata-version\0" |
| 27 | "--convert\0" |
| 28 | "-c\0" |
| 29 | "--format\0" |
| 30 | "-f\0" |
| 31 | "--help\0" |
| 32 | "-h\0" |
| 33 | "-indexed-codegen-data-lazy-loading\0" |
| 34 | "--merge\0" |
| 35 | "-m\0" |
| 36 | "--output\0" |
| 37 | "-o\0" |
| 38 | "--show\0" |
| 39 | "--skip-trim\0" |
| 40 | "-s\0" |
| 41 | "--version\0" |
| 42 | "-v\0" |
| 43 | ; |
| 44 | #ifdef __GNUC__ |
| 45 | #pragma GCC diagnostic pop |
| 46 | #endif |
| 47 | |
| 48 | static constexpr llvm::StringTable |
| 49 | OptionStrTable = OptionStrTableStorage; |
| 50 | #endif // OPTTABLE_STR_TABLE_CODE |
| 51 | |
| 52 | ///////// |
| 53 | // Prefixes |
| 54 | |
| 55 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
| 56 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 57 | 0 /* prefixes */, |
| 58 | 1 /* prefixes */, 1 /* '-' */, |
| 59 | 1 /* prefixes */, 3 /* '--' */ |
| 60 | }; |
| 61 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
| 62 | |
| 63 | /////////// SubCommand IDs |
| 64 | |
| 65 | #ifdef OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 66 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 67 | 0 /* subcommands */ |
| 68 | }; |
| 69 | #endif // OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 70 | |
| 71 | ///////// |
| 72 | // Prefix Union |
| 73 | |
| 74 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 75 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 76 | 1 /* '-' */, 3 /* '--' */ |
| 77 | }; |
| 78 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
| 79 | |
| 80 | ///////// |
| 81 | // ValuesCode |
| 82 | |
| 83 | #ifdef OPTTABLE_VALUES_CODE |
| 84 | #endif |
| 85 | ///////// |
| 86 | // Groups |
| 87 | |
| 88 | #ifdef OPTION |
| 89 | OPTION(0 /* no prefixes */, 6 /* Action */, action_group, Group, INVALID, INVALID, nullptr, 0, 0, 0, |
| 90 | "Action (required)" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 91 | OPTION(0 /* no prefixes */, 13 /* Genric Options */, generic_group, Group, INVALID, INVALID, nullptr, 0, 0, 0, |
| 92 | "Generic Options" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 93 | |
| 94 | ////////// |
| 95 | // Options |
| 96 | |
| 97 | OPTION(0, 28 /* <input> */, INPUT, Input, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 98 | OPTION(0, 36 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 99 | OPTION(3, 46 /* --cgdata-version */, cgdata_version, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 100 | "Display the cgdata version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 101 | OPTION(3, 63 /* --convert */, convert, Flag, action_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 102 | "Convert the (indexed) codegen data file in either text or binary format." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 103 | OPTION(1, 73 /* -c */, anonymous_3, Flag, action_group, convert, nullptr, 0, DefaultVis, 0, |
| 104 | "Alias for --convert" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 105 | OPTION(3, 76 /* --format */, format, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 106 | "Specify the output format (text or binary)" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<value>" , nullptr, 0) |
| 107 | OPTION(1, 85 /* -f */, anonymous_6, JoinedOrSeparate, INVALID, format, nullptr, 0, DefaultVis, 0, |
| 108 | "Alias for --format" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 109 | OPTION(3, 88 /* --help */, help, Flag, generic_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 110 | "Display this help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 111 | OPTION(1, 95 /* -h */, anonymous_0, Flag, generic_group, help, nullptr, 0, DefaultVis, 0, |
| 112 | "Alias for --help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 113 | OPTION(1, 98 /* -indexed-codegen-data-lazy-loading */, indexed_codegen_data_lazy_loading, Flag, INVALID, INVALID, nullptr, HelpHidden, DefaultVis, 0, |
| 114 | "Lazily load indexed CodeGenData for testing purpose." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 115 | OPTION(3, 133 /* --merge */, merge, Flag, action_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 116 | "Take binary files having raw codegen data in custom sections, and merge them into an indexed codegen data file." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 117 | OPTION(1, 141 /* -m */, anonymous_4, Flag, action_group, merge, nullptr, 0, DefaultVis, 0, |
| 118 | "Alias for --merge" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 119 | OPTION(3, 144 /* --output */, output, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 120 | "Specify the name for the output file to be created" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<file>" , nullptr, 0) |
| 121 | OPTION(1, 153 /* -o */, anonymous_5, JoinedOrSeparate, INVALID, output, nullptr, 0, DefaultVis, 0, |
| 122 | "Alias for --output" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<file>" , nullptr, 0) |
| 123 | OPTION(3, 156 /* --show */, show, Flag, action_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 124 | "Show summary of the (indexed) codegen data file." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 125 | OPTION(3, 163 /* --skip-trim */, skip_trim, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 126 | "Skip trimming content when merging the cgdata" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 127 | OPTION(1, 175 /* -s */, anonymous_2, Flag, action_group, show, nullptr, 0, DefaultVis, 0, |
| 128 | "Alias for --show" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 129 | OPTION(3, 178 /* --version */, version, Flag, generic_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 130 | "Display the LLVM version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 131 | OPTION(1, 188 /* -v */, anonymous_1, Flag, generic_group, version, nullptr, 0, DefaultVis, 0, |
| 132 | "Alias for --version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 133 | #endif // OPTION |
| 134 | |
| 135 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 136 | |
| 137 | struct SimpleEnumValue { |
| 138 | const char *Name; |
| 139 | unsigned Value; |
| 140 | }; |
| 141 | |
| 142 | struct SimpleEnumValueTable { |
| 143 | const SimpleEnumValue *Table; |
| 144 | unsigned Size; |
| 145 | }; |
| 146 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 147 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 148 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 149 | |
| 150 | ///////// |
| 151 | |
| 152 | // SubCommands |
| 153 | |
| 154 | #ifdef OPTTABLE_SUBCOMMANDS_CODE |
| 155 | static constexpr llvm::opt::OptTable::SubCommand OptionSubCommands[] = { |
| 156 | }; |
| 157 | #endif // OPTTABLE_SUBCOMMANDS_CODE |
| 158 | |
| 159 | |
| 160 | |