[llvm] r370113 - [RISCV] Implement RISCVRegisterInfo::getPointerRegClass
Luis Marques via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 14:38:00 PDT 2019
Author: luismarques
Date: Tue Aug 27 14:37:57 2019
New Revision: 370113
URL: http://llvm.org/viewvc/llvm-project?rev=370113&view=rev
Log:
[RISCV] Implement RISCVRegisterInfo::getPointerRegClass
Fixes bug 43041
Differential Revision: https://reviews.llvm.org/D66752
Modified:
llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.h
Modified: llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.h?rev=370113&r1=370112&r2=370113&view=diff
==============================================================================
--- llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.h (original)
+++ llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.h Tue Aug 27 14:37:57 2019
@@ -52,6 +52,12 @@ struct RISCVRegisterInfo : public RISCVG
bool trackLivenessAfterRegAlloc(const MachineFunction &) const override {
return true;
}
+
+ const TargetRegisterClass *
+ getPointerRegClass(const MachineFunction &MF,
+ unsigned Kind = 0) const override {
+ return &RISCV::GPRRegClass;
+ }
};
}
More information about the llvm-commits
mailing list