Skip to content

Commit 2f8fb4d

Browse files
committed
[VE] Adapt aa26dd9 and 2481f26
1 parent 50280c1 commit 2f8fb4d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

llvm/lib/Target/VE/VEFrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ bool VEFrameLowering::hasFP(const MachineFunction &MF) const {
305305
}
306306

307307
int VEFrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI,
308-
unsigned &FrameReg) const {
308+
Register &FrameReg) const {
309309
const VESubtarget &Subtarget = MF.getSubtarget<VESubtarget>();
310310
const MachineFrameInfo &MFI = MF.getFrameInfo();
311311
const VERegisterInfo *RegInfo = Subtarget.getRegisterInfo();

llvm/lib/Target/VE/VEFrameLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class VEFrameLowering : public TargetFrameLowering {
4444
RegScavenger *RS = nullptr) const override;
4545

4646
int getFrameIndexReference(const MachineFunction &MF, int FI,
47-
unsigned &FrameReg) const override;
47+
Register &FrameReg) const override;
4848

4949
const SpillSlot *
5050
getCalleeSavedSpillSlots(unsigned &NumEntries) const override {

llvm/lib/Target/VE/VERegisterInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ BitVector VERegisterInfo::getReservedRegs(const MachineFunction &MF) const {
7575
return Reserved;
7676
}
7777

78-
bool VERegisterInfo::isConstantPhysReg(unsigned PhysReg) const { return false; }
78+
bool VERegisterInfo::isConstantPhysReg(MCRegister PhysReg) const { return false; }
7979

8080
const TargetRegisterClass *
8181
VERegisterInfo::getPointerRegClass(const MachineFunction &MF,
@@ -85,11 +85,11 @@ VERegisterInfo::getPointerRegClass(const MachineFunction &MF,
8585

8686
static void replaceFI(MachineFunction &MF, MachineBasicBlock::iterator II,
8787
MachineInstr &MI, const DebugLoc &dl,
88-
unsigned FIOperandNum, int Offset, unsigned FramePtr) {
88+
unsigned FIOperandNum, int Offset, Register FrameReg) {
8989
// Replace frame index with a frame pointer reference directly.
9090
// VE has 32 bit offset field, so no need to expand a target instruction.
9191
// Directly encode it.
92-
MI.getOperand(FIOperandNum).ChangeToRegister(FramePtr, false);
92+
MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, false);
9393
MI.getOperand(FIOperandNum + 2).ChangeToImmediate(Offset);
9494
}
9595

@@ -104,7 +104,7 @@ void VERegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
104104
MachineFunction &MF = *MI.getParent()->getParent();
105105
const VEFrameLowering *TFI = getFrameLowering(MF);
106106

107-
unsigned FrameReg;
107+
Register FrameReg;
108108
int Offset;
109109
Offset = TFI->getFrameIndexReference(MF, FrameIndex, FrameReg);
110110

llvm/lib/Target/VE/VERegisterInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct VERegisterInfo : public VEGenRegisterInfo {
3030
const uint32_t *getNoPreservedMask() const override;
3131

3232
BitVector getReservedRegs(const MachineFunction &MF) const override;
33-
bool isConstantPhysReg(unsigned PhysReg) const override;
33+
bool isConstantPhysReg(MCRegister PhysReg) const override;
3434

3535
const TargetRegisterClass *getPointerRegClass(const MachineFunction &MF,
3636
unsigned Kind) const override;

0 commit comments

Comments
 (0)