Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit fda791f

Browse files
author
Tobias Edler von Koch
committed
[Hexagon] Add TargetRegisterInfo::getPointerRegClass() override
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325731 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 8ff0fbb commit fda791f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lib/Target/Hexagon/HexagonRegisterInfo.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ bool HexagonRegisterInfo::useFPForScavengingIndex(const MachineFunction &MF)
283283
return MF.getSubtarget<HexagonSubtarget>().getFrameLowering()->hasFP(MF);
284284
}
285285

286+
const TargetRegisterClass *
287+
HexagonRegisterInfo::getPointerRegClass(const MachineFunction &MF,
288+
unsigned Kind) const {
289+
return &Hexagon::IntRegsRegClass;
290+
}
286291

287292
unsigned HexagonRegisterInfo::getFirstCallerSavedNonParamReg() const {
288293
return Hexagon::R6;

lib/Target/Hexagon/HexagonRegisterInfo.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ class HexagonRegisterInfo : public HexagonGenRegisterInfo {
7777

7878
unsigned getFirstCallerSavedNonParamReg() const;
7979

80+
const TargetRegisterClass *
81+
getPointerRegClass(const MachineFunction &MF,
82+
unsigned Kind = 0) const override;
83+
8084
bool isEHReturnCalleeSaveReg(unsigned Reg) const;
8185
};
8286

0 commit comments

Comments
 (0)