| 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 |
| 13 | static llvm::opt::OptTable::Tables optionTables() { |
| 14 | |
| 15 | #ifdef __GNUC__ |
| 16 | #pragma GCC diagnostic push |
| 17 | #pragma GCC diagnostic ignored "-Woverlength-strings" |
| 18 | #endif |
| 19 | static constexpr char OptionStrTableStorage[] = |
| 20 | "\0" |
| 21 | "-\0" |
| 22 | "--\0" |
| 23 | "<input>\0" |
| 24 | "<unknown>\0" |
| 25 | "--allow-recovery\0" |
| 26 | "Allow recovery of CAS data\0" |
| 27 | "-cas\0" |
| 28 | "Path to CAS on disk\0" |
| 29 | "<path>\0" |
| 30 | "--check-hash\0" |
| 31 | "Check all hashes during validation\0" |
| 32 | "-data\0" |
| 33 | "Path to data or '-' for stdin\0" |
| 34 | "-fcas-plugin-option\0" |
| 35 | "Option passed to the plugin CAS\0" |
| 36 | "<name>=<value>\0" |
| 37 | "-fcas-plugin-path\0" |
| 38 | "Path to plugin CAS library\0" |
| 39 | "--force\0" |
| 40 | "Force validation even if unnecessary\0" |
| 41 | "--help\0" |
| 42 | "Prints this help output\0" |
| 43 | "-h\0" |
| 44 | "Alias for --help\0" |
| 45 | "--in-process\0" |
| 46 | "Validation in-process\0" |
| 47 | "-upstream-cas\0" |
| 48 | "Path to another upstream CAS\0" |
| 49 | "--verbose\0" |
| 50 | "Print why validation failed when recovering\0" |
| 51 | ; |
| 52 | #ifdef __GNUC__ |
| 53 | #pragma GCC diagnostic pop |
| 54 | #endif |
| 55 | |
| 56 | static constexpr llvm::StringTable |
| 57 | OptionStrTable = OptionStrTableStorage; |
| 58 | |
| 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 | |
| 66 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 67 | {0, 0}, |
| 68 | }; |
| 69 | |
| 70 | static constexpr llvm::opt::OptTable::SubCommand OptionSubCommands[] = { |
| 71 | { "cat-node-data" , "Cat node data" , "" }, |
| 72 | { "dump" , "Dump internal contents" , "" }, |
| 73 | { "get-cache-result" , "Get the result value from a cache key" , "" }, |
| 74 | { "import" , "Import objects from another CAS" , "" }, |
| 75 | { "ls-node-refs" , "List node refs" , "" }, |
| 76 | { "make-blob" , "Make blob" , "" }, |
| 77 | { "make-node" , "Make node" , "" }, |
| 78 | { "prune" , "Prune local cas storage" , "" }, |
| 79 | { "put-cache-key" , "Set a value for a cache key" , "" }, |
| 80 | { "validate" , "Validate ObjectStore" , "" }, |
| 81 | { "validate-if-needed" , "Validate cas contents if needed" , "" }, |
| 82 | { "validate-object" , "Validate the object for CASID" , "" }, |
| 83 | }; |
| 84 | |
| 85 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 86 | 0 /* subcommands */, |
| 87 | 12 /* subcommands */, 1 /* 'sc_dump' */, 0 /* 'sc_cat_node_data' */, 5 /* 'sc_make_blob' */, 6 /* 'sc_make_node' */, 4 /* 'sc_ls_node_refs' */, 3 /* 'sc_import' */, 8 /* 'sc_put_cache_key' */, 2 /* 'sc_get_cache_result' */, 9 /* 'sc_validate' */, 10 /* 'sc_validate_if_needed' */, 11 /* 'sc_validate_object' */, 7 /* 'sc_prune' */, |
| 88 | 1 /* subcommands */, 3 /* 'sc_import' */, |
| 89 | 2 /* subcommands */, 5 /* 'sc_make_blob' */, 6 /* 'sc_make_node' */, |
| 90 | 2 /* subcommands */, 9 /* 'sc_validate' */, 10 /* 'sc_validate_if_needed' */, |
| 91 | 1 /* subcommands */, 10 /* 'sc_validate_if_needed' */ |
| 92 | }; |
| 93 | |
| 94 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 95 | {0, 0, 0, 0, 0, 0, 0, 0}, |
| 96 | {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 97 | {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 22, 0}, |
| 98 | {93, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1, 0}, |
| 99 | {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 19, 0}, |
| 100 | {93, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 16, 0}, |
| 101 | {236, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1, 0}, |
| 102 | {93, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14, 0}, |
| 103 | }; |
| 104 | |
| 105 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 106 | {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass}, |
| 107 | {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass}, |
| 108 | {24 /* --allow-recovery */, 41, 0, 0, 2, 6, llvm::opt::Option::FlagClass}, |
| 109 | {68 /* -cas */, 73, 0, 0, 3, 3, llvm::opt::Option::SeparateClass}, |
| 110 | {100 /* --check-hash */, 113, 0, 0, 4, 6, llvm::opt::Option::FlagClass}, |
| 111 | {148 /* -data */, 154, 0, 0, 5, 3, llvm::opt::Option::SeparateClass}, |
| 112 | {184 /* -fcas-plugin-option */, 204, 0, 0, 6, 3, llvm::opt::Option::SeparateClass}, |
| 113 | {251 /* -fcas-plugin-path */, 269, 0, 0, 3, 3, llvm::opt::Option::SeparateClass}, |
| 114 | {296 /* --force */, 304, 0, 0, 2, 6, llvm::opt::Option::FlagClass}, |
| 115 | {341 /* --help */, 348, 0, 0, 1, 6, llvm::opt::Option::FlagClass}, |
| 116 | {372 /* -h */, 375, 0, 10, 1, 1, llvm::opt::Option::FlagClass}, |
| 117 | {392 /* --in-process */, 405, 0, 0, 2, 6, llvm::opt::Option::FlagClass}, |
| 118 | {427 /* -upstream-cas */, 441, 0, 0, 7, 3, llvm::opt::Option::SeparateClass}, |
| 119 | {470 /* --verbose */, 480, 0, 0, 2, 6, llvm::opt::Option::FlagClass}, |
| 120 | }; |
| 121 | |
| 122 | return {OptionStrTable, OptionPrefixesTable, |
| 123 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, OptionSubCommands, OptionSubCommandIDsTable}; |
| 124 | } |
| 125 | #undef OPTTABLE_CODE |
| 126 | #endif // OPTTABLE_CODE |
| 127 | |
| 128 | ///////// |
| 129 | // ValuesCode |
| 130 | |
| 131 | #ifdef OPTTABLE_VALUES_CODE |
| 132 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 133 | switch (ID) { |
| 134 | } |
| 135 | return {}; |
| 136 | } |
| 137 | #undef OPTTABLE_VALUES_CODE |
| 138 | #endif // OPTTABLE_VALUES_CODE |
| 139 | ///////// |
| 140 | // Groups |
| 141 | |
| 142 | #ifdef OPTION |
| 143 | |
| 144 | ////////// |
| 145 | // Options |
| 146 | |
| 147 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 148 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 149 | OPTION(6, 24 /* --allow-recovery */, allow_recovery, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 41, 0, 0, 0, 22) |
| 150 | OPTION(3, 68 /* -cas */, cas_path, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 73, 0, 93, 0, 1) |
| 151 | OPTION(6, 100 /* --check-hash */, check_hash, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 113, 0, 0, 0, 19) |
| 152 | OPTION(3, 148 /* -data */, data, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 154, 0, 93, 0, 16) |
| 153 | OPTION(3, 184 /* -fcas-plugin-option */, cas_plugin_option, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 204, 0, 236, 0, 1) |
| 154 | OPTION(3, 251 /* -fcas-plugin-path */, cas_plugin_path, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 269, 0, 93, 0, 1) |
| 155 | OPTION(6, 296 /* --force */, force, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 304, 0, 0, 0, 22) |
| 156 | OPTION(6, 341 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 348, 0, 0, 0, 0) |
| 157 | OPTION(1, 372 /* -h */, anonymous_0, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 375, 0, 0, 0, 0) |
| 158 | OPTION(6, 392 /* --in-process */, in_process, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 405, 0, 0, 0, 22) |
| 159 | OPTION(3, 427 /* -upstream-cas */, upstream_cas, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 441, 0, 93, 0, 14) |
| 160 | OPTION(6, 470 /* --verbose */, verbose, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 480, 0, 0, 0, 22) |
| 161 | #endif // OPTION |
| 162 | |
| 163 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 164 | |
| 165 | struct SimpleEnumValue { |
| 166 | const char *Name; |
| 167 | unsigned Value; |
| 168 | }; |
| 169 | |
| 170 | struct SimpleEnumValueTable { |
| 171 | const SimpleEnumValue *Table; |
| 172 | unsigned Size; |
| 173 | }; |
| 174 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 175 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 176 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 177 | |