Lines Matching refs:MF
30 bool MSP430FrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
31 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP()
33 return (MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
34 MF.getFrameInfo()->hasVarSizedObjects() || in hasFP()
38 bool MSP430FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const { in hasReservedCallFrame()
39 return !MF.getFrameInfo()->hasVarSizedObjects(); in hasReservedCallFrame()
42 void MSP430FrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument
44 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue()
45 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue()
46 MSP430MachineFunctionInfo *MSP430FI = MF.getInfo<MSP430MachineFunctionInfo>(); in emitPrologue()
48 *static_cast<const MSP430InstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitPrologue()
57 if (hasFP(MF)) { in emitPrologue()
76 for (MachineFunction::iterator I = std::next(MF.begin()), E = MF.end(); in emitPrologue()
108 void MSP430FrameLowering::emitEpilogue(MachineFunction &MF, in emitEpilogue() argument
110 const MachineFrameInfo *MFI = MF.getFrameInfo(); in emitEpilogue()
111 MSP430MachineFunctionInfo *MSP430FI = MF.getInfo<MSP430MachineFunctionInfo>(); in emitEpilogue()
113 *static_cast<const MSP430InstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitEpilogue()
131 if (hasFP(MF)) { in emitEpilogue()
192 MachineFunction &MF = *MBB.getParent(); in spillCalleeSavedRegisters() local
193 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); in spillCalleeSavedRegisters()
194 MSP430MachineFunctionInfo *MFI = MF.getInfo<MSP430MachineFunctionInfo>(); in spillCalleeSavedRegisters()
218 MachineFunction &MF = *MBB.getParent(); in restoreCalleeSavedRegisters() local
219 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); in restoreCalleeSavedRegisters()
228 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, in eliminateCallFramePseudoInstr() argument
231 *static_cast<const MSP430InstrInfo *>(MF.getSubtarget().getInstrInfo()); in eliminateCallFramePseudoInstr()
234 if (!hasReservedCallFrame(MF)) { in eliminateCallFramePseudoInstr()
249 New = BuildMI(MF, Old->getDebugLoc(), in eliminateCallFramePseudoInstr()
258 New = BuildMI(MF, Old->getDebugLoc(), in eliminateCallFramePseudoInstr()
277 BuildMI(MF, Old->getDebugLoc(), TII.get(MSP430::SUB16ri), in eliminateCallFramePseudoInstr()
290 MSP430FrameLowering::processFunctionBeforeFrameFinalized(MachineFunction &MF, in processFunctionBeforeFrameFinalized() argument
293 if (hasFP(MF)) { in processFunctionBeforeFrameFinalized()
294 int FrameIdx = MF.getFrameInfo()->CreateFixedObject(2, -4, true); in processFunctionBeforeFrameFinalized()
296 assert(FrameIdx == MF.getFrameInfo()->getObjectIndexBegin() && in processFunctionBeforeFrameFinalized()