Lines Matching refs:PoisonValue

337       this, [&](const auto *C) { return isa<PoisonValue>(C); });  in containsPoisonElement()
342 return isa<UndefValue>(C) && !isa<PoisonValue>(C); in containsUndefElement()
434 if (const auto *PV = dyn_cast<PoisonValue>(this)) in getAggregateElement()
543 delete static_cast<PoisonValue *>(C); in deleteConstant()
1126 PoisonValue *PoisonValue::getSequentialElement() const { in getSequentialElement()
1128 return PoisonValue::get(ATy->getElementType()); in getSequentialElement()
1129 return PoisonValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement()
1132 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement()
1133 return PoisonValue::get(getType()->getStructElementType(Elt)); in getStructElement()
1136 PoisonValue *PoisonValue::getElementValue(Constant *C) const { in getElementValue()
1142 PoisonValue *PoisonValue::getElementValue(unsigned Idx) const { in getElementValue()
1256 if (isa<PoisonValue>(C) && rangeOnlyContains(V.begin(), V.end(), C)) in getImpl()
1257 return PoisonValue::get(Ty); in getImpl()
1311 isPoison = isa<PoisonValue>(V[0]); in get()
1318 if (!isa<PoisonValue>(C)) in get()
1320 if (isa<PoisonValue>(C) || !isa<UndefValue>(C)) in get()
1328 return PoisonValue::get(ST); in get()
1358 bool isPoison = isa<PoisonValue>(C); in getImpl()
1371 return PoisonValue::get(T); in getImpl()
1407 Constant *PoisonV = PoisonValue::get(VTy); in getSplat()
1743 PoisonValue *PoisonValue::get(Type *Ty) { in get()
1744 std::unique_ptr<PoisonValue> &Entry = Ty->getContext().pImpl->PVConstants[Ty]; in get()
1746 Entry.reset(new PoisonValue(Ty)); in get()
1752 void PoisonValue::destroyConstantImpl() { in destroyConstantImpl()