@@ -126,10 +126,10 @@ class AMDGPUOperand : public MCParsedAsmOperand {
126
126
ImmTyD16,
127
127
ImmTyClampSI,
128
128
ImmTyOModSI,
129
- ImmTySdwaDstSel ,
130
- ImmTySdwaSrc0Sel ,
131
- ImmTySdwaSrc1Sel ,
132
- ImmTySdwaDstUnused ,
129
+ ImmTySDWADstSel ,
130
+ ImmTySDWASrc0Sel ,
131
+ ImmTySDWASrc1Sel ,
132
+ ImmTySDWADstUnused ,
133
133
ImmTyDMask,
134
134
ImmTyDim,
135
135
ImmTyUNorm,
@@ -386,10 +386,10 @@ class AMDGPUOperand : public MCParsedAsmOperand {
386
386
bool isRowMask() const { return isImmTy(ImmTyDppRowMask); }
387
387
bool isDppBoundCtrl() const { return isImmTy(ImmTyDppBoundCtrl); }
388
388
bool isFI() const { return isImmTy(ImmTyDppFi); }
389
- bool isSDWADstSel() const { return isImmTy(ImmTySdwaDstSel ); }
390
- bool isSDWASrc0Sel() const { return isImmTy(ImmTySdwaSrc0Sel ); }
391
- bool isSDWASrc1Sel() const { return isImmTy(ImmTySdwaSrc1Sel ); }
392
- bool isSDWADstUnused() const { return isImmTy(ImmTySdwaDstUnused ); }
389
+ bool isSDWADstSel() const { return isImmTy(ImmTySDWADstSel ); }
390
+ bool isSDWASrc0Sel() const { return isImmTy(ImmTySDWASrc0Sel ); }
391
+ bool isSDWASrc1Sel() const { return isImmTy(ImmTySDWASrc1Sel ); }
392
+ bool isSDWADstUnused() const { return isImmTy(ImmTySDWADstUnused ); }
393
393
bool isInterpSlot() const { return isImmTy(ImmTyInterpSlot); }
394
394
bool isInterpAttr() const { return isImmTy(ImmTyInterpAttr); }
395
395
bool isAttrChan() const { return isImmTy(ImmTyAttrChan); }
@@ -1049,10 +1049,10 @@ class AMDGPUOperand : public MCParsedAsmOperand {
1049
1049
case ImmTyDppBankMask: OS << "DppBankMask"; break;
1050
1050
case ImmTyDppBoundCtrl: OS << "DppBoundCtrl"; break;
1051
1051
case ImmTyDppFi: OS << "FI"; break;
1052
- case ImmTySdwaDstSel : OS << "SdwaDstSel "; break;
1053
- case ImmTySdwaSrc0Sel : OS << "SdwaSrc0Sel "; break;
1054
- case ImmTySdwaSrc1Sel : OS << "SdwaSrc1Sel "; break;
1055
- case ImmTySdwaDstUnused : OS << "SdwaDstUnused "; break;
1052
+ case ImmTySDWADstSel : OS << "SDWADstSel "; break;
1053
+ case ImmTySDWASrc0Sel : OS << "SDWASrc0Sel "; break;
1054
+ case ImmTySDWASrc1Sel : OS << "SDWASrc1Sel "; break;
1055
+ case ImmTySDWADstUnused : OS << "SDWADstUnused "; break;
1056
1056
case ImmTyDMask: OS << "DMask"; break;
1057
1057
case ImmTyDim: OS << "Dim"; break;
1058
1058
case ImmTyUNorm: OS << "UNorm"; break;
@@ -8939,7 +8939,7 @@ AMDGPUAsmParser::parseSDWADstUnused(OperandVector &Operands) {
8939
8939
return MatchOperand_ParseFail;
8940
8940
}
8941
8941
8942
- Operands.push_back(AMDGPUOperand::CreateImm(this, Int, S, AMDGPUOperand::ImmTySdwaDstUnused ));
8942
+ Operands.push_back(AMDGPUOperand::CreateImm(this, Int, S, AMDGPUOperand::ImmTySDWADstUnused ));
8943
8943
return MatchOperand_Success;
8944
8944
}
8945
8945
@@ -9026,14 +9026,14 @@ void AMDGPUAsmParser::cvtSDWA(MCInst &Inst, const OperandVector &Operands,
9026
9026
9027
9027
if (AMDGPU::hasNamedOperand(Opc, AMDGPU::OpName::dst_sel))
9028
9028
addOptionalImmOperand(Inst, Operands, OptionalIdx,
9029
- AMDGPUOperand::ImmTySdwaDstSel , SdwaSel::DWORD);
9029
+ AMDGPUOperand::ImmTySDWADstSel , SdwaSel::DWORD);
9030
9030
9031
9031
if (AMDGPU::hasNamedOperand(Opc, AMDGPU::OpName::dst_unused))
9032
9032
addOptionalImmOperand(Inst, Operands, OptionalIdx,
9033
- AMDGPUOperand::ImmTySdwaDstUnused ,
9033
+ AMDGPUOperand::ImmTySDWADstUnused ,
9034
9034
DstUnused::UNUSED_PRESERVE);
9035
9035
9036
- addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc0Sel , SdwaSel::DWORD);
9036
+ addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySDWASrc0Sel , SdwaSel::DWORD);
9037
9037
break;
9038
9038
9039
9039
case SIInstrFlags::VOP2:
@@ -9042,17 +9042,17 @@ void AMDGPUAsmParser::cvtSDWA(MCInst &Inst, const OperandVector &Operands,
9042
9042
if (AMDGPU::hasNamedOperand(Inst.getOpcode(), AMDGPU::OpName::omod))
9043
9043
addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOModSI, 0);
9044
9044
9045
- addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaDstSel , SdwaSel::DWORD);
9046
- addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaDstUnused , DstUnused::UNUSED_PRESERVE);
9047
- addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc0Sel , SdwaSel::DWORD);
9048
- addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc1Sel , SdwaSel::DWORD);
9045
+ addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySDWADstSel , SdwaSel::DWORD);
9046
+ addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySDWADstUnused , DstUnused::UNUSED_PRESERVE);
9047
+ addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySDWASrc0Sel , SdwaSel::DWORD);
9048
+ addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySDWASrc1Sel , SdwaSel::DWORD);
9049
9049
break;
9050
9050
9051
9051
case SIInstrFlags::VOPC:
9052
9052
if (AMDGPU::hasNamedOperand(Inst.getOpcode(), AMDGPU::OpName::clamp))
9053
9053
addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyClampSI, 0);
9054
- addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc0Sel , SdwaSel::DWORD);
9055
- addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc1Sel , SdwaSel::DWORD);
9054
+ addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySDWASrc0Sel , SdwaSel::DWORD);
9055
+ addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySDWASrc1Sel , SdwaSel::DWORD);
9056
9056
break;
9057
9057
9058
9058
default:
@@ -9155,14 +9155,6 @@ AMDGPUAsmParser::parseCustomOperand(OperandVector &Operands, unsigned MCK) {
9155
9155
case MCK_ImmRowMask:
9156
9156
return parseIntWithPrefix("row_mask", Operands,
9157
9157
AMDGPUOperand::ImmTyDppRowMask);
9158
- case MCK_ImmSDWADstSel:
9159
- return parseSDWASel(Operands, "dst_sel", AMDGPUOperand::ImmTySdwaDstSel);
9160
- case MCK_ImmSDWADstUnused:
9161
- return parseSDWADstUnused(Operands);
9162
- case MCK_ImmSDWASrc0Sel:
9163
- return parseSDWASel(Operands, "src0_sel", AMDGPUOperand::ImmTySdwaSrc0Sel);
9164
- case MCK_ImmSDWASrc1Sel:
9165
- return parseSDWASel(Operands, "src1_sel", AMDGPUOperand::ImmTySdwaSrc1Sel);
9166
9158
case MCK_tfe:
9167
9159
return parseNamedBit("tfe", Operands, AMDGPUOperand::ImmTyTFE);
9168
9160
}
0 commit comments