1 //===-- RISCVFrameLowering.cpp - RISCV Frame Information ------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This file contains the RISCV implementation of TargetFrameLowering class. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #include "RISCVFrameLowering.h" 15 #include "RISCVSubtarget.h" 16 #include "llvm/CodeGen/MachineFrameInfo.h" 17 #include "llvm/CodeGen/MachineFunction.h" 18 #include "llvm/CodeGen/MachineInstrBuilder.h" 19 #include "llvm/CodeGen/MachineRegisterInfo.h" 20 21 using namespace llvm; 22 23 bool RISCVFrameLowering::hasFP(const MachineFunction &MF) const { return true; } 24 25 void RISCVFrameLowering::emitPrologue(MachineFunction &MF, 26 MachineBasicBlock &MBB) const {} 27 28 void RISCVFrameLowering::emitEpilogue(MachineFunction &MF, 29 MachineBasicBlock &MBB) const {} 30