Lines Matching refs:UndefValue
235 return replaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst()
303 if (isa<UndefValue>(V)) { in collectSingleShuffleElements()
304 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectSingleShuffleElements()
331 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector. in collectSingleShuffleElements()
336 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext())); in collectSingleShuffleElements()
396 ExtendMask.push_back(UndefValue::get(IntType)); in replaceExtractElements()
416 auto *WideVec = new ShuffleVectorInst(ExtVecOp, UndefValue::get(ExtVecType), in replaceExtractElements()
457 if (isa<UndefValue>(V)) { in collectShuffleElements()
458 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectShuffleElements()
460 PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr); in collectShuffleElements()
575 if (isa<UndefValue>(ScalarOp) || isa<UndefValue>(IdxOp)) in visitInsertElementInst()
593 return replaceInstUsesWith(IE, UndefValue::get(IE.getType())); in visitInsertElementInst()
611 LR.second = UndefValue::get(LR.first->getType()); in visitInsertElementInst()
790 if (isa<UndefValue>(V)) { in EvaluateInDifferentElementOrder()
791 return UndefValue::get(VectorType::get(V->getType()->getScalarType(), in EvaluateInDifferentElementOrder()
803 MaskValues.push_back(UndefValue::get(Builder->getInt32Ty())); in EvaluateInDifferentElementOrder()
807 return ConstantExpr::getShuffleVector(C, UndefValue::get(C->getType()), in EvaluateInDifferentElementOrder()
928 if (isa<UndefValue>(SVI.getOperand(2))) in visitShuffleVectorInst()
929 return replaceInstUsesWith(SVI, UndefValue::get(SVI.getType())); in visitShuffleVectorInst()
947 if (LHS == RHS || isa<UndefValue>(LHS)) { in visitShuffleVectorInst()
948 if (isa<UndefValue>(LHS) && LHS == RHS) { in visitShuffleVectorInst()
951 ? LHS : UndefValue::get(SVI.getType()); in visitShuffleVectorInst()
959 Elts.push_back(UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
963 if ((Mask[i] >= (int)e && isa<UndefValue>(RHS)) || in visitShuffleVectorInst()
964 (Mask[i] < (int)e && isa<UndefValue>(LHS))) { in visitShuffleVectorInst()
966 Elts.push_back(UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
973 SVI.setOperand(1, UndefValue::get(RHS->getType())); in visitShuffleVectorInst()
990 if (isa<UndefValue>(RHS) && CanEvaluateShuffled(LHS, Mask)) { in visitShuffleVectorInst()
1057 UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
1060 V = Builder->CreateShuffleVector(V, UndefValue::get(V->getType()), in visitShuffleVectorInst()
1130 if (!isa<UndefValue>(LHSShuffle->getOperand(1)) && !isa<UndefValue>(RHS)) in visitShuffleVectorInst()
1133 if (!isa<UndefValue>(RHSShuffle->getOperand(1))) in visitShuffleVectorInst()
1156 if (isa<UndefValue>(RHS)) { in visitShuffleVectorInst()
1205 if (eltMask >= (int)LHSOp0Width && isa<UndefValue>(LHSOp1)) in visitShuffleVectorInst()
1214 if (isa<UndefValue>(RHS)) in visitShuffleVectorInst()
1223 assert(isa<UndefValue>(RHSShuffle->getOperand(1)) in visitShuffleVectorInst()
1256 Elts.push_back(UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
1262 newRHS = UndefValue::get(newLHS->getType()); in visitShuffleVectorInst()