Lines Matching refs:MF
66 bool runOnMachineFunction(MachineFunction &MF) override;
70 bool calculateLiveness(MachineFunction &MF);
73 void addLiveOutSetToMI(MachineFunction &MF, MachineInstr &MI);
77 uint32_t *createRegisterMask(MachineFunction &MF) const;
101 bool StackMapLiveness::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument
105 DEBUG(dbgs() << "********** COMPUTING STACKMAP LIVENESS: " << MF.getName() in runOnMachineFunction()
107 TRI = MF.getSubtarget().getRegisterInfo(); in runOnMachineFunction()
111 if (!MF.getFrameInfo()->hasPatchPoint()) { in runOnMachineFunction()
115 return calculateLiveness(MF); in runOnMachineFunction()
119 bool StackMapLiveness::calculateLiveness(MachineFunction &MF) { in calculateLiveness() argument
122 for (auto &MBB : MF) { in calculateLiveness()
131 addLiveOutSetToMI(MF, *I); in calculateLiveness()
147 void StackMapLiveness::addLiveOutSetToMI(MachineFunction &MF, in addLiveOutSetToMI() argument
149 uint32_t *Mask = createRegisterMask(MF); in addLiveOutSetToMI()
151 MI.addOperand(MF, MO); in addLiveOutSetToMI()
156 uint32_t *StackMapLiveness::createRegisterMask(MachineFunction &MF) const { in createRegisterMask()
158 uint32_t *Mask = MF.allocateRegisterMask(TRI->getNumRegs()); in createRegisterMask()