| 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 | "<input>\0" |
| 23 | "<unknown>\0" |
| 24 | "--build-accelerator=\0" |
| 25 | "--build-accelerator\0" |
| 26 | "Build accelerator tables(default: none)\n =none - Do not build accelerators\n =DWARF - .debug_names are generated for all DWARF versions\n\0" |
| 27 | "[none,DWARF]\0" |
| 28 | "--garbage-collection\0" |
| 29 | "Do garbage collection for debug info(default)\0" |
| 30 | "--help\0" |
| 31 | "Prints this help output\0" |
| 32 | "-h\0" |
| 33 | "Alias for --help\0" |
| 34 | "-j\0" |
| 35 | "Alias for --num-threads\0" |
| 36 | "--linker=\0" |
| 37 | "--linker\0" |
| 38 | "Specify the desired type of DWARF linker. Defaults to 'classic'\0" |
| 39 | "<DWARF linker type>\0" |
| 40 | "--no-garbage-collection\0" |
| 41 | "Don`t do garbage collection for debug info\0" |
| 42 | "--no-odr-deduplication\0" |
| 43 | "Don`t do ODR deduplication for debug types\0" |
| 44 | "--no-odr\0" |
| 45 | "Alias for --no-odr-deduplication\0" |
| 46 | "--no-separate-debug-file\0" |
| 47 | "Create single output file, containing debug tables(default)\0" |
| 48 | "--num-threads\0" |
| 49 | "Number of available threads for multi-threaded execution. Defaults to the number of cores on the current machine\0" |
| 50 | "<threads>\0" |
| 51 | "--odr-deduplication\0" |
| 52 | "Do ODR deduplication for debug types(default)\0" |
| 53 | "--odr\0" |
| 54 | "Alias for --odr-deduplication\0" |
| 55 | "--separate-debug-file\0" |
| 56 | "Create two output files: file w/o debug tables and file with debug tables\0" |
| 57 | "--tombstone=\0" |
| 58 | "--tombstone\0" |
| 59 | "Tombstone value used as a marker of invalid address(default: universal)\n =bfd - Zero for all addresses and [1,1] for DWARF v4 (or less) address ranges and exec\n =maxpc - Minus 1 for all addresses and minus 2 for DWARF v4 (or less) address ranges\n =exec - Match with address ranges of executable sections\n =universal - Both: bfd and maxpc\0" |
| 60 | "[bfd,maxpc,exec,universal]\0" |
| 61 | "--verbose\0" |
| 62 | "Enable verbose logging\0" |
| 63 | "--verify\0" |
| 64 | "Run the DWARF verifier on the resulting debug info\0" |
| 65 | "--version\0" |
| 66 | "Print the version and exit\0" |
| 67 | "-V\0" |
| 68 | "Alias for --version\0" |
| 69 | ; |
| 70 | #ifdef __GNUC__ |
| 71 | #pragma GCC diagnostic pop |
| 72 | #endif |
| 73 | |
| 74 | static constexpr llvm::StringTable |
| 75 | OptionStrTable = OptionStrTableStorage; |
| 76 | #undef OPTTABLE_STR_TABLE_CODE |
| 77 | #endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE |
| 78 | |
| 79 | ///////// |
| 80 | // Tables |
| 81 | |
| 82 | #ifdef OPTTABLE_CODE |
| 83 | static llvm::opt::OptTable::Tables optionTables() { |
| 84 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 85 | 0 /* prefixes */, |
| 86 | 1 /* prefixes */, 1 /* '-' */, |
| 87 | 1 /* prefixes */, 3 /* '--' */, |
| 88 | 2 /* prefixes */, 3 /* '--' */, 1 /* '-' */ |
| 89 | }; |
| 90 | |
| 91 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 92 | {0, 0}, |
| 93 | }; |
| 94 | |
| 95 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 96 | 0 /* subcommands */ |
| 97 | }; |
| 98 | |
| 99 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 100 | {0, 0, 0, 0, 0}, |
| 101 | {207, 0, 0, 0, 0}, |
| 102 | {448, 0, 0, 0, 0}, |
| 103 | {855, 0, 0, 0, 0}, |
| 104 | {1438, 0, 0, 0, 0}, |
| 105 | }; |
| 106 | |
| 107 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 108 | {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0}, |
| 109 | {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0}, |
| 110 | {24 /* --build-accelerator= */, 0, 0, DefaultVis, 5, 0, 4, 0, llvm::opt::Option::JoinedClass, 0}, |
| 111 | {45 /* --build-accelerator */, 65, 0, DefaultVis, 5, 0, 0, 1, llvm::opt::Option::SeparateClass, 0}, |
| 112 | {220 /* --garbage-collection */, 241, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 113 | {287 /* --help */, 294, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 114 | {318 /* -h */, 321, 0, DefaultVis, 1, 0, 6, 0, llvm::opt::Option::FlagClass, 0}, |
| 115 | {338 /* -j */, 341, 0, DefaultVis, 1, 0, 15, 0, llvm::opt::Option::SeparateClass, 0}, |
| 116 | {365 /* --linker= */, 0, 0, DefaultVis, 5, 0, 10, 0, llvm::opt::Option::JoinedClass, 0}, |
| 117 | {375 /* --linker */, 384, 0, DefaultVis, 5, 0, 0, 2, llvm::opt::Option::SeparateClass, 0}, |
| 118 | {468 /* --no-garbage-collection */, 492, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 119 | {535 /* --no-odr-deduplication */, 558, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 120 | {601 /* --no-odr */, 610, 0, DefaultVis, 3, 0, 12, 0, llvm::opt::Option::FlagClass, 0}, |
| 121 | {643 /* --no-separate-debug-file */, 668, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 122 | {728 /* --num-threads */, 742, 0, DefaultVis, 5, 0, 0, 3, llvm::opt::Option::SeparateClass, 0}, |
| 123 | {865 /* --odr-deduplication */, 885, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 124 | {931 /* --odr */, 937, 0, DefaultVis, 3, 0, 16, 0, llvm::opt::Option::FlagClass, 0}, |
| 125 | {967 /* --separate-debug-file */, 989, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 126 | {1063 /* --tombstone= */, 0, 0, DefaultVis, 5, 0, 20, 0, llvm::opt::Option::JoinedClass, 0}, |
| 127 | {1076 /* --tombstone */, 1088, 0, DefaultVis, 5, 0, 0, 4, llvm::opt::Option::SeparateClass, 0}, |
| 128 | {1465 /* --verbose */, 1475, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 129 | {1498 /* --verify */, 1507, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 130 | {1558 /* --version */, 1568, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 131 | {1595 /* -V */, 1598, 0, DefaultVis, 1, 0, 23, 0, llvm::opt::Option::FlagClass, 0}, |
| 132 | }; |
| 133 | |
| 134 | return {OptionStrTableStorage, OptionPrefixesTable, |
| 135 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 136 | } |
| 137 | #undef OPTTABLE_CODE |
| 138 | #endif // OPTTABLE_CODE |
| 139 | |
| 140 | ///////// |
| 141 | // ValuesCode |
| 142 | |
| 143 | #ifdef OPTTABLE_VALUES_CODE |
| 144 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 145 | switch (ID) { |
| 146 | } |
| 147 | return {}; |
| 148 | } |
| 149 | #undef OPTTABLE_VALUES_CODE |
| 150 | #endif // OPTTABLE_VALUES_CODE |
| 151 | ///////// |
| 152 | // Groups |
| 153 | |
| 154 | #ifdef OPTION |
| 155 | |
| 156 | ////////// |
| 157 | // Options |
| 158 | |
| 159 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 160 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 161 | OPTION(5, 24 /* --build-accelerator= */, anonymous_0, Joined, INVALID, build_accelerator, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 162 | OPTION(5, 45 /* --build-accelerator */, build_accelerator, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 65, 0, 207, 0, 0) |
| 163 | OPTION(3, 220 /* --garbage-collection */, garbage_collection, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 241, 0, 0, 0, 0) |
| 164 | OPTION(3, 287 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 294, 0, 0, 0, 0) |
| 165 | OPTION(1, 318 /* -h */, h, Flag, INVALID, help, 0, 0, DefaultVis, 0, 321, 0, 0, 0, 0) |
| 166 | OPTION(1, 338 /* -j */, anonymous_3, Separate, INVALID, threads, 0, 0, DefaultVis, 0, 341, 0, 0, 0, 0) |
| 167 | OPTION(5, 365 /* --linker= */, anonymous_1, Joined, INVALID, linker, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 168 | OPTION(5, 375 /* --linker */, linker, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 384, 0, 448, 0, 0) |
| 169 | OPTION(3, 468 /* --no-garbage-collection */, no_garbage_collection, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 492, 0, 0, 0, 0) |
| 170 | OPTION(3, 535 /* --no-odr-deduplication */, no_odr_deduplication, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 558, 0, 0, 0, 0) |
| 171 | OPTION(3, 601 /* --no-odr */, no_odr, Flag, INVALID, no_odr_deduplication, 0, 0, DefaultVis, 0, 610, 0, 0, 0, 0) |
| 172 | OPTION(3, 643 /* --no-separate-debug-file */, no_separate_debug_file, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 668, 0, 0, 0, 0) |
| 173 | OPTION(5, 728 /* --num-threads */, threads, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 742, 0, 855, 0, 0) |
| 174 | OPTION(3, 865 /* --odr-deduplication */, odr_deduplication, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 885, 0, 0, 0, 0) |
| 175 | OPTION(3, 931 /* --odr */, odr, Flag, INVALID, odr_deduplication, 0, 0, DefaultVis, 0, 937, 0, 0, 0, 0) |
| 176 | OPTION(3, 967 /* --separate-debug-file */, separate_debug_file, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 989, 0, 0, 0, 0) |
| 177 | OPTION(5, 1063 /* --tombstone= */, anonymous_2, Joined, INVALID, tombstone, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 178 | OPTION(5, 1076 /* --tombstone */, tombstone, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 1088, 0, 1438, 0, 0) |
| 179 | OPTION(3, 1465 /* --verbose */, verbose, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1475, 0, 0, 0, 0) |
| 180 | OPTION(3, 1498 /* --verify */, verify, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1507, 0, 0, 0, 0) |
| 181 | OPTION(3, 1558 /* --version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 1568, 0, 0, 0, 0) |
| 182 | OPTION(1, 1595 /* -V */, V, Flag, INVALID, version, 0, 0, DefaultVis, 0, 1598, 0, 0, 0, 0) |
| 183 | #endif // OPTION |
| 184 | |
| 185 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 186 | |
| 187 | struct SimpleEnumValue { |
| 188 | const char *Name; |
| 189 | unsigned Value; |
| 190 | }; |
| 191 | |
| 192 | struct SimpleEnumValueTable { |
| 193 | const SimpleEnumValue *Table; |
| 194 | unsigned Size; |
| 195 | }; |
| 196 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 197 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 198 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 199 | |