Lines Matching defs:MF
30 bool NVPTXFrameLowering::hasFP(const MachineFunction &MF) const { return true; }
32 void NVPTXFrameLowering::emitPrologue(MachineFunction &MF,
34 if (MF.getFrameInfo().hasStackObjects()) {
35 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported");
37 MachineRegisterInfo &MR = MF.getRegInfo();
40 MF.getSubtarget<NVPTXSubtarget>().getRegisterInfo();
49 // for local address accesses in MF.
51 static_cast<const NVPTXTargetMachine &>(MF.getTarget()).is64Bit();
56 if (!MR.use_empty(NRI->getFrameRegister(MF))) {
59 MF.getSubtarget().getInstrInfo()->get(CvtaLocalOpcode),
60 NRI->getFrameRegister(MF))
61 .addReg(NRI->getFrameLocalRegister(MF));
63 if (!MR.use_empty(NRI->getFrameLocalRegister(MF))) {
65 MF.getSubtarget().getInstrInfo()->get(MovDepotOpcode),
66 NRI->getFrameLocalRegister(MF))
67 .addImm(MF.getFunctionNumber());
73 NVPTXFrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI,
75 const MachineFrameInfo &MFI = MF.getFrameInfo();
81 void NVPTXFrameLowering::emitEpilogue(MachineFunction &MF,
87 MachineFunction &MF, MachineBasicBlock &MBB,
95 NVPTXFrameLowering::getDwarfFrameBase(const MachineFunction &MF) const {