Lines Matching refs:ResTy
443 Type *ResTy = II.getType(); in simplifyX86pack() local
447 return UndefValue::get(ResTy); in simplifyX86pack()
450 unsigned NumLanes = ResTy->getPrimitiveSizeInBits() / 128; in simplifyX86pack()
452 assert(cast<FixedVectorType>(ResTy)->getNumElements() == (2 * NumSrcElts) && in simplifyX86pack()
456 unsigned DstScalarSizeInBits = ResTy->getScalarSizeInBits(); in simplifyX86pack()
502 return Builder.CreateTrunc(Shuffle, ResTy); in simplifyX86pack()
510 auto *ResTy = cast<FixedVectorType>(II.getType()); in simplifyX86pmulh() local
512 assert(ArgTy == ResTy && ResTy->getScalarSizeInBits() == 16 && in simplifyX86pmulh()
518 return ConstantAggregateZero::get(ResTy); in simplifyX86pmulh()
522 return ConstantAggregateZero::get(ResTy); in simplifyX86pmulh()
528 : ConstantAggregateZero::get(ResTy); in simplifyX86pmulh()
531 : ConstantAggregateZero::get(ResTy); in simplifyX86pmulh()
560 return Builder.CreateTrunc(Mul, ResTy); in simplifyX86pmulh()
568 auto *ResTy = cast<FixedVectorType>(II.getType()); in simplifyX86pmadd() local
571 unsigned NumDstElts = ResTy->getNumElements(); in simplifyX86pmadd()
573 ResTy->getScalarSizeInBits() == (2 * ArgTy->getScalarSizeInBits()) && in simplifyX86pmadd()
578 return ConstantAggregateZero::get(ResTy); in simplifyX86pmadd()
582 return ConstantAggregateZero::get(ResTy); in simplifyX86pmadd()
606 LHSLo = Builder.CreateCast(LHSCast, LHSLo, ResTy); in simplifyX86pmadd()
607 LHSHi = Builder.CreateCast(LHSCast, LHSHi, ResTy); in simplifyX86pmadd()
608 RHSLo = Builder.CreateCast(Instruction::CastOps::SExt, RHSLo, ResTy); in simplifyX86pmadd()
609 RHSHi = Builder.CreateCast(Instruction::CastOps::SExt, RHSHi, ResTy); in simplifyX86pmadd()
614 : Builder.CreateIntrinsic(ResTy, Intrinsic::sadd_sat, {Lo, Hi}); in simplifyX86pmadd()
620 Type *ResTy = II.getType(); in simplifyX86movmsk() local
624 return Constant::getNullValue(ResTy); in simplifyX86movmsk()
642 Res = Builder.CreateZExtOrTrunc(Res, ResTy); in simplifyX86movmsk()