Lines Matching refs:OpToFold

57   MachineOperand *OpToFold;  member
64 OpToFold = nullptr; in FoldCandidate()
68 OpToFold = FoldOp; in FoldCandidate()
73 return !OpToFold; in isImm()
118 MachineOperand *New = Fold.OpToFold; in updateOperand()
141 MachineOperand *OpToFold, in tryAddToFoldList() argument
143 if (!TII->isOperandLegal(MI, OpNo, OpToFold)) { in tryAddToFoldList()
152 bool FoldAsMAD = tryAddToFoldList(FoldList, MI, OpNo, OpToFold, TII); in tryAddToFoldList()
191 if (!TII->isOperandLegal(MI, OpNo, OpToFold)) in tryAddToFoldList()
195 FoldList.push_back(FoldCandidate(MI, OpNo, OpToFold)); in tryAddToFoldList()
199 static void foldOperand(MachineOperand &OpToFold, MachineInstr *UseMI, in foldOperand() argument
208 if (UseOp.isReg() && ((UseOp.getSubReg() && OpToFold.isReg()) || in foldOperand()
213 bool FoldingImm = OpToFold.isImm(); in foldOperand()
223 Imm = APInt(64, OpToFold.getImm()); in foldOperand()
225 const MCInstrDesc &FoldDesc = TII->get(OpToFold.getParent()->getOpcode()); in foldOperand()
275 foldOperand(OpToFold, RSUseMI, RSUse.getOperandNo(), FoldList, in foldOperand()
295 tryAddToFoldList(FoldList, UseMI, UseOpIdx, &OpToFold, TII); in foldOperand()
322 MachineOperand &OpToFold = MI.getOperand(1); in runOnMachineFunction() local
323 bool FoldingImm = OpToFold.isImm(); in runOnMachineFunction()
327 if (!FoldingImm && !OpToFold.isReg()) in runOnMachineFunction()
333 if (FoldingImm && !TII->isInlineConstant(OpToFold, OpSize) && in runOnMachineFunction()
338 if (OpToFold.isReg() && in runOnMachineFunction()
339 (!TargetRegisterInfo::isVirtualRegister(OpToFold.getReg()) || in runOnMachineFunction()
340 OpToFold.getSubReg())) in runOnMachineFunction()
356 foldOperand(OpToFold, UseMI, Use.getOperandNo(), FoldList, in runOnMachineFunction()
368 assert(Fold.OpToFold && Fold.OpToFold->isReg()); in runOnMachineFunction()
372 MRI.clearKillFlags(Fold.OpToFold->getReg()); in runOnMachineFunction()