@@ -1807,7 +1807,8 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
18071807 const OperandVector &Operands) const ;
18081808 SMLoc getInstLoc (const OperandVector &Operands) const ;
18091809
1810- bool validateInstruction (const MCInst &Inst, const SMLoc &IDLoc, const OperandVector &Operands);
1810+ bool validateInstruction (const MCInst &Inst, SMLoc IDLoc,
1811+ const OperandVector &Operands);
18111812 bool validateOffset (const MCInst &Inst, const OperandVector &Operands);
18121813 bool validateFlatOffset (const MCInst &Inst, const OperandVector &Operands);
18131814 bool validateSMEMOffset (const MCInst &Inst, const OperandVector &Operands);
@@ -1824,8 +1825,8 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
18241825 bool validateMIMGAtomicDMask (const MCInst &Inst);
18251826 bool validateMIMGGatherDMask (const MCInst &Inst);
18261827 bool validateMovrels (const MCInst &Inst, const OperandVector &Operands);
1827- bool validateMIMGDataSize (const MCInst &Inst, const SMLoc & IDLoc);
1828- bool validateMIMGAddrSize (const MCInst &Inst, const SMLoc & IDLoc);
1828+ bool validateMIMGDataSize (const MCInst &Inst, SMLoc IDLoc);
1829+ bool validateMIMGAddrSize (const MCInst &Inst, SMLoc IDLoc);
18291830 bool validateMIMGD16 (const MCInst &Inst);
18301831 bool validateMIMGDim (const MCInst &Inst, const OperandVector &Operands);
18311832 bool validateTensorR128 (const MCInst &Inst);
@@ -1847,7 +1848,7 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
18471848 bool validateDivScale (const MCInst &Inst);
18481849 bool validateWaitCnt (const MCInst &Inst, const OperandVector &Operands);
18491850 bool validateCoherencyBits (const MCInst &Inst, const OperandVector &Operands,
1850- const SMLoc & IDLoc);
1851+ SMLoc IDLoc);
18511852 bool validateTHAndScopeBits (const MCInst &Inst, const OperandVector &Operands,
18521853 const unsigned CPol);
18531854 bool validateTFE (const MCInst &Inst, const OperandVector &Operands);
@@ -1864,7 +1865,7 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
18641865 bool isSupportedMnemo (StringRef Mnemo,
18651866 const FeatureBitset &FBS,
18661867 ArrayRef<unsigned > Variants);
1867- bool checkUnsupportedInstruction (StringRef Name, const SMLoc & IDLoc);
1868+ bool checkUnsupportedInstruction (StringRef Name, SMLoc IDLoc);
18681869
18691870 bool isId (const StringRef Id) const ;
18701871 bool isId (const AsmToken &Token, const StringRef Id) const ;
@@ -4087,8 +4088,7 @@ bool AMDGPUAsmParser::validateIntClampSupported(const MCInst &Inst) {
40874088constexpr uint64_t MIMGFlags =
40884089 SIInstrFlags::MIMG | SIInstrFlags::VIMAGE | SIInstrFlags::VSAMPLE;
40894090
4090- bool AMDGPUAsmParser::validateMIMGDataSize (const MCInst &Inst,
4091- const SMLoc &IDLoc) {
4091+ bool AMDGPUAsmParser::validateMIMGDataSize (const MCInst &Inst, SMLoc IDLoc) {
40924092
40934093 const unsigned Opc = Inst.getOpcode ();
40944094 const MCInstrDesc &Desc = MII.get (Opc);
@@ -4135,8 +4135,7 @@ bool AMDGPUAsmParser::validateMIMGDataSize(const MCInst &Inst,
41354135 return false ;
41364136}
41374137
4138- bool AMDGPUAsmParser::validateMIMGAddrSize (const MCInst &Inst,
4139- const SMLoc &IDLoc) {
4138+ bool AMDGPUAsmParser::validateMIMGAddrSize (const MCInst &Inst, SMLoc IDLoc) {
41404139 const unsigned Opc = Inst.getOpcode ();
41414140 const MCInstrDesc &Desc = MII.get (Opc);
41424141
@@ -5344,7 +5343,7 @@ bool AMDGPUAsmParser::validateGWS(const MCInst &Inst,
53445343
53455344bool AMDGPUAsmParser::validateCoherencyBits (const MCInst &Inst,
53465345 const OperandVector &Operands,
5347- const SMLoc & IDLoc) {
5346+ SMLoc IDLoc) {
53485347 int CPolPos = AMDGPU::getNamedOperandIdx (Inst.getOpcode (),
53495348 AMDGPU::OpName::cpol);
53505349 if (CPolPos == -1 )
@@ -5541,8 +5540,7 @@ bool AMDGPUAsmParser::validateWMMA(const MCInst &Inst,
55415540 validateFmt (AMDGPU::OpName::matrix_b_fmt, AMDGPU::OpName::src1);
55425541}
55435542
5544- bool AMDGPUAsmParser::validateInstruction (const MCInst &Inst,
5545- const SMLoc &IDLoc,
5543+ bool AMDGPUAsmParser::validateInstruction (const MCInst &Inst, SMLoc IDLoc,
55465544 const OperandVector &Operands) {
55475545 if (!validateLdsDirect (Inst, Operands))
55485546 return false ;
@@ -5704,7 +5702,7 @@ bool AMDGPUAsmParser::isSupportedMnemo(StringRef Mnemo,
57045702}
57055703
57065704bool AMDGPUAsmParser::checkUnsupportedInstruction (StringRef Mnemo,
5707- const SMLoc & IDLoc) {
5705+ SMLoc IDLoc) {
57085706 FeatureBitset FBS = ComputeAvailableFeatures (getFeatureBits ());
57095707
57105708 // Check if requested instruction variant is supported.
0 commit comments