[clang] [llvm] [AMDGPU] Add target features for SWMMAC instructions (PR #185785)

Chinmay Deshpande via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 18 10:47:41 PDT 2026


================
@@ -2061,7 +2067,9 @@ let WaveSizePredicate = isWave32, SubtargetPredicate = isGFX11PlusNot12_50, Othe
   defm : WMMAPat<"V_WMMA_F32_16X16X16_BF8_FP8_w32", int_amdgcn_wmma_f32_16x16x16_bf8_fp8, F32_FP8BF8_WMMA_w32>;
   defm : WMMAPat<"V_WMMA_F32_16X16X16_BF8_BF8_w32", int_amdgcn_wmma_f32_16x16x16_bf8_bf8, F32_FP8BF8_WMMA_w32>;
   defm : WMMAPat<"V_WMMA_I32_16X16X32_IU4_w32",     int_amdgcn_wmma_i32_16x16x32_iu4,     I32_IU4X32_WMMA_w32>;
+}
 
+let WaveSizePredicate = isWave32, SubtargetPredicate = isGFX11PlusNot12_50, OtherPredicates = [HasSWMMACGfx1200Insts] in {
----------------
chinmaydd wrote:

I was trying to gate them using all the existing ones they had.

We definitely need `isWave32` let me check if `HasSWMMACGfx1200Insts` is enough

https://github.com/llvm/llvm-project/pull/185785


More information about the cfe-commits mailing list