| 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 | "--merge\0" |
| 34 | "-m\0" |
| 35 | "--output\0" |
| 36 | "-o\0" |
| 37 | "--show\0" |
| 38 | "--skip-trim\0" |
| 39 | "-s\0" |
| 40 | "--version\0" |
| 41 | "-v\0" |
| 42 | ; |
| 43 | #ifdef __GNUC__ |
| 44 | #pragma GCC diagnostic pop |
| 45 | #endif |
| 46 | |
| 47 | static constexpr llvm::StringTable OptionStrTable = |
| 48 | OptionStrTableStorage; |
| 49 | #endif // OPTTABLE_STR_TABLE_CODE |
| 50 | |
| 51 | ///////// |
| 52 | // Prefixes |
| 53 | |
| 54 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
| 55 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 56 | 0 /* prefixes */, |
| 57 | 1 /* prefixes */, 1 /* '-' */, |
| 58 | 1 /* prefixes */, 3 /* '--' */ |
| 59 | }; |
| 60 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
| 61 | |
| 62 | ///////// |
| 63 | // Prefix Union |
| 64 | |
| 65 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 66 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 67 | 1 /* '-' */, 3 /* '--' */ |
| 68 | }; |
| 69 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
| 70 | |
| 71 | ///////// |
| 72 | // ValuesCode |
| 73 | |
| 74 | #ifdef OPTTABLE_VALUES_CODE |
| 75 | #endif |
| 76 | ///////// |
| 77 | // Groups |
| 78 | |
| 79 | #ifdef OPTION |
| 80 | OPTION(0 /* no prefixes */, 6 /* Action */, action_group, Group, INVALID, INVALID, nullptr, 0, 0, 0, |
| 81 | "Action (required)" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 82 | OPTION(0 /* no prefixes */, 13 /* Genric Options */, generic_group, Group, INVALID, INVALID, nullptr, 0, 0, 0, |
| 83 | "Generic Options" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 84 | |
| 85 | ////////// |
| 86 | // Options |
| 87 | |
| 88 | 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) |
| 89 | 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) |
| 90 | OPTION(3, 46 /* --cgdata-version */, cgdata_version, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 91 | "Display the cgdata version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 92 | OPTION(3, 63 /* --convert */, convert, Flag, action_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 93 | "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) |
| 94 | OPTION(1, 73 /* -c */, anonymous_3, Flag, action_group, convert, nullptr, 0, DefaultVis, 0, |
| 95 | "Alias for --convert" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 96 | OPTION(3, 76 /* --format */, format, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 97 | "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) |
| 98 | OPTION(1, 85 /* -f */, anonymous_6, JoinedOrSeparate, INVALID, format, nullptr, 0, DefaultVis, 0, |
| 99 | "Alias for --format" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 100 | OPTION(3, 88 /* --help */, help, Flag, generic_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 101 | "Display this help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 102 | OPTION(1, 95 /* -h */, anonymous_0, Flag, generic_group, help, nullptr, 0, DefaultVis, 0, |
| 103 | "Alias for --help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 104 | OPTION(3, 98 /* --merge */, merge, Flag, action_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 105 | "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) |
| 106 | OPTION(1, 106 /* -m */, anonymous_4, Flag, action_group, merge, nullptr, 0, DefaultVis, 0, |
| 107 | "Alias for --merge" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 108 | OPTION(3, 109 /* --output */, output, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 109 | "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) |
| 110 | OPTION(1, 118 /* -o */, anonymous_5, JoinedOrSeparate, INVALID, output, nullptr, 0, DefaultVis, 0, |
| 111 | "Alias for --output" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<file>" , nullptr) |
| 112 | OPTION(3, 121 /* --show */, show, Flag, action_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 113 | "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) |
| 114 | OPTION(3, 128 /* --skip-trim */, skip_trim, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 115 | "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) |
| 116 | OPTION(1, 140 /* -s */, anonymous_2, Flag, action_group, show, nullptr, 0, DefaultVis, 0, |
| 117 | "Alias for --show" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 118 | OPTION(3, 143 /* --version */, version, Flag, generic_group, INVALID, nullptr, 0, DefaultVis, 0, |
| 119 | "Display the LLVM version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 120 | OPTION(1, 153 /* -v */, anonymous_1, Flag, generic_group, version, nullptr, 0, DefaultVis, 0, |
| 121 | "Alias for --version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 122 | #endif // OPTION |
| 123 | |
| 124 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 125 | |
| 126 | struct SimpleEnumValue { |
| 127 | const char *Name; |
| 128 | unsigned Value; |
| 129 | }; |
| 130 | |
| 131 | struct SimpleEnumValueTable { |
| 132 | const SimpleEnumValue *Table; |
| 133 | unsigned Size; |
| 134 | }; |
| 135 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 136 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 137 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 138 | |
| 139 | |
| 140 | |