@@ -3837,14 +3837,11 @@ bool AArch64AsmParser::parseSymbolicImmVal(const MCExpr *&ImmVal) {
3837
3837
3838
3838
OperandMatchResultTy
3839
3839
AArch64AsmParser::tryParseMatrixTileList (OperandVector &Operands) {
3840
- MCAsmParser &Parser = getParser ();
3841
-
3842
- if (Parser.getTok ().isNot (AsmToken::LCurly))
3840
+ if (getTok ().isNot (AsmToken::LCurly))
3843
3841
return MatchOperand_NoMatch;
3844
3842
3845
- auto ParseMatrixTile = [this , &Parser](unsigned &Reg,
3846
- unsigned &ElementWidth) {
3847
- StringRef Name = Parser.getTok ().getString ();
3843
+ auto ParseMatrixTile = [this ](unsigned &Reg, unsigned &ElementWidth) {
3844
+ StringRef Name = getTok ().getString ();
3848
3845
size_t DotPosition = Name.find (' .' );
3849
3846
if (DotPosition == StringRef::npos)
3850
3847
return MatchOperand_NoMatch;
@@ -3862,13 +3859,13 @@ AArch64AsmParser::tryParseMatrixTileList(OperandVector &Operands) {
3862
3859
}
3863
3860
ElementWidth = KindRes->second ;
3864
3861
Reg = RegNum;
3865
- Parser. Lex (); // Eat the register.
3862
+ Lex (); // Eat the register.
3866
3863
return MatchOperand_Success;
3867
3864
};
3868
3865
3869
3866
SMLoc S = getLoc ();
3870
- auto LCurly = Parser. getTok ();
3871
- Parser. Lex (); // Eat left bracket token.
3867
+ auto LCurly = getTok ();
3868
+ Lex (); // Eat left bracket token.
3872
3869
3873
3870
// Empty matrix list
3874
3871
if (parseOptionalToken (AsmToken::RCurly)) {
@@ -3878,8 +3875,8 @@ AArch64AsmParser::tryParseMatrixTileList(OperandVector &Operands) {
3878
3875
}
3879
3876
3880
3877
// Try parse {za} alias early
3881
- if (Parser. getTok ().getString ().equals_insensitive (" za" )) {
3882
- Parser. Lex (); // Eat 'za'
3878
+ if (getTok ().getString ().equals_insensitive (" za" )) {
3879
+ Lex (); // Eat 'za'
3883
3880
3884
3881
if (parseToken (AsmToken::RCurly, " '}' expected" ))
3885
3882
return MatchOperand_ParseFail;
@@ -3894,7 +3891,7 @@ AArch64AsmParser::tryParseMatrixTileList(OperandVector &Operands) {
3894
3891
unsigned FirstReg, ElementWidth;
3895
3892
auto ParseRes = ParseMatrixTile (FirstReg, ElementWidth);
3896
3893
if (ParseRes != MatchOperand_Success) {
3897
- Parser. getLexer ().UnLex (LCurly);
3894
+ getLexer ().UnLex (LCurly);
3898
3895
return ParseRes;
3899
3896
}
3900
3897
0 commit comments