From: Tobias Edler von Koch Date: Wed, 21 Feb 2018 22:27:07 +0000 (+0000) Subject: [Hexagon] Add TargetRegisterInfo::getPointerRegClass() override X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba7a1f08da8d3561717876beab79e23f7e58b06d;p=platform%2Fupstream%2Fllvm.git [Hexagon] Add TargetRegisterInfo::getPointerRegClass() override llvm-svn: 325731 --- diff --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp index 85d6a6b..9c16b77 100644 --- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp +++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp @@ -283,6 +283,11 @@ bool HexagonRegisterInfo::useFPForScavengingIndex(const MachineFunction &MF) return MF.getSubtarget().getFrameLowering()->hasFP(MF); } +const TargetRegisterClass * +HexagonRegisterInfo::getPointerRegClass(const MachineFunction &MF, + unsigned Kind) const { + return &Hexagon::IntRegsRegClass; +} unsigned HexagonRegisterInfo::getFirstCallerSavedNonParamReg() const { return Hexagon::R6; diff --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h index 7102bf1..ff60520 100644 --- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h +++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h @@ -77,6 +77,10 @@ public: unsigned getFirstCallerSavedNonParamReg() const; + const TargetRegisterClass * + getPointerRegClass(const MachineFunction &MF, + unsigned Kind = 0) const override; + bool isEHReturnCalleeSaveReg(unsigned Reg) const; };