523 : ST(&_ST), MRI(&_MRI) {
525 addRulesForGOpcs({G_ADD, G_SUB},
Standard)
535 addRulesForGOpcs({G_UADDO, G_USUBO},
Standard)
539 addRulesForGOpcs({G_UADDE, G_USUBE, G_SADDE, G_SSUBE},
Standard)
543 addRulesForGOpcs({G_UADDSAT, G_SADDSAT, G_USUBSAT, G_SSUBSAT},
Standard)
551 bool HasVecMulU64 = ST->hasVectorMulU64();
563 bool hasMulHi = ST->hasScalarMulHiInsts();
564 addRulesForGOpcs({G_UMULH, G_SMULH},
Standard)
569 addRulesForGOpcs({G_AMDGPU_MAD_U64_U32},
Standard)
573 bool HasScalarSMulU64 = ST->hasScalarSMulU64();
574 addRulesForGOpcs({G_AMDGPU_S_MUL_U64_U32, G_AMDGPU_S_MUL_I64_I32},
Standard)
578 addRulesForGOpcs({G_XOR, G_OR, G_AND},
StandardB)
598 addRulesForGOpcs({G_LSHR},
Standard)
608 addRulesForGOpcs({G_ASHR},
Standard)
618 addRulesForGOpcs({G_FSHR},
Standard)
622 addRulesForGOpcs({G_BSWAP},
Standard)
630 addRulesForGOpcs({G_AMDGPU_CVT_F32_UBYTE0, G_AMDGPU_CVT_F32_UBYTE1,
631 G_AMDGPU_CVT_F32_UBYTE2, G_AMDGPU_CVT_F32_UBYTE3,
639 addRulesForGOpcs({G_UBFX, G_SBFX},
Standard)
645 addRulesForGOpcs({G_SMIN, G_SMAX},
Standard)
653 addRulesForGOpcs({G_UMIN, G_UMAX},
Standard)
661 addRulesForGOpcs({G_IMPLICIT_DEF})
666 addRulesForGOpcs({G_CONSTANT},
Standard)
674 addRulesForGOpcs({G_FCONSTANT},
Standard)
679 addRulesForGOpcs({G_FREEZE})
686 addRulesForGOpcs({G_BITCAST})
690 addRulesForGOpcs({G_UNMERGE_VALUES})
695 addRulesForGOpcs({G_BUILD_VECTOR})
701 addRulesForGOpcs({G_MERGE_VALUES, G_CONCAT_VECTORS})
705 addRulesForGOpcs({G_PHI})
711 addRulesForGOpcs({G_EXTRACT_VECTOR_ELT})
722 addRulesForGOpcs({G_INSERT_VECTOR_ELT})
738 addRulesForGOpcs({G_AMDGPU_BVH_INTERSECT_RAY, G_AMDGPU_BVH_DUAL_INTERSECT_RAY,
739 G_AMDGPU_BVH8_INTERSECT_RAY})
746 addRulesForGOpcs({G_AMDGPU_INTRIN_IMAGE_LOAD, G_AMDGPU_INTRIN_IMAGE_LOAD_D16,
747 G_AMDGPU_INTRIN_IMAGE_LOAD_NORET,
748 G_AMDGPU_INTRIN_IMAGE_STORE,
749 G_AMDGPU_INTRIN_IMAGE_STORE_D16})
764 bool HasScalarCompareEq64 = ST->hasScalarCompareEq64();
766 addRulesForGOpcs({G_ICMP})
785 addRulesForGOpcs({G_BRCOND})
789 addRulesForGOpcs({G_BR}).
Any({{
_}, {{}, {
None}}});
799 addRulesForGOpcs({G_ANYEXT})
811 bool Has16bitCmp = ST->has16BitInsts();
818 addRulesForGOpcs({G_TRUNC})
834 addRulesForGOpcs({G_ZEXT})
849 addRulesForGOpcs({G_SEXT})
864 addRulesForGOpcs({G_SEXT_INREG})
870 addRulesForGOpcs({G_ASSERT_ZEXT, G_ASSERT_SEXT},
Standard)
876 addRulesForGOpcs({G_ASSERT_ALIGN},
Standard)
888 addRulesForGOpcs({G_ATOMICRMW_ADD, G_ATOMICRMW_SUB, G_ATOMICRMW_XCHG,
889 G_ATOMICRMW_AND, G_ATOMICRMW_OR, G_ATOMICRMW_XOR,
890 G_ATOMICRMW_MIN, G_ATOMICRMW_MAX, G_ATOMICRMW_UMIN,
891 G_ATOMICRMW_UMAX, G_ATOMICRMW_UINC_WRAP,
892 G_ATOMICRMW_UDEC_WRAP, G_ATOMICRMW_FMIN, G_ATOMICRMW_FMAX})
900 bool HasAtomicFlatPkAdd16Insts = ST->hasAtomicFlatPkAdd16Insts();
901 bool HasAtomicBufferGlobalPkAddF16Insts =
902 ST->hasAtomicBufferGlobalPkAddF16NoRtnInsts() ||
903 ST->hasAtomicBufferGlobalPkAddF16Insts();
904 bool HasAtomicDsPkAdd16Insts = ST->hasAtomicDsPkAdd16Insts();
905 addRulesForGOpcs({G_ATOMICRMW_FADD})
913 HasAtomicFlatPkAdd16Insts)
915 HasAtomicBufferGlobalPkAddF16Insts)
917 HasAtomicDsPkAdd16Insts);
919 addRulesForGOpcs({G_ATOMIC_CMPXCHG})
925 addRulesForGOpcs({G_AMDGPU_ATOMIC_CMPXCHG})
931 addRulesForGOpcs({G_AMDGPU_BUFFER_ATOMIC_CMPSWAP},
Standard)
937 addRulesForGOpcs({G_AMDGPU_BUFFER_ATOMIC_ADD, G_AMDGPU_BUFFER_ATOMIC_AND,
938 G_AMDGPU_BUFFER_ATOMIC_DEC, G_AMDGPU_BUFFER_ATOMIC_FMAX,
939 G_AMDGPU_BUFFER_ATOMIC_FMIN, G_AMDGPU_BUFFER_ATOMIC_INC,
940 G_AMDGPU_BUFFER_ATOMIC_OR, G_AMDGPU_BUFFER_ATOMIC_SMAX,
941 G_AMDGPU_BUFFER_ATOMIC_SMIN, G_AMDGPU_BUFFER_ATOMIC_SUB,
942 G_AMDGPU_BUFFER_ATOMIC_SWAP, G_AMDGPU_BUFFER_ATOMIC_UMAX,
943 G_AMDGPU_BUFFER_ATOMIC_UMIN, G_AMDGPU_BUFFER_ATOMIC_XOR},
948 bool hasSMRDx3 = ST->hasScalarDwordx3Loads();
949 bool hasSMRDSmall = ST->hasScalarSubwordLoads();
950 bool usesTrue16 = ST->useRealTrue16Insts();
953 return (*
MI.memoperands_begin())->getAlign() >=
Align(16);
957 return (*
MI.memoperands_begin())->getAlign() >=
Align(4);
961 return (*
MI.memoperands_begin())->isAtomic();
977 return (*
MI.memoperands_begin())->isVolatile();
981 return (*
MI.memoperands_begin())->isInvariant();
996 return MemSize == 16 || MemSize == 8;
1004 auto isUL = !isAtomicMMO && isUniMMO && (isConst || !isVolatileMMO) &&
1005 (isConst || isInvMMO || isNoClobberMMO);
1009 addRulesForGOpcs({G_LOAD})
1116 addRulesForGOpcs({G_ZEXTLOAD, G_SEXTLOAD})
1136 addRulesForGOpcs({G_STORE})
1172 addRulesForGOpcs({G_AMDGPU_BUFFER_LOAD, G_AMDGPU_BUFFER_LOAD_FORMAT,
1173 G_AMDGPU_TBUFFER_LOAD_FORMAT},
1184 addRulesForGOpcs({G_AMDGPU_BUFFER_LOAD_USHORT, G_AMDGPU_BUFFER_LOAD_UBYTE,
1185 G_AMDGPU_BUFFER_LOAD_SSHORT, G_AMDGPU_BUFFER_LOAD_SBYTE},
1191 {G_AMDGPU_BUFFER_LOAD_UBYTE_TFE, G_AMDGPU_BUFFER_LOAD_USHORT_TFE},
1196 addRulesForGOpcs({G_AMDGPU_BUFFER_LOAD_TFE, G_AMDGPU_BUFFER_LOAD_FORMAT_TFE},
1209 {G_AMDGPU_BUFFER_LOAD_FORMAT_D16, G_AMDGPU_TBUFFER_LOAD_FORMAT_D16},
1218 addRulesForGOpcs({G_AMDGPU_BUFFER_STORE, G_AMDGPU_BUFFER_STORE_BYTE,
1219 G_AMDGPU_BUFFER_STORE_SHORT, G_AMDGPU_BUFFER_STORE_FORMAT,
1220 G_AMDGPU_BUFFER_STORE_FORMAT_D16,
1221 G_AMDGPU_TBUFFER_STORE_FORMAT,
1222 G_AMDGPU_TBUFFER_STORE_FORMAT_D16})
1234 addRulesForGOpcs({G_AMDGPU_BUFFER_ATOMIC_FADD})
1243 addRulesForGOpcs({G_PTR_ADD})
1249 addRulesForGOpcs({G_INTTOPTR})
1257 addRulesForGOpcs({G_PTRTOINT})
1267 addRulesForGOpcs({G_PTRMASK})
1273 addRulesForGOpcs({G_ABS},
Standard)
1281 addRulesForGOpcs({G_BITREVERSE},
Standard)
1287 addRulesForGOpcs({G_AMDGPU_FFBH_U32, G_AMDGPU_FFBL_B32, G_CTLZ_ZERO_UNDEF,
1294 addRulesForGOpcs({G_FENCE}).
Any({{{}}, {{}, {}}});
1296 addRulesForGOpcs({G_READSTEADYCOUNTER, G_READCYCLECOUNTER},
Standard)
1301 addRulesForGOpcs({G_GLOBAL_VALUE})
1308 addRulesForGOpcs({G_AMDGPU_WAVE_ADDRESS}).
Any({{
UniP5}, {{
SgprP5}, {}}});
1310 addRulesForGOpcs({G_SI_CALL})
1316 bool hasSALUFloat = ST->hasSALUFloatInsts();
1318 addRulesForGOpcs({G_FADD, G_FMUL, G_STRICT_FADD, G_STRICT_FMUL},
Standard)
1332 addRulesForGOpcs({G_FSUB, G_STRICT_FSUB},
Standard)
1340 addRulesForGOpcs({G_FMAD},
Standard)
1346 addRulesForGOpcs({G_FLDEXP, G_STRICT_FLDEXP},
Standard)
1354 addRulesForGOpcs({G_FMA, G_STRICT_FMA},
Standard)
1372 addRulesForGOpcs({G_AMDGPU_FMED3},
Standard)
1381 addRulesForGOpcs({G_AMDGPU_SMED3},
Standard)
1389 addRulesForGOpcs({G_FNEG, G_FABS},
Standard)
1404 addRulesForGOpcs({G_FCANONICALIZE},
Standard)
1416 bool hasPST = ST->hasPseudoScalarTrans();
1417 addRulesForGOpcs({G_FSQRT},
Standard)
1422 addRulesForGOpcs({G_FPTOUI, G_FPTOSI})
1434 addRulesForGOpcs({G_UITOFP, G_SITOFP})
1446 addRulesForGOpcs({G_AMDGPU_S_BUFFER_PREFETCH})
1449 addRulesForGOpcs({G_FPEXT})
1456 addRulesForGOpcs({G_AMDGPU_CVT_PK_I16_I32},
Standard)
1460 addRulesForGOpcs({G_AMDGPU_FMIN_LEGACY, G_AMDGPU_FMAX_LEGACY},
Standard)
1464 bool hasSALUMinimumMaximumInsts = ST->hasSALUMinimumMaximumInsts();
1466 addRulesForGOpcs({G_FMINIMUM, G_FMAXIMUM},
Standard)
1478 addRulesForGOpcs({G_FMINNUM_IEEE, G_FMAXNUM_IEEE, G_FMINNUM, G_FMAXNUM,
1479 G_FMINIMUMNUM, G_FMAXIMUMNUM},
1492 addRulesForGOpcs({G_FPTRUNC})
1501 addRulesForGOpcs({G_IS_FPCLASS})
1509 addRulesForGOpcs({G_FCMP},
Standard)
1523 addRulesForGOpcs({G_INTRINSIC_TRUNC, G_INTRINSIC_ROUNDEVEN, G_FFLOOR, G_FCEIL,
1535 addRulesForIOpcs({returnaddress}).
Any({{
UniP0}, {{
SgprP0}, {}}});
1541 addRulesForIOpcs({amdgcn_s_setreg})
1544 addRulesForIOpcs({amdgcn_s_sendmsg, amdgcn_s_sendmsghalt})
1547 addRulesForIOpcs({amdgcn_s_sendmsg_rtn})
1551 addRulesForIOpcs({amdgcn_s_memrealtime, amdgcn_s_memtime},
Standard)
1554 addRulesForIOpcs({amdgcn_groupstaticsize, amdgcn_pops_exiting_wave_id,
1555 amdgcn_reloc_constant, amdgcn_s_get_waveid_in_workgroup},
1560 addRulesForIOpcs({amdgcn_asyncmark,
1564 amdgcn_s_barrier_leave,
1565 amdgcn_s_barrier_signal,
1566 amdgcn_s_barrier_wait,
1567 amdgcn_s_monitor_sleep,
1571 amdgcn_s_setprio_inc_wg,
1573 amdgcn_s_ttracedata_imm,
1574 amdgcn_s_wait_asynccnt,
1575 amdgcn_s_wait_bvhcnt,
1576 amdgcn_s_wait_dscnt,
1577 amdgcn_s_wait_event,
1578 amdgcn_s_wait_event_export_ready,
1579 amdgcn_s_wait_expcnt,
1580 amdgcn_s_wait_kmcnt,
1581 amdgcn_s_wait_loadcnt,
1582 amdgcn_s_wait_samplecnt,
1583 amdgcn_s_wait_storecnt,
1584 amdgcn_s_wait_tensorcnt,
1587 amdgcn_wait_asyncmark,
1588 amdgcn_wave_barrier})
1589 .
Any({{}, {{}, {}}});
1591 addRulesForIOpcs({amdgcn_init_exec_from_input})
1596 addRulesForIOpcs({amdgcn_s_sleep_var})
1599 addRulesForIOpcs({amdgcn_s_barrier_join, amdgcn_s_wakeup_barrier})
1602 addRulesForIOpcs({amdgcn_s_barrier_signal_var, amdgcn_s_barrier_init})
1605 addRulesForIOpcs({amdgcn_s_barrier_signal_isfirst})
1609 {amdgcn_s_get_named_barrier_state, amdgcn_s_get_barrier_state},
Standard)
1612 addRulesForIOpcs({amdgcn_flat_prefetch}).
Any({{}, {{}, {
IntrId,
VgprP0}}});
1614 addRulesForIOpcs({amdgcn_global_prefetch}).
Any({{}, {{}, {
IntrId,
VgprP1}}});
1616 addRulesForIOpcs({amdgcn_s_prefetch_data})
1619 addRulesForIOpcs({amdgcn_class})
1628 addRulesForIOpcs({amdgcn_end_cf})
1632 addRulesForIOpcs({amdgcn_if_break},
Standard)
1636 addRulesForIOpcs({amdgcn_exp})
1640 addRulesForIOpcs({amdgcn_exp_compr})
1643 addRulesForIOpcs({amdgcn_exp_row})
1649 addRulesForIOpcs({amdgcn_lds_direct_load},
StandardB)
1652 addRulesForIOpcs({amdgcn_lds_param_load},
Standard)
1655 addRulesForIOpcs({amdgcn_mbcnt_lo, amdgcn_mbcnt_hi},
Standard)
1658 addRulesForIOpcs({amdgcn_readfirstlane})
1664 addRulesForIOpcs({amdgcn_readlane},
StandardB)
1667 addRulesForIOpcs({amdgcn_writelane},
StandardB)
1672 addRulesForIOpcs({amdgcn_add_max_i32, amdgcn_add_max_u32, amdgcn_add_min_i32,
1673 amdgcn_add_min_u32},
1678 addRulesForIOpcs({amdgcn_pk_add_max_i16, amdgcn_pk_add_max_u16,
1679 amdgcn_pk_add_min_i16, amdgcn_pk_add_min_u16},
1684 addRulesForIOpcs({amdgcn_permlane16, amdgcn_permlanex16},
Standard)
1689 addRulesForIOpcs({amdgcn_perm},
Standard)
1694 {amdgcn_wave_reduce_add, amdgcn_wave_reduce_and, amdgcn_wave_reduce_fadd,
1695 amdgcn_wave_reduce_fmax, amdgcn_wave_reduce_fmin,
1696 amdgcn_wave_reduce_fsub, amdgcn_wave_reduce_max, amdgcn_wave_reduce_min,
1697 amdgcn_wave_reduce_or, amdgcn_wave_reduce_sub, amdgcn_wave_reduce_umax,
1698 amdgcn_wave_reduce_umin, amdgcn_wave_reduce_xor},
1705 addRulesForIOpcs({amdgcn_bitop3, amdgcn_fmad_ftz},
Standard)
1711 addRulesForIOpcs({amdgcn_udot4, amdgcn_sdot4, amdgcn_udot8, amdgcn_sdot8,
1712 amdgcn_dot4_f32_bf8_bf8, amdgcn_dot4_f32_bf8_fp8,
1713 amdgcn_dot4_f32_fp8_fp8, amdgcn_dot4_f32_fp8_bf8},
1718 addRulesForIOpcs({amdgcn_mul_u24, amdgcn_mul_i24},
Standard)
1724 addRulesForIOpcs({amdgcn_ds_bpermute, amdgcn_ds_bpermute_fi_b32,
1725 amdgcn_ds_permute, amdgcn_fmul_legacy, amdgcn_mulhi_i24,
1731 addRulesForIOpcs({amdgcn_cubesc, amdgcn_cubetc, amdgcn_cubema, amdgcn_cubeid,
1737 addRulesForIOpcs({amdgcn_frexp_mant, amdgcn_fract},
Standard)
1745 addRulesForIOpcs({amdgcn_prng_b32})
1749 addRulesForIOpcs({amdgcn_sffbh},
Standard)
1753 addRulesForIOpcs({amdgcn_ubfe, amdgcn_sbfe},
Standard)
1759 addRulesForIOpcs({amdgcn_cvt_pk_i16, amdgcn_cvt_pk_u16, amdgcn_cvt_pknorm_i16,
1760 amdgcn_cvt_pknorm_u16, amdgcn_cvt_pkrtz},
1765 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk32_bf6_f16,
1766 amdgcn_cvt_scalef32_sr_pk32_fp6_f16,
1767 amdgcn_cvt_scalef32_sr_pk32_bf6_bf16,
1768 amdgcn_cvt_scalef32_sr_pk32_fp6_bf16},
1772 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk32_bf6_f32,
1773 amdgcn_cvt_scalef32_sr_pk32_fp6_f32},
1777 addRulesForIOpcs({amdgcn_global_load_tr_b64})
1783 addRulesForIOpcs({amdgcn_global_load_tr_b128})
1789 addRulesForIOpcs({amdgcn_global_load_tr4_b64})
1793 addRulesForIOpcs({amdgcn_global_load_tr6_b96})
1797 addRulesForIOpcs({amdgcn_ds_load_tr4_b64, amdgcn_ds_load_tr8_b64})
1800 addRulesForIOpcs({amdgcn_ds_load_tr6_b96})
1803 addRulesForIOpcs({amdgcn_ds_load_tr16_b128})
1806 addRulesForIOpcs({amdgcn_global_atomic_ordered_add_b64})
1810 {amdgcn_global_atomic_fmin_num, amdgcn_global_atomic_fmax_num},
Standard)
1813 addRulesForIOpcs({amdgcn_flat_atomic_fmin_num, amdgcn_flat_atomic_fmax_num},
1817 addRulesForIOpcs({amdgcn_raw_buffer_load_lds})
1820 addRulesForIOpcs({amdgcn_struct_buffer_load_lds})
1824 addRulesForIOpcs({amdgcn_raw_ptr_buffer_load_lds})
1827 addRulesForIOpcs({amdgcn_struct_ptr_buffer_load_lds})
1830 addRulesForIOpcs({amdgcn_global_load_lds})
1833 addRulesForIOpcs({amdgcn_global_load_async_to_lds_b8,
1834 amdgcn_global_load_async_to_lds_b32,
1835 amdgcn_global_load_async_to_lds_b64,
1836 amdgcn_global_load_async_to_lds_b128,
1837 amdgcn_global_store_async_from_lds_b8,
1838 amdgcn_global_store_async_from_lds_b32,
1839 amdgcn_global_store_async_from_lds_b64,
1840 amdgcn_global_store_async_from_lds_b128})
1843 addRulesForIOpcs({amdgcn_perm_pk16_b4_u4},
StandardB)
1847 addRulesForIOpcs({amdgcn_perm_pk16_b6_u4},
StandardB)
1851 addRulesForIOpcs({amdgcn_perm_pk16_b8_u4},
StandardB)
1855 addRulesForIOpcs({amdgcn_wwm, amdgcn_strict_wwm, amdgcn_wqm, amdgcn_softwqm,
1871 addRulesForIOpcs({amdgcn_wqm_demote}).
Any({{}, {{}, {
IntrId,
Vcc}}});
1873 addRulesForIOpcs({amdgcn_ballot},
Standard)
1877 addRulesForIOpcs({amdgcn_inverse_ballot})
1881 addRulesForIOpcs({amdgcn_live_mask, amdgcn_ps_live})
1884 addRulesForIOpcs({amdgcn_mov_dpp, amdgcn_mov_dpp8},
StandardB)
1888 addRulesForIOpcs({amdgcn_update_dpp},
StandardB)
1892 addRulesForIOpcs({amdgcn_sin, amdgcn_cos},
Standard)
1898 addRulesForIOpcs({amdgcn_trig_preop},
Standard)
1902 addRulesForIOpcs({amdgcn_exp2},
Standard)
1910 addRulesForIOpcs({amdgcn_ds_atomic_async_barrier_arrive_b64})
1913 addRulesForIOpcs({amdgcn_ds_atomic_barrier_arrive_rtn_b64},
Standard)
1916 addRulesForIOpcs({amdgcn_ds_add_gs_reg_rtn, amdgcn_ds_sub_gs_reg_rtn},
1921 addRulesForIOpcs({amdgcn_ds_append, amdgcn_ds_consume},
Standard)
1926 {amdgcn_ds_bvh_stack_rtn, amdgcn_ds_bvh_stack_push4_pop1_rtn},
Standard)
1929 addRulesForIOpcs({amdgcn_ds_bvh_stack_push8_pop1_rtn},
Standard)
1932 addRulesForIOpcs({amdgcn_ds_bvh_stack_push8_pop2_rtn},
Standard)
1935 addRulesForIOpcs({amdgcn_ds_gws_sema_p, amdgcn_ds_gws_sema_v,
1936 amdgcn_ds_gws_sema_release_all})
1940 {amdgcn_ds_gws_barrier, amdgcn_ds_gws_init, amdgcn_ds_gws_sema_br})
1943 addRulesForIOpcs({amdgcn_ds_ordered_add, amdgcn_ds_ordered_swap},
Standard)
1946 addRulesForIOpcs({amdgcn_ds_swizzle},
Standard)
1950 addRulesForIOpcs({amdgcn_permlane16_var, amdgcn_permlanex16_var},
Standard)
1953 addRulesForIOpcs({amdgcn_permlane16_swap, amdgcn_permlane32_swap},
Standard)
1956 addRulesForIOpcs({amdgcn_permlane64},
StandardB)
1959 addRulesForIOpcs({amdgcn_ds_read_tr4_b64, amdgcn_ds_read_tr8_b64})
1962 addRulesForIOpcs({amdgcn_ds_read_tr6_b96})
1965 addRulesForIOpcs({amdgcn_ds_read_tr16_b64})
1968 addRulesForIOpcs({amdgcn_interp_p1},
Standard)
1971 addRulesForIOpcs({amdgcn_interp_p1_f16},
Standard)
1974 addRulesForIOpcs({amdgcn_interp_p2},
Standard)
1977 addRulesForIOpcs({amdgcn_interp_p2_f16},
Standard)
1981 addRulesForIOpcs({amdgcn_interp_mov},
Standard)
1984 addRulesForIOpcs({amdgcn_interp_inreg_p10, amdgcn_interp_inreg_p2,
1985 amdgcn_interp_inreg_p10_f16, amdgcn_interp_p10_rtz_f16},
1990 addRulesForIOpcs({amdgcn_interp_inreg_p2_f16, amdgcn_interp_p2_rtz_f16},
1995 addRulesForIOpcs({amdgcn_div_fmas},
Standard)
2001 addRulesForIOpcs({amdgcn_div_fixup},
Standard)
2009 addRulesForIOpcs({amdgcn_div_scale},
Standard)
2015 addRulesForIOpcs({amdgcn_fdot2, amdgcn_sdot2, amdgcn_udot2},
Standard)
2019 addRulesForIOpcs({amdgcn_fdot2_f16_f16},
Standard)
2023 addRulesForIOpcs({amdgcn_sudot4, amdgcn_sudot8},
Standard)
2027 addRulesForIOpcs({amdgcn_s_alloc_vgpr})
2030 addRulesForIOpcs({amdgcn_sat_pk4_i4_i8, amdgcn_sat_pk4_u4_u8},
Standard)
2035 bool HasGFX90AInsts = ST->hasGFX90AInsts();
2036 addRulesForIOpcs({amdgcn_mfma_f32_32x32x1f32, amdgcn_mfma_f32_16x16x1f32,
2037 amdgcn_mfma_f32_4x4x1f32, amdgcn_mfma_f32_32x32x2f32,
2038 amdgcn_mfma_f32_16x16x4f32, amdgcn_mfma_f32_32x32x4f16,
2039 amdgcn_mfma_f32_16x16x4f16, amdgcn_mfma_f32_4x4x4f16,
2040 amdgcn_mfma_f32_32x32x8f16, amdgcn_mfma_f32_16x16x16f16,
2041 amdgcn_mfma_i32_32x32x4i8, amdgcn_mfma_i32_16x16x4i8,
2042 amdgcn_mfma_i32_4x4x4i8, amdgcn_mfma_i32_32x32x8i8,
2043 amdgcn_mfma_i32_16x16x16i8, amdgcn_mfma_f32_32x32x2bf16,
2044 amdgcn_mfma_f32_16x16x2bf16, amdgcn_mfma_f32_4x4x2bf16,
2045 amdgcn_mfma_f32_32x32x4bf16, amdgcn_mfma_f32_16x16x8bf16})
2053 amdgcn_wmma_f32_16x16x16_f16, amdgcn_wmma_f32_16x16x16_bf16,
2054 amdgcn_wmma_f16_16x16x16_f16, amdgcn_wmma_bf16_16x16x16_bf16,
2055 amdgcn_wmma_f16_16x16x16_f16_tied, amdgcn_wmma_bf16_16x16x16_bf16_tied,
2056 amdgcn_wmma_i32_16x16x16_iu8, amdgcn_wmma_i32_16x16x16_iu4,
2058 amdgcn_wmma_f32_16x16x16_fp8_fp8, amdgcn_wmma_f32_16x16x16_fp8_bf8,
2059 amdgcn_wmma_f32_16x16x16_bf8_fp8, amdgcn_wmma_f32_16x16x16_bf8_bf8,
2060 amdgcn_wmma_i32_16x16x32_iu4,
2062 amdgcn_wmma_f32_16x16x4_f32, amdgcn_wmma_f32_16x16x32_bf16,
2063 amdgcn_wmma_f32_16x16x32_f16, amdgcn_wmma_f16_16x16x32_f16,
2064 amdgcn_wmma_bf16_16x16x32_bf16, amdgcn_wmma_bf16f32_16x16x32_bf16,
2065 amdgcn_wmma_f32_16x16x64_fp8_fp8, amdgcn_wmma_f32_16x16x64_fp8_bf8,
2066 amdgcn_wmma_f32_16x16x64_bf8_fp8, amdgcn_wmma_f32_16x16x64_bf8_bf8,
2067 amdgcn_wmma_f16_16x16x64_fp8_fp8, amdgcn_wmma_f16_16x16x64_fp8_bf8,
2068 amdgcn_wmma_f16_16x16x64_bf8_fp8, amdgcn_wmma_f16_16x16x64_bf8_bf8,
2069 amdgcn_wmma_f16_16x16x128_fp8_fp8, amdgcn_wmma_f16_16x16x128_fp8_bf8,
2070 amdgcn_wmma_f16_16x16x128_bf8_fp8, amdgcn_wmma_f16_16x16x128_bf8_bf8,
2071 amdgcn_wmma_f32_16x16x128_fp8_fp8, amdgcn_wmma_f32_16x16x128_fp8_bf8,
2072 amdgcn_wmma_f32_16x16x128_bf8_fp8, amdgcn_wmma_f32_16x16x128_bf8_bf8,
2073 amdgcn_wmma_i32_16x16x64_iu8, amdgcn_wmma_f32_16x16x128_f8f6f4,
2074 amdgcn_wmma_scale_f32_16x16x128_f8f6f4,
2075 amdgcn_wmma_scale16_f32_16x16x128_f8f6f4, amdgcn_wmma_f32_32x16x128_f4,
2076 amdgcn_wmma_scale_f32_32x16x128_f4, amdgcn_wmma_scale16_f32_32x16x128_f4,
2078 amdgcn_swmmac_f32_16x16x32_f16, amdgcn_swmmac_f32_16x16x32_bf16,
2079 amdgcn_swmmac_f16_16x16x32_f16, amdgcn_swmmac_bf16_16x16x32_bf16,
2080 amdgcn_swmmac_i32_16x16x32_iu8, amdgcn_swmmac_i32_16x16x32_iu4,
2081 amdgcn_swmmac_i32_16x16x64_iu4, amdgcn_swmmac_f32_16x16x32_fp8_fp8,
2082 amdgcn_swmmac_f32_16x16x32_fp8_bf8, amdgcn_swmmac_f32_16x16x32_bf8_fp8,
2083 amdgcn_swmmac_f32_16x16x32_bf8_bf8,
2085 amdgcn_swmmac_f32_16x16x64_f16, amdgcn_swmmac_f32_16x16x64_bf16,
2086 amdgcn_swmmac_f16_16x16x64_f16, amdgcn_swmmac_bf16_16x16x64_bf16,
2087 amdgcn_swmmac_bf16f32_16x16x64_bf16, amdgcn_swmmac_f32_16x16x128_fp8_fp8,
2088 amdgcn_swmmac_f32_16x16x128_fp8_bf8, amdgcn_swmmac_f32_16x16x128_bf8_fp8,
2089 amdgcn_swmmac_f32_16x16x128_bf8_bf8, amdgcn_swmmac_f16_16x16x128_fp8_fp8,
2090 amdgcn_swmmac_f16_16x16x128_fp8_bf8, amdgcn_swmmac_f16_16x16x128_bf8_fp8,
2091 amdgcn_swmmac_f16_16x16x128_bf8_bf8, amdgcn_swmmac_i32_16x16x128_iu8})