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()
231 bool SIFoldOperands::tryFoldImmWithOpSel(FoldCandidate &Fold) const { in tryFoldImmWithOpSel()
355 bool SIFoldOperands::updateOperand(FoldCandidate &Fold) const { in updateOperand()
447 static bool isUseMIInFoldList(ArrayRef<FoldCandidate> FoldList, in isUseMIInFoldList()
452 static void appendFoldCandidate(SmallVectorImpl<FoldCandidate> &FoldList, in appendFoldCandidate()
457 for (FoldCandidate &Fold : FoldList) in appendFoldCandidate()
465 bool SIFoldOperands::tryAddToFoldList(SmallVectorImpl<FoldCandidate> &FoldList, in tryAddToFoldList()
506 FoldCandidate Fold(MI, OpNo, OpToFold); in tryAddToFoldList()
689 SmallVectorImpl<FoldCandidate> &FoldList) const { in tryToFoldACImm()
757 SmallVectorImpl<FoldCandidate> &FoldList, in foldOperand()
1357 SmallVector<FoldCandidate, 4> FoldList; in foldInstOperand()
1396 for (FoldCandidate &Fold : FoldList) { in foldInstOperand()