| 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 | "Actions\0" |
| 23 | "<input>\0" |
| 24 | "<unknown>\0" |
| 25 | "--allow-recovery\0" |
| 26 | "-cas\0" |
| 27 | "--cat-node-data\0" |
| 28 | "--check-hash\0" |
| 29 | "-data\0" |
| 30 | "--dump\0" |
| 31 | "--force\0" |
| 32 | "--get-cache-result\0" |
| 33 | "--help\0" |
| 34 | "-h\0" |
| 35 | "--import\0" |
| 36 | "--in-process\0" |
| 37 | "--ls-node-refs\0" |
| 38 | "--make-blob\0" |
| 39 | "--make-node\0" |
| 40 | "--prune\0" |
| 41 | "--put-cache-key\0" |
| 42 | "-upstream-cas\0" |
| 43 | "--validate-if-needed\0" |
| 44 | "--validate-object\0" |
| 45 | "--validate\0" |
| 46 | ; |
| 47 | #ifdef __GNUC__ |
| 48 | #pragma GCC diagnostic pop |
| 49 | #endif |
| 50 | |
| 51 | static constexpr llvm::StringTable |
| 52 | OptionStrTable = OptionStrTableStorage; |
| 53 | #endif // OPTTABLE_STR_TABLE_CODE |
| 54 | |
| 55 | ///////// |
| 56 | // Prefixes |
| 57 | |
| 58 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
| 59 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 60 | 0 /* prefixes */, |
| 61 | 1 /* prefixes */, 1 /* '-' */, |
| 62 | 2 /* prefixes */, 1 /* '-' */, 3 /* '--' */, |
| 63 | 2 /* prefixes */, 3 /* '--' */, 1 /* '-' */ |
| 64 | }; |
| 65 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
| 66 | |
| 67 | /////////// SubCommand IDs |
| 68 | |
| 69 | #ifdef OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 70 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 71 | 0 /* subcommands */ |
| 72 | }; |
| 73 | #endif // OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 74 | |
| 75 | ///////// |
| 76 | // Prefix Union |
| 77 | |
| 78 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 79 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 80 | 1 /* '-' */, 3 /* '--' */ |
| 81 | }; |
| 82 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
| 83 | |
| 84 | ///////// |
| 85 | // ValuesCode |
| 86 | |
| 87 | #ifdef OPTTABLE_VALUES_CODE |
| 88 | #endif |
| 89 | ///////// |
| 90 | // Groups |
| 91 | |
| 92 | #ifdef OPTION |
| 93 | OPTION(0 /* no prefixes */, 6 /* Actions */, grp_action, Group, INVALID, INVALID, nullptr, 0, 0, 0, |
| 94 | "llvm-cas actions" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 95 | |
| 96 | ////////// |
| 97 | // Options |
| 98 | |
| 99 | OPTION(0, 14 /* <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) |
| 100 | OPTION(0, 22 /* <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) |
| 101 | OPTION(6, 32 /* --allow-recovery */, allow_recovery, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 102 | "Allow recovery of CAS data" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 103 | OPTION(3, 49 /* -cas */, cas_path, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 104 | "Path to CAS on disk" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<path>" , nullptr, 0) |
| 105 | OPTION(6, 54 /* --cat-node-data */, cat_node_data, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 106 | "Cat node data" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 107 | OPTION(6, 70 /* --check-hash */, check_hash, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 108 | "Check all hashes during validation" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 109 | OPTION(3, 83 /* -data */, data, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 110 | "Path to data or '-' for stdin" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<path>" , nullptr, 0) |
| 111 | OPTION(6, 89 /* --dump */, cas_dump, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 112 | "Dump internal contents" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 113 | OPTION(6, 96 /* --force */, force, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 114 | "Force validation even if unnecessary" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 115 | OPTION(6, 104 /* --get-cache-result */, get_cache_result, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 116 | "Get the result value from a cache key" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 117 | OPTION(6, 123 /* --help */, help, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 118 | "Prints this help output" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 119 | OPTION(1, 130 /* -h */, anonymous_0, Flag, INVALID, help, nullptr, 0, DefaultVis, 0, |
| 120 | "Alias for --help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 121 | OPTION(6, 133 /* --import */, import, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 122 | "Import objects from another CAS" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 123 | OPTION(6, 142 /* --in-process */, in_process, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 124 | "Validation in-process" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 125 | OPTION(6, 155 /* --ls-node-refs */, ls_node_refs, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 126 | "List node refs" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 127 | OPTION(6, 170 /* --make-blob */, make_blob, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 128 | "Make blob" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 129 | OPTION(6, 182 /* --make-node */, make_node, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 130 | "Make node" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 131 | OPTION(6, 194 /* --prune */, prune, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 132 | "Prune local cas storage" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 133 | OPTION(6, 202 /* --put-cache-key */, put_cache_key, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 134 | "Set a value for a cache key" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 135 | OPTION(3, 218 /* -upstream-cas */, upstream_cas, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 136 | "Path to another upstream CAS" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<path>" , nullptr, 0) |
| 137 | OPTION(6, 232 /* --validate-if-needed */, validate_if_needed, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 138 | "Validate cas contents if needed" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 139 | OPTION(6, 253 /* --validate-object */, validate_object, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 140 | "Validate the object for CASID" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 141 | OPTION(6, 271 /* --validate */, validate, Flag, grp_action, INVALID, nullptr, 0, DefaultVis, 0, |
| 142 | "Validate ObjectStore" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 143 | #endif // OPTION |
| 144 | |
| 145 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 146 | |
| 147 | struct SimpleEnumValue { |
| 148 | const char *Name; |
| 149 | unsigned Value; |
| 150 | }; |
| 151 | |
| 152 | struct SimpleEnumValueTable { |
| 153 | const SimpleEnumValue *Table; |
| 154 | unsigned Size; |
| 155 | }; |
| 156 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 157 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 158 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 159 | |
| 160 | ///////// |
| 161 | |
| 162 | // SubCommands |
| 163 | |
| 164 | #ifdef OPTTABLE_SUBCOMMANDS_CODE |
| 165 | static constexpr llvm::opt::OptTable::SubCommand OptionSubCommands[] = { |
| 166 | }; |
| 167 | #endif // OPTTABLE_SUBCOMMANDS_CODE |
| 168 | |
| 169 | |
| 170 | |