diff options
Diffstat (limited to 'contrib/llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp')
-rw-r--r-- | contrib/llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp b/contrib/llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp index 729f3ed7b79e..e5e6637967b2 100644 --- a/contrib/llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp +++ b/contrib/llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp @@ -64,6 +64,14 @@ void NVPTXFrameLowering::emitPrologue(MachineFunction &MF, } } +int NVPTXFrameLowering::getFrameIndexReference(const MachineFunction &MF, + int FI, + unsigned &FrameReg) const { + const MachineFrameInfo &MFI = MF.getFrameInfo(); + FrameReg = NVPTX::VRDepot; + return MFI.getObjectOffset(FI) - getOffsetOfLocalArea(); +} + void NVPTXFrameLowering::emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const {} |