Lines Matching refs:DstOps
90 void CSEMIRBuilder::profileEverything(unsigned Opc, ArrayRef<DstOp> DstOps, in profileEverything() argument
97 profileDstOps(DstOps, B); in profileEverything()
114 bool CSEMIRBuilder::checkCopyToDefsPossible(ArrayRef<DstOp> DstOps) { in checkCopyToDefsPossible() argument
115 if (DstOps.size() == 1) in checkCopyToDefsPossible()
118 return std::all_of(DstOps.begin(), DstOps.end(), [](const DstOp &Op) { in checkCopyToDefsPossible()
125 CSEMIRBuilder::generateCopiesIfRequired(ArrayRef<DstOp> DstOps, in generateCopiesIfRequired() argument
127 assert(checkCopyToDefsPossible(DstOps) && in generateCopiesIfRequired()
129 if (DstOps.size() == 1) { in generateCopiesIfRequired()
130 const DstOp &Op = DstOps[0]; in generateCopiesIfRequired()
138 ArrayRef<DstOp> DstOps, in buildInstr() argument
159 assert(DstOps.size() == 1 && "Invalid dsts"); in buildInstr()
162 return buildConstant(DstOps[0], Cst->getSExtValue()); in buildInstr()
166 bool CanCopy = checkCopyToDefsPossible(DstOps); in buildInstr()
168 return MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
172 auto MIB = MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
181 profileEverything(Opc, DstOps, SrcOps, Flag, ProfBuilder); in buildInstr()
185 return generateCopiesIfRequired(DstOps, MIB); in buildInstr()
189 MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()