Skip to content

Commit 2b58802

Browse files
committed
[m88k] Fix errors due to upstream changes
- copyPhysReg() has new parameters - some function in the AsmParser were renamed
1 parent bf203b3 commit 2b58802

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

llvm/lib/Target/M88k/AsmParser/M88kAsmParser.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class M88kAsmParser : public MCTargetAsmParser {
213213
}
214214

215215
bool ParseDirective(AsmToken DirectiveID) override;
216-
bool ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
216+
bool parseInstruction(ParseInstructionInfo &Info, StringRef Name,
217217
SMLoc NameLoc, OperandVector &Operands) override;
218218
bool parseRegister(MCRegister &RegNo, SMLoc &StartLoc,
219219
SMLoc &EndLoc) override;
@@ -242,7 +242,7 @@ class M88kAsmParser : public MCTargetAsmParser {
242242
return parsePCRel(Operands, 28);
243243
}
244244

245-
bool MatchAndEmitInstruction(SMLoc IdLoc, unsigned &Opcode,
245+
bool matchAndEmitInstruction(SMLoc IdLoc, unsigned &Opcode,
246246
OperandVector &Operands, MCStreamer &Out,
247247
uint64_t &ErrorInfo,
248248
bool MatchingInlineAsm) override;
@@ -338,7 +338,7 @@ bool M88kAsmParser::ParseDirective(AsmToken DirectiveID) {
338338
return true;
339339
}
340340

341-
bool M88kAsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
341+
bool M88kAsmParser::parseInstruction(ParseInstructionInfo &Info, StringRef Name,
342342
SMLoc NameLoc, OperandVector &Operands) {
343343
// First operand in MCInst is instruction mnemonic.
344344
Operands.push_back(M88kOperand::createToken(Name, NameLoc));
@@ -671,7 +671,7 @@ ParseStatus M88kAsmParser::tryParseRegister(MCRegister &RegNo, SMLoc &StartLoc,
671671
return ParseStatus::Success;
672672
}
673673

674-
bool M88kAsmParser::MatchAndEmitInstruction(SMLoc IdLoc, unsigned &Opcode,
674+
bool M88kAsmParser::matchAndEmitInstruction(SMLoc IdLoc, unsigned &Opcode,
675675
OperandVector &Operands,
676676
MCStreamer &Out,
677677
uint64_t &ErrorInfo,

llvm/lib/Target/M88k/M88kInstrInfo.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ unsigned M88kInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
538538
void M88kInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
539539
MachineBasicBlock::iterator MBBI,
540540
const DebugLoc &DL, MCRegister DestReg,
541-
MCRegister SrcReg, bool KillSrc) const {
541+
MCRegister SrcReg, bool KillSrc,
542+
bool RenamableDest, bool RenamableSrc) const {
542543
// Split 64-bit GPR moves into two 64-bit moves. Add implicit uses of the
543544
// super register in case one of the subregs is undefined.
544545
if (M88k::GPR64RegClass.contains(DestReg, SrcReg)) {

llvm/lib/Target/M88k/M88kInstrInfo.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ class M88kInstrInfo : public M88kGenInstrInfo {
9292

9393
unsigned getInstSizeInBytes(const MachineInstr &MI) const override;
9494

95-
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
95+
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
9696
const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg,
97-
bool KillSrc) const override;
97+
bool KillSrc, bool RenamableDest = false,
98+
bool RenamableSrc = false) const override;
9899

99100
std::optional<DestSourcePair>
100101
isCopyInstrImpl(const MachineInstr &MI) const override;

0 commit comments

Comments
 (0)