Lines Matching defs:FoldCandidate
30 struct FoldCandidate {
42 FoldCandidate(MachineInstr *MI, unsigned OpNo, MachineOperand *FoldOp,
97 SmallVectorImpl<FoldCandidate> &FoldList,
184 static bool updateOperand(FoldCandidate &Fold,
306 static bool isUseMIInFoldList(ArrayRef<FoldCandidate> FoldList,
315 static void appendFoldCandidate(SmallVectorImpl<FoldCandidate> &FoldList,
320 for (FoldCandidate &Fold : FoldList)
325 FoldList.push_back(FoldCandidate(MI, OpNo, FoldOp, Commuted, ShrinkOp));
328 static bool tryAddToFoldList(SmallVectorImpl<FoldCandidate> &FoldList,
507 SmallVectorImpl<FoldCandidate> &FoldList) {
531 if (llvm::find_if(FoldList, [UseMI](const FoldCandidate &FC) {
567 SmallVectorImpl<FoldCandidate> &FoldList,
650 SmallVector<FoldCandidate, 4> CopyUses;
655 FoldCandidate FC = FoldCandidate(Use->getParent(),
1141 SmallVector<FoldCandidate, 4> FoldList;
1232 for (FoldCandidate &Fold : FoldList) {