[llvm] 73d2a4c - [AArch64] SME2 -Fix failing buildbots because of warning
Caroline Concatto via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 01:35:34 PDT 2022
Author: Caroline Concatto
Date: 2022-11-03T08:34:56Z
New Revision: 73d2a4cfd82a8aa62c9ae1bf754dec920befb06d
URL: https://github.com/llvm/llvm-project/commit/73d2a4cfd82a8aa62c9ae1bf754dec920befb06d
DIFF: https://github.com/llvm/llvm-project/commit/73d2a4cfd82a8aa62c9ae1bf754dec920befb06d.diff
LOG: [AArch64] SME2 -Fix failing buildbots because of warning
This patch is to solve this:
https://lab.llvm.org/buildbot#builders/36/builds/26801
Created by this patch: a20112a74cb34f
[AArch64]SME2 instructions that use ZTO operand
Added:
Modified:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index 578c5140fd30..e04c05420505 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2829,6 +2829,8 @@ unsigned AArch64AsmParser::getNumRegsForRegKind(RegKind K) {
case RegKind::SVEPredicateVector:
case RegKind::SVEPredicateAsCounter:
return 16;
+ case RegKind::LookupTable:
+ return 512;
}
llvm_unreachable("Unsupported RegKind");
}
@@ -4344,7 +4346,7 @@ OperandMatchResultTy
AArch64AsmParser::tryParseZTOperand(OperandVector &Operands) {
SMLoc StartLoc = getLoc();
const AsmToken &Tok = getTok();
- StringRef Name = Tok.getString().lower();
+ std::string Name = Tok.getString().lower();
unsigned RegNum = matchRegisterNameAlias(Name, RegKind::LookupTable);
More information about the llvm-commits
mailing list