Skip to content

Commit 474037d

Browse files
luismarqueststellar
authored andcommitted
Merging r370113:
------------------------------------------------------------------------ r370113 | luismarques | 2019-08-27 14:37:57 -0700 (Tue, 27 Aug 2019) | 5 lines [RISCV] Implement RISCVRegisterInfo::getPointerRegClass Fixes bug 43041 Differential Revision: https://reviews.llvm.org/D66752 ------------------------------------------------------------------------
1 parent 64bdd8b commit 474037d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/Target/RISCV/RISCVRegisterInfo.h

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ struct RISCVRegisterInfo : public RISCVGenRegisterInfo {
5252
bool trackLivenessAfterRegAlloc(const MachineFunction &) const override {
5353
return true;
5454
}
55+
56+
const TargetRegisterClass *
57+
getPointerRegClass(const MachineFunction &MF,
58+
unsigned Kind = 0) const override {
59+
return &RISCV::GPRRegClass;
60+
}
5561
};
5662
}
5763

0 commit comments

Comments
 (0)