Lines Matching defs:MF
33 bool MSP430FrameLowering::hasFP(const MachineFunction &MF) const {
34 const MachineFrameInfo &MFI = MF.getFrameInfo();
36 return (MF.getTarget().Options.DisableFramePointerElim(MF) ||
37 MF.getFrameInfo().hasVarSizedObjects() ||
41 bool MSP430FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const {
42 return !MF.getFrameInfo().hasVarSizedObjects();
50 MachineFunction &MF = *MBB.getParent();
51 unsigned CFIIndex = MF.addFrameInst(CFIInst);
60 MachineFunction &MF = *MBB.getParent();
61 MachineFrameInfo &MFI = MF.getFrameInfo();
62 const MCRegisterInfo *MRI = MF.getContext().getRegisterInfo();
83 void MSP430FrameLowering::emitPrologue(MachineFunction &MF,
85 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported");
86 MachineFrameInfo &MFI = MF.getFrameInfo();
87 MSP430MachineFunctionInfo *MSP430FI = MF.getInfo<MSP430MachineFunctionInfo>();
89 *static_cast<const MSP430InstrInfo *>(MF.getSubtarget().getInstrInfo());
99 if (hasFP(MF)) {
139 for (MachineBasicBlock &MBBJ : llvm::drop_begin(MF))
150 if (!hasFP(MF)) {
181 if (!hasFP(MF)) {
193 void MSP430FrameLowering::emitEpilogue(MachineFunction &MF,
195 const MachineFrameInfo &MFI = MF.getFrameInfo();
196 MSP430MachineFunctionInfo *MSP430FI = MF.getInfo<MSP430MachineFunctionInfo>();
198 *static_cast<const MSP430InstrInfo *>(MF.getSubtarget().getInstrInfo());
217 if (hasFP(MF)) {
285 if (!hasFP(MF)) {
294 if (!hasFP(MF)) {
324 MachineFunction &MF = *MBB.getParent();
325 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo();
326 MSP430MachineFunctionInfo *MFI = MF.getInfo<MSP430MachineFunctionInfo>();
349 MachineFunction &MF = *MBB.getParent();
350 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo();
360 MachineFunction &MF, MachineBasicBlock &MBB,
363 *static_cast<const MSP430InstrInfo *>(MF.getSubtarget().getInstrInfo());
364 if (!hasReservedCallFrame(MF)) {
380 BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::SUB16ri), MSP430::SP)
388 New = BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::ADD16ri),
408 BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::SUB16ri), MSP430::SP)
411 if (!hasFP(MF)) {
427 MSP430FrameLowering::processFunctionBeforeFrameFinalized(MachineFunction &MF,
430 if (hasFP(MF)) {
431 int FrameIdx = MF.getFrameInfo().CreateFixedObject(2, -4, true);
433 assert(FrameIdx == MF.getFrameInfo().getObjectIndexBegin() &&