Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:MF

57       if (MachineFunction *MF = MBB->getParent()) {
58 MachineRegisterInfo &MRI = MF->getRegInfo();
99 if (MachineFunction *MF = MBB->getParent()) {
100 MachineRegisterInfo &MRI = MF->getRegInfo();
119 if (MachineFunction *MF = MBB->getParent())
120 MF->getRegInfo().removeRegOperandFromUseList(this);
135 if (MachineFunction *MF = MBB->getParent())
136 RegInfo = &MF->getRegInfo();
261 if (const MachineFunction *MF = MBB->getParent())
262 TM = &MF->getTarget();
520 void MachineInstr::addImplicitDefUseOperands(MachineFunction &MF) {
523 addOperand(MF, MachineOperand::CreateReg(*ImpDefs, true, true));
526 addOperand(MF, MachineOperand::CreateReg(*ImpUses, false, true));
532 MachineInstr::MachineInstr(MachineFunction &MF, const MCInstrDesc &tid,
541 Operands = MF.allocateOperandArray(CapOperands);
545 addImplicitDefUseOperands(MF);
550 MachineInstr::MachineInstr(MachineFunction &MF, const MachineInstr &MI)
556 Operands = MF.allocateOperandArray(CapOperands);
560 addOperand(MF, MI.getOperand(i));
596 MachineFunction *MF = MBB->getParent();
597 assert(MF && "Use MachineInstrBuilder to add operands to dangling instrs");
598 addOperand(*MF, Op);
622 void MachineInstr::addOperand(MachineFunction &MF, const MachineOperand &Op) {
631 return addOperand(MF, CopyOp);
665 Operands = MF.allocateOperandArray(CapOperands);
679 MF.deallocateOperandArray(OldCap, OldOperands);
741 void MachineInstr::addMemOperand(MachineFunction &MF,
747 mmo_iterator NewMemRefs = MF.allocateMemRefsArray(NewNum);
952 assert(getParent()->getParent() && "Can't have an MF reference here!");
953 const MachineFunction &MF = *getParent()->getParent();
957 return TII->getRegClass(getDesc(), OpIdx, TRI, MF);
979 return TRI->getPointerRegClass(MF);
1393 void MachineInstr::copyImplicitOps(MachineFunction &MF,
1399 addOperand(MF, MO);
1409 static void printDebugLoc(DebugLoc DL, const MachineFunction *MF,
1411 const LLVMContext &Ctx = MF->getFunction()->getContext();
1425 printDebugLoc(InlinedAtDL, MF, CommentOS);
1434 const MachineFunction *MF = 0;
1437 MF = MBB->getParent();
1438 if (!TM && MF)
1439 TM = &MF->getTarget();
1440 if (MF)
1441 MRI = &MF->getRegInfo();
1513 if (MF && isCall() &&
1517 const MachineRegisterInfo &MRI = MF->getRegInfo();
1643 printDebugLoc(InlinedAtDL, MF, OS);
1647 } else if (!debugLoc.isUnknown() && MF) {
1650 printDebugLoc(debugLoc, MF, OS);
1864 if (const MachineFunction *MF = MBB->getParent())
1865 return MF->getMMI().getModule()->getContext().emitError(LocCookie, Msg);