• Home
  • Raw
  • Download

Lines Matching refs:OpToFold

52   MachineOperand *OpToFold;  member
59 OpToFold = nullptr; in FoldCandidate()
63 OpToFold = FoldOp; in FoldCandidate()
68 return !OpToFold; in isImm()
110 MachineOperand *New = Fold.OpToFold; in updateOperand()
133 MachineOperand *OpToFold, in tryAddToFoldList() argument
135 if (!TII->isOperandLegal(*MI, OpNo, OpToFold)) { in tryAddToFoldList()
144 bool FoldAsMAD = tryAddToFoldList(FoldList, MI, OpNo, OpToFold, TII); in tryAddToFoldList()
183 if (!TII->isOperandLegal(*MI, OpNo, OpToFold)) in tryAddToFoldList()
187 FoldList.push_back(FoldCandidate(MI, OpNo, OpToFold)); in tryAddToFoldList()
191 static void foldOperand(MachineOperand &OpToFold, MachineInstr *UseMI, in foldOperand() argument
200 if (UseOp.isReg() && ((UseOp.getSubReg() && OpToFold.isReg()) || in foldOperand()
205 bool FoldingImm = OpToFold.isImm(); in foldOperand()
215 Imm = APInt(64, OpToFold.getImm()); in foldOperand()
217 const MCInstrDesc &FoldDesc = TII->get(OpToFold.getParent()->getOpcode()); in foldOperand()
267 foldOperand(OpToFold, RSUseMI, RSUse.getOperandNo(), FoldList, in foldOperand()
287 tryAddToFoldList(FoldList, UseMI, UseOpIdx, &OpToFold, TII); in foldOperand()
318 MachineOperand &OpToFold = MI.getOperand(1); in runOnMachineFunction() local
319 bool FoldingImm = OpToFold.isImm(); in runOnMachineFunction()
323 if (!FoldingImm && !OpToFold.isReg()) in runOnMachineFunction()
329 if (FoldingImm && !TII->isInlineConstant(OpToFold, OpSize) && in runOnMachineFunction()
333 if (OpToFold.isReg() && in runOnMachineFunction()
334 !TargetRegisterInfo::isVirtualRegister(OpToFold.getReg())) in runOnMachineFunction()
360 foldOperand(OpToFold, UseMI, Use.getOperandNo(), FoldList, in runOnMachineFunction()
372 assert(Fold.OpToFold && Fold.OpToFold->isReg()); in runOnMachineFunction()
376 MRI.clearKillFlags(Fold.OpToFold->getReg()); in runOnMachineFunction()