Lines Matching refs:DstOps

113 void CSEMIRBuilder::profileEverything(unsigned Opc, ArrayRef<DstOp> DstOps,  in profileEverything()  argument
120 profileDstOps(DstOps, B); in profileEverything()
137 bool CSEMIRBuilder::checkCopyToDefsPossible(ArrayRef<DstOp> DstOps) { in checkCopyToDefsPossible() argument
138 if (DstOps.size() == 1) in checkCopyToDefsPossible()
141 return llvm::all_of(DstOps, [](const DstOp &Op) { in checkCopyToDefsPossible()
148 CSEMIRBuilder::generateCopiesIfRequired(ArrayRef<DstOp> DstOps, in generateCopiesIfRequired() argument
150 assert(checkCopyToDefsPossible(DstOps) && in generateCopiesIfRequired()
152 if (DstOps.size() == 1) { in generateCopiesIfRequired()
153 const DstOp &Op = DstOps[0]; in generateCopiesIfRequired()
176 ArrayRef<DstOp> DstOps, in buildInstr() argument
184 assert(DstOps.size() == 1 && "Invalid dsts"); in buildInstr()
191 return buildBuildVectorConstant(DstOps[0], *Cst); in buildInstr()
192 return buildConstant(DstOps[0], Cst->front()); in buildInstr()
216 assert(DstOps.size() == 1 && "Invalid dsts"); in buildInstr()
228 return buildBuildVectorConstant(DstOps[0], VecCst); in buildInstr()
234 return buildConstant(DstOps[0], *Cst); in buildInstr()
251 assert(DstOps.size() == 1 && "Invalid dsts"); in buildInstr()
254 return buildFConstant(DstOps[0], *Cst); in buildInstr()
258 assert(DstOps.size() == 1 && "Invalid dst ops"); in buildInstr()
260 const DstOp &Dst = DstOps[0]; in buildInstr()
272 assert(DstOps.size() == 1 && "Invalid dsts"); in buildInstr()
274 Opc, DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getReg(), *getMRI())) in buildInstr()
275 return buildFConstant(DstOps[0], *Cst); in buildInstr()
281 assert(DstOps.size() == 1 && "Expected one dest"); in buildInstr()
291 return buildConstant(DstOps[0], (*MaybeCsts)[0]); in buildInstr()
294 LLT VecTy = DstOps[0].getLLTTy(*getMRI()); in buildInstr()
298 return buildBuildVector(DstOps[0], ConstantRegs); in buildInstr()
301 bool CanCopy = checkCopyToDefsPossible(DstOps); in buildInstr()
303 return MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
307 auto MIB = MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
316 profileEverything(Opc, DstOps, SrcOps, Flag, ProfBuilder); in buildInstr()
320 return generateCopiesIfRequired(DstOps, MIB); in buildInstr()
324 MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()