Lines Matching refs:getType

29       for (unsigned i = 1, e = V->getType()->getVectorNumElements(); i != e;
64 assert(V->getType()->isVectorTy() && "Not looking at a vector?");
65 VectorType *VTy = cast<VectorType>(V->getType());
90 unsigned LHSWidth = SVI->getOperand(0)->getType()->getVectorNumElements();
136 PHINode::Create(EI.getType(), PN->getNumIncomingValues(), ""), *PN));
193 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType()));
216 if (VectorType *VT = dyn_cast<VectorType>(BCI->getOperand(0)->getType()))
219 return new BitCastInst(Elt, EI.getType());
263 SVI->getOperand(0)->getType()->getVectorNumElements();
266 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType()));
285 return CastInst::Create(CI->getOpcode(), EE, EI.getType());
299 if (Cond->getType()->isVectorTy()) {
329 assert(V->getType() == LHS->getType() && V->getType() == RHS->getType() &&
331 unsigned NumElts = V->getType()->getVectorNumElements();
371 EI->getOperand(0)->getType() == V->getType()) {
407 assert(V->getType()->isVectorTy() &&
408 (RHS == 0 || V->getType() == RHS->getType()) &&
410 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements();
430 EI->getOperand(0)->getType() == V->getType()) {
489 EI->getOperand(0)->getType() == IE.getType()) {
490 unsigned NumVectorElts = IE.getType()->getNumElements();
499 return ReplaceInstUsesWith(IE, UndefValue::get(IE.getType()));
512 if (RHS == 0) RHS = UndefValue::get(LHS->getType());
519 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements();
665 VectorType::get(I->getType()->getScalarType(),
666 NewOps[0]->getType()->getVectorNumElements());
686 assert(V->getType()->isVectorTy() && "can't reorder non-vector elements");
688 return UndefValue::get(VectorType::get(V->getType()->getScalarType(),
693 VectorType::get(V->getType()->getScalarType(),
704 return ConstantExpr::getShuffleVector(C, UndefValue::get(C->getType()),
742 bool NeedsRebuild = (Mask.size() != I->getType()->getVectorNumElements());
770 VectorType::get(V->getType()->getScalarType(), Mask.size()));
789 return ReplaceInstUsesWith(SVI, UndefValue::get(SVI.getType()));
791 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements();
803 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements();
811 ? LHS : UndefValue::get(SVI.getType());
834 SVI.setOperand(1, UndefValue::get(RHS->getType()));
926 LHSOp0Width = cast<VectorType>(LHSOp0->getType())->getNumElements();
930 RHSOp0Width = cast<VectorType>(RHSOp0->getType())->getNumElements();
1043 newRHS = UndefValue::get(newLHS->getType());