HomePhabricator

[RISCV] Support stack offset exceed 32-bit for RV64

Description

[RISCV] Support stack offset exceed 32-bit for RV64

Differential Revision: https://reviews.llvm.org/D61884

Details

Event Timeline

rogfer01 added inline comments.
/llvm/trunk/lib/Target/RISCV/RISCVInstrInfo.cpp
165

MF is not declared here and then clang gives a confusing message regarding template stuff.

Something like this should do I think

MachineFunction *MF = MBB.getParent();
MachineRegisterInfo &MRI = MF->getRegInfo();
bool IsRV64 = MF->getSubtarget<RISCVSubtarget>().is64Bit();