Skip to content

Commit 0206c0f

Browse files
authored
[AMDGPU] Add fixed size to wmma instructions with scale (#152043)
1 parent a153e83 commit 0206c0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/AMDGPU/VOP3PInstructions.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,11 +1664,15 @@ multiclass WMMAInstGFX12<string Instr, VOP3PWMMA_Profile WMMAProfile, string Pse
16641664
let Constraints = WMMAConstraints2Addr, isConvertibleToThreeAddress = 1 in
16651665
def _twoaddr : VOP3P_Pseudo<Instr, WMMAProfile>, WMMAInstInfo {
16661666
let PseudoInstr = Instr#PseudoInstrSuffix;
1667+
let FixedSize = WMMAProfile.HasMatrixScale;
1668+
let Size = !if(WMMAProfile.HasMatrixScale, 16, 8);
16671669
}
16681670

16691671
let Constraints = WMMAConstraints3Addr, SchedRW = [Write32Bit, Write32Bit] in
16701672
def _threeaddr : VOP3P_Pseudo<Instr, WMMAProfile>, WMMAInstInfo {
16711673
let PseudoInstr = Instr#PseudoInstrSuffix;
1674+
let FixedSize = WMMAProfile.HasMatrixScale;
1675+
let Size = !if(WMMAProfile.HasMatrixScale, 16, 8);
16721676
}
16731677

16741678
}

0 commit comments

Comments
 (0)