Lines Matching refs:UndefValue
218 if (const UndefValue *UV = dyn_cast<UndefValue>(this))
726 // UndefValue Implementation
731 UndefValue *UndefValue::getSequentialElement() const {
732 return UndefValue::get(getType()->getSequentialElementType());
737 UndefValue *UndefValue::getStructElement(unsigned Elt) const {
738 return UndefValue::get(getType()->getStructElementType(Elt));
743 UndefValue *UndefValue::getElementValue(Constant *C) const {
751 UndefValue *UndefValue::getElementValue(unsigned Idx) const {
795 // all undef, return an UndefValue, if "all simple", then return a
798 if (isa<UndefValue>(C) && rangeOnlyContains(V.begin(), V.end(), C))
799 return UndefValue::get(Ty);
921 isUndef = isa<UndefValue>(V[0]);
927 if (!isa<UndefValue>(V[i]))
935 return UndefValue::get(ST);
967 // ConstantAggregateZero or UndefValue.
970 bool isUndef = isa<UndefValue>(C);
983 return UndefValue::get(T);
1369 //---- UndefValue::get() implementation.
1372 UndefValue *UndefValue::get(Type *Ty) {
1373 UndefValue *&Entry = Ty->getContext().pImpl->UVConstants[Ty];
1375 Entry = new UndefValue(Ty);
1382 void UndefValue::destroyConstant() {
2664 } else if (AllSame && isa<UndefValue>(ToC)) {
2665 Replacement = UndefValue::get(getType());
2732 } else if (isa<UndefValue>(ToC)) {
2737 if (isAllUndef) isAllUndef = isa<UndefValue>(Val);
2751 Replacement = UndefValue::get(getType());