[PATCH] D63776: [AVR] Adjust to Register class change
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 09:39:14 PDT 2019
aykevl created this revision.
aykevl added a reviewer: dylanmckay.
Herald added subscribers: Jim, hiraditya.
Herald added a project: LLVM.
A refactor in r364191 changed register types from an unsigned int to the llvm:Register class. Adjust the AVR backend to this change.
This fixes build errors when building with the experimental AVR backend enabled.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D63776
Files:
llvm/lib/Target/AVR/AVRRegisterInfo.cpp
llvm/lib/Target/AVR/AVRRegisterInfo.h
Index: llvm/lib/Target/AVR/AVRRegisterInfo.h
===================================================================
--- llvm/lib/Target/AVR/AVRRegisterInfo.h
+++ llvm/lib/Target/AVR/AVRRegisterInfo.h
@@ -41,7 +41,7 @@
unsigned FIOperandNum,
RegScavenger *RS = NULL) const override;
- unsigned getFrameRegister(const MachineFunction &MF) const override;
+ Register getFrameRegister(const MachineFunction &MF) const override;
const TargetRegisterClass *
getPointerRegClass(const MachineFunction &MF,
Index: llvm/lib/Target/AVR/AVRRegisterInfo.cpp
===================================================================
--- llvm/lib/Target/AVR/AVRRegisterInfo.cpp
+++ llvm/lib/Target/AVR/AVRRegisterInfo.cpp
@@ -245,7 +245,7 @@
MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset);
}
-unsigned AVRRegisterInfo::getFrameRegister(const MachineFunction &MF) const {
+Register AVRRegisterInfo::getFrameRegister(const MachineFunction &MF) const {
const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering();
if (TFI->hasFP(MF)) {
// The Y pointer register
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63776.206442.patch
Type: text/x-patch
Size: 1141 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190625/4f1baa8b/attachment.bin>
More information about the llvm-commits
mailing list