Lines Matching defs:Fold
1 //===-- SIFoldOperands.cpp - Fold operands --- ----------------------------===//
43 return "SI Fold Operands";
80 "SI Fold Operands", false, false)
83 "SI Fold Operands", false, false)
107 static bool updateOperand(FoldCandidate &Fold,
109 MachineInstr *MI = Fold.UseMI;
110 MachineOperand &Old = MI->getOperand(Fold.UseOpNo);
113 if (Fold.isImm()) {
114 Old.ChangeToImmediate(Fold.ImmToFold);
118 MachineOperand *New = Fold.OpToFold;
207 // FIXME: Fold operands with subregs.
337 // FIXME: Fold operands with subregs.
364 for (FoldCandidate &Fold : FoldList) {
365 if (updateOperand(Fold, TRI)) {
367 if (!Fold.isImm()) {
368 assert(Fold.OpToFold && Fold.OpToFold->isReg());
372 MRI.clearKillFlags(Fold.OpToFold->getReg());
375 Fold.UseOpNo << " of " << *Fold.UseMI << '\n');