Lines Matching defs:DstTy
386 LLT DstTy = Res.getLLTTy(*getMRI());
389 ConstantFP::get(Ctx, getAPFloatFromSize(Val, DstTy.getScalarSizeInBits()));
598 LLT DstTy = Dst.getLLTTy(*getMRI());
599 if (SrcTy == DstTy)
603 if (SrcTy.isPointer() && DstTy.isScalar())
605 else if (DstTy.isPointer() && SrcTy.isScalar())
608 assert(!SrcTy.isPointer() && !DstTy.isPointer() && "n G_ADDRCAST yet");
619 LLT DstTy = Dst.getLLTTy(*getMRI());
623 assert(DstTy.isValid() && "invalid operand type");
624 assert(Index + DstTy.getSizeInBits() <= SrcTy.getSizeInBits() &&
628 if (DstTy.getSizeInBits() == SrcTy.getSizeInBits()) {
751 LLT DstTy = Res.getLLTTy(*getMRI());
752 assert(Src.getLLTTy(*getMRI()) == DstTy.getElementType() &&
754 auto UndefVec = buildUndef(DstTy);
756 auto InsElt = buildInsertVectorElement(DstTy, UndefVec, Src, Zero);
757 SmallVector<int, 16> ZeroMask(DstTy.getNumElements());
758 return buildShuffleVector(DstTy, InsElt, UndefVec, ZeroMask);
772 LLT DstTy = Res.getLLTTy(*getMRI());
777 assert(DstTy.getElementType() == Src1Ty.getElementType() &&
778 DstTy.getElementType() == Src2Ty.getElementType());
779 (void)DstTy;
1163 void MachineIRBuilder::validateTruncExt(const LLT DstTy, const LLT SrcTy,
1166 if (DstTy.isVector()) {
1168 assert(SrcTy.getElementCount() == DstTy.getElementCount() &&
1171 assert(DstTy.isScalar() && SrcTy.isScalar() && "invalid extend/trunc");
1174 assert(TypeSize::isKnownGT(DstTy.getSizeInBits(), SrcTy.getSizeInBits()) &&
1177 assert(TypeSize::isKnownLT(DstTy.getSizeInBits(), SrcTy.getSizeInBits()) &&
1304 LLT DstTy = DstOps[0].getLLTTy(*getMRI());
1306 return DstTy.isScalar();
1308 return DstTy.isVector() &&
1309 DstTy.getElementCount() == Op0Ty.getElementCount();