Lines Matching refs:PoisonValue
335 this, [&](const auto *C) { return isa<PoisonValue>(C); }); in containsPoisonElement()
438 if (const auto *PV = dyn_cast<PoisonValue>(this)) in getAggregateElement()
544 delete static_cast<PoisonValue *>(C); in deleteConstant()
1155 PoisonValue *PoisonValue::getSequentialElement() const { in getSequentialElement()
1157 return PoisonValue::get(ATy->getElementType()); in getSequentialElement()
1158 return PoisonValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement()
1161 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement()
1162 return PoisonValue::get(getType()->getStructElementType(Elt)); in getStructElement()
1165 PoisonValue *PoisonValue::getElementValue(Constant *C) const { in getElementValue()
1171 PoisonValue *PoisonValue::getElementValue(unsigned Idx) const { in getElementValue()
1284 if (isa<PoisonValue>(C) && rangeOnlyContains(V.begin(), V.end(), C)) in getImpl()
1285 return PoisonValue::get(Ty); in getImpl()
1339 isPoison = isa<PoisonValue>(V[0]); in get()
1346 if (!isa<PoisonValue>(V[i])) in get()
1348 if (isa<PoisonValue>(V[i]) || !isa<UndefValue>(V[i])) in get()
1356 return PoisonValue::get(ST); in get()
1386 bool isPoison = isa<PoisonValue>(C); in getImpl()
1399 return PoisonValue::get(T); in getImpl()
1805 PoisonValue *PoisonValue::get(Type *Ty) { in get()
1806 std::unique_ptr<PoisonValue> &Entry = Ty->getContext().pImpl->PVConstants[Ty]; in get()
1808 Entry.reset(new PoisonValue(Ty)); in get()
1814 void PoisonValue::destroyConstantImpl() { in destroyConstantImpl()