| 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 | #if defined(OPTTABLE_CODE) || defined(OPTIONS_STRUCT_DEFS) |
| 13 | namespace { |
| 14 | enum ID : unsigned { |
| 15 | OPT_INVALID = 0, |
| 16 | OPT_INPUT, |
| 17 | OPT_UNKNOWN, |
| 18 | OPT_amdgcn_skip_cache_invalidations, |
| 19 | OPT_amdgpu_addr_anti_hint_window, |
| 20 | OPT_amdgpu_anti_hints_for_addr, |
| 21 | OPT_amdgpu_anti_hints_for_va_vdst, |
| 22 | OPT_amdgpu_anti_hints_rules, |
| 23 | OPT_amdgpu_anti_hints, |
| 24 | OPT_amdgpu_any_address_space_out_arguments, |
| 25 | OPT_amdgpu_asan_instrument_lds, |
| 26 | OPT_amdgpu_assume_dynamic_stack_object_size, |
| 27 | OPT_amdgpu_assume_external_call_stack_size, |
| 28 | OPT_amdgpu_atomic_optimizer_strategy, |
| 29 | OPT_amdgpu_attributor_enable, |
| 30 | OPT_amdgpu_avgpr_banking, |
| 31 | OPT_amdgpu_barrier_signal_wait_latency, |
| 32 | OPT_amdgpu_block_carried_latency, |
| 33 | OPT_amdgpu_bypass_slow_div, |
| 34 | OPT_amdgpu_clustered_low_occupancy_reschedule, |
| 35 | OPT_amdgpu_codegenprepare_break_large_phis_threshold, |
| 36 | OPT_amdgpu_codegenprepare_break_large_phis, |
| 37 | OPT_amdgpu_codegenprepare_disable_fdiv_expansion, |
| 38 | OPT_amdgpu_codegenprepare_disable_idiv_expansion, |
| 39 | OPT_amdgpu_codegenprepare_expand_div64, |
| 40 | OPT_amdgpu_codegenprepare_fdiv_expansion, |
| 41 | OPT_amdgpu_codegenprepare_force_break_large_phis, |
| 42 | OPT_amdgpu_codegenprepare_idiv_expansion, |
| 43 | OPT_amdgpu_codegenprepare_mul24, |
| 44 | OPT_amdgpu_codegenprepare_widen_constant_loads, |
| 45 | OPT_amdgpu_dce_in_ra, |
| 46 | OPT_amdgpu_disable_clustered_low_occupancy_reschedule, |
| 47 | OPT_amdgpu_disable_loop_alignment, |
| 48 | OPT_amdgpu_disable_rewrite_mfma_form_sched_stage, |
| 49 | OPT_amdgpu_disable_unclustered_high_rp_reschedule, |
| 50 | OPT_amdgpu_dpp_combine, |
| 51 | OPT_amdgpu_dump_hsa_metadata, |
| 52 | OPT_amdgpu_early_ifcvt, |
| 53 | OPT_amdgpu_early_inline_all, |
| 54 | OPT_amdgpu_enable_aa, |
| 55 | OPT_amdgpu_enable_delay_alu, |
| 56 | OPT_amdgpu_enable_hipstdpar, |
| 57 | OPT_amdgpu_enable_image_intrinsic_optimizer, |
| 58 | OPT_amdgpu_enable_lower_exec_sync, |
| 59 | OPT_amdgpu_enable_merge_m0, |
| 60 | OPT_amdgpu_enable_ocl_mangling_mismatch_workaround, |
| 61 | OPT_amdgpu_enable_pre_ra_optimizations, |
| 62 | OPT_amdgpu_enable_promote_kernel_arguments, |
| 63 | OPT_amdgpu_enable_remove_incompatible_functions, |
| 64 | OPT_amdgpu_enable_rewrite_partial_reg_uses, |
| 65 | OPT_amdgpu_enable_sw_lower_lds, |
| 66 | OPT_amdgpu_enable_uniform_intrinsic_combine, |
| 67 | OPT_amdgpu_enable_vopd, |
| 68 | OPT_amdgpu_expert_scheduling_mode, |
| 69 | OPT_amdgpu_fix_16_bit_physreg_copies, |
| 70 | OPT_amdgpu_global_isel_new_legality, |
| 71 | OPT_amdgpu_hard_clause_length_limit, |
| 72 | OPT_amdgpu_igrouplp_exact_solver_cost_heur, |
| 73 | OPT_amdgpu_igrouplp_exact_solver_cutoff, |
| 74 | OPT_amdgpu_igrouplp_exact_solver_max_branches, |
| 75 | OPT_amdgpu_igrouplp_exact_solver, |
| 76 | OPT_amdgpu_indirect_access_weight, |
| 77 | OPT_amdgpu_indirect_call_specialization_threshold, |
| 78 | OPT_amdgpu_inline_arg_alloca_cost, |
| 79 | OPT_amdgpu_inline_arg_alloca_cutoff, |
| 80 | OPT_amdgpu_inline_max_bb, |
| 81 | OPT_amdgpu_internalize_symbols, |
| 82 | OPT_amdgpu_ir_lower_kernel_arguments, |
| 83 | OPT_amdgpu_kernarg_preload_count, |
| 84 | OPT_amdgpu_kernarg_preload, |
| 85 | OPT_amdgpu_large_stride_threshold, |
| 86 | OPT_amdgpu_large_stride_weight, |
| 87 | OPT_amdgpu_late_codegenprepare_widen_constant_loads, |
| 88 | OPT_amdgpu_limit_wave_threshold, |
| 89 | OPT_amdgpu_link_time_closed_world, |
| 90 | OPT_amdgpu_lirp_instant_lower_bound, |
| 91 | OPT_amdgpu_lirp_reschedule, |
| 92 | OPT_amdgpu_lirp_threshold, |
| 93 | OPT_amdgpu_lirp_vgpr_reduction, |
| 94 | OPT_amdgpu_load_store_vectorizer, |
| 95 | OPT_amdgpu_long_branch_factor, |
| 96 | OPT_amdgpu_loop_alignment, |
| 97 | OPT_amdgpu_loop_prefetch, |
| 98 | OPT_amdgpu_lower_global_ctor_dtor, |
| 99 | OPT_amdgpu_lower_module_lds_strategy, |
| 100 | OPT_amdgpu_max_memory_clause, |
| 101 | OPT_amdgpu_max_return_arg_num_regs, |
| 102 | OPT_amdgpu_membound_threshold, |
| 103 | OPT_amdgpu_memcpy_loop_unroll, |
| 104 | #if !defined(NDEBUG) |
| 105 | OPT_amdgpu_module_splitting_debug_proposal_search, |
| 106 | #endif |
| 107 | OPT_amdgpu_module_splitting_externalize_address_taken, |
| 108 | OPT_amdgpu_module_splitting_externalize_globals, |
| 109 | OPT_amdgpu_module_splitting_large_threshold, |
| 110 | OPT_amdgpu_module_splitting_max_depth, |
| 111 | OPT_amdgpu_module_splitting_merge_threshold, |
| 112 | OPT_amdgpu_module_splitting_no_externalize_address_taken, |
| 113 | OPT_amdgpu_module_splitting_no_externalize_globals, |
| 114 | OPT_amdgpu_module_splitting_print_module_dotcfg, |
| 115 | OPT_amdgpu_module_splitting_print_partition_summaries, |
| 116 | #if !defined(NDEBUG) |
| 117 | OPT_amdgpu_module_splitting_serial_execution, |
| 118 | #endif |
| 119 | OPT_amdgpu_next_use_analysis_config, |
| 120 | OPT_amdgpu_next_use_analysis_count_phis, |
| 121 | OPT_amdgpu_next_use_analysis_distance_cache, |
| 122 | OPT_amdgpu_next_use_analysis_dump_distance_as_json, |
| 123 | OPT_amdgpu_next_use_analysis_dump_distance_def_to_use, |
| 124 | OPT_amdgpu_next_use_analysis_dump_distance_verbose, |
| 125 | OPT_amdgpu_next_use_analysis_forward_only, |
| 126 | OPT_amdgpu_next_use_analysis_precise_use_modeling, |
| 127 | OPT_amdgpu_next_use_analysis_use_preheader_model, |
| 128 | OPT_amdgpu_nsa_threshold, |
| 129 | OPT_amdgpu_num_vgprs_for_wwm_alloc, |
| 130 | OPT_amdgpu_opt_exec_mask_pre_ra, |
| 131 | OPT_amdgpu_opt_vgpr_liverange, |
| 132 | OPT_amdgpu_prealloc_sgpr_spill_vgprs, |
| 133 | OPT_amdgpu_prelink, |
| 134 | #if !defined(NDEBUG) |
| 135 | OPT_amdgpu_print_max_reg_pressure_regusage_after_scheduler, |
| 136 | #endif |
| 137 | #if !defined(NDEBUG) |
| 138 | OPT_amdgpu_print_max_reg_pressure_regusage_before_scheduler, |
| 139 | #endif |
| 140 | OPT_amdgpu_print_rp_downward, |
| 141 | OPT_amdgpu_promote_alloca_to_lds, |
| 142 | OPT_amdgpu_promote_alloca_to_vector_limit, |
| 143 | OPT_amdgpu_promote_alloca_to_vector_max_regs, |
| 144 | OPT_amdgpu_promote_alloca_to_vector_vgpr_ratio, |
| 145 | OPT_amdgpu_promote_alloca_to_vector, |
| 146 | OPT_amdgpu_promote_alloca_vector_loop_user_weight, |
| 147 | OPT_amdgpu_reassign_regs, |
| 148 | OPT_amdgpu_remove_redundant_endcf, |
| 149 | OPT_amdgpu_rewrite_mfma_form_sched_stage, |
| 150 | OPT_amdgpu_s_branch_bits, |
| 151 | OPT_amdgpu_scalar_ir_passes, |
| 152 | OPT_amdgpu_sched_strategy, |
| 153 | OPT_amdgpu_schedule_metric_bias, |
| 154 | OPT_amdgpu_schedule_relaxed_occupancy, |
| 155 | OPT_amdgpu_scheduler_pending_queue_limit, |
| 156 | OPT_amdgpu_sdwa_peephole, |
| 157 | OPT_amdgpu_set_wave_priority_valu_insts_threshold, |
| 158 | OPT_amdgpu_set_wave_priority, |
| 159 | OPT_amdgpu_sgpr_hazard_boundary_cull, |
| 160 | OPT_amdgpu_sgpr_hazard_mem_wait_cull_threshold, |
| 161 | OPT_amdgpu_sgpr_hazard_mem_wait_cull, |
| 162 | OPT_amdgpu_simplify_libcall, |
| 163 | OPT_amdgpu_skip_cache_invalidations, |
| 164 | OPT_amdgpu_snop_padding, |
| 165 | OPT_amdgpu_spill_cfi_saved_regs, |
| 166 | OPT_amdgpu_spill_sgpr_to_vgpr, |
| 167 | OPT_amdgpu_spill_vgpr_to_agpr, |
| 168 | OPT_amdgpu_sramecc, |
| 169 | OPT_amdgpu_stress_agpr, |
| 170 | OPT_amdgpu_stress_function_calls, |
| 171 | OPT_amdgpu_stress_sgpr, |
| 172 | OPT_amdgpu_stress_vgpr, |
| 173 | OPT_amdgpu_super_align_lds_globals, |
| 174 | OPT_amdgpu_unclustered_high_rp_reschedule, |
| 175 | OPT_amdgpu_unroll_max_block_to_analyze, |
| 176 | OPT_amdgpu_unroll_runtime_local, |
| 177 | OPT_amdgpu_unroll_threshold_if, |
| 178 | OPT_amdgpu_unroll_threshold_local, |
| 179 | OPT_amdgpu_unroll_threshold_private, |
| 180 | OPT_amdgpu_use_aa_in_codegen, |
| 181 | OPT_amdgpu_use_amdgpu_trackers, |
| 182 | OPT_amdgpu_use_divergent_register_indexing, |
| 183 | OPT_amdgpu_use_ssa_machine_scheduler, |
| 184 | OPT_amdgpu_va_vdst_lookback_window, |
| 185 | OPT_amdgpu_verify_hsa_metadata, |
| 186 | OPT_amdgpu_vgpr_index_mode, |
| 187 | OPT_amdgpu_waitcnt_forcezero, |
| 188 | OPT_amdgpu_waitcnt_load_forcezero, |
| 189 | OPT_amdgpu_wmma_vnop_hoisting, |
| 190 | OPT_amdgpu_xnack, |
| 191 | OPT_disable_promote_alloca_to_lds, |
| 192 | OPT_disable_promote_alloca_to_vector, |
| 193 | OPT_enable_amdgpu_aa, |
| 194 | OPT_promote_alloca_vector_loop_user_weight, |
| 195 | OPT_r600_if_convert, |
| 196 | OPT_r600_ir_structurize, |
| 197 | }; |
| 198 | } // namespace |
| 199 | |
| 200 | static llvm::opt::OptTable::Tables optionTables() { |
| 201 | using llvm::opt::DefaultVis, llvm::opt::HelpHidden, |
| 202 | llvm::opt::RenderAsInput, llvm::opt::RenderJoined, |
| 203 | llvm::opt::RenderSeparate; |
| 204 | |
| 205 | #ifdef __GNUC__ |
| 206 | #pragma GCC diagnostic push |
| 207 | #pragma GCC diagnostic ignored "-Woverlength-strings" |
| 208 | #endif |
| 209 | static constexpr char OptionStrTableStorage[] = |
| 210 | "\0" |
| 211 | "-\0" |
| 212 | "--\0" |
| 213 | "<input>\0" |
| 214 | "<unknown>\0" |
| 215 | "-amdgcn-skip-cache-invalidations\0" |
| 216 | "-amdgpu-addr-anti-hint-window\0" |
| 217 | "Number of later memory instructions an address anti-hint stays open\0" |
| 218 | "-amdgpu-anti-hints-for-addr\0" |
| 219 | "Enable Anti-Hints for memory address operands and subsequent VGPR writes to avoid wait xcnt\0" |
| 220 | "-amdgpu-anti-hints-for-va-vdst\0" |
| 221 | "Enable Anti-Hints for VA-VDST\0" |
| 222 | "-amdgpu-anti-hints-rules\0" |
| 223 | "Anti-hints rules to select\0" |
| 224 | "<none|mfma-waw|mfma-war|wmma-war-ab|swmmac-war-index|wmma-waw|trans-war|mem-addr-war|va-vdst-war|all>\0" |
| 225 | "none,mfma-waw,mfma-war,wmma-war-ab,swmmac-war-index,wmma-waw,trans-war,mem-addr-war,va-vdst-war,all\0" |
| 226 | "-amdgpu-anti-hints\0" |
| 227 | "Enable register allocation anti-hints\0" |
| 228 | "-amdgpu-any-address-space-out-arguments\0" |
| 229 | "Replace pointer out arguments with struct returns for non-private address space\0" |
| 230 | "-amdgpu-asan-instrument-lds\0" |
| 231 | "Run asan instrumentation on LDS instructions lowered to global memory\0" |
| 232 | "-amdgpu-assume-dynamic-stack-object-size\0" |
| 233 | "Assumed extra stack use if there are any variable sized objects (in bytes)\0" |
| 234 | "-amdgpu-assume-external-call-stack-size\0" |
| 235 | "Assumed stack use of any external call (in bytes)\0" |
| 236 | "-amdgpu-atomic-optimizer-strategy\0" |
| 237 | "Select DPP or Iterative strategy for scan\0" |
| 238 | "<DPP|Iterative|None>\0" |
| 239 | "DPP,Iterative,None\0" |
| 240 | "-amdgpu-attributor-enable\0" |
| 241 | "Enable AMDGPUAttributorPass\0" |
| 242 | "-amdgpu-avgpr-banking\0" |
| 243 | "Distribute AVGPR pressure across the ArchVGPR and AGPR banks instead of charging all of it to ArchVGPR\0" |
| 244 | "-amdgpu-barrier-signal-wait-latency\0" |
| 245 | "Synthetic latency between S_BARRIER_SIGNAL and S_BARRIER_WAIT to encourage scheduling independent work between them\0" |
| 246 | "-amdgpu-block-carried-latency\0" |
| 247 | "Estimate block-carried latency and include it in the effective candidate stall cost\0" |
| 248 | "<off|fence|all>\0" |
| 249 | "off,fence,all\0" |
| 250 | "-amdgpu-bypass-slow-div\0" |
| 251 | "Skip 64-bit divide for dynamic 32-bit values\0" |
| 252 | "-amdgpu-clustered-low-occupancy-reschedule\0" |
| 253 | "Enable clustered low occupancy rescheduling for ILP scheduling stage\0" |
| 254 | "-amdgpu-codegenprepare-break-large-phis-threshold\0" |
| 255 | "Minimum type size in bits for breaking large PHI nodes\0" |
| 256 | "-amdgpu-codegenprepare-break-large-phis\0" |
| 257 | "Break large PHI nodes for DAGISel\0" |
| 258 | "-amdgpu-codegenprepare-disable-fdiv-expansion\0" |
| 259 | "false\0" |
| 260 | "\0" |
| 261 | "-amdgpu-codegenprepare-disable-idiv-expansion\0" |
| 262 | "-amdgpu-codegenprepare-expand-div64\0" |
| 263 | "Expand 64-bit division in AMDGPUCodeGenPrepare\0" |
| 264 | "-amdgpu-codegenprepare-fdiv-expansion\0" |
| 265 | "Expand floating point division in AMDGPUCodeGenPrepare\0" |
| 266 | "-amdgpu-codegenprepare-force-break-large-phis\0" |
| 267 | "For testing purposes, always break large PHIs even if it isn't profitable\0" |
| 268 | "-amdgpu-codegenprepare-idiv-expansion\0" |
| 269 | "Expand integer division in AMDGPUCodeGenPrepare\0" |
| 270 | "-amdgpu-codegenprepare-mul24\0" |
| 271 | "Introduce mul24 intrinsics in AMDGPUCodeGenPrepare\0" |
| 272 | "-amdgpu-codegenprepare-widen-constant-loads\0" |
| 273 | "Widen sub-dword constant address space loads in AMDGPUCodeGenPrepare\0" |
| 274 | "-amdgpu-dce-in-ra\0" |
| 275 | "Enable machine DCE inside regalloc\0" |
| 276 | "-amdgpu-disable-clustered-low-occupancy-reschedule\0" |
| 277 | "-amdgpu-disable-loop-alignment\0" |
| 278 | "-amdgpu-disable-rewrite-mfma-form-sched-stage\0" |
| 279 | "-amdgpu-disable-unclustered-high-rp-reschedule\0" |
| 280 | "-amdgpu-dpp-combine\0" |
| 281 | "Enable DPP combiner\0" |
| 282 | "-amdgpu-dump-hsa-metadata\0" |
| 283 | "Dump AMDGPU HSA Metadata\0" |
| 284 | "-amdgpu-early-ifcvt\0" |
| 285 | "Run early if-conversion\0" |
| 286 | "-amdgpu-early-inline-all\0" |
| 287 | "Inline all functions early\0" |
| 288 | "-amdgpu-enable-aa\0" |
| 289 | "Enable AMDGPU Alias Analysis\0" |
| 290 | "-amdgpu-enable-delay-alu\0" |
| 291 | "Enable s_delay_alu insertion\0" |
| 292 | "-amdgpu-enable-hipstdpar\0" |
| 293 | "Enable HIP Standard Parallelism Offload support\0" |
| 294 | "-amdgpu-enable-image-intrinsic-optimizer\0" |
| 295 | "Enable image intrinsic optimizer pass\0" |
| 296 | "-amdgpu-enable-lower-exec-sync\0" |
| 297 | "Enable lowering of execution synchronization\0" |
| 298 | "-amdgpu-enable-merge-m0\0" |
| 299 | "Merge and hoist M0 initializations\0" |
| 300 | "-amdgpu-enable-ocl-mangling-mismatch-workaround\0" |
| 301 | "Enable the workaround for OCL name mangling mismatch\0" |
| 302 | "-amdgpu-enable-pre-ra-optimizations\0" |
| 303 | "Enable Pre-RA optimizations pass\0" |
| 304 | "-amdgpu-enable-promote-kernel-arguments\0" |
| 305 | "Enable promotion of flat kernel pointer arguments to global\0" |
| 306 | "-amdgpu-enable-remove-incompatible-functions\0" |
| 307 | "Enable removal of functions when they use features not supported by the target GPU\0" |
| 308 | "-amdgpu-enable-rewrite-partial-reg-uses\0" |
| 309 | "Enable rewrite partial reg uses pass\0" |
| 310 | "-amdgpu-enable-sw-lower-lds\0" |
| 311 | "Enable lowering of lds to global memory pass and asan instrument resulting IR\0" |
| 312 | "-amdgpu-enable-uniform-intrinsic-combine\0" |
| 313 | "Enable/Disable the Uniform Intrinsic Combine Pass\0" |
| 314 | "-amdgpu-enable-vopd\0" |
| 315 | "Enable VOPD, dual issue of VALU in wave32\0" |
| 316 | "-amdgpu-expert-scheduling-mode\0" |
| 317 | "Enable expert scheduling mode 2 for all functions (GFX12+ only)\0" |
| 318 | "-amdgpu-fix-16-bit-physreg-copies\0" |
| 319 | "Fix copies between 32 and 16 bit registers by extending to 32 bit\0" |
| 320 | "-amdgpu-global-isel-new-legality\0" |
| 321 | "Use GlobalISel desired legality, rather than try to use rules compatible with selection patterns\0" |
| 322 | "-amdgpu-hard-clause-length-limit\0" |
| 323 | "Maximum number of memory instructions to place in the same hard clause\0" |
| 324 | "-amdgpu-igrouplp-exact-solver-cost-heur\0" |
| 325 | "Whether to use the cost heuristic to make choices as we traverse the search space using the exact solver. Defaulted to on, and if turned off, we will use the node order -- attempting to put the later nodes in the later sched groups. Experimentally, results are mixed, so this should be set on a case-by-case basis\0" |
| 326 | "-amdgpu-igrouplp-exact-solver-cutoff\0" |
| 327 | "The maximum number of scheduling group conflicts which we attempt to solve with the exponential time exact solver. Problem sizes greater than this will be solved by the less accurate greedy algorithm. Selecting solver by size is superseded by manually selecting the solver (e.g. by amdgpu-igrouplp-exact-solver)\0" |
| 328 | "-amdgpu-igrouplp-exact-solver-max-branches\0" |
| 329 | "The amount of branches that we are willing to explore with the exact algorithm before giving up\0" |
| 330 | "-amdgpu-igrouplp-exact-solver\0" |
| 331 | "Whether to use the exponential time solver to fit the instructions to the pipeline as closely as possible\0" |
| 332 | "-amdgpu-indirect-access-weight\0" |
| 333 | "Indirect access memory instruction weight\0" |
| 334 | "-amdgpu-indirect-call-specialization-threshold\0" |
| 335 | "A threshold controls whether an indirect call will be specialized\0" |
| 336 | "-amdgpu-inline-arg-alloca-cost\0" |
| 337 | "Cost of alloca argument\0" |
| 338 | "-amdgpu-inline-arg-alloca-cutoff\0" |
| 339 | "Maximum alloca size to use for inline cost\0" |
| 340 | "-amdgpu-inline-max-bb\0" |
| 341 | "Maximum number of BBs allowed in a function after inlining (compile time constraint)\0" |
| 342 | "-amdgpu-internalize-symbols\0" |
| 343 | "Enable elimination of non-kernel functions and unused globals\0" |
| 344 | "-amdgpu-ir-lower-kernel-arguments\0" |
| 345 | "Lower kernel argument loads in IR pass\0" |
| 346 | "-amdgpu-kernarg-preload-count\0" |
| 347 | "How many kernel arguments to preload onto SGPRs\0" |
| 348 | "-amdgpu-kernarg-preload\0" |
| 349 | "Enable preload kernel arguments to SGPRs\0" |
| 350 | "-amdgpu-large-stride-threshold\0" |
| 351 | "Large stride memory access threshold\0" |
| 352 | "-amdgpu-large-stride-weight\0" |
| 353 | "Large stride memory access weight\0" |
| 354 | "-amdgpu-late-codegenprepare-widen-constant-loads\0" |
| 355 | "Widen sub-dword constant address space loads in AMDGPULateCodeGenPrepare\0" |
| 356 | "-amdgpu-limit-wave-threshold\0" |
| 357 | "Kernel limit wave threshold in %\0" |
| 358 | "-amdgpu-link-time-closed-world\0" |
| 359 | "Whether has closed-world assumption at link time\0" |
| 360 | "-amdgpu-lirp-instant-lower-bound\0" |
| 361 | "Lower bound (percent of the VGPR excess limit) on instant RP, below which a region is skipped\0" |
| 362 | "-amdgpu-lirp-reschedule\0" |
| 363 | "Enable live interval RP reschedule stage\0" |
| 364 | "-amdgpu-lirp-threshold\0" |
| 365 | "Percent increase of live interval RP over instant pressure to trigger rescheduling\0" |
| 366 | "-amdgpu-lirp-vgpr-reduction\0" |
| 367 | "Reduction factor (percent) for VGPR threshold during live interval RP reschedule stage\0" |
| 368 | "-amdgpu-load-store-vectorizer\0" |
| 369 | "Enable load store vectorizer\0" |
| 370 | "-amdgpu-long-branch-factor\0" |
| 371 | "Factor to apply to what qualifies as a long branch to reserve a pair of scalar registers. If this value is 0 the long branch registers are never reserved. As this value grows the greater chance the branch distance will fall within the threshold and the registers will be marked to be reserved. We lean towards always reserving a register for long jumps\0" |
| 372 | "-amdgpu-loop-alignment\0" |
| 373 | "Align and prefetch loops\0" |
| 374 | "-amdgpu-loop-prefetch\0" |
| 375 | "Enable loop data prefetch on AMDGPU\0" |
| 376 | "-amdgpu-lower-global-ctor-dtor\0" |
| 377 | "Lower GPU ctor / dtors to globals on the device\0" |
| 378 | "-amdgpu-lower-module-lds-strategy\0" |
| 379 | "Specify lowering strategy for function LDS access\0" |
| 380 | "<table|module|kernel|hybrid>\0" |
| 381 | "table,module,kernel,hybrid\0" |
| 382 | "-amdgpu-max-memory-clause\0" |
| 383 | "Maximum length of a memory clause, instructions\0" |
| 384 | "-amdgpu-max-return-arg-num-regs\0" |
| 385 | "Approximately limit number of return registers for replacing out arguments\0" |
| 386 | "-amdgpu-membound-threshold\0" |
| 387 | "Function mem bound threshold in %\0" |
| 388 | "-amdgpu-memcpy-loop-unroll\0" |
| 389 | "Unroll factor (affecting 4x32-bit operations) to use for memory operations when lowering statically-sized memcpy, memmove, or memset as a loop\0" |
| 390 | "-amdgpu-module-splitting-debug-proposal-search\0" |
| 391 | "print all proposals received and whether they were rejected or accepted\0" |
| 392 | "-amdgpu-module-splitting-externalize-address-taken\0" |
| 393 | "externalize functions whose addresses are taken\0" |
| 394 | "-amdgpu-module-splitting-externalize-globals\0" |
| 395 | "externalize global variables with local linkage; disabling may cause globals to be duplicated which increases binary size\0" |
| 396 | "-amdgpu-module-splitting-large-threshold\0" |
| 397 | "when max depth is reached and we can no longer branch out, this value determines if a function is worth merging into an already existing partition to reduce code duplication. This is a factor of the ideal partition size, e.g. 2.0 means we consider the function for merging if its cost (including its callees) is 2x the size of an ideal partition\0" |
| 398 | "-amdgpu-module-splitting-max-depth\0" |
| 399 | "maximum search depth. 0 forces a greedy approach. warning: the algorithm is up to O(2^N), where N is the max depth\0" |
| 400 | "-amdgpu-module-splitting-merge-threshold\0" |
| 401 | "when a function is considered for merging into a partition that already contains some of its callees, do the merge if at least n% of the code it can reach is already present inside the partition; e.g. 0.7 means only merge >70%\0" |
| 402 | "-amdgpu-module-splitting-no-externalize-address-taken\0" |
| 403 | "-amdgpu-module-splitting-no-externalize-globals\0" |
| 404 | "-amdgpu-module-splitting-print-module-dotcfg\0" |
| 405 | "output file to write out the dotgraph representation of the input module\0" |
| 406 | "-amdgpu-module-splitting-print-partition-summaries\0" |
| 407 | "output file to write out a summary of the partitions created for each module\0" |
| 408 | "-amdgpu-module-splitting-serial-execution\0" |
| 409 | "use a lock file so only one process in the system can run this pass at once. useful to avoid mangled debug output in multithreaded environments\0" |
| 410 | "-amdgpu-next-use-analysis-config\0" |
| 411 | "Config preset: 'graphics' or 'compute'\0" |
| 412 | "-amdgpu-next-use-analysis-count-phis\0" |
| 413 | "Count PHI instructions toward distance and block size\0" |
| 414 | "-amdgpu-next-use-analysis-distance-cache\0" |
| 415 | "Enable live-reg-use distance cache\0" |
| 416 | "-amdgpu-next-use-analysis-dump-distance-as-json\0" |
| 417 | "\0" |
| 418 | "\0" |
| 419 | "-amdgpu-next-use-analysis-dump-distance-def-to-use\0" |
| 420 | "-amdgpu-next-use-analysis-dump-distance-verbose\0" |
| 421 | "-amdgpu-next-use-analysis-forward-only\0" |
| 422 | "Restrict inter-block distances to forward-reachable paths\0" |
| 423 | "-amdgpu-next-use-analysis-precise-use-modeling\0" |
| 424 | "Model PHI uses via incoming edge block with loop-aware reachability filtering\0" |
| 425 | "-amdgpu-next-use-analysis-use-preheader-model\0" |
| 426 | "Promote loop-entry and inner-loop uses to the loop preheader\0" |
| 427 | "-amdgpu-nsa-threshold\0" |
| 428 | "Number of addresses from which to enable MIMG NSA\0" |
| 429 | "-amdgpu-num-vgprs-for-wwm-alloc\0" |
| 430 | "Max num VGPRs for whole-wave register allocation\0" |
| 431 | "-amdgpu-opt-exec-mask-pre-ra\0" |
| 432 | "Run pre-RA exec mask optimizations\0" |
| 433 | "-amdgpu-opt-vgpr-liverange\0" |
| 434 | "Enable VGPR liverange optimizations for if-else structure\0" |
| 435 | "-amdgpu-prealloc-sgpr-spill-vgprs\0" |
| 436 | "-amdgpu-prelink\0" |
| 437 | "Enable pre-link mode optimizations\0" |
| 438 | "-amdgpu-print-max-reg-pressure-regusage-after-scheduler\0" |
| 439 | "Print a list of live registers along with their def/uses at the point of maximum register pressure after scheduling\0" |
| 440 | "-amdgpu-print-max-reg-pressure-regusage-before-scheduler\0" |
| 441 | "Print a list of live registers along with their def/uses at the point of maximum register pressure before scheduling\0" |
| 442 | "-amdgpu-print-rp-downward\0" |
| 443 | "Use GCNDownwardRPTracker for GCNRegPressurePrinter pass\0" |
| 444 | "-amdgpu-promote-alloca-to-lds\0" |
| 445 | "Promote alloca to LDS\0" |
| 446 | "-amdgpu-promote-alloca-to-vector-limit\0" |
| 447 | "Maximum byte size to consider promote alloca to vector\0" |
| 448 | "-amdgpu-promote-alloca-to-vector-max-regs\0" |
| 449 | "Maximum vector size (in 32b registers) to use when promoting alloca\0" |
| 450 | "-amdgpu-promote-alloca-to-vector-vgpr-ratio\0" |
| 451 | "Ratio of VGPRs to budget for promoting alloca to vectors\0" |
| 452 | "-amdgpu-promote-alloca-to-vector\0" |
| 453 | "Promote alloca to vector\0" |
| 454 | "-amdgpu-promote-alloca-vector-loop-user-weight\0" |
| 455 | "The bonus weight of users of allocas within loop when sorting profitable allocas\0" |
| 456 | "-amdgpu-reassign-regs\0" |
| 457 | "Enable register reassign optimizations on gfx10+\0" |
| 458 | "-amdgpu-remove-redundant-endcf\0" |
| 459 | "-amdgpu-rewrite-mfma-form-sched-stage\0" |
| 460 | "Enable mfma rewrite scheduling stage\0" |
| 461 | "-amdgpu-s-branch-bits\0" |
| 462 | "Restrict range of branch instructions (DEBUG)\0" |
| 463 | "-amdgpu-scalar-ir-passes\0" |
| 464 | "Enable scalar IR passes\0" |
| 465 | "-amdgpu-sched-strategy\0" |
| 466 | "Select custom AMDGPU scheduling strategy\0" |
| 467 | "-amdgpu-schedule-metric-bias\0" |
| 468 | "Sets the bias which adds weight to occupancy vs latency. Set it to 100 to chase the occupancy only\0" |
| 469 | "-amdgpu-schedule-relaxed-occupancy\0" |
| 470 | "Relax occupancy targets for kernels which are memory bound (amdgpu-membound-threshold), or Wave Limited (amdgpu-limit-wave-threshold)\0" |
| 471 | "-amdgpu-scheduler-pending-queue-limit\0" |
| 472 | "Max (Available+Pending) size to inspect pending queue (0 disables)\0" |
| 473 | "-amdgpu-sdwa-peephole\0" |
| 474 | "Enable SDWA peepholer\0" |
| 475 | "-amdgpu-set-wave-priority-valu-insts-threshold\0" |
| 476 | "VALU instruction count threshold for adjusting wave priority\0" |
| 477 | "-amdgpu-set-wave-priority\0" |
| 478 | "Adjust wave priority\0" |
| 479 | "-amdgpu-sgpr-hazard-boundary-cull\0" |
| 480 | "Cull hazards on function boundaries\0" |
| 481 | "-amdgpu-sgpr-hazard-mem-wait-cull-threshold\0" |
| 482 | "Number of tracked SGPRs before initiating hazard cull on memory wait\0" |
| 483 | "-amdgpu-sgpr-hazard-mem-wait-cull\0" |
| 484 | "Cull hazards on memory waits\0" |
| 485 | "-amdgpu-simplify-libcall\0" |
| 486 | "Enable amdgpu library simplifications\0" |
| 487 | "-amdgpu-skip-cache-invalidations\0" |
| 488 | "Use this to skip inserting cache invalidating instructions\0" |
| 489 | "-amdgpu-snop-padding\0" |
| 490 | "Insert a s_nop x before every instruction\0" |
| 491 | "-amdgpu-spill-cfi-saved-regs\0" |
| 492 | "Enable spilling the registers required for CFI emission\0" |
| 493 | "-amdgpu-spill-sgpr-to-vgpr\0" |
| 494 | "Enable spilling SGPRs to VGPRs\0" |
| 495 | "-amdgpu-spill-vgpr-to-agpr\0" |
| 496 | "Enable spilling VGPRs to AGPRs\0" |
| 497 | "-amdgpu-sramecc\0" |
| 498 | "Force amdgpu.sramecc for testing\0" |
| 499 | "-amdgpu-stress-agpr\0" |
| 500 | "Limit AGPRs to N registers by reserving the rest\0" |
| 501 | "-amdgpu-stress-function-calls\0" |
| 502 | "Force all functions to be noinline\0" |
| 503 | "-amdgpu-stress-sgpr\0" |
| 504 | "Limit SGPRs to N registers by reserving the rest\0" |
| 505 | "-amdgpu-stress-vgpr\0" |
| 506 | "Limit VGPRs to N registers by reserving the rest\0" |
| 507 | "-amdgpu-super-align-lds-globals\0" |
| 508 | "Increase alignment of LDS if it is not on align boundary\0" |
| 509 | "-amdgpu-unclustered-high-rp-reschedule\0" |
| 510 | "Enable unclustered high register pressure reduction scheduling stage\0" |
| 511 | "-amdgpu-unroll-max-block-to-analyze\0" |
| 512 | "Inner loop block size threshold to analyze in unroll for AMDGPU\0" |
| 513 | "-amdgpu-unroll-runtime-local\0" |
| 514 | "Allow runtime unroll for AMDGPU if local memory used in a loop\0" |
| 515 | "-amdgpu-unroll-threshold-if\0" |
| 516 | "Unroll threshold increment for AMDGPU for each if statement inside loop\0" |
| 517 | "-amdgpu-unroll-threshold-local\0" |
| 518 | "Unroll threshold for AMDGPU if local memory used in a loop\0" |
| 519 | "-amdgpu-unroll-threshold-private\0" |
| 520 | "Unroll threshold for AMDGPU if private memory used in a loop\0" |
| 521 | "-amdgpu-use-aa-in-codegen\0" |
| 522 | "Enable the use of AA during codegen\0" |
| 523 | "-amdgpu-use-amdgpu-trackers\0" |
| 524 | "Use the AMDGPU specific RPTrackers during scheduling\0" |
| 525 | "-amdgpu-use-divergent-register-indexing\0" |
| 526 | "Use indirect register addressing for divergent indexes\0" |
| 527 | "-amdgpu-use-ssa-machine-scheduler\0" |
| 528 | "Use the machine scheduler in SSA mode\0" |
| 529 | "-amdgpu-va-vdst-lookback-window\0" |
| 530 | "Lookback window for VA_VDST anti-hints\0" |
| 531 | "-amdgpu-verify-hsa-metadata\0" |
| 532 | "Verify AMDGPU HSA Metadata\0" |
| 533 | "-amdgpu-vgpr-index-mode\0" |
| 534 | "Use GPR indexing mode instead of movrel for vector indexing\0" |
| 535 | "-amdgpu-waitcnt-forcezero\0" |
| 536 | "Force all waitcnt instrs to be emitted as s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)\0" |
| 537 | "-amdgpu-waitcnt-load-forcezero\0" |
| 538 | "Force all waitcnt load counters to wait until 0\0" |
| 539 | "-amdgpu-wmma-vnop-hoisting\0" |
| 540 | "Hoist WMMA hazard V_NOPs from loops to preheaders\0" |
| 541 | "-amdgpu-xnack\0" |
| 542 | "Force amdgpu.xnack value for testing\0" |
| 543 | "-disable-promote-alloca-to-lds\0" |
| 544 | "-disable-promote-alloca-to-vector\0" |
| 545 | "-enable-amdgpu-aa\0" |
| 546 | "-promote-alloca-vector-loop-user-weight\0" |
| 547 | "-r600-if-convert\0" |
| 548 | "Use if conversion pass\0" |
| 549 | "-r600-ir-structurize\0" |
| 550 | "Use StructurizeCFG IR pass\0" |
| 551 | ; |
| 552 | #ifdef __GNUC__ |
| 553 | #pragma GCC diagnostic pop |
| 554 | #endif |
| 555 | |
| 556 | static constexpr llvm::StringTable |
| 557 | OptionStrTable = OptionStrTableStorage; |
| 558 | |
| 559 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 560 | 0 /* prefixes */, |
| 561 | 2 /* prefixes */, 1 /* '-' */, 3 /* '--' */ |
| 562 | }; |
| 563 | |
| 564 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 565 | {0, 0}, |
| 566 | }; |
| 567 | |
| 568 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 569 | 0 /* subcommands */ |
| 570 | }; |
| 571 | |
| 572 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 573 | {0, 0, 0, 0, 0, 0, 0, 0}, |
| 574 | {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 575 | {388, 0, 490, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 576 | {1147, 0, 1168, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 577 | {1632, 0, 1648, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 578 | {0, 2068, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 579 | {7885, 0, 7914, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 580 | }; |
| 581 | |
| 582 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 583 | {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass}, |
| 584 | {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass}, |
| 585 | {24 /* -amdgcn-skip-cache-invalidations */, 0, 0, OPT_amdgpu_skip_cache_invalidations, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 586 | {57 /* -amdgpu-addr-anti-hint-window */, 87, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 587 | {155 /* -amdgpu-anti-hints-for-addr */, 183, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 588 | {275 /* -amdgpu-anti-hints-for-va-vdst */, 306, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 589 | {336 /* -amdgpu-anti-hints-rules */, 361, 0, 0, 2, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 590 | {590 /* -amdgpu-anti-hints */, 609, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 591 | {647 /* -amdgpu-any-address-space-out-arguments */, 687, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 592 | {767 /* -amdgpu-asan-instrument-lds */, 795, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 593 | {865 /* -amdgpu-assume-dynamic-stack-object-size */, 906, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 594 | {981 /* -amdgpu-assume-external-call-stack-size */, 1021, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 595 | {1071 /* -amdgpu-atomic-optimizer-strategy */, 1105, 0, 0, 3, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 596 | {1187 /* -amdgpu-attributor-enable */, 1213, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 597 | {1241 /* -amdgpu-avgpr-banking */, 1263, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 598 | {1366 /* -amdgpu-barrier-signal-wait-latency */, 1402, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 599 | {1518 /* -amdgpu-block-carried-latency */, 1548, 0, 0, 4, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 600 | {1662 /* -amdgpu-bypass-slow-div */, 1686, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 601 | {1731 /* -amdgpu-clustered-low-occupancy-reschedule */, 1774, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 602 | {1843 /* -amdgpu-codegenprepare-break-large-phis-threshold */, 1893, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 603 | {1948 /* -amdgpu-codegenprepare-break-large-phis */, 1988, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 604 | {2022 /* -amdgpu-codegenprepare-disable-fdiv-expansion */, 0, 0, OPT_amdgpu_codegenprepare_fdiv_expansion, 5, 1, llvm::opt::Option::FlagClass}, |
| 605 | {2075 /* -amdgpu-codegenprepare-disable-idiv-expansion */, 0, 0, OPT_amdgpu_codegenprepare_idiv_expansion, 5, 1, llvm::opt::Option::FlagClass}, |
| 606 | {2121 /* -amdgpu-codegenprepare-expand-div64 */, 2157, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 607 | {2204 /* -amdgpu-codegenprepare-fdiv-expansion */, 2242, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 608 | {2297 /* -amdgpu-codegenprepare-force-break-large-phis */, 2343, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 609 | {2417 /* -amdgpu-codegenprepare-idiv-expansion */, 2455, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 610 | {2503 /* -amdgpu-codegenprepare-mul24 */, 2532, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 611 | {2583 /* -amdgpu-codegenprepare-widen-constant-loads */, 2627, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 612 | {2696 /* -amdgpu-dce-in-ra */, 2714, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 613 | {2749 /* -amdgpu-disable-clustered-low-occupancy-reschedule */, 0, 0, OPT_amdgpu_clustered_low_occupancy_reschedule, 5, 1, llvm::opt::Option::FlagClass}, |
| 614 | {2800 /* -amdgpu-disable-loop-alignment */, 0, 0, OPT_amdgpu_loop_alignment, 5, 1, llvm::opt::Option::FlagClass}, |
| 615 | {2831 /* -amdgpu-disable-rewrite-mfma-form-sched-stage */, 0, 0, OPT_amdgpu_rewrite_mfma_form_sched_stage, 5, 1, llvm::opt::Option::FlagClass}, |
| 616 | {2877 /* -amdgpu-disable-unclustered-high-rp-reschedule */, 0, 0, OPT_amdgpu_unclustered_high_rp_reschedule, 5, 1, llvm::opt::Option::FlagClass}, |
| 617 | {2924 /* -amdgpu-dpp-combine */, 2944, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 618 | {2964 /* -amdgpu-dump-hsa-metadata */, 2990, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 619 | {3015 /* -amdgpu-early-ifcvt */, 3035, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 620 | {3059 /* -amdgpu-early-inline-all */, 3084, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 621 | {3111 /* -amdgpu-enable-aa */, 3129, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 622 | {3158 /* -amdgpu-enable-delay-alu */, 3183, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 623 | {3212 /* -amdgpu-enable-hipstdpar */, 3237, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 624 | {3285 /* -amdgpu-enable-image-intrinsic-optimizer */, 3326, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 625 | {3364 /* -amdgpu-enable-lower-exec-sync */, 3395, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 626 | {3440 /* -amdgpu-enable-merge-m0 */, 3464, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 627 | {3499 /* -amdgpu-enable-ocl-mangling-mismatch-workaround */, 3547, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 628 | {3600 /* -amdgpu-enable-pre-ra-optimizations */, 3636, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 629 | {3669 /* -amdgpu-enable-promote-kernel-arguments */, 3709, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 630 | {3769 /* -amdgpu-enable-remove-incompatible-functions */, 3814, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 631 | {3897 /* -amdgpu-enable-rewrite-partial-reg-uses */, 3937, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 632 | {3974 /* -amdgpu-enable-sw-lower-lds */, 4002, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 633 | {4080 /* -amdgpu-enable-uniform-intrinsic-combine */, 4121, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 634 | {4171 /* -amdgpu-enable-vopd */, 4191, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 635 | {4233 /* -amdgpu-expert-scheduling-mode */, 4264, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 636 | {4328 /* -amdgpu-fix-16-bit-physreg-copies */, 4362, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 637 | {4428 /* -amdgpu-global-isel-new-legality */, 4461, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 638 | {4558 /* -amdgpu-hard-clause-length-limit */, 4591, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 639 | {4662 /* -amdgpu-igrouplp-exact-solver-cost-heur */, 4702, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 640 | {5016 /* -amdgpu-igrouplp-exact-solver-cutoff */, 5053, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 641 | {5365 /* -amdgpu-igrouplp-exact-solver-max-branches */, 5408, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 642 | {5504 /* -amdgpu-igrouplp-exact-solver */, 5534, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 643 | {5640 /* -amdgpu-indirect-access-weight */, 5671, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 644 | {5713 /* -amdgpu-indirect-call-specialization-threshold */, 5760, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 645 | {5826 /* -amdgpu-inline-arg-alloca-cost */, 5857, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 646 | {5881 /* -amdgpu-inline-arg-alloca-cutoff */, 5914, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 647 | {5957 /* -amdgpu-inline-max-bb */, 5979, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 648 | {6064 /* -amdgpu-internalize-symbols */, 6092, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 649 | {6154 /* -amdgpu-ir-lower-kernel-arguments */, 6188, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 650 | {6227 /* -amdgpu-kernarg-preload-count */, 6257, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 651 | {6305 /* -amdgpu-kernarg-preload */, 6329, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 652 | {6370 /* -amdgpu-large-stride-threshold */, 6401, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 653 | {6438 /* -amdgpu-large-stride-weight */, 6466, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 654 | {6500 /* -amdgpu-late-codegenprepare-widen-constant-loads */, 6549, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 655 | {6622 /* -amdgpu-limit-wave-threshold */, 6651, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 656 | {6684 /* -amdgpu-link-time-closed-world */, 6715, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 657 | {6764 /* -amdgpu-lirp-instant-lower-bound */, 6797, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 658 | {6891 /* -amdgpu-lirp-reschedule */, 6915, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 659 | {6956 /* -amdgpu-lirp-threshold */, 6979, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 660 | {7062 /* -amdgpu-lirp-vgpr-reduction */, 7090, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 661 | {7177 /* -amdgpu-load-store-vectorizer */, 7207, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 662 | {7236 /* -amdgpu-long-branch-factor */, 7263, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 663 | {7616 /* -amdgpu-loop-alignment */, 7639, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 664 | {7664 /* -amdgpu-loop-prefetch */, 7686, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 665 | {7722 /* -amdgpu-lower-global-ctor-dtor */, 7753, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 666 | {7801 /* -amdgpu-lower-module-lds-strategy */, 7835, 0, 0, 6, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 667 | {7941 /* -amdgpu-max-memory-clause */, 7967, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 668 | {8015 /* -amdgpu-max-return-arg-num-regs */, 8047, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 669 | {8122 /* -amdgpu-membound-threshold */, 8149, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 670 | {8183 /* -amdgpu-memcpy-loop-unroll */, 8210, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 671 | #if !defined(NDEBUG) |
| 672 | {8353 /* -amdgpu-module-splitting-debug-proposal-search */, 8400, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 673 | #endif |
| 674 | {8472 /* -amdgpu-module-splitting-externalize-address-taken */, 8523, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 675 | {8571 /* -amdgpu-module-splitting-externalize-globals */, 8616, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 676 | {8738 /* -amdgpu-module-splitting-large-threshold */, 8779, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 677 | {9125 /* -amdgpu-module-splitting-max-depth */, 9160, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 678 | {9275 /* -amdgpu-module-splitting-merge-threshold */, 9316, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 679 | {9543 /* -amdgpu-module-splitting-no-externalize-address-taken */, 0, 0, OPT_amdgpu_module_splitting_externalize_address_taken, 5, 1, llvm::opt::Option::FlagClass}, |
| 680 | {9597 /* -amdgpu-module-splitting-no-externalize-globals */, 0, 0, OPT_amdgpu_module_splitting_externalize_globals, 5, 1, llvm::opt::Option::FlagClass}, |
| 681 | {9645 /* -amdgpu-module-splitting-print-module-dotcfg */, 9690, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 682 | {9763 /* -amdgpu-module-splitting-print-partition-summaries */, 9814, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 683 | #if !defined(NDEBUG) |
| 684 | {9891 /* -amdgpu-module-splitting-serial-execution */, 9933, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 685 | #endif |
| 686 | {10077 /* -amdgpu-next-use-analysis-config */, 10110, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 687 | {10149 /* -amdgpu-next-use-analysis-count-phis */, 10186, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 688 | {10240 /* -amdgpu-next-use-analysis-distance-cache */, 10281, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 689 | {10316 /* -amdgpu-next-use-analysis-dump-distance-as-json */, 10364, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 690 | {10366 /* -amdgpu-next-use-analysis-dump-distance-def-to-use */, 10364, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 691 | {10417 /* -amdgpu-next-use-analysis-dump-distance-verbose */, 10364, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 692 | {10465 /* -amdgpu-next-use-analysis-forward-only */, 10504, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 693 | {10562 /* -amdgpu-next-use-analysis-precise-use-modeling */, 10609, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 694 | {10687 /* -amdgpu-next-use-analysis-use-preheader-model */, 10733, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 695 | {10794 /* -amdgpu-nsa-threshold */, 10816, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 696 | {10866 /* -amdgpu-num-vgprs-for-wwm-alloc */, 10898, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 697 | {10947 /* -amdgpu-opt-exec-mask-pre-ra */, 10976, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 698 | {11011 /* -amdgpu-opt-vgpr-liverange */, 11038, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 699 | {11096 /* -amdgpu-prealloc-sgpr-spill-vgprs */, 10364, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 700 | {11130 /* -amdgpu-prelink */, 11146, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 701 | #if !defined(NDEBUG) |
| 702 | {11181 /* -amdgpu-print-max-reg-pressure-regusage-after-scheduler */, 11237, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 703 | #endif |
| 704 | #if !defined(NDEBUG) |
| 705 | {11353 /* -amdgpu-print-max-reg-pressure-regusage-before-scheduler */, 11410, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 706 | #endif |
| 707 | {11527 /* -amdgpu-print-rp-downward */, 11553, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 708 | {11609 /* -amdgpu-promote-alloca-to-lds */, 11639, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 709 | {11661 /* -amdgpu-promote-alloca-to-vector-limit */, 11700, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 710 | {11755 /* -amdgpu-promote-alloca-to-vector-max-regs */, 11797, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 711 | {11865 /* -amdgpu-promote-alloca-to-vector-vgpr-ratio */, 11909, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 712 | {11966 /* -amdgpu-promote-alloca-to-vector */, 11999, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 713 | {12024 /* -amdgpu-promote-alloca-vector-loop-user-weight */, 12071, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 714 | {12152 /* -amdgpu-reassign-regs */, 12174, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 715 | {12223 /* -amdgpu-remove-redundant-endcf */, 10364, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 716 | {12254 /* -amdgpu-rewrite-mfma-form-sched-stage */, 12292, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 717 | {12329 /* -amdgpu-s-branch-bits */, 12351, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 718 | {12397 /* -amdgpu-scalar-ir-passes */, 12422, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 719 | {12446 /* -amdgpu-sched-strategy */, 12469, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 720 | {12510 /* -amdgpu-schedule-metric-bias */, 12539, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 721 | {12638 /* -amdgpu-schedule-relaxed-occupancy */, 12673, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 722 | {12807 /* -amdgpu-scheduler-pending-queue-limit */, 12845, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 723 | {12912 /* -amdgpu-sdwa-peephole */, 12934, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 724 | {12956 /* -amdgpu-set-wave-priority-valu-insts-threshold */, 13003, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 725 | {13064 /* -amdgpu-set-wave-priority */, 13090, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 726 | {13111 /* -amdgpu-sgpr-hazard-boundary-cull */, 13145, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 727 | {13181 /* -amdgpu-sgpr-hazard-mem-wait-cull-threshold */, 13225, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 728 | {13294 /* -amdgpu-sgpr-hazard-mem-wait-cull */, 13328, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 729 | {13357 /* -amdgpu-simplify-libcall */, 13382, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 730 | {13420 /* -amdgpu-skip-cache-invalidations */, 13453, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 731 | {13512 /* -amdgpu-snop-padding */, 13533, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 732 | {13575 /* -amdgpu-spill-cfi-saved-regs */, 13604, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 733 | {13660 /* -amdgpu-spill-sgpr-to-vgpr */, 13687, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 734 | {13718 /* -amdgpu-spill-vgpr-to-agpr */, 13745, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 735 | {13776 /* -amdgpu-sramecc */, 13792, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 736 | {13825 /* -amdgpu-stress-agpr */, 13845, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 737 | {13894 /* -amdgpu-stress-function-calls */, 13924, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 738 | {13959 /* -amdgpu-stress-sgpr */, 13979, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 739 | {14028 /* -amdgpu-stress-vgpr */, 14048, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 740 | {14097 /* -amdgpu-super-align-lds-globals */, 14129, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 741 | {14186 /* -amdgpu-unclustered-high-rp-reschedule */, 14225, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 742 | {14294 /* -amdgpu-unroll-max-block-to-analyze */, 14330, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 743 | {14394 /* -amdgpu-unroll-runtime-local */, 14423, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 744 | {14486 /* -amdgpu-unroll-threshold-if */, 14514, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 745 | {14586 /* -amdgpu-unroll-threshold-local */, 14617, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 746 | {14676 /* -amdgpu-unroll-threshold-private */, 14709, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 747 | {14770 /* -amdgpu-use-aa-in-codegen */, 14796, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 748 | {14832 /* -amdgpu-use-amdgpu-trackers */, 14860, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 749 | {14913 /* -amdgpu-use-divergent-register-indexing */, 14953, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 750 | {15008 /* -amdgpu-use-ssa-machine-scheduler */, 15042, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 751 | {15080 /* -amdgpu-va-vdst-lookback-window */, 15112, 0, 0, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 752 | {15151 /* -amdgpu-verify-hsa-metadata */, 15179, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 753 | {15206 /* -amdgpu-vgpr-index-mode */, 15230, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 754 | {15290 /* -amdgpu-waitcnt-forcezero */, 15316, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 755 | {15398 /* -amdgpu-waitcnt-load-forcezero */, 15429, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 756 | {15477 /* -amdgpu-wmma-vnop-hoisting */, 15504, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 757 | {15554 /* -amdgpu-xnack */, 15568, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 758 | {15605 /* -disable-promote-alloca-to-lds */, 0, 0, OPT_amdgpu_promote_alloca_to_lds, 5, 1, llvm::opt::Option::FlagClass}, |
| 759 | {15636 /* -disable-promote-alloca-to-vector */, 0, 0, OPT_amdgpu_promote_alloca_to_vector, 5, 1, llvm::opt::Option::FlagClass}, |
| 760 | {15670 /* -enable-amdgpu-aa */, 0, 0, OPT_amdgpu_enable_aa, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 761 | {15688 /* -promote-alloca-vector-loop-user-weight */, 0, 0, OPT_amdgpu_promote_alloca_vector_loop_user_weight, 1, 1, llvm::opt::Option::SeparateOrEqClass}, |
| 762 | {15728 /* -r600-if-convert */, 15745, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 763 | {15768 /* -r600-ir-structurize */, 15789, 0, 0, 1, 1, llvm::opt::Option::FlagOrEqClass}, |
| 764 | }; |
| 765 | |
| 766 | return {OptionStrTable, OptionPrefixesTable, |
| 767 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 768 | } |
| 769 | #undef OPTTABLE_CODE |
| 770 | #endif // OPTTABLE_CODE || OPTIONS_STRUCT_DEFS |
| 771 | |
| 772 | |
| 773 | #ifdef OPTIONS_STRUCT_DECL |
| 774 | #undef OPTIONS_STRUCT_DECL |
| 775 | #include "llvm/ADT/ArrayRef.h" |
| 776 | #include "llvm/ADT/BoolOrDefault.h" |
| 777 | #include "llvm/ADT/StringRef.h" |
| 778 | #include "llvm/Support/Allocator.h" |
| 779 | #include "llvm/Support/LibraryOptionsContext.h" |
| 780 | |
| 781 | namespace llvm { |
| 782 | namespace opt { |
| 783 | class Arg; |
| 784 | class LibraryOptionsParser; |
| 785 | class OptTable; |
| 786 | } // namespace opt |
| 787 | } // namespace llvm |
| 788 | |
| 789 | namespace llvm { |
| 790 | struct AMDGPUOptions { |
| 791 | bool stress_function_calls{false}; |
| 792 | unsigned indirect_call_specialization_threshold{3}; |
| 793 | unsigned barrier_signal_wait_latency{16}; |
| 794 | std::optional<AMDGPU::CarriedLatency> block_carried_latency{}; |
| 795 | bool codegenprepare_break_large_phis{true}; |
| 796 | unsigned codegenprepare_break_large_phis_threshold{32}; |
| 797 | bool codegenprepare_expand_div64{false}; |
| 798 | bool codegenprepare_fdiv_expansion{true}; |
| 799 | bool codegenprepare_force_break_large_phis{false}; |
| 800 | bool codegenprepare_idiv_expansion{true}; |
| 801 | bool codegenprepare_mul24{true}; |
| 802 | bool codegenprepare_widen_constant_loads{false}; |
| 803 | bool dump_hsa_metadata{false}; |
| 804 | bool verify_hsa_metadata{false}; |
| 805 | bool igrouplp_exact_solver{false}; |
| 806 | bool igrouplp_exact_solver_cost_heur{true}; |
| 807 | unsigned igrouplp_exact_solver_cutoff{0}; |
| 808 | uint64_t igrouplp_exact_solver_max_branches{0}; |
| 809 | bool bypass_slow_div{true}; |
| 810 | bool late_codegenprepare_widen_constant_loads{true}; |
| 811 | bool global_isel_new_legality{false}; |
| 812 | bool prelink{false}; |
| 813 | bool enable_ocl_mangling_mismatch_workaround{true}; |
| 814 | AMDGPU::LDSLoweringKind lower_module_lds_strategy{AMDGPU::LDSLoweringKind::hybrid}; |
| 815 | bool super_align_lds_globals{true}; |
| 816 | StringRef next_use_analysis_config{"graphics" }; |
| 817 | llvm::BoolOrDefault next_use_analysis_count_phis{llvm::BoolOrDefault::Default}; |
| 818 | bool next_use_analysis_distance_cache{true}; |
| 819 | std::optional<StringRef> next_use_analysis_dump_distance_as_json{}; |
| 820 | bool next_use_analysis_dump_distance_def_to_use{false}; |
| 821 | bool next_use_analysis_dump_distance_verbose{false}; |
| 822 | llvm::BoolOrDefault next_use_analysis_forward_only{llvm::BoolOrDefault::Default}; |
| 823 | llvm::BoolOrDefault next_use_analysis_precise_use_modeling{llvm::BoolOrDefault::Default}; |
| 824 | llvm::BoolOrDefault {llvm::BoolOrDefault::Default}; |
| 825 | unsigned indirect_access_weight{1000}; |
| 826 | unsigned large_stride_threshold{64}; |
| 827 | unsigned large_stride_weight{1000}; |
| 828 | unsigned limit_wave_threshold{50}; |
| 829 | unsigned membound_threshold{50}; |
| 830 | bool kernarg_preload{true}; |
| 831 | unsigned kernarg_preload_count{0}; |
| 832 | bool promote_alloca_to_lds{true}; |
| 833 | bool promote_alloca_to_vector{true}; |
| 834 | unsigned promote_alloca_to_vector_limit{0}; |
| 835 | std::optional<unsigned> promote_alloca_to_vector_max_regs{}; |
| 836 | std::optional<unsigned> promote_alloca_to_vector_vgpr_ratio{}; |
| 837 | unsigned promote_alloca_vector_loop_user_weight{4}; |
| 838 | std::optional<uint32_t> assume_dynamic_stack_object_size{}; |
| 839 | std::optional<uint32_t> assume_external_call_stack_size{}; |
| 840 | bool any_address_space_out_arguments{false}; |
| 841 | unsigned max_return_arg_num_regs{16}; |
| 842 | unsigned set_wave_priority_valu_insts_threshold{100}; |
| 843 | #if !defined(NDEBUG) |
| 844 | bool module_splitting_debug_proposal_search{false}; |
| 845 | #endif |
| 846 | bool module_splitting_externalize_address_taken{true}; |
| 847 | bool module_splitting_externalize_globals{true}; |
| 848 | float module_splitting_large_threshold{2.0f}; |
| 849 | unsigned module_splitting_max_depth{8}; |
| 850 | float module_splitting_merge_threshold{0.7f}; |
| 851 | StringRef module_splitting_print_module_dotcfg{}; |
| 852 | StringRef module_splitting_print_partition_summaries{}; |
| 853 | #if !defined(NDEBUG) |
| 854 | bool module_splitting_serial_execution{false}; |
| 855 | #endif |
| 856 | bool asan_instrument_lds{true}; |
| 857 | AMDGPU::ScanOptions atomic_optimizer_strategy{AMDGPU::ScanOptions::Iterative}; |
| 858 | bool attributor_enable{true}; |
| 859 | bool dce_in_ra{true}; |
| 860 | bool dpp_combine{true}; |
| 861 | bool early_ifcvt{false}; |
| 862 | bool early_inline_all{false}; |
| 863 | bool enable_aa{true}; |
| 864 | llvm::BoolOrDefault enable_delay_alu{llvm::BoolOrDefault::Default}; |
| 865 | bool enable_hipstdpar{false}; |
| 866 | llvm::BoolOrDefault enable_image_intrinsic_optimizer{llvm::BoolOrDefault::Default}; |
| 867 | bool enable_lower_exec_sync{true}; |
| 868 | llvm::BoolOrDefault enable_pre_ra_optimizations{llvm::BoolOrDefault::Default}; |
| 869 | bool enable_promote_kernel_arguments{true}; |
| 870 | bool enable_remove_incompatible_functions{true}; |
| 871 | bool enable_rewrite_partial_reg_uses{true}; |
| 872 | bool enable_sw_lower_lds{true}; |
| 873 | bool enable_uniform_intrinsic_combine{true}; |
| 874 | llvm::BoolOrDefault enable_vopd{llvm::BoolOrDefault::Default}; |
| 875 | bool internalize_symbols{false}; |
| 876 | bool ir_lower_kernel_arguments{true}; |
| 877 | bool link_time_closed_world{false}; |
| 878 | llvm::BoolOrDefault load_store_vectorizer{llvm::BoolOrDefault::Default}; |
| 879 | bool loop_prefetch{false}; |
| 880 | bool lower_global_ctor_dtor{true}; |
| 881 | bool opt_exec_mask_pre_ra{true}; |
| 882 | bool opt_vgpr_liverange{true}; |
| 883 | bool reassign_regs{true}; |
| 884 | llvm::BoolOrDefault scalar_ir_passes{llvm::BoolOrDefault::Default}; |
| 885 | StringRef sched_strategy{}; |
| 886 | llvm::BoolOrDefault sdwa_peephole{llvm::BoolOrDefault::Default}; |
| 887 | bool set_wave_priority{false}; |
| 888 | bool simplify_libcall{true}; |
| 889 | llvm::BoolOrDefault sramecc{llvm::BoolOrDefault::Default}; |
| 890 | bool use_ssa_machine_scheduler{false}; |
| 891 | llvm::BoolOrDefault xnack{llvm::BoolOrDefault::Default}; |
| 892 | unsigned inline_arg_alloca_cost{4000}; |
| 893 | unsigned inline_arg_alloca_cutoff{256}; |
| 894 | size_t inline_max_bb{1100}; |
| 895 | unsigned memcpy_loop_unroll{16}; |
| 896 | unsigned unroll_max_block_to_analyze{32}; |
| 897 | bool unroll_runtime_local{true}; |
| 898 | unsigned unroll_threshold_if{200}; |
| 899 | unsigned unroll_threshold_local{1000}; |
| 900 | unsigned unroll_threshold_private{2700}; |
| 901 | llvm::BoolOrDefault sgpr_hazard_boundary_cull{llvm::BoolOrDefault::Default}; |
| 902 | llvm::BoolOrDefault sgpr_hazard_mem_wait_cull{llvm::BoolOrDefault::Default}; |
| 903 | std::optional<unsigned> sgpr_hazard_mem_wait_cull_threshold{}; |
| 904 | llvm::BoolOrDefault expert_scheduling_mode{llvm::BoolOrDefault::Default}; |
| 905 | unsigned snop_padding{0}; |
| 906 | bool wmma_vnop_hoisting{true}; |
| 907 | unsigned addr_anti_hint_window{16}; |
| 908 | bool anti_hints_for_addr{true}; |
| 909 | bool anti_hints_for_va_vdst{false}; |
| 910 | llvm::ArrayRef<AMDGPU::AntiHintRule> anti_hints_rules{}; |
| 911 | unsigned va_vdst_lookback_window{32}; |
| 912 | double long_branch_factor{1.0}; |
| 913 | bool anti_hints{true}; |
| 914 | bool print_rp_downward{false}; |
| 915 | bool avgpr_banking{true}; |
| 916 | bool clustered_low_occupancy_reschedule{true}; |
| 917 | unsigned lirp_instant_lower_bound{10}; |
| 918 | bool lirp_reschedule{true}; |
| 919 | unsigned lirp_threshold{10}; |
| 920 | unsigned lirp_vgpr_reduction{90}; |
| 921 | #if !defined(NDEBUG) |
| 922 | bool print_max_reg_pressure_regusage_after_scheduler{false}; |
| 923 | #endif |
| 924 | #if !defined(NDEBUG) |
| 925 | bool print_max_reg_pressure_regusage_before_scheduler{false}; |
| 926 | #endif |
| 927 | bool rewrite_mfma_form_sched_stage{false}; |
| 928 | unsigned schedule_metric_bias{10}; |
| 929 | bool schedule_relaxed_occupancy{false}; |
| 930 | unsigned scheduler_pending_queue_limit{256}; |
| 931 | bool unclustered_high_rp_reschedule{true}; |
| 932 | llvm::BoolOrDefault use_amdgpu_trackers{llvm::BoolOrDefault::Default}; |
| 933 | std::optional<unsigned> nsa_threshold{}; |
| 934 | bool use_aa_in_codegen{true}; |
| 935 | bool vgpr_index_mode{false}; |
| 936 | bool r600_if_convert{true}; |
| 937 | bool r600_ir_structurize{true}; |
| 938 | bool enable_merge_m0{true}; |
| 939 | unsigned max_memory_clause{15}; |
| 940 | bool spill_vgpr_to_agpr{true}; |
| 941 | bool loop_alignment{true}; |
| 942 | bool use_divergent_register_indexing{false}; |
| 943 | std::optional<unsigned> hard_clause_length_limit{}; |
| 944 | bool waitcnt_forcezero{false}; |
| 945 | bool waitcnt_load_forcezero{false}; |
| 946 | bool fix_16_bit_physreg_copies{true}; |
| 947 | unsigned s_branch_bits{16}; |
| 948 | bool remove_redundant_endcf{true}; |
| 949 | unsigned num_vgprs_for_wwm_alloc{10}; |
| 950 | bool skip_cache_invalidations{false}; |
| 951 | bool prealloc_sgpr_spill_vgprs{false}; |
| 952 | bool spill_cfi_saved_regs{false}; |
| 953 | bool spill_sgpr_to_vgpr{true}; |
| 954 | std::optional<unsigned> stress_agpr{}; |
| 955 | std::optional<unsigned> stress_sgpr{}; |
| 956 | std::optional<unsigned> stress_vgpr{}; |
| 957 | |
| 958 | static const llvm::opt::OptTable &optTable(); |
| 959 | /// Sets the member that \p A names, allocating a list from \p Alloc. |
| 960 | /// Returns false if the value is invalid. |
| 961 | bool apply(const llvm::opt::Arg &A, llvm::BumpPtrAllocator &Alloc); |
| 962 | |
| 963 | private: |
| 964 | friend class llvm::cl::LibraryOptionsContext; |
| 965 | friend class llvm::opt::LibraryOptionsParser; |
| 966 | |
| 967 | static const AMDGPUOptions Default; |
| 968 | }; |
| 969 | } // namespace llvm |
| 970 | #endif // OPTIONS_STRUCT_DECL |
| 971 | |
| 972 | #ifdef OPTIONS_STRUCT_DEFS |
| 973 | #undef OPTIONS_STRUCT_DEFS |
| 974 | LLVM_REQUIRE_CONSTANT_INITIALIZATION const llvm::AMDGPUOptions llvm::AMDGPUOptions::Default; |
| 975 | |
| 976 | const llvm::opt::OptTable &llvm::AMDGPUOptions::optTable() { |
| 977 | static const llvm::opt::LibraryOptTable T(optionTables()); |
| 978 | return T; |
| 979 | } |
| 980 | |
| 981 | bool llvm::AMDGPUOptions::apply(const llvm::opt::Arg &A, llvm::BumpPtrAllocator &Alloc) { |
| 982 | switch (A.getOption().getID()) { |
| 983 | case OPT_amdgpu_addr_anti_hint_window: |
| 984 | return llvm::opt::parseArgValue(A.getValue(), addr_anti_hint_window, Alloc); |
| 985 | case OPT_amdgpu_anti_hints_for_addr: |
| 986 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , anti_hints_for_addr, Alloc); |
| 987 | case OPT_amdgpu_anti_hints_for_va_vdst: |
| 988 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , anti_hints_for_va_vdst, Alloc); |
| 989 | case OPT_amdgpu_anti_hints_rules: |
| 990 | return llvm::opt::parseArgValue(A.getValue(), anti_hints_rules, Alloc, [](llvm::StringRef V, auto &X) { |
| 991 | if (V == "none" ) { |
| 992 | X = AMDGPU::AntiHintRule::None; |
| 993 | return true; |
| 994 | } |
| 995 | if (V == "mfma-waw" ) { |
| 996 | X = AMDGPU::AntiHintRule::MFMAWAW; |
| 997 | return true; |
| 998 | } |
| 999 | if (V == "mfma-war" ) { |
| 1000 | X = AMDGPU::AntiHintRule::MFMAWAR; |
| 1001 | return true; |
| 1002 | } |
| 1003 | if (V == "wmma-war-ab" ) { |
| 1004 | X = AMDGPU::AntiHintRule::WMMAWARAB; |
| 1005 | return true; |
| 1006 | } |
| 1007 | if (V == "swmmac-war-index" ) { |
| 1008 | X = AMDGPU::AntiHintRule::SWMMACWARIndex; |
| 1009 | return true; |
| 1010 | } |
| 1011 | if (V == "wmma-waw" ) { |
| 1012 | X = AMDGPU::AntiHintRule::WMMAWAW; |
| 1013 | return true; |
| 1014 | } |
| 1015 | if (V == "trans-war" ) { |
| 1016 | X = AMDGPU::AntiHintRule::TransWAR; |
| 1017 | return true; |
| 1018 | } |
| 1019 | if (V == "mem-addr-war" ) { |
| 1020 | X = AMDGPU::AntiHintRule::MemAddrWAR; |
| 1021 | return true; |
| 1022 | } |
| 1023 | if (V == "va-vdst-war" ) { |
| 1024 | X = AMDGPU::AntiHintRule::VAVdstWAR; |
| 1025 | return true; |
| 1026 | } |
| 1027 | if (V == "all" ) { |
| 1028 | X = AMDGPU::AntiHintRule::All; |
| 1029 | return true; |
| 1030 | } |
| 1031 | return false; |
| 1032 | }); |
| 1033 | case OPT_amdgpu_anti_hints: |
| 1034 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , anti_hints, Alloc); |
| 1035 | case OPT_amdgpu_any_address_space_out_arguments: |
| 1036 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , any_address_space_out_arguments, Alloc); |
| 1037 | case OPT_amdgpu_asan_instrument_lds: |
| 1038 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , asan_instrument_lds, Alloc); |
| 1039 | case OPT_amdgpu_assume_dynamic_stack_object_size: |
| 1040 | return llvm::opt::parseArgValue(A.getValue(), assume_dynamic_stack_object_size, Alloc); |
| 1041 | case OPT_amdgpu_assume_external_call_stack_size: |
| 1042 | return llvm::opt::parseArgValue(A.getValue(), assume_external_call_stack_size, Alloc); |
| 1043 | case OPT_amdgpu_atomic_optimizer_strategy: |
| 1044 | return llvm::opt::parseArgValue(A.getValue(), atomic_optimizer_strategy, Alloc, [](llvm::StringRef V, auto &X) { |
| 1045 | if (V == "DPP" ) { |
| 1046 | X = AMDGPU::ScanOptions::DPP; |
| 1047 | return true; |
| 1048 | } |
| 1049 | if (V == "Iterative" ) { |
| 1050 | X = AMDGPU::ScanOptions::Iterative; |
| 1051 | return true; |
| 1052 | } |
| 1053 | if (V == "None" ) { |
| 1054 | X = AMDGPU::ScanOptions::None; |
| 1055 | return true; |
| 1056 | } |
| 1057 | return false; |
| 1058 | }); |
| 1059 | case OPT_amdgpu_attributor_enable: |
| 1060 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , attributor_enable, Alloc); |
| 1061 | case OPT_amdgpu_avgpr_banking: |
| 1062 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , avgpr_banking, Alloc); |
| 1063 | case OPT_amdgpu_barrier_signal_wait_latency: |
| 1064 | return llvm::opt::parseArgValue(A.getValue(), barrier_signal_wait_latency, Alloc); |
| 1065 | case OPT_amdgpu_block_carried_latency: |
| 1066 | return llvm::opt::parseArgValue(A.getValue(), block_carried_latency, Alloc, [](llvm::StringRef V, auto &X) { |
| 1067 | if (V == "off" ) { |
| 1068 | X = AMDGPU::CarriedLatency::Off; |
| 1069 | return true; |
| 1070 | } |
| 1071 | if (V == "fence" ) { |
| 1072 | X = AMDGPU::CarriedLatency::Fence; |
| 1073 | return true; |
| 1074 | } |
| 1075 | if (V == "all" ) { |
| 1076 | X = AMDGPU::CarriedLatency::All; |
| 1077 | return true; |
| 1078 | } |
| 1079 | return false; |
| 1080 | }); |
| 1081 | case OPT_amdgpu_bypass_slow_div: |
| 1082 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , bypass_slow_div, Alloc); |
| 1083 | case OPT_amdgpu_clustered_low_occupancy_reschedule: |
| 1084 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , clustered_low_occupancy_reschedule, Alloc); |
| 1085 | case OPT_amdgpu_codegenprepare_break_large_phis_threshold: |
| 1086 | return llvm::opt::parseArgValue(A.getValue(), codegenprepare_break_large_phis_threshold, Alloc); |
| 1087 | case OPT_amdgpu_codegenprepare_break_large_phis: |
| 1088 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , codegenprepare_break_large_phis, Alloc); |
| 1089 | case OPT_amdgpu_codegenprepare_expand_div64: |
| 1090 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , codegenprepare_expand_div64, Alloc); |
| 1091 | case OPT_amdgpu_codegenprepare_fdiv_expansion: |
| 1092 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , codegenprepare_fdiv_expansion, Alloc); |
| 1093 | case OPT_amdgpu_codegenprepare_force_break_large_phis: |
| 1094 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , codegenprepare_force_break_large_phis, Alloc); |
| 1095 | case OPT_amdgpu_codegenprepare_idiv_expansion: |
| 1096 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , codegenprepare_idiv_expansion, Alloc); |
| 1097 | case OPT_amdgpu_codegenprepare_mul24: |
| 1098 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , codegenprepare_mul24, Alloc); |
| 1099 | case OPT_amdgpu_codegenprepare_widen_constant_loads: |
| 1100 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , codegenprepare_widen_constant_loads, Alloc); |
| 1101 | case OPT_amdgpu_dce_in_ra: |
| 1102 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , dce_in_ra, Alloc); |
| 1103 | case OPT_amdgpu_dpp_combine: |
| 1104 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , dpp_combine, Alloc); |
| 1105 | case OPT_amdgpu_dump_hsa_metadata: |
| 1106 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , dump_hsa_metadata, Alloc); |
| 1107 | case OPT_amdgpu_early_ifcvt: |
| 1108 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , early_ifcvt, Alloc); |
| 1109 | case OPT_amdgpu_early_inline_all: |
| 1110 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , early_inline_all, Alloc); |
| 1111 | case OPT_amdgpu_enable_aa: |
| 1112 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_aa, Alloc); |
| 1113 | case OPT_amdgpu_enable_delay_alu: |
| 1114 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_delay_alu, Alloc); |
| 1115 | case OPT_amdgpu_enable_hipstdpar: |
| 1116 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_hipstdpar, Alloc); |
| 1117 | case OPT_amdgpu_enable_image_intrinsic_optimizer: |
| 1118 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_image_intrinsic_optimizer, Alloc); |
| 1119 | case OPT_amdgpu_enable_lower_exec_sync: |
| 1120 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_lower_exec_sync, Alloc); |
| 1121 | case OPT_amdgpu_enable_merge_m0: |
| 1122 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_merge_m0, Alloc); |
| 1123 | case OPT_amdgpu_enable_ocl_mangling_mismatch_workaround: |
| 1124 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_ocl_mangling_mismatch_workaround, Alloc); |
| 1125 | case OPT_amdgpu_enable_pre_ra_optimizations: |
| 1126 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_pre_ra_optimizations, Alloc); |
| 1127 | case OPT_amdgpu_enable_promote_kernel_arguments: |
| 1128 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_promote_kernel_arguments, Alloc); |
| 1129 | case OPT_amdgpu_enable_remove_incompatible_functions: |
| 1130 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_remove_incompatible_functions, Alloc); |
| 1131 | case OPT_amdgpu_enable_rewrite_partial_reg_uses: |
| 1132 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_rewrite_partial_reg_uses, Alloc); |
| 1133 | case OPT_amdgpu_enable_sw_lower_lds: |
| 1134 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_sw_lower_lds, Alloc); |
| 1135 | case OPT_amdgpu_enable_uniform_intrinsic_combine: |
| 1136 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_uniform_intrinsic_combine, Alloc); |
| 1137 | case OPT_amdgpu_enable_vopd: |
| 1138 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , enable_vopd, Alloc); |
| 1139 | case OPT_amdgpu_expert_scheduling_mode: |
| 1140 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , expert_scheduling_mode, Alloc); |
| 1141 | case OPT_amdgpu_fix_16_bit_physreg_copies: |
| 1142 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , fix_16_bit_physreg_copies, Alloc); |
| 1143 | case OPT_amdgpu_global_isel_new_legality: |
| 1144 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , global_isel_new_legality, Alloc); |
| 1145 | case OPT_amdgpu_hard_clause_length_limit: |
| 1146 | return llvm::opt::parseArgValue(A.getValue(), hard_clause_length_limit, Alloc); |
| 1147 | case OPT_amdgpu_igrouplp_exact_solver_cost_heur: |
| 1148 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , igrouplp_exact_solver_cost_heur, Alloc); |
| 1149 | case OPT_amdgpu_igrouplp_exact_solver_cutoff: |
| 1150 | return llvm::opt::parseArgValue(A.getValue(), igrouplp_exact_solver_cutoff, Alloc); |
| 1151 | case OPT_amdgpu_igrouplp_exact_solver_max_branches: |
| 1152 | return llvm::opt::parseArgValue(A.getValue(), igrouplp_exact_solver_max_branches, Alloc); |
| 1153 | case OPT_amdgpu_igrouplp_exact_solver: |
| 1154 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , igrouplp_exact_solver, Alloc); |
| 1155 | case OPT_amdgpu_indirect_access_weight: |
| 1156 | return llvm::opt::parseArgValue(A.getValue(), indirect_access_weight, Alloc); |
| 1157 | case OPT_amdgpu_indirect_call_specialization_threshold: |
| 1158 | return llvm::opt::parseArgValue(A.getValue(), indirect_call_specialization_threshold, Alloc); |
| 1159 | case OPT_amdgpu_inline_arg_alloca_cost: |
| 1160 | return llvm::opt::parseArgValue(A.getValue(), inline_arg_alloca_cost, Alloc); |
| 1161 | case OPT_amdgpu_inline_arg_alloca_cutoff: |
| 1162 | return llvm::opt::parseArgValue(A.getValue(), inline_arg_alloca_cutoff, Alloc); |
| 1163 | case OPT_amdgpu_inline_max_bb: |
| 1164 | return llvm::opt::parseArgValue(A.getValue(), inline_max_bb, Alloc); |
| 1165 | case OPT_amdgpu_internalize_symbols: |
| 1166 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , internalize_symbols, Alloc); |
| 1167 | case OPT_amdgpu_ir_lower_kernel_arguments: |
| 1168 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , ir_lower_kernel_arguments, Alloc); |
| 1169 | case OPT_amdgpu_kernarg_preload_count: |
| 1170 | return llvm::opt::parseArgValue(A.getValue(), kernarg_preload_count, Alloc); |
| 1171 | case OPT_amdgpu_kernarg_preload: |
| 1172 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , kernarg_preload, Alloc); |
| 1173 | case OPT_amdgpu_large_stride_threshold: |
| 1174 | return llvm::opt::parseArgValue(A.getValue(), large_stride_threshold, Alloc); |
| 1175 | case OPT_amdgpu_large_stride_weight: |
| 1176 | return llvm::opt::parseArgValue(A.getValue(), large_stride_weight, Alloc); |
| 1177 | case OPT_amdgpu_late_codegenprepare_widen_constant_loads: |
| 1178 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , late_codegenprepare_widen_constant_loads, Alloc); |
| 1179 | case OPT_amdgpu_limit_wave_threshold: |
| 1180 | return llvm::opt::parseArgValue(A.getValue(), limit_wave_threshold, Alloc); |
| 1181 | case OPT_amdgpu_link_time_closed_world: |
| 1182 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , link_time_closed_world, Alloc); |
| 1183 | case OPT_amdgpu_lirp_instant_lower_bound: |
| 1184 | return llvm::opt::parseArgValue(A.getValue(), lirp_instant_lower_bound, Alloc); |
| 1185 | case OPT_amdgpu_lirp_reschedule: |
| 1186 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , lirp_reschedule, Alloc); |
| 1187 | case OPT_amdgpu_lirp_threshold: |
| 1188 | return llvm::opt::parseArgValue(A.getValue(), lirp_threshold, Alloc); |
| 1189 | case OPT_amdgpu_lirp_vgpr_reduction: |
| 1190 | return llvm::opt::parseArgValue(A.getValue(), lirp_vgpr_reduction, Alloc); |
| 1191 | case OPT_amdgpu_load_store_vectorizer: |
| 1192 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , load_store_vectorizer, Alloc); |
| 1193 | case OPT_amdgpu_long_branch_factor: |
| 1194 | return llvm::opt::parseArgValue(A.getValue(), long_branch_factor, Alloc); |
| 1195 | case OPT_amdgpu_loop_alignment: |
| 1196 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , loop_alignment, Alloc); |
| 1197 | case OPT_amdgpu_loop_prefetch: |
| 1198 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , loop_prefetch, Alloc); |
| 1199 | case OPT_amdgpu_lower_global_ctor_dtor: |
| 1200 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , lower_global_ctor_dtor, Alloc); |
| 1201 | case OPT_amdgpu_lower_module_lds_strategy: |
| 1202 | return llvm::opt::parseArgValue(A.getValue(), lower_module_lds_strategy, Alloc, [](llvm::StringRef V, auto &X) { |
| 1203 | if (V == "table" ) { |
| 1204 | X = AMDGPU::LDSLoweringKind::table; |
| 1205 | return true; |
| 1206 | } |
| 1207 | if (V == "module" ) { |
| 1208 | X = AMDGPU::LDSLoweringKind::module; |
| 1209 | return true; |
| 1210 | } |
| 1211 | if (V == "kernel" ) { |
| 1212 | X = AMDGPU::LDSLoweringKind::kernel; |
| 1213 | return true; |
| 1214 | } |
| 1215 | if (V == "hybrid" ) { |
| 1216 | X = AMDGPU::LDSLoweringKind::hybrid; |
| 1217 | return true; |
| 1218 | } |
| 1219 | return false; |
| 1220 | }); |
| 1221 | case OPT_amdgpu_max_memory_clause: |
| 1222 | return llvm::opt::parseArgValue(A.getValue(), max_memory_clause, Alloc); |
| 1223 | case OPT_amdgpu_max_return_arg_num_regs: |
| 1224 | return llvm::opt::parseArgValue(A.getValue(), max_return_arg_num_regs, Alloc); |
| 1225 | case OPT_amdgpu_membound_threshold: |
| 1226 | return llvm::opt::parseArgValue(A.getValue(), membound_threshold, Alloc); |
| 1227 | case OPT_amdgpu_memcpy_loop_unroll: |
| 1228 | return llvm::opt::parseArgValue(A.getValue(), memcpy_loop_unroll, Alloc); |
| 1229 | #if !defined(NDEBUG) |
| 1230 | case OPT_amdgpu_module_splitting_debug_proposal_search: |
| 1231 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , module_splitting_debug_proposal_search, Alloc); |
| 1232 | #endif |
| 1233 | case OPT_amdgpu_module_splitting_externalize_address_taken: |
| 1234 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , module_splitting_externalize_address_taken, Alloc); |
| 1235 | case OPT_amdgpu_module_splitting_externalize_globals: |
| 1236 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , module_splitting_externalize_globals, Alloc); |
| 1237 | case OPT_amdgpu_module_splitting_large_threshold: |
| 1238 | return llvm::opt::parseArgValue(A.getValue(), module_splitting_large_threshold, Alloc); |
| 1239 | case OPT_amdgpu_module_splitting_max_depth: |
| 1240 | return llvm::opt::parseArgValue(A.getValue(), module_splitting_max_depth, Alloc); |
| 1241 | case OPT_amdgpu_module_splitting_merge_threshold: |
| 1242 | return llvm::opt::parseArgValue(A.getValue(), module_splitting_merge_threshold, Alloc); |
| 1243 | case OPT_amdgpu_module_splitting_print_module_dotcfg: |
| 1244 | return llvm::opt::parseArgValue(A.getValue(), module_splitting_print_module_dotcfg, Alloc); |
| 1245 | case OPT_amdgpu_module_splitting_print_partition_summaries: |
| 1246 | return llvm::opt::parseArgValue(A.getValue(), module_splitting_print_partition_summaries, Alloc); |
| 1247 | #if !defined(NDEBUG) |
| 1248 | case OPT_amdgpu_module_splitting_serial_execution: |
| 1249 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , module_splitting_serial_execution, Alloc); |
| 1250 | #endif |
| 1251 | case OPT_amdgpu_next_use_analysis_config: |
| 1252 | return llvm::opt::parseArgValue(A.getValue(), next_use_analysis_config, Alloc); |
| 1253 | case OPT_amdgpu_next_use_analysis_count_phis: |
| 1254 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , next_use_analysis_count_phis, Alloc); |
| 1255 | case OPT_amdgpu_next_use_analysis_distance_cache: |
| 1256 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , next_use_analysis_distance_cache, Alloc); |
| 1257 | case OPT_amdgpu_next_use_analysis_dump_distance_as_json: |
| 1258 | return llvm::opt::parseArgValue(A.getValue(), next_use_analysis_dump_distance_as_json, Alloc); |
| 1259 | case OPT_amdgpu_next_use_analysis_dump_distance_def_to_use: |
| 1260 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , next_use_analysis_dump_distance_def_to_use, Alloc); |
| 1261 | case OPT_amdgpu_next_use_analysis_dump_distance_verbose: |
| 1262 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , next_use_analysis_dump_distance_verbose, Alloc); |
| 1263 | case OPT_amdgpu_next_use_analysis_forward_only: |
| 1264 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , next_use_analysis_forward_only, Alloc); |
| 1265 | case OPT_amdgpu_next_use_analysis_precise_use_modeling: |
| 1266 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , next_use_analysis_precise_use_modeling, Alloc); |
| 1267 | case OPT_amdgpu_next_use_analysis_use_preheader_model: |
| 1268 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , next_use_analysis_use_preheader_model, Alloc); |
| 1269 | case OPT_amdgpu_nsa_threshold: |
| 1270 | return llvm::opt::parseArgValue(A.getValue(), nsa_threshold, Alloc); |
| 1271 | case OPT_amdgpu_num_vgprs_for_wwm_alloc: |
| 1272 | return llvm::opt::parseArgValue(A.getValue(), num_vgprs_for_wwm_alloc, Alloc); |
| 1273 | case OPT_amdgpu_opt_exec_mask_pre_ra: |
| 1274 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , opt_exec_mask_pre_ra, Alloc); |
| 1275 | case OPT_amdgpu_opt_vgpr_liverange: |
| 1276 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , opt_vgpr_liverange, Alloc); |
| 1277 | case OPT_amdgpu_prealloc_sgpr_spill_vgprs: |
| 1278 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , prealloc_sgpr_spill_vgprs, Alloc); |
| 1279 | case OPT_amdgpu_prelink: |
| 1280 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , prelink, Alloc); |
| 1281 | #if !defined(NDEBUG) |
| 1282 | case OPT_amdgpu_print_max_reg_pressure_regusage_after_scheduler: |
| 1283 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , print_max_reg_pressure_regusage_after_scheduler, Alloc); |
| 1284 | #endif |
| 1285 | #if !defined(NDEBUG) |
| 1286 | case OPT_amdgpu_print_max_reg_pressure_regusage_before_scheduler: |
| 1287 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , print_max_reg_pressure_regusage_before_scheduler, Alloc); |
| 1288 | #endif |
| 1289 | case OPT_amdgpu_print_rp_downward: |
| 1290 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , print_rp_downward, Alloc); |
| 1291 | case OPT_amdgpu_promote_alloca_to_lds: |
| 1292 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , promote_alloca_to_lds, Alloc); |
| 1293 | case OPT_amdgpu_promote_alloca_to_vector_limit: |
| 1294 | return llvm::opt::parseArgValue(A.getValue(), promote_alloca_to_vector_limit, Alloc); |
| 1295 | case OPT_amdgpu_promote_alloca_to_vector_max_regs: |
| 1296 | return llvm::opt::parseArgValue(A.getValue(), promote_alloca_to_vector_max_regs, Alloc); |
| 1297 | case OPT_amdgpu_promote_alloca_to_vector_vgpr_ratio: |
| 1298 | return llvm::opt::parseArgValue(A.getValue(), promote_alloca_to_vector_vgpr_ratio, Alloc); |
| 1299 | case OPT_amdgpu_promote_alloca_to_vector: |
| 1300 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , promote_alloca_to_vector, Alloc); |
| 1301 | case OPT_amdgpu_promote_alloca_vector_loop_user_weight: |
| 1302 | return llvm::opt::parseArgValue(A.getValue(), promote_alloca_vector_loop_user_weight, Alloc); |
| 1303 | case OPT_amdgpu_reassign_regs: |
| 1304 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , reassign_regs, Alloc); |
| 1305 | case OPT_amdgpu_remove_redundant_endcf: |
| 1306 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , remove_redundant_endcf, Alloc); |
| 1307 | case OPT_amdgpu_rewrite_mfma_form_sched_stage: |
| 1308 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , rewrite_mfma_form_sched_stage, Alloc); |
| 1309 | case OPT_amdgpu_s_branch_bits: |
| 1310 | return llvm::opt::parseArgValue(A.getValue(), s_branch_bits, Alloc); |
| 1311 | case OPT_amdgpu_scalar_ir_passes: |
| 1312 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , scalar_ir_passes, Alloc); |
| 1313 | case OPT_amdgpu_sched_strategy: |
| 1314 | return llvm::opt::parseArgValue(A.getValue(), sched_strategy, Alloc); |
| 1315 | case OPT_amdgpu_schedule_metric_bias: |
| 1316 | return llvm::opt::parseArgValue(A.getValue(), schedule_metric_bias, Alloc); |
| 1317 | case OPT_amdgpu_schedule_relaxed_occupancy: |
| 1318 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , schedule_relaxed_occupancy, Alloc); |
| 1319 | case OPT_amdgpu_scheduler_pending_queue_limit: |
| 1320 | return llvm::opt::parseArgValue(A.getValue(), scheduler_pending_queue_limit, Alloc); |
| 1321 | case OPT_amdgpu_sdwa_peephole: |
| 1322 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , sdwa_peephole, Alloc); |
| 1323 | case OPT_amdgpu_set_wave_priority_valu_insts_threshold: |
| 1324 | return llvm::opt::parseArgValue(A.getValue(), set_wave_priority_valu_insts_threshold, Alloc); |
| 1325 | case OPT_amdgpu_set_wave_priority: |
| 1326 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , set_wave_priority, Alloc); |
| 1327 | case OPT_amdgpu_sgpr_hazard_boundary_cull: |
| 1328 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , sgpr_hazard_boundary_cull, Alloc); |
| 1329 | case OPT_amdgpu_sgpr_hazard_mem_wait_cull_threshold: |
| 1330 | return llvm::opt::parseArgValue(A.getValue(), sgpr_hazard_mem_wait_cull_threshold, Alloc); |
| 1331 | case OPT_amdgpu_sgpr_hazard_mem_wait_cull: |
| 1332 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , sgpr_hazard_mem_wait_cull, Alloc); |
| 1333 | case OPT_amdgpu_simplify_libcall: |
| 1334 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , simplify_libcall, Alloc); |
| 1335 | case OPT_amdgpu_skip_cache_invalidations: |
| 1336 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , skip_cache_invalidations, Alloc); |
| 1337 | case OPT_amdgpu_snop_padding: |
| 1338 | return llvm::opt::parseArgValue(A.getValue(), snop_padding, Alloc); |
| 1339 | case OPT_amdgpu_spill_cfi_saved_regs: |
| 1340 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , spill_cfi_saved_regs, Alloc); |
| 1341 | case OPT_amdgpu_spill_sgpr_to_vgpr: |
| 1342 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , spill_sgpr_to_vgpr, Alloc); |
| 1343 | case OPT_amdgpu_spill_vgpr_to_agpr: |
| 1344 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , spill_vgpr_to_agpr, Alloc); |
| 1345 | case OPT_amdgpu_sramecc: |
| 1346 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , sramecc, Alloc); |
| 1347 | case OPT_amdgpu_stress_agpr: |
| 1348 | return llvm::opt::parseArgValue(A.getValue(), stress_agpr, Alloc); |
| 1349 | case OPT_amdgpu_stress_function_calls: |
| 1350 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , stress_function_calls, Alloc); |
| 1351 | case OPT_amdgpu_stress_sgpr: |
| 1352 | return llvm::opt::parseArgValue(A.getValue(), stress_sgpr, Alloc); |
| 1353 | case OPT_amdgpu_stress_vgpr: |
| 1354 | return llvm::opt::parseArgValue(A.getValue(), stress_vgpr, Alloc); |
| 1355 | case OPT_amdgpu_super_align_lds_globals: |
| 1356 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , super_align_lds_globals, Alloc); |
| 1357 | case OPT_amdgpu_unclustered_high_rp_reschedule: |
| 1358 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , unclustered_high_rp_reschedule, Alloc); |
| 1359 | case OPT_amdgpu_unroll_max_block_to_analyze: |
| 1360 | return llvm::opt::parseArgValue(A.getValue(), unroll_max_block_to_analyze, Alloc); |
| 1361 | case OPT_amdgpu_unroll_runtime_local: |
| 1362 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , unroll_runtime_local, Alloc); |
| 1363 | case OPT_amdgpu_unroll_threshold_if: |
| 1364 | return llvm::opt::parseArgValue(A.getValue(), unroll_threshold_if, Alloc); |
| 1365 | case OPT_amdgpu_unroll_threshold_local: |
| 1366 | return llvm::opt::parseArgValue(A.getValue(), unroll_threshold_local, Alloc); |
| 1367 | case OPT_amdgpu_unroll_threshold_private: |
| 1368 | return llvm::opt::parseArgValue(A.getValue(), unroll_threshold_private, Alloc); |
| 1369 | case OPT_amdgpu_use_aa_in_codegen: |
| 1370 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , use_aa_in_codegen, Alloc); |
| 1371 | case OPT_amdgpu_use_amdgpu_trackers: |
| 1372 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , use_amdgpu_trackers, Alloc); |
| 1373 | case OPT_amdgpu_use_divergent_register_indexing: |
| 1374 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , use_divergent_register_indexing, Alloc); |
| 1375 | case OPT_amdgpu_use_ssa_machine_scheduler: |
| 1376 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , use_ssa_machine_scheduler, Alloc); |
| 1377 | case OPT_amdgpu_va_vdst_lookback_window: |
| 1378 | return llvm::opt::parseArgValue(A.getValue(), va_vdst_lookback_window, Alloc); |
| 1379 | case OPT_amdgpu_verify_hsa_metadata: |
| 1380 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , verify_hsa_metadata, Alloc); |
| 1381 | case OPT_amdgpu_vgpr_index_mode: |
| 1382 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , vgpr_index_mode, Alloc); |
| 1383 | case OPT_amdgpu_waitcnt_forcezero: |
| 1384 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , waitcnt_forcezero, Alloc); |
| 1385 | case OPT_amdgpu_waitcnt_load_forcezero: |
| 1386 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , waitcnt_load_forcezero, Alloc); |
| 1387 | case OPT_amdgpu_wmma_vnop_hoisting: |
| 1388 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , wmma_vnop_hoisting, Alloc); |
| 1389 | case OPT_amdgpu_xnack: |
| 1390 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , xnack, Alloc); |
| 1391 | case OPT_r600_if_convert: |
| 1392 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , r600_if_convert, Alloc); |
| 1393 | case OPT_r600_ir_structurize: |
| 1394 | return llvm::opt::parseArgValue(A.getNumValues() ? A.getValue() : "true" , r600_ir_structurize, Alloc); |
| 1395 | } |
| 1396 | llvm_unreachable("option without a member" ); |
| 1397 | } |
| 1398 | #endif // OPTIONS_STRUCT_DEFS |
| 1399 | ///////// |
| 1400 | // ValuesCode |
| 1401 | |
| 1402 | #ifdef OPTTABLE_VALUES_CODE |
| 1403 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 1404 | switch (ID) { |
| 1405 | } |
| 1406 | return {}; |
| 1407 | } |
| 1408 | #undef OPTTABLE_VALUES_CODE |
| 1409 | #endif // OPTTABLE_VALUES_CODE |
| 1410 | ///////// |
| 1411 | // Groups |
| 1412 | |
| 1413 | #ifdef OPTION |
| 1414 | |
| 1415 | ////////// |
| 1416 | // Options |
| 1417 | |
| 1418 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1419 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1420 | OPTION(1, 24 /* -amdgcn-skip-cache-invalidations */, anonymous_158, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1421 | OPTION(1, 57 /* -amdgpu-addr-anti-hint-window */, anonymous_112, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 87, 0, 0, 0, 0) |
| 1422 | OPTION(1, 155 /* -amdgpu-anti-hints-for-addr */, anonymous_113, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 183, 0, 0, 0, 0) |
| 1423 | OPTION(1, 275 /* -amdgpu-anti-hints-for-va-vdst */, anonymous_114, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 306, 0, 0, 0, 0) |
| 1424 | OPTION(1, 336 /* -amdgpu-anti-hints-rules */, anonymous_115, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 361, 0, 388, 490, 0) |
| 1425 | OPTION(1, 590 /* -amdgpu-anti-hints */, anonymous_118, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 609, 0, 0, 0, 0) |
| 1426 | OPTION(1, 647 /* -amdgpu-any-address-space-out-arguments */, anonymous_49, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 687, 0, 0, 0, 0) |
| 1427 | OPTION(1, 767 /* -amdgpu-asan-instrument-lds */, anonymous_61, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 795, 0, 0, 0, 0) |
| 1428 | OPTION(1, 865 /* -amdgpu-assume-dynamic-stack-object-size */, anonymous_47, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 906, 0, 0, 0, 0) |
| 1429 | OPTION(1, 981 /* -amdgpu-assume-external-call-stack-size */, anonymous_48, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1021, 0, 0, 0, 0) |
| 1430 | OPTION(1, 1071 /* -amdgpu-atomic-optimizer-strategy */, anonymous_62, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1105, 0, 1147, 1168, 0) |
| 1431 | OPTION(1, 1187 /* -amdgpu-attributor-enable */, anonymous_63, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1213, 0, 0, 0, 0) |
| 1432 | OPTION(1, 1241 /* -amdgpu-avgpr-banking */, anonymous_120, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1263, 0, 0, 0, 0) |
| 1433 | OPTION(1, 1366 /* -amdgpu-barrier-signal-wait-latency */, anonymous_2, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1402, 0, 0, 0, 0) |
| 1434 | OPTION(1, 1518 /* -amdgpu-block-carried-latency */, anonymous_3, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1548, 0, 1632, 1648, 0) |
| 1435 | OPTION(1, 1662 /* -amdgpu-bypass-slow-div */, anonymous_18, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1686, 0, 0, 0, 0) |
| 1436 | OPTION(1, 1731 /* -amdgpu-clustered-low-occupancy-reschedule */, anonymous_121, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1774, 0, 0, 0, 0) |
| 1437 | OPTION(1, 1843 /* -amdgpu-codegenprepare-break-large-phis-threshold */, anonymous_5, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1893, 0, 0, 0, 0) |
| 1438 | OPTION(1, 1948 /* -amdgpu-codegenprepare-break-large-phis */, anonymous_4, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1988, 0, 0, 0, 0) |
| 1439 | OPTION(1, 2022 /* -amdgpu-codegenprepare-disable-fdiv-expansion */, anonymous_159, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1440 | OPTION(1, 2075 /* -amdgpu-codegenprepare-disable-idiv-expansion */, anonymous_160, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1441 | OPTION(1, 2121 /* -amdgpu-codegenprepare-expand-div64 */, anonymous_6, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2157, 0, 0, 0, 0) |
| 1442 | OPTION(1, 2204 /* -amdgpu-codegenprepare-fdiv-expansion */, anonymous_7, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2242, 0, 0, 0, 0) |
| 1443 | OPTION(1, 2297 /* -amdgpu-codegenprepare-force-break-large-phis */, anonymous_8, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2343, 0, 0, 0, 0) |
| 1444 | OPTION(1, 2417 /* -amdgpu-codegenprepare-idiv-expansion */, anonymous_9, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2455, 0, 0, 0, 0) |
| 1445 | OPTION(1, 2503 /* -amdgpu-codegenprepare-mul24 */, anonymous_10, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2532, 0, 0, 0, 0) |
| 1446 | OPTION(1, 2583 /* -amdgpu-codegenprepare-widen-constant-loads */, anonymous_11, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2627, 0, 0, 0, 0) |
| 1447 | OPTION(1, 2696 /* -amdgpu-dce-in-ra */, anonymous_64, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2714, 0, 0, 0, 0) |
| 1448 | OPTION(1, 2749 /* -amdgpu-disable-clustered-low-occupancy-reschedule */, anonymous_161, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1449 | OPTION(1, 2800 /* -amdgpu-disable-loop-alignment */, anonymous_162, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1450 | OPTION(1, 2831 /* -amdgpu-disable-rewrite-mfma-form-sched-stage */, anonymous_163, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1451 | OPTION(1, 2877 /* -amdgpu-disable-unclustered-high-rp-reschedule */, anonymous_164, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1452 | OPTION(1, 2924 /* -amdgpu-dpp-combine */, anonymous_65, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2944, 0, 0, 0, 0) |
| 1453 | OPTION(1, 2964 /* -amdgpu-dump-hsa-metadata */, anonymous_12, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 2990, 0, 0, 0, 0) |
| 1454 | OPTION(1, 3015 /* -amdgpu-early-ifcvt */, anonymous_66, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3035, 0, 0, 0, 0) |
| 1455 | OPTION(1, 3059 /* -amdgpu-early-inline-all */, anonymous_67, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3084, 0, 0, 0, 0) |
| 1456 | OPTION(1, 3111 /* -amdgpu-enable-aa */, anonymous_68, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3129, 0, 0, 0, 0) |
| 1457 | OPTION(1, 3158 /* -amdgpu-enable-delay-alu */, anonymous_69, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3183, 0, 0, 0, 0) |
| 1458 | OPTION(1, 3212 /* -amdgpu-enable-hipstdpar */, anonymous_70, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3237, 0, 0, 0, 0) |
| 1459 | OPTION(1, 3285 /* -amdgpu-enable-image-intrinsic-optimizer */, anonymous_71, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3326, 0, 0, 0, 0) |
| 1460 | OPTION(1, 3364 /* -amdgpu-enable-lower-exec-sync */, anonymous_72, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3395, 0, 0, 0, 0) |
| 1461 | OPTION(1, 3440 /* -amdgpu-enable-merge-m0 */, anonymous_139, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3464, 0, 0, 0, 0) |
| 1462 | OPTION(1, 3499 /* -amdgpu-enable-ocl-mangling-mismatch-workaround */, anonymous_22, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3547, 0, 0, 0, 0) |
| 1463 | OPTION(1, 3600 /* -amdgpu-enable-pre-ra-optimizations */, anonymous_73, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3636, 0, 0, 0, 0) |
| 1464 | OPTION(1, 3669 /* -amdgpu-enable-promote-kernel-arguments */, anonymous_74, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3709, 0, 0, 0, 0) |
| 1465 | OPTION(1, 3769 /* -amdgpu-enable-remove-incompatible-functions */, anonymous_75, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3814, 0, 0, 0, 0) |
| 1466 | OPTION(1, 3897 /* -amdgpu-enable-rewrite-partial-reg-uses */, anonymous_76, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 3937, 0, 0, 0, 0) |
| 1467 | OPTION(1, 3974 /* -amdgpu-enable-sw-lower-lds */, anonymous_77, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 4002, 0, 0, 0, 0) |
| 1468 | OPTION(1, 4080 /* -amdgpu-enable-uniform-intrinsic-combine */, anonymous_78, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 4121, 0, 0, 0, 0) |
| 1469 | OPTION(1, 4171 /* -amdgpu-enable-vopd */, anonymous_79, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 4191, 0, 0, 0, 0) |
| 1470 | OPTION(1, 4233 /* -amdgpu-expert-scheduling-mode */, anonymous_109, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 4264, 0, 0, 0, 0) |
| 1471 | OPTION(1, 4328 /* -amdgpu-fix-16-bit-physreg-copies */, anonymous_147, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 4362, 0, 0, 0, 0) |
| 1472 | OPTION(1, 4428 /* -amdgpu-global-isel-new-legality */, anonymous_20, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 4461, 0, 0, 0, 0) |
| 1473 | OPTION(1, 4558 /* -amdgpu-hard-clause-length-limit */, anonymous_144, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 4591, 0, 0, 0, 0) |
| 1474 | OPTION(1, 4662 /* -amdgpu-igrouplp-exact-solver-cost-heur */, anonymous_15, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 4702, 0, 0, 0, 0) |
| 1475 | OPTION(1, 5016 /* -amdgpu-igrouplp-exact-solver-cutoff */, anonymous_16, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 5053, 0, 0, 0, 0) |
| 1476 | OPTION(1, 5365 /* -amdgpu-igrouplp-exact-solver-max-branches */, anonymous_17, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 5408, 0, 0, 0, 0) |
| 1477 | OPTION(1, 5504 /* -amdgpu-igrouplp-exact-solver */, anonymous_14, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 5534, 0, 0, 0, 0) |
| 1478 | OPTION(1, 5640 /* -amdgpu-indirect-access-weight */, anonymous_34, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 5671, 0, 0, 0, 0) |
| 1479 | OPTION(1, 5713 /* -amdgpu-indirect-call-specialization-threshold */, anonymous_1, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 5760, 0, 0, 0, 0) |
| 1480 | OPTION(1, 5826 /* -amdgpu-inline-arg-alloca-cost */, anonymous_97, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 5857, 0, 0, 0, 0) |
| 1481 | OPTION(1, 5881 /* -amdgpu-inline-arg-alloca-cutoff */, anonymous_98, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 5914, 0, 0, 0, 0) |
| 1482 | OPTION(1, 5957 /* -amdgpu-inline-max-bb */, anonymous_99, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 5979, 0, 0, 0, 0) |
| 1483 | OPTION(1, 6064 /* -amdgpu-internalize-symbols */, anonymous_80, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6092, 0, 0, 0, 0) |
| 1484 | OPTION(1, 6154 /* -amdgpu-ir-lower-kernel-arguments */, anonymous_81, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6188, 0, 0, 0, 0) |
| 1485 | OPTION(1, 6227 /* -amdgpu-kernarg-preload-count */, anonymous_40, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6257, 0, 0, 0, 0) |
| 1486 | OPTION(1, 6305 /* -amdgpu-kernarg-preload */, anonymous_39, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6329, 0, 0, 0, 0) |
| 1487 | OPTION(1, 6370 /* -amdgpu-large-stride-threshold */, anonymous_35, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6401, 0, 0, 0, 0) |
| 1488 | OPTION(1, 6438 /* -amdgpu-large-stride-weight */, anonymous_36, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6466, 0, 0, 0, 0) |
| 1489 | OPTION(1, 6500 /* -amdgpu-late-codegenprepare-widen-constant-loads */, anonymous_19, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6549, 0, 0, 0, 0) |
| 1490 | OPTION(1, 6622 /* -amdgpu-limit-wave-threshold */, anonymous_37, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6651, 0, 0, 0, 0) |
| 1491 | OPTION(1, 6684 /* -amdgpu-link-time-closed-world */, anonymous_82, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6715, 0, 0, 0, 0) |
| 1492 | OPTION(1, 6764 /* -amdgpu-lirp-instant-lower-bound */, anonymous_122, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6797, 0, 0, 0, 0) |
| 1493 | OPTION(1, 6891 /* -amdgpu-lirp-reschedule */, anonymous_123, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6915, 0, 0, 0, 0) |
| 1494 | OPTION(1, 6956 /* -amdgpu-lirp-threshold */, anonymous_124, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 6979, 0, 0, 0, 0) |
| 1495 | OPTION(1, 7062 /* -amdgpu-lirp-vgpr-reduction */, anonymous_125, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 7090, 0, 0, 0, 0) |
| 1496 | OPTION(1, 7177 /* -amdgpu-load-store-vectorizer */, anonymous_83, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 7207, 0, 0, 0, 0) |
| 1497 | OPTION(1, 7236 /* -amdgpu-long-branch-factor */, anonymous_117, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 7263, 0, 0, 0, 0) |
| 1498 | OPTION(1, 7616 /* -amdgpu-loop-alignment */, anonymous_142, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 7639, 0, 0, 0, 0) |
| 1499 | OPTION(1, 7664 /* -amdgpu-loop-prefetch */, anonymous_84, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 7686, 0, 0, 0, 0) |
| 1500 | OPTION(1, 7722 /* -amdgpu-lower-global-ctor-dtor */, anonymous_85, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 7753, 0, 0, 0, 0) |
| 1501 | OPTION(1, 7801 /* -amdgpu-lower-module-lds-strategy */, anonymous_23, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 7835, 0, 7885, 7914, 0) |
| 1502 | OPTION(1, 7941 /* -amdgpu-max-memory-clause */, anonymous_140, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 7967, 0, 0, 0, 0) |
| 1503 | OPTION(1, 8015 /* -amdgpu-max-return-arg-num-regs */, anonymous_50, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 8047, 0, 0, 0, 0) |
| 1504 | OPTION(1, 8122 /* -amdgpu-membound-threshold */, anonymous_38, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 8149, 0, 0, 0, 0) |
| 1505 | OPTION(1, 8183 /* -amdgpu-memcpy-loop-unroll */, anonymous_100, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 8210, 0, 0, 0, 0) |
| 1506 | #if !defined(NDEBUG) |
| 1507 | OPTION(1, 8353 /* -amdgpu-module-splitting-debug-proposal-search */, anonymous_52, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 8400, 0, 0, 0, 0) |
| 1508 | #endif |
| 1509 | OPTION(1, 8472 /* -amdgpu-module-splitting-externalize-address-taken */, anonymous_53, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 8523, 0, 0, 0, 0) |
| 1510 | OPTION(1, 8571 /* -amdgpu-module-splitting-externalize-globals */, anonymous_54, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 8616, 0, 0, 0, 0) |
| 1511 | OPTION(1, 8738 /* -amdgpu-module-splitting-large-threshold */, anonymous_55, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 8779, 0, 0, 0, 0) |
| 1512 | OPTION(1, 9125 /* -amdgpu-module-splitting-max-depth */, anonymous_56, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 9160, 0, 0, 0, 0) |
| 1513 | OPTION(1, 9275 /* -amdgpu-module-splitting-merge-threshold */, anonymous_57, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 9316, 0, 0, 0, 0) |
| 1514 | OPTION(1, 9543 /* -amdgpu-module-splitting-no-externalize-address-taken */, anonymous_165, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1515 | OPTION(1, 9597 /* -amdgpu-module-splitting-no-externalize-globals */, anonymous_166, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1516 | OPTION(1, 9645 /* -amdgpu-module-splitting-print-module-dotcfg */, anonymous_58, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 9690, 0, 0, 0, 0) |
| 1517 | OPTION(1, 9763 /* -amdgpu-module-splitting-print-partition-summaries */, anonymous_59, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 9814, 0, 0, 0, 0) |
| 1518 | #if !defined(NDEBUG) |
| 1519 | OPTION(1, 9891 /* -amdgpu-module-splitting-serial-execution */, anonymous_60, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 9933, 0, 0, 0, 0) |
| 1520 | #endif |
| 1521 | OPTION(1, 10077 /* -amdgpu-next-use-analysis-config */, anonymous_25, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10110, 0, 0, 0, 0) |
| 1522 | OPTION(1, 10149 /* -amdgpu-next-use-analysis-count-phis */, anonymous_26, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10186, 0, 0, 0, 0) |
| 1523 | OPTION(1, 10240 /* -amdgpu-next-use-analysis-distance-cache */, anonymous_27, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10281, 0, 0, 0, 0) |
| 1524 | OPTION(1, 10316 /* -amdgpu-next-use-analysis-dump-distance-as-json */, anonymous_28, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10364, 0, 0, 0, 0) |
| 1525 | OPTION(1, 10366 /* -amdgpu-next-use-analysis-dump-distance-def-to-use */, anonymous_29, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10364, 0, 0, 0, 0) |
| 1526 | OPTION(1, 10417 /* -amdgpu-next-use-analysis-dump-distance-verbose */, anonymous_30, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10364, 0, 0, 0, 0) |
| 1527 | OPTION(1, 10465 /* -amdgpu-next-use-analysis-forward-only */, anonymous_31, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10504, 0, 0, 0, 0) |
| 1528 | OPTION(1, 10562 /* -amdgpu-next-use-analysis-precise-use-modeling */, anonymous_32, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10609, 0, 0, 0, 0) |
| 1529 | OPTION(1, 10687 /* -amdgpu-next-use-analysis-use-preheader-model */, anonymous_33, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10733, 0, 0, 0, 0) |
| 1530 | OPTION(1, 10794 /* -amdgpu-nsa-threshold */, anonymous_134, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10816, 0, 0, 0, 0) |
| 1531 | OPTION(1, 10866 /* -amdgpu-num-vgprs-for-wwm-alloc */, anonymous_150, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10898, 0, 0, 0, 0) |
| 1532 | OPTION(1, 10947 /* -amdgpu-opt-exec-mask-pre-ra */, anonymous_86, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10976, 0, 0, 0, 0) |
| 1533 | OPTION(1, 11011 /* -amdgpu-opt-vgpr-liverange */, anonymous_87, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11038, 0, 0, 0, 0) |
| 1534 | OPTION(1, 11096 /* -amdgpu-prealloc-sgpr-spill-vgprs */, anonymous_152, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10364, 0, 0, 0, 0) |
| 1535 | OPTION(1, 11130 /* -amdgpu-prelink */, anonymous_21, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11146, 0, 0, 0, 0) |
| 1536 | #if !defined(NDEBUG) |
| 1537 | OPTION(1, 11181 /* -amdgpu-print-max-reg-pressure-regusage-after-scheduler */, anonymous_126, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11237, 0, 0, 0, 0) |
| 1538 | #endif |
| 1539 | #if !defined(NDEBUG) |
| 1540 | OPTION(1, 11353 /* -amdgpu-print-max-reg-pressure-regusage-before-scheduler */, anonymous_127, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11410, 0, 0, 0, 0) |
| 1541 | #endif |
| 1542 | OPTION(1, 11527 /* -amdgpu-print-rp-downward */, anonymous_119, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11553, 0, 0, 0, 0) |
| 1543 | OPTION(1, 11609 /* -amdgpu-promote-alloca-to-lds */, anonymous_41, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11639, 0, 0, 0, 0) |
| 1544 | OPTION(1, 11661 /* -amdgpu-promote-alloca-to-vector-limit */, anonymous_43, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11700, 0, 0, 0, 0) |
| 1545 | OPTION(1, 11755 /* -amdgpu-promote-alloca-to-vector-max-regs */, anonymous_44, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11797, 0, 0, 0, 0) |
| 1546 | OPTION(1, 11865 /* -amdgpu-promote-alloca-to-vector-vgpr-ratio */, anonymous_45, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11909, 0, 0, 0, 0) |
| 1547 | OPTION(1, 11966 /* -amdgpu-promote-alloca-to-vector */, anonymous_42, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 11999, 0, 0, 0, 0) |
| 1548 | OPTION(1, 12024 /* -amdgpu-promote-alloca-vector-loop-user-weight */, anonymous_46, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12071, 0, 0, 0, 0) |
| 1549 | OPTION(1, 12152 /* -amdgpu-reassign-regs */, anonymous_88, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12174, 0, 0, 0, 0) |
| 1550 | OPTION(1, 12223 /* -amdgpu-remove-redundant-endcf */, anonymous_149, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 10364, 0, 0, 0, 0) |
| 1551 | OPTION(1, 12254 /* -amdgpu-rewrite-mfma-form-sched-stage */, anonymous_128, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12292, 0, 0, 0, 0) |
| 1552 | OPTION(1, 12329 /* -amdgpu-s-branch-bits */, anonymous_148, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12351, 0, 0, 0, 0) |
| 1553 | OPTION(1, 12397 /* -amdgpu-scalar-ir-passes */, anonymous_89, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12422, 0, 0, 0, 0) |
| 1554 | OPTION(1, 12446 /* -amdgpu-sched-strategy */, anonymous_90, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12469, 0, 0, 0, 0) |
| 1555 | OPTION(1, 12510 /* -amdgpu-schedule-metric-bias */, anonymous_129, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12539, 0, 0, 0, 0) |
| 1556 | OPTION(1, 12638 /* -amdgpu-schedule-relaxed-occupancy */, anonymous_130, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12673, 0, 0, 0, 0) |
| 1557 | OPTION(1, 12807 /* -amdgpu-scheduler-pending-queue-limit */, anonymous_131, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12845, 0, 0, 0, 0) |
| 1558 | OPTION(1, 12912 /* -amdgpu-sdwa-peephole */, anonymous_91, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 12934, 0, 0, 0, 0) |
| 1559 | OPTION(1, 12956 /* -amdgpu-set-wave-priority-valu-insts-threshold */, anonymous_51, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13003, 0, 0, 0, 0) |
| 1560 | OPTION(1, 13064 /* -amdgpu-set-wave-priority */, anonymous_92, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13090, 0, 0, 0, 0) |
| 1561 | OPTION(1, 13111 /* -amdgpu-sgpr-hazard-boundary-cull */, anonymous_106, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13145, 0, 0, 0, 0) |
| 1562 | OPTION(1, 13181 /* -amdgpu-sgpr-hazard-mem-wait-cull-threshold */, anonymous_108, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13225, 0, 0, 0, 0) |
| 1563 | OPTION(1, 13294 /* -amdgpu-sgpr-hazard-mem-wait-cull */, anonymous_107, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13328, 0, 0, 0, 0) |
| 1564 | OPTION(1, 13357 /* -amdgpu-simplify-libcall */, anonymous_93, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13382, 0, 0, 0, 0) |
| 1565 | OPTION(1, 13420 /* -amdgpu-skip-cache-invalidations */, anonymous_151, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13453, 0, 0, 0, 0) |
| 1566 | OPTION(1, 13512 /* -amdgpu-snop-padding */, anonymous_110, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13533, 0, 0, 0, 0) |
| 1567 | OPTION(1, 13575 /* -amdgpu-spill-cfi-saved-regs */, anonymous_153, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13604, 0, 0, 0, 0) |
| 1568 | OPTION(1, 13660 /* -amdgpu-spill-sgpr-to-vgpr */, anonymous_154, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13687, 0, 0, 0, 0) |
| 1569 | OPTION(1, 13718 /* -amdgpu-spill-vgpr-to-agpr */, anonymous_141, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13745, 0, 0, 0, 0) |
| 1570 | OPTION(1, 13776 /* -amdgpu-sramecc */, anonymous_94, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13792, 0, 0, 0, 0) |
| 1571 | OPTION(1, 13825 /* -amdgpu-stress-agpr */, anonymous_155, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13845, 0, 0, 0, 0) |
| 1572 | OPTION(1, 13894 /* -amdgpu-stress-function-calls */, anonymous_0, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13924, 0, 0, 0, 0) |
| 1573 | OPTION(1, 13959 /* -amdgpu-stress-sgpr */, anonymous_156, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 13979, 0, 0, 0, 0) |
| 1574 | OPTION(1, 14028 /* -amdgpu-stress-vgpr */, anonymous_157, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14048, 0, 0, 0, 0) |
| 1575 | OPTION(1, 14097 /* -amdgpu-super-align-lds-globals */, anonymous_24, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14129, 0, 0, 0, 0) |
| 1576 | OPTION(1, 14186 /* -amdgpu-unclustered-high-rp-reschedule */, anonymous_132, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14225, 0, 0, 0, 0) |
| 1577 | OPTION(1, 14294 /* -amdgpu-unroll-max-block-to-analyze */, anonymous_101, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14330, 0, 0, 0, 0) |
| 1578 | OPTION(1, 14394 /* -amdgpu-unroll-runtime-local */, anonymous_102, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14423, 0, 0, 0, 0) |
| 1579 | OPTION(1, 14486 /* -amdgpu-unroll-threshold-if */, anonymous_103, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14514, 0, 0, 0, 0) |
| 1580 | OPTION(1, 14586 /* -amdgpu-unroll-threshold-local */, anonymous_104, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14617, 0, 0, 0, 0) |
| 1581 | OPTION(1, 14676 /* -amdgpu-unroll-threshold-private */, anonymous_105, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14709, 0, 0, 0, 0) |
| 1582 | OPTION(1, 14770 /* -amdgpu-use-aa-in-codegen */, anonymous_135, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14796, 0, 0, 0, 0) |
| 1583 | OPTION(1, 14832 /* -amdgpu-use-amdgpu-trackers */, anonymous_133, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14860, 0, 0, 0, 0) |
| 1584 | OPTION(1, 14913 /* -amdgpu-use-divergent-register-indexing */, anonymous_143, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 14953, 0, 0, 0, 0) |
| 1585 | OPTION(1, 15008 /* -amdgpu-use-ssa-machine-scheduler */, anonymous_95, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15042, 0, 0, 0, 0) |
| 1586 | OPTION(1, 15080 /* -amdgpu-va-vdst-lookback-window */, anonymous_116, SeparateOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15112, 0, 0, 0, 0) |
| 1587 | OPTION(1, 15151 /* -amdgpu-verify-hsa-metadata */, anonymous_13, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15179, 0, 0, 0, 0) |
| 1588 | OPTION(1, 15206 /* -amdgpu-vgpr-index-mode */, anonymous_136, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15230, 0, 0, 0, 0) |
| 1589 | OPTION(1, 15290 /* -amdgpu-waitcnt-forcezero */, anonymous_145, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15316, 0, 0, 0, 0) |
| 1590 | OPTION(1, 15398 /* -amdgpu-waitcnt-load-forcezero */, anonymous_146, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15429, 0, 0, 0, 0) |
| 1591 | OPTION(1, 15477 /* -amdgpu-wmma-vnop-hoisting */, anonymous_111, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15504, 0, 0, 0, 0) |
| 1592 | OPTION(1, 15554 /* -amdgpu-xnack */, anonymous_96, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15568, 0, 0, 0, 0) |
| 1593 | OPTION(1, 15605 /* -disable-promote-alloca-to-lds */, anonymous_167, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1594 | OPTION(1, 15636 /* -disable-promote-alloca-to-vector */, anonymous_168, Flag, INVALID, INVALID, 2068, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1595 | OPTION(1, 15670 /* -enable-amdgpu-aa */, anonymous_169, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1596 | OPTION(1, 15688 /* -promote-alloca-vector-loop-user-weight */, anonymous_170, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 1597 | OPTION(1, 15728 /* -r600-if-convert */, anonymous_137, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15745, 0, 0, 0, 0) |
| 1598 | OPTION(1, 15768 /* -r600-ir-structurize */, anonymous_138, FlagOrEq, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 15789, 0, 0, 0, 0) |
| 1599 | #endif // OPTION |
| 1600 | |
| 1601 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 1602 | |
| 1603 | struct SimpleEnumValue { |
| 1604 | const char *Name; |
| 1605 | unsigned Value; |
| 1606 | }; |
| 1607 | |
| 1608 | struct SimpleEnumValueTable { |
| 1609 | const SimpleEnumValue *Table; |
| 1610 | unsigned Size; |
| 1611 | }; |
| 1612 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 1613 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 1614 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 1615 | |