You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (const MachineOperand &Operand : MI.operands())
2400
2400
if (Operand.isReg()) {
2401
2401
auto &RegClass = *TRI.getRegClassForOperandReg(MRI, Operand);
2402
-
if (TRI.isVGPRClass(&RegClass))
2402
+
if (TRI.hasVGPRs(&RegClass))
2403
2403
VGPR_used = true;
2404
-
if (TRI.isAGPRClass(&RegClass) || TRI.getRegSizeInBits(RegClass) > 128)
2404
+
if (TRI.hasAGPRs(&RegClass) || TRI.getRegSizeInBits(RegClass) > 128)// > 128 bit registers are usually only used by MFMA instructions, so we're using that as a heuristic to guess the schedule group mask of the inline asm.
2405
2405
VMFMA_used = true;
2406
-
if (TRI.isSGPRClass(&RegClass))
2406
+
if (TRI.hasSGPRs(&RegClass))
2407
2407
SGPR_used = true;
2408
2408
}
2409
2409
2410
2410
unsignedlong InlineAsmMask = 0;
2411
-
if (VGPR_used && !SGPR_used && !VMFMA_used && !MayLoad && !MayStore)
2411
+
if (VGPR_used && !VMFMA_used && !MayLoad && !MayStore)
0 commit comments