@@ -533,13 +533,13 @@ class SIInstrInfo final : public AMDGPUGenInstrInfo {
533
533
return get (Opcode).TSFlags & SIInstrFlags::VOP2;
534
534
}
535
535
536
- static bool isVOP3 (const MachineInstr &MI ) {
537
- return MI. getDesc () .TSFlags & SIInstrFlags::VOP3;
536
+ static bool isVOP3 (const MCInstrDesc &Desc ) {
537
+ return Desc .TSFlags & SIInstrFlags::VOP3;
538
538
}
539
539
540
- bool isVOP3 (uint16_t Opcode) const {
541
- return get (Opcode). TSFlags & SIInstrFlags::VOP3;
542
- }
540
+ static bool isVOP3 (const MachineInstr &MI) { return isVOP3 (MI. getDesc ()); }
541
+
542
+ bool isVOP3 ( uint16_t Opcode) const { return isVOP3 ( get (Opcode)); }
543
543
544
544
static bool isSDWA (const MachineInstr &MI) {
545
545
return MI.getDesc ().TSFlags & SIInstrFlags::SDWA;
@@ -841,13 +841,13 @@ class SIInstrInfo final : public AMDGPUGenInstrInfo {
841
841
return get (Opcode).TSFlags & SIInstrFlags::VINTRP;
842
842
}
843
843
844
- static bool isMAI (const MachineInstr &MI ) {
845
- return MI. getDesc () .TSFlags & SIInstrFlags::IsMAI;
844
+ static bool isMAI (const MCInstrDesc &Desc ) {
845
+ return Desc .TSFlags & SIInstrFlags::IsMAI;
846
846
}
847
847
848
- bool isMAI (uint16_t Opcode) const {
849
- return get (Opcode). TSFlags & SIInstrFlags::IsMAI;
850
- }
848
+ static bool isMAI (const MachineInstr &MI) { return isMAI (MI. getDesc ()); }
849
+
850
+ bool isMAI ( uint16_t Opcode) const { return isMAI ( get (Opcode)); }
851
851
852
852
static bool isMFMA (const MachineInstr &MI) {
853
853
return isMAI (MI) && MI.getOpcode () != AMDGPU::V_ACCVGPR_WRITE_B32_e64 &&
@@ -1174,9 +1174,14 @@ class SIInstrInfo final : public AMDGPUGenInstrInfo {
1174
1174
return isInlineConstant (*MO.getParent (), MO.getOperandNo ());
1175
1175
}
1176
1176
1177
- bool isImmOperandLegal (const MachineInstr &MI , unsigned OpNo,
1177
+ bool isImmOperandLegal (const MCInstrDesc &InstDesc , unsigned OpNo,
1178
1178
const MachineOperand &MO) const ;
1179
1179
1180
+ bool isImmOperandLegal (const MachineInstr &MI, unsigned OpNo,
1181
+ const MachineOperand &MO) const {
1182
+ return isImmOperandLegal (MI.getDesc (), OpNo, MO);
1183
+ }
1184
+
1180
1185
// / Check if this immediate value can be used for AV_MOV_B64_IMM_PSEUDO.
1181
1186
bool isLegalAV64PseudoImm (uint64_t Imm) const ;
1182
1187
0 commit comments