Lines Matching refs:DstOps
108 void CSEMIRBuilder::profileEverything(unsigned Opc, ArrayRef<DstOp> DstOps, in profileEverything() argument
115 profileDstOps(DstOps, B); in profileEverything()
132 bool CSEMIRBuilder::checkCopyToDefsPossible(ArrayRef<DstOp> DstOps) { in checkCopyToDefsPossible() argument
133 if (DstOps.size() == 1) in checkCopyToDefsPossible()
136 return llvm::all_of(DstOps, [](const DstOp &Op) { in checkCopyToDefsPossible()
143 CSEMIRBuilder::generateCopiesIfRequired(ArrayRef<DstOp> DstOps, in generateCopiesIfRequired() argument
145 assert(checkCopyToDefsPossible(DstOps) && in generateCopiesIfRequired()
147 if (DstOps.size() == 1) { in generateCopiesIfRequired()
148 const DstOp &Op = DstOps[0]; in generateCopiesIfRequired()
171 ArrayRef<DstOp> DstOps, in buildInstr() argument
197 assert(DstOps.size() == 1 && "Invalid dsts"); in buildInstr()
209 return buildBuildVectorConstant(DstOps[0], VecCst); in buildInstr()
215 return buildConstant(DstOps[0], *Cst); in buildInstr()
232 assert(DstOps.size() == 1 && "Invalid dsts"); in buildInstr()
235 return buildFConstant(DstOps[0], *Cst); in buildInstr()
239 assert(DstOps.size() == 1 && "Invalid dst ops"); in buildInstr()
241 const DstOp &Dst = DstOps[0]; in buildInstr()
253 assert(DstOps.size() == 1 && "Invalid dsts"); in buildInstr()
255 Opc, DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getReg(), *getMRI())) in buildInstr()
256 return buildFConstant(DstOps[0], *Cst); in buildInstr()
261 assert(DstOps.size() == 1 && "Expected one dest"); in buildInstr()
266 return buildConstant(DstOps[0], (*MaybeCsts)[0]); in buildInstr()
269 LLT VecTy = DstOps[0].getLLTTy(*getMRI()); in buildInstr()
273 return buildBuildVector(DstOps[0], ConstantRegs); in buildInstr()
276 bool CanCopy = checkCopyToDefsPossible(DstOps); in buildInstr()
278 return MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
282 auto MIB = MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
291 profileEverything(Opc, DstOps, SrcOps, Flag, ProfBuilder); in buildInstr()
295 return generateCopiesIfRequired(DstOps, MIB); in buildInstr()
299 MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()