589 : ST(&_ST), MRI(&_MRI) {
591 addRulesForGOpcs({G_ADD, G_SUB},
Standard)
603 addRulesForGOpcs({G_UADDO, G_USUBO},
Standard)
607 addRulesForGOpcs({G_UADDE, G_USUBE, G_SADDE, G_SSUBE},
Standard)
611 addRulesForGOpcs({G_UADDSAT, G_SADDSAT, G_USUBSAT, G_SSUBSAT},
Standard)
619 bool UseVecMulU64 = ST->useVMulU64Inst();
631 bool hasMulHi = ST->hasScalarMulHiInsts();
632 addRulesForGOpcs({G_UMULH, G_SMULH},
Standard)
637 addRulesForGOpcs({G_AMDGPU_MAD_U64_U32},
Standard)
641 bool HasScalarSMulU64 = ST->hasScalarSMulU64();
642 addRulesForGOpcs({G_AMDGPU_S_MUL_U64_U32, G_AMDGPU_S_MUL_I64_I32},
Standard)
646 addRulesForGOpcs({G_XOR, G_OR, G_AND},
StandardB)
666 addRulesForGOpcs({G_LSHR},
Standard)
676 addRulesForGOpcs({G_ASHR},
Standard)
686 addRulesForGOpcs({G_FSHR},
Standard)
690 addRulesForGOpcs({G_BSWAP},
Standard)
698 addRulesForGOpcs({G_AMDGPU_CVT_F32_UBYTE0, G_AMDGPU_CVT_F32_UBYTE1,
699 G_AMDGPU_CVT_F32_UBYTE2, G_AMDGPU_CVT_F32_UBYTE3,
707 addRulesForGOpcs({G_UBFX, G_SBFX},
Standard)
713 addRulesForGOpcs({G_SMIN, G_SMAX},
Standard)
723 addRulesForGOpcs({G_UMIN, G_UMAX},
Standard)
733 addRulesForGOpcs({G_IMPLICIT_DEF})
738 addRulesForGOpcs({G_CONSTANT},
Standard)
746 addRulesForGOpcs({G_FCONSTANT},
Standard)
751 addRulesForGOpcs({G_FREEZE})
758 addRulesForGOpcs({G_BITCAST})
764 addRulesForGOpcs({G_UNMERGE_VALUES})
769 addRulesForGOpcs({G_BUILD_VECTOR, G_MERGE_VALUES})
775 addRulesForGOpcs({G_CONCAT_VECTORS})
779 addRulesForGOpcs({G_PHI})
785 addRulesForGOpcs({G_EXTRACT_VECTOR_ELT})
796 addRulesForGOpcs({G_INSERT_VECTOR_ELT})
812 addRulesForGOpcs({G_AMDGPU_BVH_INTERSECT_RAY, G_AMDGPU_BVH_DUAL_INTERSECT_RAY,
813 G_AMDGPU_BVH8_INTERSECT_RAY})
820 addRulesForGOpcs({G_AMDGPU_INTRIN_IMAGE_LOAD, G_AMDGPU_INTRIN_IMAGE_LOAD_D16,
821 G_AMDGPU_INTRIN_IMAGE_LOAD_NORET,
822 G_AMDGPU_INTRIN_IMAGE_STORE,
823 G_AMDGPU_INTRIN_IMAGE_STORE_D16})
838 bool HasScalarCompareEq64 = ST->hasScalarCompareEq64();
840 addRulesForGOpcs({G_ICMP})
859 addRulesForGOpcs({G_BRCOND})
863 addRulesForGOpcs({G_BR}).
Any({{
_}, {{}, {
None}}});
873 addRulesForGOpcs({G_ANYEXT})
887 bool Has16bitCmp = ST->has16BitInsts();
894 addRulesForGOpcs({G_TRUNC})
910 addRulesForGOpcs({G_ZEXT})
925 addRulesForGOpcs({G_SEXT})
940 addRulesForGOpcs({G_SEXT_INREG})
946 addRulesForGOpcs({G_ASSERT_ZEXT, G_ASSERT_SEXT},
Standard)
952 addRulesForGOpcs({G_ASSERT_ALIGN},
Standard)
964 addRulesForGOpcs({G_ATOMICRMW_ADD, G_ATOMICRMW_SUB, G_ATOMICRMW_XCHG,
965 G_ATOMICRMW_AND, G_ATOMICRMW_OR, G_ATOMICRMW_XOR,
966 G_ATOMICRMW_MIN, G_ATOMICRMW_MAX, G_ATOMICRMW_UMIN,
967 G_ATOMICRMW_UMAX, G_ATOMICRMW_UINC_WRAP,
968 G_ATOMICRMW_UDEC_WRAP, G_ATOMICRMW_FMIN, G_ATOMICRMW_FMAX})
976 addRulesForGOpcs({G_ATOMICRMW_USUB_SAT, G_ATOMICRMW_USUB_COND})
981 bool HasAtomicFlatPkAdd16Insts = ST->hasAtomicFlatPkAdd16Insts();
982 bool HasAtomicBufferGlobalPkAddF16Insts =
983 ST->hasAtomicBufferGlobalPkAddF16NoRtnInsts() ||
984 ST->hasAtomicBufferGlobalPkAddF16Insts();
985 bool HasAtomicDsPkAdd16Insts = ST->hasAtomicDsPkAdd16Insts();
986 addRulesForGOpcs({G_ATOMICRMW_FADD})
994 HasAtomicFlatPkAdd16Insts)
996 HasAtomicBufferGlobalPkAddF16Insts)
998 HasAtomicDsPkAdd16Insts);
1000 addRulesForGOpcs({G_ATOMIC_CMPXCHG})
1006 addRulesForGOpcs({G_AMDGPU_ATOMIC_CMPXCHG})
1012 addRulesForGOpcs({G_AMDGPU_BUFFER_ATOMIC_CMPSWAP},
Standard)
1018 addRulesForGOpcs({G_AMDGPU_BUFFER_ATOMIC_ADD, G_AMDGPU_BUFFER_ATOMIC_AND,
1019 G_AMDGPU_BUFFER_ATOMIC_DEC, G_AMDGPU_BUFFER_ATOMIC_FMAX,
1020 G_AMDGPU_BUFFER_ATOMIC_FMIN, G_AMDGPU_BUFFER_ATOMIC_INC,
1021 G_AMDGPU_BUFFER_ATOMIC_OR, G_AMDGPU_BUFFER_ATOMIC_SMAX,
1022 G_AMDGPU_BUFFER_ATOMIC_SMIN, G_AMDGPU_BUFFER_ATOMIC_SUB,
1023 G_AMDGPU_BUFFER_ATOMIC_SWAP, G_AMDGPU_BUFFER_ATOMIC_UMAX,
1024 G_AMDGPU_BUFFER_ATOMIC_UMIN, G_AMDGPU_BUFFER_ATOMIC_XOR},
1029 bool hasSMRDx3 = ST->hasScalarDwordx3Loads();
1030 bool hasSMRDSmall = ST->hasScalarSubwordLoads();
1031 bool usesTrue16 = ST->useRealTrue16Insts();
1034 return (*
MI.memoperands_begin())->getAlign() >=
Align(16);
1038 return (*
MI.memoperands_begin())->getAlign() >=
Align(4);
1042 return (*
MI.memoperands_begin())->isAtomic();
1058 return (*
MI.memoperands_begin())->isVolatile();
1062 return (*
MI.memoperands_begin())->isInvariant();
1077 return MemSize == 16 || MemSize == 8;
1085 auto isUL = !isAtomicMMO && isUniMMO && (isConst || !isVolatileMMO) &&
1086 (isConst || isInvMMO || isNoClobberMMO);
1090 addRulesForGOpcs({G_LOAD})
1197 addRulesForGOpcs({G_ZEXTLOAD, G_SEXTLOAD})
1228 addRulesForGOpcs({G_STORE})
1264 addRulesForGOpcs({G_AMDGPU_BUFFER_LOAD, G_AMDGPU_BUFFER_LOAD_FORMAT,
1265 G_AMDGPU_TBUFFER_LOAD_FORMAT},
1276 addRulesForGOpcs({G_AMDGPU_BUFFER_LOAD_USHORT, G_AMDGPU_BUFFER_LOAD_UBYTE,
1277 G_AMDGPU_BUFFER_LOAD_SSHORT, G_AMDGPU_BUFFER_LOAD_SBYTE},
1283 {G_AMDGPU_BUFFER_LOAD_UBYTE_TFE, G_AMDGPU_BUFFER_LOAD_USHORT_TFE},
1288 addRulesForGOpcs({G_AMDGPU_BUFFER_LOAD_TFE, G_AMDGPU_BUFFER_LOAD_FORMAT_TFE,
1289 G_AMDGPU_BUFFER_LOAD_FORMAT_D16_TFE},
1302 {G_AMDGPU_BUFFER_LOAD_FORMAT_D16, G_AMDGPU_TBUFFER_LOAD_FORMAT_D16},
1311 addRulesForGOpcs({G_AMDGPU_S_BUFFER_LOAD})
1361 addRulesForGOpcs({G_AMDGPU_S_BUFFER_LOAD_SBYTE, G_AMDGPU_S_BUFFER_LOAD_UBYTE,
1362 G_AMDGPU_S_BUFFER_LOAD_SSHORT,
1363 G_AMDGPU_S_BUFFER_LOAD_USHORT})
1372 addRulesForGOpcs({G_AMDGPU_BUFFER_STORE, G_AMDGPU_BUFFER_STORE_BYTE,
1373 G_AMDGPU_BUFFER_STORE_SHORT, G_AMDGPU_BUFFER_STORE_FORMAT,
1374 G_AMDGPU_BUFFER_STORE_FORMAT_D16,
1375 G_AMDGPU_TBUFFER_STORE_FORMAT,
1376 G_AMDGPU_TBUFFER_STORE_FORMAT_D16})
1388 addRulesForGOpcs({G_AMDGPU_BUFFER_ATOMIC_FADD})
1397 addRulesForGOpcs({G_PTR_ADD})
1403 addRulesForGOpcs({G_INTTOPTR})
1411 addRulesForGOpcs({G_PTRTOINT})
1421 addRulesForGOpcs({G_PTRMASK})
1427 addRulesForGOpcs({G_DYN_STACKALLOC})
1431 addRulesForGOpcs({G_ABS},
Standard)
1439 addRulesForGOpcs({G_BITREVERSE},
Standard)
1445 addRulesForGOpcs({G_AMDGPU_FFBH_U32, G_AMDGPU_FFBL_B32, G_CTLZ_ZERO_POISON,
1446 G_CTTZ_ZERO_POISON})
1452 addRulesForGOpcs({G_CTPOP})
1458 addRulesForGOpcs({G_FENCE}).
Any({{{}}, {{}, {}}});
1460 addRulesForGOpcs({G_READSTEADYCOUNTER, G_READCYCLECOUNTER},
Standard)
1463 addRulesForGOpcs({G_GET_ROUNDING},
Standard)
1466 addRulesForGOpcs({G_SET_ROUNDING},
Standard)
1470 addRulesForGOpcs({G_WRITE_REGISTER})
1476 addRulesForGOpcs({G_GLOBAL_VALUE})
1483 addRulesForGOpcs({G_AMDGPU_WAVE_ADDRESS}).
Any({{
UniP5}, {{
SgprP5}, {}}});
1487 addRulesForGOpcs({G_SI_CALL})
1493 bool hasSALUFloat = ST->hasSALUFloatInsts();
1495 addRulesForGOpcs({G_FADD, G_FMUL, G_STRICT_FADD, G_STRICT_FMUL},
Standard)
1511 addRulesForGOpcs({G_FSUB, G_STRICT_FSUB},
Standard)
1521 addRulesForGOpcs({G_FMAD},
Standard)
1527 addRulesForGOpcs({G_FLDEXP, G_STRICT_FLDEXP},
Standard)
1535 addRulesForGOpcs({G_FMA, G_STRICT_FMA},
Standard)
1551 addRulesForGOpcs({G_AMDGPU_FMED3},
Standard)
1560 addRulesForGOpcs({G_AMDGPU_SMED3},
Standard)
1568 addRulesForGOpcs({G_FNEG, G_FABS},
Standard)
1582 addRulesForGOpcs({G_FCANONICALIZE},
Standard)
1596 bool hasPST = ST->hasPseudoScalarTrans();
1599 addRulesForGOpcs({G_FSQRT})
1605 addRulesForGOpcs({G_FPTOUI, G_FPTOSI, G_FPTOUI_SAT, G_FPTOSI_SAT})
1622 addRulesForGOpcs({G_UITOFP, G_SITOFP})
1634 addRulesForGOpcs({G_AMDGPU_S_BUFFER_PREFETCH})
1639 return MI.getOperand(3).getImm() != 0;
1642 bool HasSMemPF = ST->hasSafeSmemPrefetch();
1643 bool HasVMemPF = ST->hasVmemPrefInsts();
1644 addRulesForGOpcs({G_PREFETCH})
1650 !HasSMemPF && !HasVMemPF)
1661 addRulesForGOpcs({G_FPEXT})
1668 addRulesForGOpcs({G_AMDGPU_CVT_PK_I16_I32},
Standard)
1672 addRulesForGOpcs({G_AMDGPU_FMIN_LEGACY, G_AMDGPU_FMAX_LEGACY},
Standard)
1676 bool hasSALUMinimumMaximumInsts = ST->hasSALUMinimumMaximumInsts();
1678 addRulesForGOpcs({G_FMINIMUM, G_FMAXIMUM},
Standard)
1690 addRulesForGOpcs({G_FMINNUM_IEEE, G_FMAXNUM_IEEE},
Standard)
1702 addRulesForGOpcs({G_FMINNUM, G_FMAXNUM, G_FMINIMUMNUM, G_FMAXIMUMNUM},
1717 addRulesForGOpcs({G_FPTRUNC})
1726 addRulesForGOpcs({G_INTRINSIC_FPTRUNC_ROUND})
1735 addRulesForGOpcs({G_IS_FPCLASS})
1743 addRulesForGOpcs({G_FCMP},
Standard)
1757 addRulesForGOpcs({G_INTRINSIC_ROUNDEVEN, G_FEXP2, G_FLOG2},
Standard)
1765 addRulesForGOpcs({G_INTRINSIC_TRUNC, G_FFLOOR, G_FCEIL},
Standard)
1775 addRulesForGOpcs({G_AMDGPU_GLOBAL_LOAD_MONITOR, G_AMDGPU_FLAT_LOAD_MONITOR},
1784 addRulesForGOpcs({G_AMDGPU_WHOLE_WAVE_FUNC_SETUP})
1787 addRulesForGOpcs({G_AMDGPU_WHOLE_WAVE_FUNC_RETURN}).
Any({{}, {{}, {
Vcc}}});
1791 addRulesForIOpcs({returnaddress}).
Any({{
UniP0}, {{
SgprP0}, {}}});
1793 addRulesForIOpcs({amdgcn_s_bitreplicate},
Standard)
1801 addRulesForIOpcs({amdgcn_s_setreg})
1804 addRulesForIOpcs({amdgcn_s_sendmsg, amdgcn_s_sendmsghalt})
1807 addRulesForIOpcs({amdgcn_s_sendmsg_rtn})
1811 addRulesForIOpcs({amdgcn_s_memrealtime, amdgcn_s_memtime},
Standard)
1814 addRulesForIOpcs({amdgcn_groupstaticsize, amdgcn_pops_exiting_wave_id,
1815 amdgcn_reloc_constant, amdgcn_s_get_waveid_in_workgroup},
1820 addRulesForIOpcs({amdgcn_asyncmark,
1825 amdgcn_s_barrier_leave,
1826 amdgcn_s_barrier_signal,
1827 amdgcn_s_barrier_wait,
1828 amdgcn_s_decperflevel,
1829 amdgcn_s_incperflevel,
1830 amdgcn_s_monitor_sleep,
1834 amdgcn_s_setprio_inc_wg,
1836 amdgcn_s_ttracedata_imm,
1837 amdgcn_s_wait_asynccnt,
1838 amdgcn_s_wait_bvhcnt,
1839 amdgcn_s_wait_dscnt,
1840 amdgcn_s_wait_event,
1841 amdgcn_s_wait_event_export_ready,
1842 amdgcn_s_wait_expcnt,
1843 amdgcn_s_wait_kmcnt,
1844 amdgcn_s_wait_loadcnt,
1845 amdgcn_s_wait_samplecnt,
1846 amdgcn_s_wait_storecnt,
1847 amdgcn_s_wait_tensorcnt,
1849 amdgcn_sched_barrier,
1850 amdgcn_sched_group_barrier,
1852 amdgcn_wait_asyncmark,
1853 amdgcn_wave_barrier})
1854 .
Any({{}, {{}, {}}});
1856 addRulesForIOpcs({amdgcn_init_exec_from_input})
1861 addRulesForIOpcs({amdgcn_s_sleep_var})
1864 addRulesForIOpcs({amdgcn_s_barrier_join, amdgcn_s_wakeup_barrier})
1867 addRulesForIOpcs({amdgcn_s_barrier_signal_var, amdgcn_s_barrier_init})
1870 addRulesForIOpcs({amdgcn_s_barrier_signal_isfirst})
1874 {amdgcn_s_get_named_barrier_state, amdgcn_s_get_barrier_state},
Standard)
1877 addRulesForIOpcs({amdgcn_flat_prefetch}).
Any({{}, {{}, {
IntrId,
VgprP0}}});
1879 addRulesForIOpcs({amdgcn_global_prefetch}).
Any({{}, {{}, {
IntrId,
VgprP1}}});
1881 addRulesForIOpcs({amdgcn_s_prefetch_data, amdgcn_s_prefetch_inst})
1886 addRulesForIOpcs({amdgcn_class})
1895 addRulesForIOpcs({amdgcn_end_cf})
1899 addRulesForIOpcs({amdgcn_if_break},
Standard)
1903 addRulesForIOpcs({amdgcn_exp})
1907 addRulesForIOpcs({amdgcn_exp_compr})
1910 addRulesForIOpcs({amdgcn_exp_row})
1916 addRulesForIOpcs({amdgcn_lds_direct_load},
StandardB)
1919 addRulesForIOpcs({amdgcn_lds_param_load},
Standard)
1922 addRulesForIOpcs({amdgcn_mbcnt_lo, amdgcn_mbcnt_hi},
Standard)
1925 addRulesForIOpcs({amdgcn_readfirstlane})
1931 addRulesForIOpcs({amdgcn_readlane},
StandardB)
1934 addRulesForIOpcs({amdgcn_s_quadmask, amdgcn_s_wqm},
StandardB)
1938 addRulesForIOpcs({amdgcn_writelane},
StandardB)
1943 addRulesForIOpcs({amdgcn_add_max_i32, amdgcn_add_max_u32, amdgcn_add_min_i32,
1944 amdgcn_add_min_u32},
1949 addRulesForIOpcs({amdgcn_pk_add_max_i16, amdgcn_pk_add_max_u16,
1950 amdgcn_pk_add_min_i16, amdgcn_pk_add_min_u16},
1955 addRulesForIOpcs({amdgcn_permlane16, amdgcn_permlanex16},
StandardB)
1960 addRulesForIOpcs({amdgcn_permlane_bcast, amdgcn_permlane_up,
1961 amdgcn_permlane_down, amdgcn_permlane_xor},
1967 addRulesForIOpcs({amdgcn_permlane_idx_gen},
Standard)
1970 addRulesForIOpcs({amdgcn_alignbyte, amdgcn_perm},
Standard)
1974 addRulesForIOpcs({amdgcn_mqsad_pk_u16_u8, amdgcn_qsad_pk_u16_u8},
Standard)
1978 addRulesForIOpcs({amdgcn_mqsad_u32_u8})
1983 addRulesForIOpcs({amdgcn_lerp},
Standard)
1988 {amdgcn_msad_u8, amdgcn_sad_hi_u8, amdgcn_sad_u16, amdgcn_sad_u8},
1994 {amdgcn_wave_reduce_add, amdgcn_wave_reduce_and, amdgcn_wave_reduce_fadd,
1995 amdgcn_wave_reduce_fmax, amdgcn_wave_reduce_fmin,
1996 amdgcn_wave_reduce_fsub, amdgcn_wave_reduce_max, amdgcn_wave_reduce_min,
1997 amdgcn_wave_reduce_or, amdgcn_wave_reduce_sub, amdgcn_wave_reduce_umax,
1998 amdgcn_wave_reduce_umin, amdgcn_wave_reduce_xor},
2005 addRulesForIOpcs({amdgcn_wave_shuffle},
Standard)
2009 addRulesForIOpcs({amdgcn_bitop3, amdgcn_fmad_ftz},
Standard)
2015 addRulesForIOpcs({amdgcn_udot4, amdgcn_sdot4, amdgcn_udot8, amdgcn_sdot8,
2016 amdgcn_dot4_f32_bf8_bf8, amdgcn_dot4_f32_bf8_fp8,
2017 amdgcn_dot4_f32_fp8_fp8, amdgcn_dot4_f32_fp8_bf8},
2022 addRulesForIOpcs({amdgcn_rsq, amdgcn_rsq_clamp})
2033 addRulesForIOpcs({amdgcn_mul_u24, amdgcn_mul_i24},
Standard)
2039 addRulesForIOpcs({amdgcn_ds_bpermute, amdgcn_ds_bpermute_fi_b32,
2040 amdgcn_ds_permute, amdgcn_fmul_legacy, amdgcn_mulhi_i24,
2046 addRulesForIOpcs({amdgcn_cvt_sr_bf8_f32, amdgcn_cvt_sr_fp8_f32,
2047 amdgcn_cvt_sr_fp8_f32_e5m3, amdgcn_cvt_pk_bf8_f32,
2048 amdgcn_cvt_pk_fp8_f32, amdgcn_cvt_pk_fp8_f32_e5m3,
2049 amdgcn_cvt_pk_u8_f32},
2054 addRulesForIOpcs({amdgcn_cvt_off_f32_i4, amdgcn_cvt_f32_bf8,
2055 amdgcn_cvt_f32_fp8, amdgcn_cvt_f32_fp8_e5m3},
2060 addRulesForIOpcs({amdgcn_cvt_pk_f32_bf8, amdgcn_cvt_pk_f32_fp8})
2064 addRulesForIOpcs({amdgcn_cvt_f16_bf8, amdgcn_cvt_f16_fp8},
Standard)
2068 addRulesForIOpcs({amdgcn_cvt_pk_f16_bf8, amdgcn_cvt_pk_f16_fp8},
Standard)
2072 addRulesForIOpcs({amdgcn_cvt_pk_bf8_f16, amdgcn_cvt_pk_fp8_f16},
Standard)
2076 addRulesForIOpcs({amdgcn_cvt_sr_bf8_f16, amdgcn_cvt_sr_fp8_f16},
Standard)
2080 addRulesForIOpcs({amdgcn_cvt_sr_pk_f16_f32, amdgcn_cvt_sr_pk_bf16_f32},
2086 {amdgcn_cvt_scalef32_sr_fp8_f16, amdgcn_cvt_scalef32_sr_bf8_f16,
2087 amdgcn_cvt_scalef32_sr_fp8_bf16, amdgcn_cvt_scalef32_sr_bf8_bf16})
2093 {amdgcn_cvt_scalef32_sr_fp8_f32, amdgcn_cvt_scalef32_sr_bf8_f32})
2098 addRulesForIOpcs({amdgcn_cubesc, amdgcn_cubetc, amdgcn_cubema, amdgcn_cubeid,
2104 addRulesForIOpcs({amdgcn_frexp_mant, amdgcn_fract},
Standard)
2112 addRulesForIOpcs({amdgcn_prng_b32})
2117 {amdgcn_exclusive_scan_sum_i32, amdgcn_exclusive_scan_sum_u32},
Standard)
2122 {amdgcn_exclusive_scan_xor_b32, amdgcn_exclusive_scan_or_b32,
2123 amdgcn_exclusive_scan_and_b32, amdgcn_exclusive_scan_min_i32,
2124 amdgcn_exclusive_scan_min_u32, amdgcn_exclusive_scan_max_i32,
2125 amdgcn_exclusive_scan_max_u32},
2131 {amdgcn_exclusive_scan_min_i16, amdgcn_exclusive_scan_min_u16,
2132 amdgcn_exclusive_scan_max_i16, amdgcn_exclusive_scan_max_u16},
2137 addRulesForIOpcs({amdgcn_wave_match_b32})
2141 addRulesForIOpcs({amdgcn_sffbh},
Standard)
2145 addRulesForIOpcs({amdgcn_ubfe, amdgcn_sbfe},
Standard)
2151 addRulesForIOpcs({amdgcn_cvt_pk_i16, amdgcn_cvt_pk_u16, amdgcn_cvt_pknorm_i16,
2152 amdgcn_cvt_pknorm_u16},
2157 addRulesForIOpcs({amdgcn_cvt_pkrtz},
Standard)
2162 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk32_bf6_f16,
2163 amdgcn_cvt_scalef32_sr_pk32_fp6_f16,
2164 amdgcn_cvt_scalef32_sr_pk32_bf6_bf16,
2165 amdgcn_cvt_scalef32_sr_pk32_fp6_bf16},
2171 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk32_bf6_f32,
2172 amdgcn_cvt_scalef32_sr_pk32_fp6_f32},
2179 {amdgcn_cvt_scalef32_sr_pk_fp4_f16, amdgcn_cvt_scalef32_sr_pk_fp4_bf16},
2184 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk_fp4_f32},
Standard)
2189 {amdgcn_cvt_scalef32_2xpk16_fp6_f32, amdgcn_cvt_scalef32_2xpk16_bf6_f32})
2195 addRulesForIOpcs({amdgcn_cvt_scalef32_f16_fp8, amdgcn_cvt_scalef32_f16_bf8},
2200 addRulesForIOpcs({amdgcn_cvt_scalef32_f32_fp8, amdgcn_cvt_scalef32_f32_bf8},
2206 {amdgcn_cvt_scalef32_pk16_bf6_f16, amdgcn_cvt_scalef32_pk16_fp6_f16,
2207 amdgcn_cvt_scalef32_pk16_bf6_bf16, amdgcn_cvt_scalef32_pk16_fp6_bf16},
2213 {amdgcn_cvt_scalef32_pk16_bf6_f32, amdgcn_cvt_scalef32_pk16_fp6_f32},
2219 {amdgcn_cvt_scalef32_pk8_bf8_f16, amdgcn_cvt_scalef32_pk8_fp8_f16,
2220 amdgcn_cvt_scalef32_pk8_bf8_bf16, amdgcn_cvt_scalef32_pk8_fp8_bf16},
2226 {amdgcn_cvt_scalef32_pk8_bf8_f32, amdgcn_cvt_scalef32_pk8_fp8_f32},
2232 {amdgcn_cvt_scalef32_pk8_fp4_f16, amdgcn_cvt_scalef32_pk8_fp4_bf16},
2237 addRulesForIOpcs({amdgcn_cvt_scalef32_pk8_fp4_f32},
Standard)
2241 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk16_bf6_f16,
2242 amdgcn_cvt_scalef32_sr_pk16_fp6_f16,
2243 amdgcn_cvt_scalef32_sr_pk16_bf6_bf16,
2244 amdgcn_cvt_scalef32_sr_pk16_fp6_bf16},
2250 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk16_bf6_f32,
2251 amdgcn_cvt_scalef32_sr_pk16_fp6_f32},
2257 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk8_bf8_f16,
2258 amdgcn_cvt_scalef32_sr_pk8_fp8_f16,
2259 amdgcn_cvt_scalef32_sr_pk8_bf8_bf16,
2260 amdgcn_cvt_scalef32_sr_pk8_fp8_bf16},
2267 {amdgcn_cvt_scalef32_sr_pk8_bf8_f32, amdgcn_cvt_scalef32_sr_pk8_fp8_f32},
2274 {amdgcn_cvt_scalef32_sr_pk8_fp4_f16, amdgcn_cvt_scalef32_sr_pk8_fp4_bf16},
2279 addRulesForIOpcs({amdgcn_cvt_scalef32_sr_pk8_fp4_f32},
Standard)
2284 {amdgcn_cvt_scale_pk16_f16_bf6, amdgcn_cvt_scale_pk16_f16_fp6,
2285 amdgcn_cvt_scale_pk16_bf16_bf6, amdgcn_cvt_scale_pk16_bf16_fp6},
2291 {amdgcn_cvt_scale_pk16_f32_bf6, amdgcn_cvt_scale_pk16_f32_fp6},
Standard)
2296 {amdgcn_cvt_scale_pk32_f16_bf6, amdgcn_cvt_scale_pk32_f16_fp6,
2297 amdgcn_cvt_scale_pk32_bf16_bf6, amdgcn_cvt_scale_pk32_bf16_fp6},
2303 {amdgcn_cvt_scale_pk32_f32_bf6, amdgcn_cvt_scale_pk32_f32_fp6},
Standard)
2307 addRulesForIOpcs({amdgcn_cvt_scale_pk8_f16_bf8, amdgcn_cvt_scale_pk8_f16_fp8,
2308 amdgcn_cvt_scale_pk8_bf16_bf8,
2309 amdgcn_cvt_scale_pk8_bf16_fp8},
2315 {amdgcn_cvt_scale_pk8_f16_fp4, amdgcn_cvt_scale_pk8_bf16_fp4},
Standard)
2319 addRulesForIOpcs({amdgcn_cvt_scale_pk8_f32_bf8, amdgcn_cvt_scale_pk8_f32_fp8},
2324 addRulesForIOpcs({amdgcn_cvt_scale_pk8_f32_fp4},
Standard)
2329 {amdgcn_cvt_scalef32_pk32_bf6_f16, amdgcn_cvt_scalef32_pk32_fp6_f16,
2330 amdgcn_cvt_scalef32_pk32_bf6_bf16, amdgcn_cvt_scalef32_pk32_fp6_bf16},
2336 {amdgcn_cvt_scalef32_pk32_bf6_f32, amdgcn_cvt_scalef32_pk32_fp6_f32},
2342 {amdgcn_cvt_scalef32_pk_fp8_f32, amdgcn_cvt_scalef32_pk_bf8_f32},
2349 {amdgcn_cvt_scalef32_pk_f32_fp8, amdgcn_cvt_scalef32_pk_f32_bf8},
2355 {amdgcn_cvt_scalef32_pk_fp8_f16, amdgcn_cvt_scalef32_pk_bf8_f16,
2356 amdgcn_cvt_scalef32_pk_fp8_bf16, amdgcn_cvt_scalef32_pk_bf8_bf16},
2361 addRulesForIOpcs({amdgcn_cvt_scalef32_pk_f32_fp4},
Standard)
2365 addRulesForIOpcs({amdgcn_cvt_scalef32_pk_fp4_f32},
Standard)
2370 {amdgcn_cvt_scalef32_pk_f16_fp4, amdgcn_cvt_scalef32_pk_f16_fp8,
2371 amdgcn_cvt_scalef32_pk_f16_bf8, amdgcn_cvt_scalef32_pk_bf16_fp4,
2372 amdgcn_cvt_scalef32_pk_bf16_fp8, amdgcn_cvt_scalef32_pk_bf16_bf8},
2378 {amdgcn_cvt_scalef32_pk32_f32_fp6, amdgcn_cvt_scalef32_pk32_f32_bf6},
2384 {amdgcn_cvt_scalef32_pk32_f16_fp6, amdgcn_cvt_scalef32_pk32_f16_bf6,
2385 amdgcn_cvt_scalef32_pk32_bf16_fp6, amdgcn_cvt_scalef32_pk32_bf16_bf6},
2391 {amdgcn_cvt_scalef32_pk_fp4_f16, amdgcn_cvt_scalef32_pk_fp4_bf16},
2396 addRulesForIOpcs({amdgcn_global_load_tr_b64})
2402 addRulesForIOpcs({amdgcn_global_load_tr_b128})
2408 addRulesForIOpcs({amdgcn_global_load_tr4_b64})
2412 addRulesForIOpcs({amdgcn_global_load_tr6_b96})
2416 addRulesForIOpcs({amdgcn_ds_load_tr4_b64, amdgcn_ds_load_tr8_b64})
2419 addRulesForIOpcs({amdgcn_ds_load_tr6_b96})
2422 addRulesForIOpcs({amdgcn_ds_load_tr16_b128})
2425 addRulesForIOpcs({amdgcn_global_atomic_ordered_add_b64})
2429 {amdgcn_global_atomic_fmin_num, amdgcn_global_atomic_fmax_num},
Standard)
2432 addRulesForIOpcs({amdgcn_flat_atomic_fmin_num, amdgcn_flat_atomic_fmax_num},
2436 addRulesForIOpcs({amdgcn_raw_buffer_load_lds})
2439 addRulesForIOpcs({amdgcn_raw_buffer_load_async_lds})
2442 addRulesForIOpcs({amdgcn_struct_buffer_load_async_lds})
2447 addRulesForIOpcs({amdgcn_struct_buffer_load_lds})
2451 addRulesForIOpcs({amdgcn_raw_ptr_buffer_load_lds})
2454 addRulesForIOpcs({amdgcn_raw_ptr_buffer_load_async_lds})
2457 addRulesForIOpcs({amdgcn_struct_ptr_buffer_load_async_lds})
2461 addRulesForIOpcs({amdgcn_struct_ptr_buffer_load_lds})
2465 {amdgcn_global_load_lds, amdgcn_load_to_lds, amdgcn_load_async_to_lds})
2468 addRulesForIOpcs({amdgcn_global_load_async_to_lds_b8,
2469 amdgcn_global_load_async_to_lds_b32,
2470 amdgcn_global_load_async_to_lds_b64,
2471 amdgcn_global_load_async_to_lds_b128,
2472 amdgcn_global_store_async_from_lds_b8,
2473 amdgcn_global_store_async_from_lds_b32,
2474 amdgcn_global_store_async_from_lds_b64,
2475 amdgcn_global_store_async_from_lds_b128})
2478 addRulesForIOpcs({amdgcn_global_load_async_lds})
2481 addRulesForIOpcs({amdgcn_tensor_load_to_lds, amdgcn_tensor_store_from_lds})
2488 addRulesForIOpcs({amdgcn_cluster_load_b32})
2494 addRulesForIOpcs({amdgcn_cluster_load_b64})
2500 addRulesForIOpcs({amdgcn_cluster_load_b128})
2507 addRulesForIOpcs({amdgcn_cluster_load_async_to_lds_b8,
2508 amdgcn_cluster_load_async_to_lds_b32,
2509 amdgcn_cluster_load_async_to_lds_b64,
2510 amdgcn_cluster_load_async_to_lds_b128})
2513 addRulesForIOpcs({amdgcn_perm_pk16_b4_u4},
StandardB)
2517 addRulesForIOpcs({amdgcn_perm_pk16_b6_u4},
StandardB)
2521 addRulesForIOpcs({amdgcn_perm_pk16_b8_u4},
StandardB)
2525 addRulesForIOpcs({amdgcn_wwm, amdgcn_strict_wwm, amdgcn_wqm, amdgcn_softwqm,
2543 addRulesForIOpcs({amdgcn_kill, amdgcn_wqm_demote})
2546 addRulesForIOpcs({amdgcn_set_inactive},
StandardB)
2549 addRulesForIOpcs({amdgcn_set_inactive_chain_arg},
Standard)
2552 addRulesForIOpcs({amdgcn_cvt_sr_bf16_f32, amdgcn_cvt_sr_f16_f32},
Standard)
2555 addRulesForIOpcs({amdgcn_ballot},
Standard)
2559 addRulesForIOpcs({amdgcn_inverse_ballot})
2563 addRulesForIOpcs({amdgcn_live_mask, amdgcn_ps_live})
2566 addRulesForIOpcs({amdgcn_mov_dpp, amdgcn_mov_dpp8},
StandardB)
2570 addRulesForIOpcs({amdgcn_update_dpp},
StandardB)
2574 addRulesForIOpcs({amdgcn_sin, amdgcn_cos, amdgcn_tanh},
Standard)
2580 addRulesForIOpcs({amdgcn_trig_preop},
Standard)
2584 addRulesForIOpcs({amdgcn_exp2})
2593 addRulesForIOpcs({amdgcn_rcp, amdgcn_sqrt})
2604 addRulesForIOpcs({amdgcn_log})
2613 addRulesForIOpcs({amdgcn_ds_atomic_async_barrier_arrive_b64})
2616 addRulesForIOpcs({amdgcn_ds_atomic_barrier_arrive_rtn_b64},
Standard)
2619 addRulesForIOpcs({amdgcn_ds_add_gs_reg_rtn, amdgcn_ds_sub_gs_reg_rtn},
2624 addRulesForIOpcs({amdgcn_ds_append, amdgcn_ds_consume},
Standard)
2629 {amdgcn_ds_bvh_stack_rtn, amdgcn_ds_bvh_stack_push4_pop1_rtn},
Standard)
2632 addRulesForIOpcs({amdgcn_ds_bvh_stack_push8_pop1_rtn},
Standard)
2635 addRulesForIOpcs({amdgcn_ds_bvh_stack_push8_pop2_rtn},
Standard)
2638 addRulesForIOpcs({amdgcn_ds_gws_sema_p, amdgcn_ds_gws_sema_v,
2639 amdgcn_ds_gws_sema_release_all})
2643 {amdgcn_ds_gws_barrier, amdgcn_ds_gws_init, amdgcn_ds_gws_sema_br})
2646 addRulesForIOpcs({amdgcn_ds_ordered_add, amdgcn_ds_ordered_swap},
Standard)
2649 addRulesForIOpcs({amdgcn_ds_swizzle},
Standard)
2653 addRulesForIOpcs({amdgcn_permlane16_var, amdgcn_permlanex16_var},
Standard)
2656 addRulesForIOpcs({amdgcn_permlane16_swap, amdgcn_permlane32_swap},
Standard)
2659 addRulesForIOpcs({amdgcn_permlane64},
StandardB)
2662 addRulesForIOpcs({amdgcn_ds_read_tr4_b64, amdgcn_ds_read_tr8_b64})
2665 addRulesForIOpcs({amdgcn_ds_read_tr6_b96})
2668 addRulesForIOpcs({amdgcn_ds_read_tr16_b64})
2671 addRulesForIOpcs({amdgcn_interp_p1},
Standard)
2674 addRulesForIOpcs({amdgcn_interp_p1_f16},
Standard)
2677 addRulesForIOpcs({amdgcn_interp_p2},
Standard)
2680 addRulesForIOpcs({amdgcn_interp_p2_f16},
Standard)
2684 addRulesForIOpcs({amdgcn_interp_mov},
Standard)
2687 addRulesForIOpcs({amdgcn_interp_inreg_p10, amdgcn_interp_inreg_p2,
2688 amdgcn_interp_inreg_p10_f16, amdgcn_interp_p10_rtz_f16},
2693 addRulesForIOpcs({amdgcn_interp_inreg_p2_f16, amdgcn_interp_p2_rtz_f16},
2698 addRulesForIOpcs({amdgcn_frexp_exp})
2710 addRulesForIOpcs({amdgcn_div_fmas})
2719 addRulesForIOpcs({amdgcn_div_fixup},
Standard)
2727 addRulesForIOpcs({amdgcn_div_scale},
Standard)
2734 {amdgcn_fdot2, amdgcn_fdot2_f32_bf16, amdgcn_sdot2, amdgcn_udot2},
2739 addRulesForIOpcs({amdgcn_fdot2_f16_f16, amdgcn_fdot2_bf16_bf16},
Standard)
2743 addRulesForIOpcs({amdgcn_sudot4, amdgcn_sudot8},
Standard)
2747 addRulesForIOpcs({amdgcn_s_alloc_vgpr})
2750 addRulesForIOpcs({amdgcn_sat_pk4_i4_i8, amdgcn_sat_pk4_u4_u8},
Standard)
2754 bool HasGFX90AInsts = ST->hasGFX90AInsts();
2757 addRulesForIOpcs({amdgcn_mfma_f32_32x32x1f32, amdgcn_mfma_f32_16x16x1f32,
2758 amdgcn_mfma_f32_4x4x1f32, amdgcn_mfma_f32_32x32x2f32,
2759 amdgcn_mfma_f32_16x16x4f32, amdgcn_mfma_f32_32x32x4f16,
2760 amdgcn_mfma_f32_16x16x4f16, amdgcn_mfma_f32_4x4x4f16,
2761 amdgcn_mfma_f32_32x32x8f16, amdgcn_mfma_f32_16x16x16f16,
2762 amdgcn_mfma_i32_32x32x4i8, amdgcn_mfma_i32_16x16x4i8,
2763 amdgcn_mfma_i32_4x4x4i8, amdgcn_mfma_i32_32x32x8i8,
2764 amdgcn_mfma_i32_16x16x16i8, amdgcn_mfma_f32_32x32x2bf16,
2765 amdgcn_mfma_f32_16x16x2bf16, amdgcn_mfma_f32_4x4x2bf16,
2766 amdgcn_mfma_f32_32x32x4bf16, amdgcn_mfma_f32_16x16x8bf16})
2777 amdgcn_mfma_f32_32x32x4bf16_1k,
2778 amdgcn_mfma_f32_16x16x4bf16_1k,
2779 amdgcn_mfma_f32_4x4x4bf16_1k,
2780 amdgcn_mfma_f32_32x32x8bf16_1k,
2781 amdgcn_mfma_f32_16x16x16bf16_1k,
2782 amdgcn_mfma_f64_16x16x4f64,
2783 amdgcn_mfma_f64_4x4x4f64,
2784 amdgcn_mfma_i32_16x16x32_i8,
2785 amdgcn_mfma_i32_32x32x16_i8,
2786 amdgcn_mfma_f32_16x16x8_xf32,
2787 amdgcn_mfma_f32_32x32x4_xf32,
2788 amdgcn_mfma_f32_16x16x32_bf8_bf8,
2789 amdgcn_mfma_f32_16x16x32_bf8_fp8,
2790 amdgcn_mfma_f32_16x16x32_fp8_bf8,
2791 amdgcn_mfma_f32_16x16x32_fp8_fp8,
2792 amdgcn_mfma_f32_32x32x16_bf8_bf8,
2793 amdgcn_mfma_f32_32x32x16_bf8_fp8,
2794 amdgcn_mfma_f32_32x32x16_fp8_bf8,
2795 amdgcn_mfma_f32_32x32x16_fp8_fp8,
2797 amdgcn_mfma_f32_16x16x32_f16,
2798 amdgcn_mfma_f32_32x32x16_f16,
2799 amdgcn_mfma_i32_16x16x64_i8,
2800 amdgcn_mfma_i32_32x32x32_i8,
2801 amdgcn_mfma_f32_16x16x32_bf16,
2802 amdgcn_mfma_f32_32x32x16_bf16,
2810 amdgcn_smfmac_f32_16x16x32_f16, amdgcn_smfmac_f32_32x32x16_f16,
2811 amdgcn_smfmac_f32_16x16x32_bf16, amdgcn_smfmac_f32_32x32x16_bf16,
2812 amdgcn_smfmac_i32_16x16x64_i8, amdgcn_smfmac_i32_32x32x32_i8,
2813 amdgcn_smfmac_f32_16x16x64_bf8_bf8, amdgcn_smfmac_f32_16x16x64_bf8_fp8,
2814 amdgcn_smfmac_f32_16x16x64_fp8_bf8, amdgcn_smfmac_f32_16x16x64_fp8_fp8,
2815 amdgcn_smfmac_f32_32x32x32_bf8_bf8, amdgcn_smfmac_f32_32x32x32_bf8_fp8,
2816 amdgcn_smfmac_f32_32x32x32_fp8_bf8, amdgcn_smfmac_f32_32x32x32_fp8_fp8,
2818 amdgcn_smfmac_f32_16x16x64_f16, amdgcn_smfmac_f32_32x32x32_f16,
2819 amdgcn_smfmac_f32_16x16x64_bf16, amdgcn_smfmac_f32_32x32x32_bf16,
2820 amdgcn_smfmac_i32_16x16x128_i8, amdgcn_smfmac_i32_32x32x64_i8,
2821 amdgcn_smfmac_f32_16x16x128_bf8_bf8, amdgcn_smfmac_f32_16x16x128_bf8_fp8,
2822 amdgcn_smfmac_f32_16x16x128_fp8_bf8, amdgcn_smfmac_f32_16x16x128_fp8_fp8,
2823 amdgcn_smfmac_f32_32x32x64_bf8_bf8, amdgcn_smfmac_f32_32x32x64_bf8_fp8,
2824 amdgcn_smfmac_f32_32x32x64_fp8_bf8, amdgcn_smfmac_f32_32x32x64_fp8_fp8})
2829 addRulesForIOpcs({amdgcn_mfma_scale_f32_32x32x64_f8f6f4,
2830 amdgcn_mfma_scale_f32_16x16x128_f8f6f4})
2839 amdgcn_wmma_f32_16x16x16_f16, amdgcn_wmma_f32_16x16x16_bf16,
2840 amdgcn_wmma_f16_16x16x16_f16, amdgcn_wmma_bf16_16x16x16_bf16,
2841 amdgcn_wmma_f16_16x16x16_f16_tied, amdgcn_wmma_bf16_16x16x16_bf16_tied,
2842 amdgcn_wmma_i32_16x16x16_iu8, amdgcn_wmma_i32_16x16x16_iu4,
2844 amdgcn_wmma_f32_16x16x16_fp8_fp8, amdgcn_wmma_f32_16x16x16_fp8_bf8,
2845 amdgcn_wmma_f32_16x16x16_bf8_fp8, amdgcn_wmma_f32_16x16x16_bf8_bf8,
2846 amdgcn_wmma_i32_16x16x32_iu4,
2848 amdgcn_wmma_f32_16x16x4_f32, amdgcn_wmma_f32_16x16x32_bf16,
2849 amdgcn_wmma_f32_16x16x32_f16, amdgcn_wmma_f16_16x16x32_f16,
2850 amdgcn_wmma_bf16_16x16x32_bf16, amdgcn_wmma_bf16f32_16x16x32_bf16,
2851 amdgcn_wmma_f32_16x16x64_fp8_fp8, amdgcn_wmma_f32_16x16x64_fp8_bf8,
2852 amdgcn_wmma_f32_16x16x64_bf8_fp8, amdgcn_wmma_f32_16x16x64_bf8_bf8,
2853 amdgcn_wmma_f16_16x16x64_fp8_fp8, amdgcn_wmma_f16_16x16x64_fp8_bf8,
2854 amdgcn_wmma_f16_16x16x64_bf8_fp8, amdgcn_wmma_f16_16x16x64_bf8_bf8,
2855 amdgcn_wmma_f16_16x16x128_fp8_fp8, amdgcn_wmma_f16_16x16x128_fp8_bf8,
2856 amdgcn_wmma_f16_16x16x128_bf8_fp8, amdgcn_wmma_f16_16x16x128_bf8_bf8,
2857 amdgcn_wmma_f32_16x16x128_fp8_fp8, amdgcn_wmma_f32_16x16x128_fp8_bf8,
2858 amdgcn_wmma_f32_16x16x128_bf8_fp8, amdgcn_wmma_f32_16x16x128_bf8_bf8,
2859 amdgcn_wmma_i32_16x16x64_iu8, amdgcn_wmma_f32_16x16x128_f8f6f4,
2860 amdgcn_wmma_scale_f32_16x16x128_f8f6f4,
2861 amdgcn_wmma_scale16_f32_16x16x128_f8f6f4, amdgcn_wmma_f32_32x16x128_f4,
2862 amdgcn_wmma_scale_f32_32x16x128_f4, amdgcn_wmma_scale16_f32_32x16x128_f4,
2864 amdgcn_wmma_f64_16x16x4_f64,
2866 amdgcn_swmmac_f32_16x16x32_f16, amdgcn_swmmac_f32_16x16x32_bf16,
2867 amdgcn_swmmac_f16_16x16x32_f16, amdgcn_swmmac_bf16_16x16x32_bf16,
2868 amdgcn_swmmac_i32_16x16x32_iu8, amdgcn_swmmac_i32_16x16x32_iu4,
2869 amdgcn_swmmac_i32_16x16x64_iu4, amdgcn_swmmac_f32_16x16x32_fp8_fp8,
2870 amdgcn_swmmac_f32_16x16x32_fp8_bf8, amdgcn_swmmac_f32_16x16x32_bf8_fp8,
2871 amdgcn_swmmac_f32_16x16x32_bf8_bf8,
2873 amdgcn_swmmac_f32_16x16x64_f16, amdgcn_swmmac_f32_16x16x64_bf16,
2874 amdgcn_swmmac_f16_16x16x64_f16, amdgcn_swmmac_bf16_16x16x64_bf16,
2875 amdgcn_swmmac_bf16f32_16x16x64_bf16, amdgcn_swmmac_f32_16x16x128_fp8_fp8,
2876 amdgcn_swmmac_f32_16x16x128_fp8_bf8, amdgcn_swmmac_f32_16x16x128_bf8_fp8,
2877 amdgcn_swmmac_f32_16x16x128_bf8_bf8, amdgcn_swmmac_f16_16x16x128_fp8_fp8,
2878 amdgcn_swmmac_f16_16x16x128_fp8_bf8, amdgcn_swmmac_f16_16x16x128_bf8_fp8,
2879 amdgcn_swmmac_f16_16x16x128_bf8_bf8, amdgcn_swmmac_i32_16x16x128_iu8})