Lines Matching refs:FoldCandidate
24 struct FoldCandidate { struct
36 FoldCandidate(MachineInstr *MI, unsigned OpNo, MachineOperand *FoldOp, in FoldCandidate() function
81 bool updateOperand(FoldCandidate &Fold) const;
83 bool canUseImmWithOpSel(FoldCandidate &Fold) const;
85 bool tryFoldImmWithOpSel(FoldCandidate &Fold) const;
87 bool tryAddToFoldList(SmallVectorImpl<FoldCandidate> &FoldList,
97 SmallVectorImpl<FoldCandidate> &FoldList) const;
101 SmallVectorImpl<FoldCandidate> &FoldList,
203 bool SIFoldOperands::canUseImmWithOpSel(FoldCandidate &Fold) const { in canUseImmWithOpSel()
233 bool SIFoldOperands::tryFoldImmWithOpSel(FoldCandidate &Fold) const { in tryFoldImmWithOpSel()
357 bool SIFoldOperands::updateOperand(FoldCandidate &Fold) const { in updateOperand()
449 static bool isUseMIInFoldList(ArrayRef<FoldCandidate> FoldList, in isUseMIInFoldList()
454 static void appendFoldCandidate(SmallVectorImpl<FoldCandidate> &FoldList, in appendFoldCandidate()
459 for (FoldCandidate &Fold : FoldList) in appendFoldCandidate()
467 bool SIFoldOperands::tryAddToFoldList(SmallVectorImpl<FoldCandidate> &FoldList, in tryAddToFoldList()
508 FoldCandidate Fold(MI, OpNo, OpToFold); in tryAddToFoldList()
691 SmallVectorImpl<FoldCandidate> &FoldList) const { in tryToFoldACImm()
759 SmallVectorImpl<FoldCandidate> &FoldList, in foldOperand()
1377 SmallVector<FoldCandidate, 4> FoldList; in foldInstOperand()
1416 for (FoldCandidate &Fold : FoldList) { in foldInstOperand()