[llvm] b1c1825 - [X86] Remove unused argument from HandleAVX512Operand in the assembly parser.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 14:23:53 PDT 2020
Author: Craig Topper
Date: 2020-07-29T14:23:01-07:00
New Revision: b1c1825b9972cf2c77917b8f2fc220946ab70bac
URL: https://github.com/llvm/llvm-project/commit/b1c1825b9972cf2c77917b8f2fc220946ab70bac
DIFF: https://github.com/llvm/llvm-project/commit/b1c1825b9972cf2c77917b8f2fc220946ab70bac.diff
LOG: [X86] Remove unused argument from HandleAVX512Operand in the assembly parser.
Added:
Modified:
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index bb9919a25847..0950cf9e5710 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -1000,8 +1000,7 @@ class X86AsmParser : public MCTargetAsmParser {
/// Parses AVX512 specific operand primitives: masked registers ({%k<NUM>}, {z})
/// and memory broadcasting ({1to<NUM>}) primitives, updating Operands vector if required.
/// return false if no parsing errors occurred, true otherwise.
- bool HandleAVX512Operand(OperandVector &Operands,
- const MCParsedAsmOperand &Op);
+ bool HandleAVX512Operand(OperandVector &Operands);
bool ParseZ(std::unique_ptr<X86Operand> &Z, const SMLoc &StartLoc);
@@ -2313,8 +2312,7 @@ bool X86AsmParser::ParseZ(std::unique_ptr<X86Operand> &Z,
}
// true on failure, false otherwise
-bool X86AsmParser::HandleAVX512Operand(OperandVector &Operands,
- const MCParsedAsmOperand &Op) {
+bool X86AsmParser::HandleAVX512Operand(OperandVector &Operands) {
MCAsmParser &Parser = getParser();
if (getLexer().is(AsmToken::LCurly)) {
// Eat "{" and mark the current place.
@@ -2893,7 +2891,7 @@ bool X86AsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
while(1) {
if (std::unique_ptr<X86Operand> Op = ParseOperand()) {
Operands.push_back(std::move(Op));
- if (HandleAVX512Operand(Operands, *Operands.back()))
+ if (HandleAVX512Operand(Operands))
return true;
} else {
return true;
More information about the llvm-commits
mailing list