|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/Analysis/MemoryBuiltins.h 53 class UndefValue;
include/llvm/CodeGen/ScheduleDAGInstrs.h 48 class UndefValue;
References
include/llvm/Analysis/MemoryBuiltins.h 273 SizeOffsetType visitUndefValue(UndefValue&);
include/llvm/Analysis/ObjCARCAnalysisUtils.h 142 return isa<ConstantPointerNull>(V) || isa<UndefValue>(V);
include/llvm/Analysis/ValueLattice.h 121 if (!isa<UndefValue>(C))
127 if (!isa<UndefValue>(C))
190 if (isa<UndefValue>(V))
206 if (isa<UndefValue>(V))
296 return UndefValue::get(Ty);
include/llvm/CodeGen/ScheduleDAGInstrs.h 236 UndefValue *UnknownValue;
include/llvm/FuzzMutate/OpDescriptor.h 66 Constant *V = UndefValue::get(T);
137 Result.push_back(UndefValue::get(PointerType::getUnqual(T)));
157 Result.push_back(UndefValue::get(PointerType::getUnqual(T)));
include/llvm/IR/Constants.h 1293 UndefValue(const UndefValue &) = delete;
1296 static UndefValue *get(Type *T);
1300 UndefValue *getSequentialElement() const;
1304 UndefValue *getStructElement(unsigned Elt) const;
1308 UndefValue *getElementValue(Constant *C) const;
1311 UndefValue *getElementValue(unsigned Idx) const;
include/llvm/IR/IRBuilder.h 892 Value *V = UndefValue::get(getCurrentFunctionReturnType());
2491 Value *Undef = UndefValue::get(VectorType::get(V->getType(), NumElts));
include/llvm/IR/PatternMatch.h 66 template <typename ITy> bool match(ITy *V) { return isa<Class>(V); }
86 inline class_match<UndefValue> m_Undef() { return class_match<UndefValue>(); }
240 if (isa<UndefValue>(Elt))
299 if (isa<UndefValue>(Elt))
include/llvm/Support/Casting.h 58 return To::classof(&Val);
77 return isa_impl<To, From>::doit(Val);
92 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
lib/Analysis/BasicAliasAnalysis.cpp 1748 if (isa<UndefValue>(V1) || isa<UndefValue>(V2))
1748 if (isa<UndefValue>(V1) || isa<UndefValue>(V2))
lib/Analysis/ConstantFolding.cpp 76 if (Element && isa<UndefValue>(Element)) {
215 if (Src && isa<UndefValue>(Src))
249 if (isa<UndefValue>(Element)) {
251 Result.append(Ratio, UndefValue::get(DstEltTy));
385 if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C))
566 return UndefValue::get(IntType);
570 return UndefValue::get(IntType);
691 if (isa<UndefValue>(GV->getInitializer()))
692 return UndefValue::get(Ty);
1130 if (isa<UndefValue>(Incoming))
1147 return CommonValue ? CommonValue : UndefValue::get(PN->getType());
1677 if (isa<UndefValue>(Op)) {
1700 if (isa<UndefValue>(Operands[0])) {
2143 {UndefValue::get(Ty->getStructElementType(0)),
2186 return UndefValue::get(Ty);
2196 return UndefValue::get(Ty);
2209 return UndefValue::get(Ty);
2349 return UndefValue::get(Ty);
2414 if (isa<UndefValue>(MaskElt)) {
lib/Analysis/DomTreeUpdater.cpp 223 I.replaceAllUsesWith(llvm::UndefValue::get(I.getType()));
lib/Analysis/InstructionSimplify.cpp 361 if (TV && isa<UndefValue>(TV))
363 if (FV && isa<UndefValue>(FV))
704 return UndefValue::get(Op0->getType());
903 return UndefValue::get(Ty);
912 if (Elt && (Elt->isNullValue() || isa<UndefValue>(Elt)))
913 return UndefValue::get(Ty);
1173 if (isa<UndefValue>(C))
1214 return UndefValue::get(Op0->getType());
1232 return UndefValue::get(Op0->getType());
3202 if (isa<UndefValue>(RHS) && ICmpInst::isEquality(Pred))
3203 return UndefValue::get(ITy);
3207 if (LHS == RHS || isa<UndefValue>(RHS))
3512 if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS)) {
3512 if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS)) {
3942 if (isa<UndefValue>(CondC))
3959 if (isa<UndefValue>(TrueVal)) // select ?, undef, X -> X
3961 if (isa<UndefValue>(FalseVal)) // select ?, X, undef -> X
4006 if (isa<UndefValue>(Ops[0]))
4007 return UndefValue::get(GEPTy);
4153 return UndefValue::get(Vec->getType());
4157 if (isa<UndefValue>(Idx))
4158 return UndefValue::get(Vec->getType());
4162 if (isa<UndefValue>(Val))
4216 if (isa<UndefValue>(Vec))
4217 return UndefValue::get(Vec->getType()->getVectorElementType());
4225 return UndefValue::get(Vec->getType()->getVectorElementType());
4232 if (isa<UndefValue>(Idx))
4233 return UndefValue::get(Vec->getType()->getVectorElementType());
4252 if (isa<UndefValue>(Incoming)) {
4265 return UndefValue::get(PN->getType());
4369 if (isa<UndefValue>(Mask))
4370 return UndefValue::get(RetTy);
4393 Op0 = UndefValue::get(InVecTy);
4395 Op1 = UndefValue::get(InVecTy);
4414 if (isa<UndefValue>(Op1) && RetTy == InVecTy &&
4489 if (any_of(Ops, [](Value *V) { return isa<UndefValue>(V); }))
5019 if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) {
5019 if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) {
5022 {UndefValue::get(ReturnType->getStructElementType(0)),
5174 return UndefValue::get(F->getReturnType());
5208 if (isa<UndefValue>(Callee) || isa<ConstantPointerNull>(Callee))
5209 return UndefValue::get(Call->getType());
5400 return Result == I ? UndefValue::get(I->getType()) : Result;
lib/Analysis/Lint.cpp 552 if (isa<UndefValue>(V))
573 if (isa<UndefValue>(Elem))
666 return UndefValue::get(V->getType());
lib/Analysis/MemoryBuiltins.cpp 601 if (UndefValue *UV = dyn_cast<UndefValue>(V))
601 if (UndefValue *UV = dyn_cast<UndefValue>(V))
813 SizeOffsetType ObjectSizeOffsetVisitor::visitUndefValue(UndefValue&) {
855 I->replaceAllUsesWith(UndefValue::get(I->getType()));
1003 OffsetPHI->replaceAllUsesWith(UndefValue::get(IntTy));
1006 SizePHI->replaceAllUsesWith(UndefValue::get(IntTy));
lib/Analysis/ScalarEvolution.cpp 6144 return getUnknown(UndefValue::get(V->getType()));
10896 return isa<UndefValue>(SU->getValue());
lib/Analysis/ValueTracking.cpp 1434 if (dyn_cast_or_null<UndefValue>(P->hasConstantValue()))
1699 if (isa<UndefValue>(V))
2024 if (!isa<UndefValue>(Elt) && !isa<ConstantInt>(Elt))
3176 if (isa<UndefValue>(Elt))
3195 auto *UndefInt8 = UndefValue::get(Type::getInt8Ty(Ctx));
3195 auto *UndefInt8 = UndefValue::get(Type::getInt8Ty(Ctx));
3196 if (isa<UndefValue>(V))
3356 Value *To = UndefValue::get(IndexedType);
lib/Analysis/VectorUtils.cpp 266 return UndefValue::get(VTy->getElementType());
291 return UndefValue::get(VTy->getElementType());
336 if (isa<UndefValue>(V))
692 Constant *Undef = UndefValue::get(Builder.getInt32Ty());
718 V2 = Builder.CreateShuffleVector(V2, UndefValue::get(VecTy2), ExtMask);
756 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask))
761 if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt))
773 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask))
778 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt))
lib/AsmParser/LLParser.cpp 2846 UndefValue::get(P.second.first->getType()));
2854 UndefValue::get(P.second.first->getType()));
5199 V = UndefValue::get(Ty);
5204 V = UndefValue::get(Ty);
lib/Bitcode/Reader/BitcodeReader.cpp 2367 V = UndefValue::get(CurTy);
2425 V = UndefValue::get(CurTy);
2452 V = UndefValue::get(CurTy);
2523 V = UndefValue::get(CurTy); // Unknown unop.
2536 V = UndefValue::get(CurTy); // Unknown binop.
2567 V = UndefValue::get(CurTy); // Unknown cast.
5172 A->replaceAllUsesWith(UndefValue::get(A->getType()));
lib/Bitcode/Reader/ValueList.cpp 40 Op<0>() = UndefValue::get(Type::getInt32Ty(Context));
lib/Bitcode/Writer/BitcodeWriter.cpp 2343 } else if (isa<UndefValue>(C)) {
lib/CodeGen/Analysis.cpp 370 if (isa<UndefValue>(RetVal))
624 if (isa<UndefValue>(Ret->getOperand(0))) return true;
675 CallVal = UndefValue::get(SlotType);
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 2168 if (CV->isNullValue() || isa<UndefValue>(CV))
2679 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
lib/CodeGen/AtomicExpandPass.cpp 927 Value *Res = UndefValue::get(CI->getType());
992 Value *Res = UndefValue::get(CI->getType());
1082 Value *Res = UndefValue::get(CI->getType());
1306 Res = Builder.CreateInsertValue(UndefValue::get(CI->getType()), Loaded, 0);
1788 Value *V = UndefValue::get(FinalResultTy);
lib/CodeGen/CodeGenPrepare.cpp 2394 Inst->setOperand(It, UndefValue::get(Val->getType()));
3054 auto Dummy = UndefValue::get(CommonType);
3422 auto *Dummy = UndefValue::get(CommonType);
3422 auto *Dummy = UndefValue::get(CommonType);
3965 if (isa<UndefValue>(Opnd)) {
3967 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType()));
6385 bool IsArg0Constant = isa<UndefValue>(Arg0) || isa<ConstantInt>(Arg0) ||
6429 UndefValue *UndefVal = UndefValue::get(Val->getType());
6429 UndefValue *UndefVal = UndefValue::get(Val->getType());
6492 if (!isa<ConstantInt>(Val) && !isa<UndefValue>(Val) &&
6570 else if (isa<UndefValue>(Val) || isa<ConstantInt>(Val) ||
6575 isa<UndefValue>(Val) ||
lib/CodeGen/DwarfEHPrepare.cpp 113 if (ExcIVI && isa<UndefValue>(ExcIVI->getOperand(0)) &&
lib/CodeGen/GlobalISel/IRTranslator.cpp 1123 if (isa<UndefValue>(CI.getArgOperand(1)))
1322 if (!Address || isa<UndefValue>(Address)) {
2114 else if (isa<UndefValue>(C))
lib/CodeGen/InterleavedAccessPass.cpp 299 if (!SVI || !isa<UndefValue>(SVI->getOperand(1)))
lib/CodeGen/InterleavedLoadCombinePass.cpp 1237 auto SVI = Builder.CreateShuffleVector(LI, UndefValue::get(LI->getType()),
lib/CodeGen/IntrinsicLowering.cpp 475 CI->replaceAllUsesWith(UndefValue::get(CI->getType()));
lib/CodeGen/MIRParser/MIParser.cpp 2307 ShufMask.push_back(UndefValue::get(I32Ty));
2326 Constant *C = AllZero ? Constant::getNullValue(VT) : UndefValue::get(VT);
lib/CodeGen/MachinePipeliner.cpp 663 UndefValue::get(Type::getVoidTy(MF.getFunction().getContext()));
lib/CodeGen/ScheduleDAGInstrs.cpp 115 UnknownValue(UndefValue::get(
1025 if (isa<UndefValue>(V))
lib/CodeGen/SelectionDAG/FastISel.cpp 444 } else if (isa<UndefValue>(V)) {
1354 if (!Address || isa<UndefValue>(Address)) {
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp 434 if (isa<UndefValue>(V) || isa<ConstantExpr>(V)) {
467 if (isa<UndefValue>(V) || isa<ConstantExpr>(V)) {
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp 1958 CV.push_back(UndefValue::get(OpNTy));
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 1204 UndefValue::get(DDI.getDI()->getVariableLocation()->getType());
1258 auto Undef = UndefValue::get(DDI.getDI()->getVariableLocation()->getType());
1273 if (isa<ConstantInt>(V) || isa<ConstantFP>(V) || isa<UndefValue>(V) ||
1461 if (isa<UndefValue>(C) && !V->getType()->isAggregateType())
1515 if (isa<UndefValue>(C))
3060 if (!isa<UndefValue>(U->getOperand(1)))
3751 bool IntoUndef = isa<UndefValue>(Op0);
3752 bool FromUndef = isa<UndefValue>(Op1);
3804 bool OutOfUndef = isa<UndefValue>(Op0);
5815 if (!Address || isa<UndefValue>(Address) ||
lib/CodeGen/SjLjEHPrepare.cpp 159 Value *LPadVal = UndefValue::get(LPadType);
247 Value *UndefValue = UndefValue::get(Ty);
lib/CodeGen/StackColoring.cpp 948 ValueAsMetadata::handleRAUW(FromAI, UndefValue::get(FromAI->getType()));
952 ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType()));
lib/CodeGen/TargetLoweringObjectFileImpl.cpp 1612 if (isa<UndefValue>(C)) {
lib/CodeGen/WinEHPrepare.cpp 717 PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
1132 if (isa<UndefValue>(PredVal))
lib/ExecutionEngine/ExecutionEngine.cpp 596 if (isa<UndefValue>(C)) {
620 const Constant *ElemUndef = UndefValue::get(ElemTy);
947 if (!isa<UndefValue>(CV->getOperand(i)))
969 if (!isa<UndefValue>(CV->getOperand(i)))
991 if (!isa<UndefValue>(CV->getOperand(i)))
1135 if (isa<UndefValue>(Init))
lib/FuzzMutate/OpDescriptor.cpp 30 Cs.push_back(UndefValue::get(T));
lib/FuzzMutate/Operations.cpp 159 PHI.addIncoming(UndefValue::get(PHI.getType()), Block);
306 UndefValue::get(VectorType::get(Int32Ty, FirstTy->getNumElements()))};
lib/FuzzMutate/RandomIRBuilder.cpp 127 Ptr = UndefValue::get(PointerType::get(V->getType(), 0));
149 return Pred.matches(Srcs, UndefValue::get(PtrTy->getElementType()));
lib/IR/AsmWriter.cpp 1502 if (isa<UndefValue>(CV)) {
lib/IR/AutoUpgrade.cpp 2242 Rep = UndefValue::get(VecTy);
2262 CI->getArgOperand(0), UndefValue::get(SrcTy), ShuffleMask);
2289 Rep = Builder.CreateShuffleVector(Load, UndefValue::get(Load->getType()),
2292 Rep = Builder.CreateShuffleVector(Load, UndefValue::get(Load->getType()),
2339 Rep = Builder.CreateShuffleVector(Op, UndefValue::get(Op->getType()),
2431 Value *UndefV = UndefValue::get(Op1->getType());
lib/IR/BasicBlock.cpp 352 PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/IR/ConstantFold.cpp 523 if (isa<UndefValue>(V)) {
530 return UndefValue::get(DestTy);
619 return UndefValue::get(DestTy);
752 } else if (isa<UndefValue>(Cond)) {
753 V = isa<UndefValue>(V1Element) ? V1Element : V2Element;
766 if (isa<UndefValue>(Cond)) {
767 if (isa<UndefValue>(V1)) return V1;
770 if (isa<UndefValue>(V1)) return V2;
771 if (isa<UndefValue>(V2)) return V1;
792 if (isa<UndefValue>(Val) || isa<UndefValue>(Idx))
792 if (isa<UndefValue>(Val) || isa<UndefValue>(Idx))
793 return UndefValue::get(Val->getType()->getVectorElementType());
801 return UndefValue::get(Val->getType()->getVectorElementType());
830 if (isa<UndefValue>(Idx))
831 return UndefValue::get(Val->getType());
838 return UndefValue::get(Val->getType());
864 if (isa<UndefValue>(Mask))
865 return UndefValue::get(VectorType::get(EltTy, MaskNumElts));
877 Result.push_back(UndefValue::get(EltTy));
882 InElt = UndefValue::get(EltTy);
945 bool HasScalarUndef = !C->getType()->isVectorTy() && isa<UndefValue>(C);
993 (isa<UndefValue>(C1) || isa<UndefValue>(C2));
993 (isa<UndefValue>(C1) || isa<UndefValue>(C2));
997 if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
997 if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
1004 return UndefValue::get(C1->getType());
1006 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef
1006 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef
1011 if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
1011 if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
1017 return UndefValue::get(C1->getType());
1025 if (isa<UndefValue>(C2))
1044 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef
1044 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef
1049 if (isa<UndefValue>(C2))
1058 if (isa<UndefValue>(C2))
1068 if (isa<UndefValue>(C2))
1081 if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
1081 if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
1118 return UndefValue::get(CI2->getType()); // X / 0 == undef
1125 return UndefValue::get(CI2->getType()); // X % 0 == undef
1238 return UndefValue::get(CI1->getType()); // MIN_INT / -1 -> undef
1246 return UndefValue::get(CI1->getType()); // MIN_INT % -1 -> undef
1257 return UndefValue::get(C1->getType()); // too big shift is undef
1261 return UndefValue::get(C1->getType()); // too big shift is undef
1265 return UndefValue::get(C1->getType()); // too big shift is undef
1318 return UndefValue::get(VTy);
1802 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) {
1802 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) {
1809 return UndefValue::get(ResultTy);
2173 if (isa<UndefValue>(C))
2174 return UndefValue::get(GEPTy);
2177 if (Idxs.size() == 1 && (Idx0->isNullValue() || isa<UndefValue>(Idx0)))
2186 if (!isa<UndefValue>(Idxs[i]) &&
lib/IR/Constants.cpp 272 if (isa<UndefValue>(getAggregateElement(i)))
366 if (const UndefValue *UV = dyn_cast<UndefValue>(this))
366 if (const UndefValue *UV = dyn_cast<UndefValue>(this))
901 UndefValue *UndefValue::getSequentialElement() const {
902 return UndefValue::get(getType()->getSequentialElementType());
905 UndefValue *UndefValue::getStructElement(unsigned Elt) const {
906 return UndefValue::get(getType()->getStructElementType(Elt));
909 UndefValue *UndefValue::getElementValue(Constant *C) const {
915 UndefValue *UndefValue::getElementValue(unsigned Idx) const {
1034 if (isa<UndefValue>(C) && rangeOnlyContains(V.begin(), V.end(), C))
1035 return UndefValue::get(Ty);
1084 isUndef = isa<UndefValue>(V[0]);
1090 if (!isa<UndefValue>(V[i]))
1098 return UndefValue::get(ST);
1125 bool isUndef = isa<UndefValue>(C);
1138 return UndefValue::get(T);
1193 if (isa<UndefValue>(*OI))
1446 UndefValue *UndefValue::get(Type *Ty) {
1447 std::unique_ptr<UndefValue> &Entry = Ty->getContext().pImpl->UVConstants[Ty];
1449 Entry.reset(new UndefValue(Ty));
2885 if (AllSame && isa<UndefValue>(ToC))
2886 return UndefValue::get(getType());
2925 if (AllSame && isa<UndefValue>(ToC))
2926 return UndefValue::get(getType());
lib/IR/Core.cpp 1025 return wrap(UndefValue::get(unwrap(Ty)));
1039 return isa<UndefValue>(unwrap(Val));
lib/IR/IRBuilder.cpp 478 PassThru = UndefValue::get(DataTy);
535 PassThru = UndefValue::get(DataTy);
lib/IR/Instructions.cpp 135 replaceAllUsesWith(UndefValue::get(getType()));
167 return UndefValue::get(getType());
180 if (Incoming != this && !isa<UndefValue>(Incoming)) {
1832 NewMask[i] = UndefValue::get(Int32Ty);
1855 if (isa<UndefValue>(Mask) || isa<ConstantAggregateZero>(Mask))
1864 } else if (!isa<UndefValue>(Op)) {
1895 if (isa<UndefValue>(C))
1911 Result.push_back(isa<UndefValue>(C) ? -1 :
2088 if (isa<UndefValue>(Op<0>()) || isa<UndefValue>(Op<1>()))
2088 if (isa<UndefValue>(Op<0>()) || isa<UndefValue>(Op<1>()))
lib/IR/LLVMContextImpl.h 1304 DenseMap<Type *, std::unique_ptr<UndefValue>> UVConstants;
lib/Target/AArch64/AArch64FastISel.cpp 3125 if (isa<UndefValue>(ArgVal))
lib/Target/AArch64/AArch64PromoteConstant.cpp 324 if (isa<const UndefValue>(Cst))
lib/Target/AArch64/AArch64TargetTransformInfo.cpp 806 Value *Res = UndefValue::get(ExpectedType);
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp 290 if (GV->hasInitializer() && !isa<UndefValue>(GV->getInitializer())) {
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp 502 UndefValue::get(VecTy), ReadLaneLo, B.getInt32(0));
584 PHI->addIncoming(UndefValue::get(Ty), EntryBB);
601 UndefValue::get(VecTy), ReadFirstLaneLo, B.getInt32(0));
647 PHI->addIncoming(UndefValue::get(Ty), PixelEntryBB);
lib/Target/AMDGPU/AMDGPUCallLowering.cpp 372 MachinePointerInfo PtrInfo(UndefValue::get(PtrTy));
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp 453 Value *NewVal = UndefValue::get(Ty);
579 NewFDiv = UndefValue::get(VT);
906 NewDiv = UndefValue::get(VT);
lib/Target/AMDGPU/AMDGPUISelLowering.cpp 1188 return !isa<UndefValue>(GVar->getInitializer());
lib/Target/AMDGPU/AMDGPUInstrInfo.cpp 38 if (!Ptr || isa<UndefValue>(Ptr) ||
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp 1519 if (!Ptr || isa<UndefValue>(Ptr) || isa<Argument>(Ptr) ||
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp 1189 Value *V = UndefValue::get(PointerType::get(
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp 212 Value *Shuf = Builder.CreateShuffleVector(Load, UndefValue::get(V4Ty),
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp 798 UndefValue::get(GVTy),
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp 390 Value *NewRetVal = UndefValue::get(NewRetTy);
410 Val = B.CreateShuffleVector(Val, UndefValue::get(Val->getType()),
418 Val = B.CreateInsertValue(UndefValue::get(EltTy), Val, 0);
437 StubCallArgs.push_back(UndefValue::get(Arg.getType()));
lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp 189 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy);
233 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy);
lib/Target/AMDGPU/R600ISelLowering.cpp 1177 MachinePointerInfo PtrInfo(UndefValue::get(
1408 MachinePointerInfo PtrInfo(UndefValue::get(
1638 MachinePointerInfo PtrInfo(UndefValue::get(PtrTy), PartOffset - ValBase);
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp 65 UndefValue *BoolUndef;
148 BoolUndef = UndefValue::get(Boolean);
315 if (!isa<UndefValue>(Exec) && !isa<UnreachableInst>(FirstInsertionPt))
lib/Target/AMDGPU/SIFrameLowering.cpp 584 MachinePointerInfo PtrInfo(UndefValue::get(PtrTy));
629 MachinePointerInfo PtrInfo(UndefValue::get(PtrTy));
lib/Target/AMDGPU/SIISelLowering.cpp 1464 MachinePointerInfo PtrInfo(UndefValue::get(PtrTy));
2864 MachinePointerInfo(UndefValue::get(Type::getInt8PtrTy(
4690 Value *V = UndefValue::get(PointerType::get(Type::getInt8Ty(*DAG.getContext()),
lib/Target/AMDGPU/SIInstrInfo.cpp 423 if (isa<UndefValue>(Base1) || isa<UndefValue>(Base2))
423 if (isa<UndefValue>(Base1) || isa<UndefValue>(Base2))
lib/Target/ARM/ARMCodeGenPrepare.cpp 564 } else if (isa<UndefValue>(Op))
565 I->setOperand(i, UndefValue::get(ExtTy));
lib/Target/ARM/ARMFastISel.cpp 2018 if (isa<UndefValue>(ArgVal))
lib/Target/BPF/BPFISelDAGToDAG.cpp 395 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV))
lib/Target/Mips/MipsFastISel.cpp 1247 if (isa<UndefValue>(ArgVal))
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 1160 if (!Initializer->isNullValue() && !isa<UndefValue>(Initializer)) {
1169 !isa<UndefValue>(GVar->getInitializer())) {
1195 if (!isa<UndefValue>(Initializer) && !Initializer->isNullValue()) {
1790 if (isa<UndefValue>(CPV) || CPV->isNullValue()) {
1974 if (CV->isNullValue() || isa<UndefValue>(CV))
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp 218 Value *NewValue = UndefValue::get(C->getType());
lib/Target/PowerPC/PPCISelLowering.cpp 4600 isa<UndefValue>(CalleeArg))
8299 CV[i] = UndefValue::get(Type::getFloatTy(*DAG.getContext()));
lib/Target/TargetLoweringObjectFile.cpp 59 if (C->isNullValue() || isa<UndefValue>(C))
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp 172 Args.push_back(UndefValue::get(*PI));
186 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB);
263 Value *Args[] = {UndefValue::get(MainArgTys[0]),
264 UndefValue::get(MainArgTys[1])};
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 857 Value *Undef = UndefValue::get(LPI->getType());
lib/Target/X86/X86FastISel.cpp 3411 if (isa<UndefValue>(ArgVal))
lib/Target/X86/X86ISelLowering.cpp 6029 if (isa<UndefValue>(Cst)) {
9651 SmallVector<Constant *, 16> ConstVecOps(NumElems, UndefValue::get(EltType));
lib/Target/X86/X86InterleavedAccess.cpp 292 Vec[i], UndefValue::get(Vec[i]->getType()), VPShuf);
575 Vec[i], UndefValue::get(Vec[0]->getType()), VPShuf);
598 Vec[1], UndefValue::get(Vec[1]->getType()), VPAlign3);
600 Vec[0], UndefValue::get(Vec[1]->getType()), VPAlign2);
658 InVec[0], UndefValue::get(InVec[0]->getType()), VPAlign2);
660 InVec[1], UndefValue::get(InVec[1]->getType()), VPAlign3);
lib/Target/X86/X86MCInstLower.cpp 1732 if (isa<UndefValue>(COp)) {
lib/Target/X86/X86ShuffleDecodeConstantPool.cpp 61 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
64 if (isa<UndefValue>(COp)) {
81 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
86 if (isa<UndefValue>(COp)) {
lib/Transforms/Coroutines/CoroSplit.cpp 206 ReturnValue = Builder.CreateInsertValue(UndefValue::get(RetStructTy),
449 Value *Agg = UndefValue::get(NewS->getType());
650 VMap[&A] = UndefValue::get(A.getType());
996 CoroBegin->replaceAllUsesWith(UndefValue::get(CoroBegin->getType()));
1291 RetV = UndefValue::get(RetTy);
lib/Transforms/Coroutines/Coroutines.cpp 328 auto *Undef = UndefValue::get(Type::getInt8PtrTy(F.getContext()));
328 auto *Undef = UndefValue::get(Type::getInt8PtrTy(F.getContext()));
337 CS->replaceAllUsesWith(UndefValue::get(CS->getType()));
lib/Transforms/IPO/ArgumentPromotion.cpp 159 I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/IPO/Attributor.cpp 1038 !(isa<UndefValue>(RV) || isa<UndefValue>(UniqueRV.getValue()))) {
1038 !(isa<UndefValue>(RV) || isa<UndefValue>(UniqueRV.getValue()))) {
1044 if (!UniqueRV.hasValue() || !isa<UndefValue>(RV))
2039 if (C->isNullValue() || isa<UndefValue>(C))
3351 if (isa<UndefValue>(QueryingValueSimplifiedUnwrapped))
3458 if (isa<Constant>(V) || isa<UndefValue>(V))
4605 I->replaceAllUsesWith(UndefValue::get(I->getType()));
4620 Fn->replaceAllUsesWith(UndefValue::get(Fn->getType()));
4650 F->replaceAllUsesWith(UndefValue::get(F->getType()));
lib/Transforms/IPO/DeadArgumentElimination.cpp 295 Arg.replaceAllUsesWith(UndefValue::get(Arg.getType()));
315 CS.setArgument(ArgNo, UndefValue::get(Arg->getType()));
964 Call->replaceAllUsesWith(UndefValue::get(Call->getType()));
980 Value *RetVal = UndefValue::get(RetTy);
1027 I->replaceAllUsesWith(UndefValue::get(I->getType()));
1048 RetVal = UndefValue::get(NRetTy);
lib/Transforms/IPO/FunctionAttrs.cpp 871 if (!C->isNullValue() && !isa<UndefValue>(C))
lib/Transforms/IPO/GlobalOpt.cpp 854 UndefValue::get(GlobalType), GV->getName() + ".body", nullptr,
1953 if (!isa<UndefValue>(GV->getInitializer()))
2024 if (isa<UndefValue>(GV->getInitializer())) {
lib/Transforms/IPO/GlobalSplit.cpp 135 GV.replaceAllUsesWith(UndefValue::get(GV.getType()));
lib/Transforms/IPO/IPConstantPropagation.cpp 135 if (!V) V = UndefValue::get(AI->getType());
173 RetVals.push_back(UndefValue::get(STy->getElementType(i)));
175 RetVals.push_back(UndefValue::get(F.getReturnType()));
195 if (isa<UndefValue>(V))
200 if (isa<UndefValue>(RV)) {
lib/Transforms/IPO/MergeFunctions.cpp 488 Value *Result = UndefValue::get(DestTy);
lib/Transforms/IPO/PruneEH.cpp 254 I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/IPO/WholeProgramDevirt.cpp 1653 Value *Pair = UndefValue::get(CI->getType());
lib/Transforms/InstCombine/InstCombineAddSub.cpp 714 if (isa<UndefValue>(Opnd->getSymVal()))
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 1666 if (isa<UndefValue>(Elt))
lib/Transforms/InstCombine/InstCombineCalls.cpp 483 if (CElt && isa<UndefValue>(CElt)) {
512 ConstantVec.push_back(UndefValue::get(SVT));
529 ShiftVecAmts.push_back(UndefValue::get(SVT));
551 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1))
551 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1))
552 return UndefValue::get(ResTy);
617 if (isa<UndefValue>(Arg))
659 Value *Res = UndefValue::get(RetTy);
732 UndefValue::get(IntTy64)};
764 return UndefValue::get(II.getType());
785 ShuffleMask.push_back(UndefValue::get(IntTy32));
844 return UndefValue::get(II.getType());
866 ShuffleMask.push_back(UndefValue::get(IntTy32));
894 UndefValue::get(IntTy64)};
934 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
937 if (isa<UndefValue>(COp)) {
938 Indexes[I] = UndefValue::get(MaskEltTy);
981 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
984 if (isa<UndefValue>(COp)) {
985 Indexes[I] = UndefValue::get(MaskEltTy);
1007 auto V2 = UndefValue::get(V1->getType());
1029 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp)))
1032 if (isa<UndefValue>(COp)) {
1033 Indexes[I] = UndefValue::get(MaskEltTy);
1044 auto V2 = UndefValue::get(VecTy);
2481 Arg, UndefValue::get(ArgType), SubVecMask);
3172 if (!Elt || !(isa<ConstantInt>(Elt) || isa<UndefValue>(Elt))) {
3184 Value *Result = UndefValue::get(Op0->getType());
3191 if (isa<UndefValue>(Mask->getAggregateElement(i)))
3328 if (isa<UndefValue>(Src))
3348 if (isa<UndefValue>(Src))
3372 if (isa<UndefValue>(Src))
3373 return replaceInstUsesWith(CI, UndefValue::get(II->getType()));
3398 if (isa<UndefValue>(Src0))
3399 return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
3401 if (isa<UndefValue>(Src1))
3440 if (isa<UndefValue>(Src0))
3441 return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
3492 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1))
3492 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1))
3493 return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
3504 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1))
3504 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1))
3505 return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
3513 if (isa<UndefValue>(Src))
3584 if (!isa<UndefValue>(Src)) {
3585 II->setArgOperand(I + 2, UndefValue::get(Src->getType()));
3608 if (match(Src0, m_NaN()) || isa<UndefValue>(Src0)) {
3610 } else if (match(Src1, m_NaN()) || isa<UndefValue>(Src1)) {
3612 } else if (match(Src2, m_NaN()) || isa<UndefValue>(Src2)) {
3821 isa<UndefValue>(Old))
3825 II->setOperand(0, UndefValue::get(Old->getType()));
4004 if (isa<UndefValue>(DerivedPtr))
4006 return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
4325 replaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType()));
4340 isa<UndefValue>(Callee)) {
4344 replaceInstUsesWith(Call, UndefValue::get(Call.getType()));
4671 NV = UndefValue::get(Caller->getType());
lib/Transforms/InstCombine/InstCombineCasts.cpp 640 if (Shuf && Shuf->hasOneUse() && isa<UndefValue>(Shuf->getOperand(1)) &&
644 Constant *NarrowUndef = UndefValue::get(Trunc.getType());
673 if (isa<UndefValue>(VecOp)) {
676 UndefValue *NarrowUndef = UndefValue::get(DestTy);
676 UndefValue *NarrowUndef = UndefValue::get(DestTy);
1856 V2 = UndefValue::get(SrcTy);
1904 if (isa<UndefValue>(V)) return true;
2364 return InsertElementInst::Create(UndefValue::get(DestTy), Elem,
lib/Transforms/InstCombine/InstCombineCompares.cpp 238 if (isa<UndefValue>(C)) {
5181 if (isa<UndefValue>(Elt))
5372 return new ShuffleVectorInst(NewCmp, UndefValue::get(NewCmp->getType()), M);
lib/Transforms/InstCombine/InstCombineInternal.h 92 return isa<Constant>(V) ? (isa<UndefValue>(V) ? 0 : 1) : 2;
291 Out[i] = isa<UndefValue>(C) ? SafeC : C;
671 V = UndefValue::get(I.getType());
684 Constant *V[] = {UndefValue::get(Result->getType()), Overflow};
695 UndefValue::get(Type::getInt1PtrTy(Ctx)),
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp 225 if (isa<UndefValue>(AI.getArraySize()))
657 UndefValue::get(T), NewLoad, 0, Name));
675 Value *V = UndefValue::get(T);
706 UndefValue::get(T), NewLoad, 0, Name));
726 Value *V = UndefValue::get(T);
942 if (isa<UndefValue>(Op) ||
1004 StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()),
1007 return replaceInstUsesWith(LI, UndefValue::get(LI.getType()));
1092 if (!isa<UndefValue>(V) ||!U)
1345 IC.replaceInstUsesWith(*LI, UndefValue::get(LI->getType()));
1455 if (!isa<UndefValue>(Val)) {
1456 SI.setOperand(0, UndefValue::get(Val->getType()));
1464 if (isa<UndefValue>(Val))
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp 115 if (isa<UndefValue>(Elt)) {
116 Elts.push_back(UndefValue::get(Ty->getScalarType()));
lib/Transforms/InstCombine/InstCombinePHI.cpp 1019 return replaceInstUsesWith(FirstPhi, UndefValue::get(FirstPhi.getType()));
1119 Value *Undef = UndefValue::get(FirstPhi.getType());
1158 return replaceInstUsesWith(PN, UndefValue::get(PN.getType()));
1170 return replaceInstUsesWith(PN, UndefValue::get(PN.getType()));
lib/Transforms/InstCombine/InstCombineSelect.cpp 1819 } else if (isa<UndefValue>(Elt)) {
2201 if (isa<UndefValue>(TrueVal) || isa<UndefValue>(FalseVal)) {
2201 if (isa<UndefValue>(TrueVal) || isa<UndefValue>(FalseVal)) {
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 135 return UndefValue::get(VTy);
1015 return UndefValue::get(II->getType());
1057 return Builder.CreateInsertElement(UndefValue::get(II->getType()), NewCall,
1071 Builder.CreateShuffleVector(NewCall, UndefValue::get(NewTy), EltMask);
1097 if (isa<UndefValue>(V)) {
1105 return UndefValue::get(V->getType());
1117 Constant *Undef = UndefValue::get(EltTy);
1129 if (isa<UndefValue>(Elt)) { // Already undef.
1204 if (isa<UndefValue>(I->getOperand(i))) {
1345 Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext())));
1730 return UndefValue::get(I->getType());;
lib/Transforms/InstCombine/InstCombineVectorOps.cpp 417 return replaceInstUsesWith(EI, UndefValue::get(EI.getType()));
451 if (isa<UndefValue>(V)) {
452 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
479 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector.
484 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext()));
544 ExtendMask.push_back(UndefValue::get(IntType));
572 auto *WideVec = new ShuffleVectorInst(ExtVecOp, UndefValue::get(ExtVecType),
613 if (isa<UndefValue>(V)) {
614 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
616 PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr);
794 if (!isa<UndefValue>(FirstIE->getOperand(0)))
800 UndefValue *UndefVec = UndefValue::get(VecTy);
800 UndefValue *UndefVec = UndefValue::get(VecTy);
809 Mask[i] = UndefValue::get(Int32Ty);
845 return new ShuffleVectorInst(Op0, UndefValue::get(Op0->getType()), NewMask);
853 if (!Shuf || !isa<UndefValue>(Shuf->getOperand(1)) ||
1013 Values[I] = UndefValue::get(InsElt.getType()->getElementType());
1090 LR.second = UndefValue::get(LR.first->getType());
1295 if (isa<UndefValue>(V))
1296 return UndefValue::get(VectorType::get(EltTy, Mask.size()));
1305 MaskValues.push_back(UndefValue::get(I32Ty));
1309 return ConstantExpr::getShuffleVector(C, UndefValue::get(C->getType()),
1539 UndefValue *UndefVec = UndefValue::get(Shuf.getType());
1539 UndefValue *UndefVec = UndefValue::get(Shuf.getType());
1550 if (isa<UndefValue>(Mask->getAggregateElement(i)))
1710 Value *Undef = UndefValue::get(X->getType());
1719 if (!Shuf.isIdentityWithExtract() || !isa<UndefValue>(Op1))
1751 NewMask[i] = isa<UndefValue>(ExtractMaskElt) ? ExtractMaskElt : MaskElt;
1842 isa<UndefValue>(X) || isa<UndefValue>(Y))
1842 isa<UndefValue>(X) || isa<UndefValue>(Y))
1858 SmallVector<Constant *, 16> NewMask(Mask.size(), UndefValue::get(I32Ty));
1900 if (LHS == RHS || isa<UndefValue>(LHS)) {
1905 Elts.push_back(UndefValue::get(Int32Ty));
1909 if ((Mask[i] >= (int)e && isa<UndefValue>(RHS)) ||
1910 (Mask[i] < (int)e && isa<UndefValue>(LHS))) {
1912 Elts.push_back(UndefValue::get(Int32Ty));
1919 SVI.setOperand(1, UndefValue::get(RHS->getType()));
1961 if (isa<UndefValue>(RHS) && canEvaluateShuffled(LHS, Mask)) {
2029 UndefValue::get(Int32Ty));
2032 V = Builder.CreateShuffleVector(V, UndefValue::get(V->getType()),
2102 if (!isa<UndefValue>(LHSShuffle->getOperand(1)) && !isa<UndefValue>(RHS))
2102 if (!isa<UndefValue>(LHSShuffle->getOperand(1)) && !isa<UndefValue>(RHS))
2105 if (!isa<UndefValue>(RHSShuffle->getOperand(1)))
2128 if (isa<UndefValue>(RHS)) {
2177 if (eltMask >= (int)LHSOp0Width && isa<UndefValue>(LHSOp1))
2186 if (isa<UndefValue>(RHS))
2228 Elts.push_back(UndefValue::get(Int32Ty));
2234 newRHS = UndefValue::get(newLHS->getType());
lib/Transforms/InstCombine/InstructionCombining.cpp 815 if (isa<UndefValue>(Elt))
1445 return new ShuffleVectorInst(XY, UndefValue::get(XY->getType()), M);
1505 UndefValue *UndefScalar = UndefValue::get(C->getType()->getScalarType());
1505 UndefValue *UndefScalar = UndefValue::get(C->getType()->getScalarType());
1519 if (!CElt || (!isa<UndefValue>(NewCElt) && NewCElt != CElt) ||
1537 if (!isa<UndefValue>(MaybeUndef)) {
2406 replaceInstUsesWith(*I, UndefValue::get(I->getType()));
2515 if (isa<UndefValue>(Op)) {
2715 replaceInstUsesWith(*WO, UndefValue::get(WO->getType()));
3191 Value *Undef = UndefValue::get(I->getType());
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 1354 Value *ShadowVec = UndefValue::get(ShadowVecTy);
1525 IRB.CreateInsertValue(UndefValue::get(RT), RI.getReturnValue(), 0);
1770 Value *UndefShadow = UndefValue::get(DFSF.DFS.ShadowTy);
lib/Transforms/Instrumentation/MemorySanitizer.cpp 1591 if (UndefValue *U = dyn_cast<UndefValue>(V)) {
1591 if (UndefValue *U = dyn_cast<UndefValue>(V)) {
lib/Transforms/Instrumentation/PoisonChecking.cpp 267 NewPHI->addIncoming(UndefValue::get(Int1Ty),
lib/Transforms/Instrumentation/ThreadSanitizer.cpp 704 IRB.CreateInsertValue(UndefValue::get(CASI->getType()), OldVal, 0);
lib/Transforms/ObjCARC/ObjCARCOpts.cpp 804 new StoreInst(UndefValue::get(cast<PointerType>(Ty)->getElementType()),
807 Value *NewValue = UndefValue::get(CI->getType());
825 new StoreInst(UndefValue::get(cast<PointerType>(Ty)->getElementType()),
829 Value *NewValue = UndefValue::get(CI->getType());
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp 138 if (ReplaceWith == S) ReplaceWith = UndefValue::get(S->getType());
506 { UndefValue::get(ST->getElementType(0)),
lib/Transforms/Scalar/GVN.cpp 813 return UndefValue::get(LoadTy);
930 Res = AvailableValue::get(UndefValue::get(LI->getType()));
1409 new StoreInst(UndefValue::get(Int8Ty),
2592 Phi.setIncomingValueForBlock(P, UndefValue::get(Phi.getType()));
lib/Transforms/Scalar/GVNHoist.cpp 312 if (isa<UndefValue>(V))
lib/Transforms/Scalar/GVNSink.cpp 623 PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/Transforms/Scalar/IndVarSimplify.cpp 482 Incr->replaceAllUsesWith(UndefValue::get(Incr->getType()));
2166 return !isa<UndefValue>(V);
lib/Transforms/Scalar/InferAddressSpaces.cpp 429 return UndefValue::get(NewPtrTy);
837 if (SrcAS == NewAS || isa<UndefValue>(C))
lib/Transforms/Scalar/JumpThreading.cpp 578 if (UndefValue *U = dyn_cast<UndefValue>(Val))
578 if (UndefValue *U = dyn_cast<UndefValue>(Val))
714 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) {
719 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) {
1093 if (isa<UndefValue>(Condition)) {
1333 AvailableVal = UndefValue::get(LoadI->getType());
1634 if (isa<UndefValue>(Val))
1850 if (isa<UndefValue>(XorOpValue.first))
1870 if (XorOpValue.first != SplitVal && !isa<UndefValue>(XorOpValue.first))
1882 BO->replaceAllUsesWith(UndefValue::get(BO->getType()));
lib/Transforms/Scalar/LICM.cpp 1589 U = UndefValue::get(I.getType());
1602 U = UndefValue::get(I.getType());
lib/Transforms/Scalar/LoopDeletion.cpp 164 UndefValue::get(P.getType()));
lib/Transforms/Scalar/LoopDistribute.cpp 234 Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
lib/Transforms/Scalar/LoopFuse.cpp 1239 L1HeaderPHI->addIncoming(UndefValue::get(LCV->getType()),
1481 L1HeaderPHI->addIncoming(UndefValue::get(LCV->getType()),
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 342 I->replaceAllUsesWith(UndefValue::get(I->getType()));
734 if (isa<UndefValue>(FirstSplatValue))
739 if (isa<UndefValue>(FirstPatternValue))
lib/Transforms/Scalar/LoopSimplifyCFG.cpp 371 PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/Transforms/Scalar/LoopStrengthReduce.cpp 3412 } else if (isa<UndefValue>(V))
lib/Transforms/Scalar/LoopUnrollPass.cpp 572 if (isa<UndefValue>(SimpleCond))
583 if (isa<UndefValue>(SimpleCond))
lib/Transforms/Scalar/LoopUnswitch.cpp 600 if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS))
600 if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS))
605 if (isa<UndefValue>(Opd))
616 if (isa<UndefValue>(SI.getTrueValue()) ||
617 isa<UndefValue>(SI.getFalseValue()))
1562 PN.setIncomingValueForBlock(Switch, UndefValue::get(PN.getType()));
lib/Transforms/Scalar/LowerAtomic.cpp 34 Res = Builder.CreateInsertValue(UndefValue::get(CXI->getType()), Orig, 0);
lib/Transforms/Scalar/MemCpyOptimizer.cpp 332 if (isa<UndefValue>(ByteVal) && StoredByte)
lib/Transforms/Scalar/NewGVN.cpp 1303 return UndefValue::get(V->getType());
1473 return createConstantExpression(UndefValue::get(LoadType));
1479 return createConstantExpression(UndefValue::get(LoadType));
1500 if (isa<UndefValue>(LoadAddressLeader))
1501 return createConstantExpression(UndefValue::get(LI->getType()));
1511 return createConstantExpression(UndefValue::get(LI->getType()));
1755 if (isa<UndefValue>(Arg)) {
1769 return createConstantExpression(UndefValue::get(I->getType()));
1796 !isa<UndefValue>(AllSameValue) && !isCycleFree(I))
2805 FoundVal = UndefValue::get(I->getType());
3474 ToErase->replaceAllUsesWith(UndefValue::get(ToErase->getType()));
3692 Inst.replaceAllUsesWith(UndefValue::get(Inst.getType()));
3701 new StoreInst(UndefValue::get(Int8Ty),
3842 Operand.set(UndefValue::get(PHI->getType()));
4145 if (isa<UndefValue>(V))
lib/Transforms/Scalar/Reassociate.cpp 759 Constant *Undef = UndefValue::get(I->getType());
928 if (isa<UndefValue>(Sub->getOperand(1)))
981 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op.
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 971 UndefValue *Undef = UndefValue::get(SI->getType());
971 UndefValue *Undef = UndefValue::get(SI->getType());
975 UndefValue *Undef = UndefValue::get(EE->getVectorOperand()->getType());
975 UndefValue *Undef = UndefValue::get(EE->getVectorOperand()->getType());
980 UndefValue *VecUndef = UndefValue::get(IE->getOperand(0)->getType());
980 UndefValue *VecUndef = UndefValue::get(IE->getOperand(0)->getType());
981 UndefValue *ScalarUndef = UndefValue::get(IE->getOperand(1)->getType());
981 UndefValue *ScalarUndef = UndefValue::get(IE->getOperand(1)->getType());
987 UndefValue *VecUndef = UndefValue::get(SV->getOperand(0)->getType());
987 UndefValue *VecUndef = UndefValue::get(SV->getOperand(0)->getType());
2485 II->replaceAllUsesWith(UndefValue::get(II->getType()));
lib/Transforms/Scalar/SCCP.cpp 295 if (!isa<UndefValue>(GV->getInitializer()))
501 if (!isa<UndefValue>(V))
542 else if (isa<UndefValue>(Elt))
880 if (isa<UndefValue>(C))
986 if (isa<UndefValue>(C))
1010 if (isa<UndefValue>(C))
1084 if (isa<UndefValue>(C))
1124 if (isa<UndefValue>(C))
1188 if (isa<UndefValue>(C))
1296 if (isa<UndefValue>(C))
1679 if (isa<UndefValue>(BI->getCondition())) {
1707 if (isa<UndefValue>(IBR->getAddress())) {
1731 if (isa<UndefValue>(SI->getCondition())) {
1765 : UndefValue::get(ST->getElementType(i)));
1773 Const = IV.isConstant() ? IV.getConstant() : UndefValue::get(V->getType());
1964 if (!isa<UndefValue>(RI->getOperand(0)))
2210 ReturnsToZap[i]->setOperand(0, UndefValue::get(F->getReturnType()));
lib/Transforms/Scalar/SROA.cpp 2204 V = IRB.CreateShuffleVector(V, UndefValue::get(V->getType()),
2242 Mask.push_back(UndefValue::get(IRB.getInt32Ty()));
2243 V = IRB.CreateShuffleVector(V, UndefValue::get(V->getType()),
2582 LI.getType(), UndefValue::get(LI.getType()->getPointerTo(AS)));
3382 Value *V = UndefValue::get(LI.getType());
4418 U = UndefValue::get(OldV->getType());
4470 DeadUser->replaceAllUsesWith(UndefValue::get(DeadUser->getType()));
4523 I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/Scalar/Scalarizer.cpp 362 Op->setOperand(I, UndefValue::get(Op->getOperand(I)->getType()));
704 Value *V = UndefValue::get(MidTy);
731 Res[I] = UndefValue::get(VT->getElementType());
836 Value *Res = UndefValue::get(Ty);
lib/Transforms/Scalar/StructurizeCFG.cpp 186 UndefValue *BoolUndef;
307 BoolUndef = UndefValue::get(Boolean);
596 Value *Undef = UndefValue::get(Phi.getType());
616 Value *Undef = UndefValue::get(Phi->getType());
928 Value *Undef = UndefValue::get(I.getType());
lib/Transforms/Scalar/TailRecursionElimination.cpp 544 !isa<UndefValue>(Ret->getReturnValue()) &&
lib/Transforms/Utils/BasicBlockUtils.cpp 77 I.replaceAllUsesWith(UndefValue::get(I.getType()));
147 PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
647 cast<PHINode>(I)->addIncoming(UndefValue::get(I->getType()), NewBB);
lib/Transforms/Utils/BypassSlowDivision.cpp 223 isa<UndefValue>(V);
lib/Transforms/Utils/CloneFunction.cpp 590 Value *NV = UndefValue::get(PN->getType());
lib/Transforms/Utils/Evaluator.cpp 473 Ty, false, GlobalValue::InternalLinkage, UndefValue::get(Ty),
lib/Transforms/Utils/InlineFunction.cpp 1054 isa<ConstantDataVector>(V) || isa<UndefValue>(V);
2244 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
2354 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
2377 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
lib/Transforms/Utils/Local.cpp 407 return isa<UndefValue>(II->getArgOperand(1));
427 return C->isNullValue() || isa<UndefValue>(C);
493 Value *Undef = UndefValue::get(I->getType());
535 I->replaceAllUsesWith(UndefValue::get(I->getType()));
677 if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
752 return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second);
752 return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second);
833 if (!isa<UndefValue>(OldVal)) {
862 if (!isa<UndefValue>(V))
877 if (!isa<UndefValue>(V)) continue;
1305 DV = UndefValue::get(DV->getType());
1886 Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
1932 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
2063 isa<UndefValue>(Callee)) {
2089 if (isa<UndefValue>(Ptr) ||
2106 isa<UndefValue>(Callee)) {
2254 TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
lib/Transforms/Utils/LoopRotationUtils.cpp 165 NewVal = UndefValue::get(OrigHeaderVal->getType());
lib/Transforms/Utils/LoopSimplify.cpp 522 if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) {
522 if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) {
lib/Transforms/Utils/LoopUnrollRuntime.cpp 111 NewPN->addIncoming(UndefValue::get(PN.getType()), PreHeader);
223 PN.addIncoming(UndefValue::get(PN.getType()), PreHeader);
lib/Transforms/Utils/LoopUtils.cpp 613 auto *Undef = UndefValue::get(I.getType());
613 auto *Undef = UndefValue::get(I.getType());
648 DIB.insertDbgValueIntrinsic(UndefValue::get(Builder.getInt32Ty()),
838 UndefValue::get(Builder.getInt32Ty()));
841 TmpVec, UndefValue::get(TmpVec->getType()),
lib/Transforms/Utils/PromoteMemoryToRegister.cpp 395 ReplVal = UndefValue::get(LI->getType());
483 LI->replaceAllUsesWith(UndefValue::get(LI->getType()));
500 ReplVal = UndefValue::get(LI->getType());
639 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType());
666 A->replaceAllUsesWith(UndefValue::get(A->getType()));
759 Value *UndefVal = UndefValue::get(SomePHI->getType());
lib/Transforms/Utils/SSAUpdater.cpp 143 return UndefValue::get(ProtoType);
273 return UndefValue::get(Updater->ProtoType);
453 if (NewVal == ALoad) NewVal = UndefValue::get(NewVal->getType());
lib/Transforms/Utils/SSAUpdaterBulk.cpp 84 R.Defines[BB] = UndefValue::get(R.Ty);
lib/Transforms/Utils/SimplifyCFG.cpp 2507 if (TrueValue == FalseValue || isa<UndefValue>(FalseValue)) {
2508 } else if (isa<UndefValue>(TrueValue)) {
2941 AlternativeV ? AlternativeV : UndefValue::get(V->getType()), PredBB);
4096 if (isa<UndefValue>(RI->getOperand(0)))
4211 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
4613 !isa<UndefValue>(C) && !isa<ConstantExpr>(C))
5066 if (!isa<UndefValue>(TableContents[I - 1])) {
5257 if (!CaseConst || CaseConst == DefaultConst || isa<UndefValue>(CaseConst))
5972 if (C->isNullValue() || isa<UndefValue>(C)) {
lib/Transforms/Utils/SimplifyIndVar.cpp 608 TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
lib/Transforms/Utils/ValueMapper.cpp 482 if (isa<UndefValue>(C))
483 return getVM()[V] = UndefValue::get(NewTy);
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 1045 Value *Vec = UndefValue::get(VecTy);
lib/Transforms/Vectorize/LoopVectorize.cpp 2044 Value *Undef = UndefValue::get(VectorType::get(V->getType(), VF));
2114 return Builder.CreateShuffleVector(Vec, UndefValue::get(Vec->getType()),
2227 Value *UndefVec = UndefValue::get(VecTy);
2246 auto *Undefs = UndefValue::get(Mask[Part]->getType());
2246 auto *Undefs = UndefValue::get(Mask[Part]->getType());
2330 auto *Undefs = UndefValue::get(Mask[Part]->getType());
2330 auto *Undefs = UndefValue::get(Mask[Part]->getType());
2469 UndefValue::get(DataTy),
3536 UndefValue::get(VectorType::get(VectorInit->getType(), VF)), VectorInit,
7354 UndefValue::get(VectorType::get(Ingredient->getType(), State.VF));
7423 Phi->addIncoming(UndefValue::get(ScalarPredInst->getType()), PredicatingBB);
lib/Transforms/Vectorize/SLPVectorizer.cpp 286 if (isa<UndefValue>(Vec))
813 (isa<UndefValue>(OpLastLane) && isa<Instruction>(Op)) ||
814 isa<UndefValue>(Op)) {
816 unsigned Score = (isa<UndefValue>(Op)) ? GoodScore : BestScore;
825 unsigned Score = (isa<UndefValue>(Op)) ? GoodScore : BestScore;
2079 Value *Undef = UndefValue::get(Pair.getFirst()->getType());
3617 Value *Vec = UndefValue::get(Ty);
3667 V = Builder.CreateShuffleVector(V, UndefValue::get(V->getType()),
3703 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3742 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3763 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3799 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy), Mask,
3806 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3815 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3836 NewV = Builder.CreateShuffleVector(NewV, UndefValue::get(VecTy), Mask,
3842 NewV, UndefValue::get(VecTy), E->ReuseShuffleIndices, "shuffle");
3850 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3884 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3912 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3933 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
3957 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
4001 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
4040 V = Builder.CreateShuffleVector(V, UndefValue::get(V->getType()),
4045 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
4076 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
4101 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
4151 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
4220 V = Builder.CreateShuffleVector(V, UndefValue::get(VecTy),
5694 VecLen, UndefValue::get(Builder.getInt32Ty()));
6601 TmpVec, UndefValue::get(TmpVec->getType()), LeftMask, "rdx.shuf.l");
6603 TmpVec, UndefValue::get(TmpVec->getType()), (RightMask),
6639 if (isa<UndefValue>(V))
6657 if (isa<UndefValue>(V))
tools/bugpoint/CrashDebugger.cpp 783 Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
tools/clang/lib/CodeGen/CGBuiltin.cpp 2597 return RValue::get(llvm::UndefValue::get(Ty));
2605 return RValue::get(llvm::UndefValue::get(ConvertType(E->getType())));
5223 CGF.Builder.CreateInsertElement(UndefValue::get(ArgTy), Ops[j], C0);
5522 Value *V = UndefValue::get(Ty);
6837 Value *MvecOut = UndefValue::get(MvecLType);
7041 Value *V = UndefValue::get(VTy);
9148 Value *V = UndefValue::get(Ty);
9481 llvm::UndefValue::get(llvm::VectorType::get(Ops[0]->getType(), Ops.size()));
10876 UndefValue::get(Ops[0]->getType()),
10914 UndefValue::get(Ops[1]->getType()),
10999 return Builder.CreateShuffleVector(Ops[0], UndefValue::get(Ty),
11023 return Builder.CreateShuffleVector(Ops[0], UndefValue::get(Ty),
11053 return Builder.CreateShuffleVector(Ops[0], UndefValue::get(Ty),
11101 return Builder.CreateShuffleVector(Ops[0], UndefValue::get(Ty),
12802 llvm::UndefValue::get(llvm::VectorType::get(Ops[0]->getType(), 2));
12876 Args.insert(Args.begin(), llvm::UndefValue::get(Args[0]->getType()));
tools/clang/lib/CodeGen/CGCall.cpp 2558 llvm::Value *U = llvm::UndefValue::get(ConvertType(Arg->getType()));
2945 RV = llvm::UndefValue::get(returnType);
3039 llvm::Value *Placeholder = llvm::UndefValue::get(IRPtrTy->getPointerTo());
3322 phiToUse->addIncoming(llvm::UndefValue::get(valueToUse->getType()),
3898 llvm::UndefValue::get(ArgInfo.getPaddingType());
tools/clang/lib/CodeGen/CGClass.cpp 2910 llvm::Value *ThisPtr = llvm::UndefValue::get(getTypes().ConvertType(ThisType));
tools/clang/lib/CodeGen/CGDecl.cpp 246 Init = llvm::UndefValue::get(LTy);
864 isa<llvm::UndefValue>(Init))
916 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt))
931 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt))
1165 constant->isNullValue() || isa<llvm::UndefValue>(constant);
1178 if (!isa<llvm::UndefValue>(Pattern)) {
1243 if (isa<llvm::UndefValue>(constant))
1255 if (isa<llvm::UndefValue>(constant))
tools/clang/lib/CodeGen/CGException.cpp 1587 llvm::Value *LPadVal = llvm::UndefValue::get(LPadType);
1800 CXXThisValue = llvm::UndefValue::get(ConvertTypeForMem(VD->getType()));
1968 return llvm::UndefValue::get(Int8PtrTy);
tools/clang/lib/CodeGen/CGExpr.cpp 1152 llvm::Value *U = llvm::UndefValue::get(EltTy);
1165 return RValue::get(llvm::UndefValue::get(ConvertType(Ty)));
1180 return MakeAddrLValue(Address(llvm::UndefValue::get(Ty), CharUnits::One()),
1658 V = Builder.CreateShuffleVector(V, llvm::UndefValue::get(vec4Ty),
1731 llvm::UndefValue::get(Builder.getInt32Ty())};
1733 Value = Builder.CreateShuffleVector(Value, llvm::UndefValue::get(VecTy),
1875 Vec = Builder.CreateShuffleVector(Vec, llvm::UndefValue::get(Vec->getType()),
2114 llvm::UndefValue::get(Vec->getType()),
2124 ExtMask.resize(NumDstElts, llvm::UndefValue::get(Int32Ty));
2128 llvm::UndefValue::get(SrcVal->getType()),
4872 {CastedCallee, llvm::UndefValue::get(IntPtrTy)});
tools/clang/lib/CodeGen/CGExprCXX.cpp 1775 auto *V = llvm::UndefValue::get(getTypes().ConvertType(DDTag));
1775 auto *V = llvm::UndefValue::get(getTypes().ConvertType(DDTag));
2179 return llvm::UndefValue::get(DestLTy);
tools/clang/lib/CodeGen/CGExprComplex.cpp 395 llvm::Value *U = llvm::UndefValue::get(EltTy);
1092 llvm::Value *U = llvm::UndefValue::get(EltTy);
tools/clang/lib/CodeGen/CGExprConstant.cpp 63 return llvm::UndefValue::get(Ty);
245 isa<llvm::UndefValue>(Elems[*FirstElemToUpdate])) {
369 if (isa<llvm::UndefValue>(C)) {
395 return llvm::UndefValue::get(DesiredTy);
1062 Elts.push_back(llvm::UndefValue::get(Ty));
2017 return llvm::UndefValue::get(CGM.getTypes().ConvertType(DestType));
tools/clang/lib/CodeGen/CGExprScalar.cpp 1587 return llvm::UndefValue::get(CGF.ConvertType(E->getType()));
1617 Value* NewV = llvm::UndefValue::get(RTy);
1636 indices.push_back(llvm::UndefValue::get(CGF.Int32Ty));
1761 return llvm::UndefValue::get(I32Ty);
1805 llvm::Value *V = llvm::UndefValue::get(VType);
1827 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty));
1838 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty));
1883 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty));
1897 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty));
1899 Init = Builder.CreateShuffleVector(Init, llvm::UndefValue::get(VVT),
1907 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty));
1916 VIsUndefShuffle = isa<llvm::UndefValue>(Init);
4180 Result = llvm::UndefValue::get(CGF.ConvertType(E->getType()));
4306 return llvm::UndefValue::get(ArgTy);
4330 llvm::Value *UnV = llvm::UndefValue::get(Src->getType());
4336 Args.push_back(llvm::UndefValue::get(CGF.Int32Ty));
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 1605 llvm::Value *Undef = llvm::UndefValue::get(CGF.Int32Ty);
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp 137 Address(llvm::UndefValue::get(
tools/clang/lib/CodeGen/CodeGenFunction.cpp 394 PN->replaceAllUsesWith(llvm::UndefValue::get(PN->getType()));
553 llvm::ConstantAsMetadata::get(llvm::UndefValue::get(
835 llvm::Value *Undef = llvm::UndefValue::get(Int32Ty);
tools/clang/lib/CodeGen/CodeGenModule.cpp 364 Alias->replaceAllUsesWith(llvm::UndefValue::get(Alias->getType()));
3898 Init = llvm::UndefValue::get(getTypes().ConvertType(ASTTy));
3926 Init = llvm::UndefValue::get(getTypes().ConvertType(T));
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp 117 dummy->replaceAllUsesWith(llvm::UndefValue::get(dummy->getType()));
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 768 {CastedNonVirtualFn, llvm::UndefValue::get(CGF.IntPtrTy)});
1980 RValue Undef = RValue::get(llvm::UndefValue::get(T));
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 331 llvm::UndefValue::get(CGM.IntTy));
3272 Dst = llvm::UndefValue::get(ConvertMemberPointerType(DstTy));
tools/clang/lib/CodeGen/TargetInfo.cpp 8396 return Address(llvm::UndefValue::get(ArgPtrTy), TypeInfo.second);
8735 Val = Address(llvm::UndefValue::get(ArgPtrTy), TypeAlign);
tools/llvm-diff/DifferenceEngine.cpp 401 if (isa<ConstantPointerNull>(L) || isa<UndefValue>(L) || isa<ConstantAggregateZero>(L))
tools/llvm-reduce/deltas/ReduceArguments.cpp 68 VMap[&A] = UndefValue::get(A.getType());
75 I->replaceAllUsesWith(UndefValue::get(I->getType()));
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp 121 I.replaceAllUsesWith(UndefValue::get(I.getType()));
tools/llvm-reduce/deltas/ReduceFunctions.cpp 44 Call->replaceAllUsesWith(UndefValue::get(Call->getType()));
47 F.replaceAllUsesWith(UndefValue::get(F.getType()));
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp 42 GV.replaceAllUsesWith(UndefValue::get(GV.getType()));
48 Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
tools/llvm-reduce/deltas/ReduceInstructions.cpp 40 Inst.replaceAllUsesWith(UndefValue::get(Inst.getType()));
tools/llvm-stress/llvm-stress.cpp 219 return UndefValue::get(Tp);
252 return UndefValue::get(Tp);
263 return UndefValue::get(pickPointerType());
274 return UndefValue::get(pickVectorType());
508 CI = UndefValue::get(I32);
tools/polly/lib/Analysis/ScopDetection.cpp 597 if (isa<UndefValue>(ICmp->getOperand(0)) ||
598 isa<UndefValue>(ICmp->getOperand(1)))
656 if (isa<UndefValue>(Condition))
1062 if (isa<UndefValue>(BV))
tools/polly/lib/CodeGen/BlockGenerators.cpp 1027 Value *Vector = UndefValue::get(VectorType::get(Old->getType(), Width));
1110 Value *Vector = UndefValue::get(VectorType);
1280 Value *Vector = UndefValue::get(VectorType);
tools/polly/lib/CodeGen/IslExprBuilder.cpp 725 V = UndefValue::get(getType(Expr));
tools/polly/lib/CodeGen/IslNodeBuilder.cpp 1060 if (Address && SE.getUnknown(UndefValue::get(Address->getType())) ==
1071 V = UndefValue::get(ParamSCEV->getType());
1082 V = UndefValue::get(ParamSCEV->getType());
1307 PreAccInst = UndefValue::get(AccInstTy);
tools/polly/lib/Support/SCEVValidator.cpp 438 if (isa<UndefValue>(V)) {
unittests/Analysis/BranchProbabilityInfoTest.cpp 72 auto *Undef = UndefValue::get(I32);
72 auto *Undef = UndefValue::get(I32);
unittests/Analysis/MemorySSATest.cpp 713 B.CreateCondBr(UndefValue::get(Type::getInt1Ty(C)), IfThen, IfEnd);
unittests/Analysis/PhiValuesTest.cpp 36 BranchInst::Create(If, Else, UndefValue::get(I1Ty), Entry);
40 Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry);
41 Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry);
42 Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry);
43 Value *Val4 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val4", Entry);
106 BranchInst::Create(If1, Else1, UndefValue::get(I1Ty), Entry);
109 BranchInst::Create(If2, Else2, UndefValue::get(I1Ty), Then);
113 Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry);
114 Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry);
115 Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry);
116 Value *Val4 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val4", Entry);
unittests/Analysis/ScalarEvolutionTest.cpp 125 BranchInst::Create(LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)),
131 PN->addIncoming(UndefValue::get(Ty), LoopBB);
174 LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), LoopBB);
185 I8Ty, UndefValue::get(I8PtrTy), Ci32, "gep2", Br);
187 UndefValue::get(I8PtrTy), CastA, "cmp", Br);
379 Phi->addIncoming(UndefValue::get(Ty), EntryBB);
383 BranchInst::Create(LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)),
776 Builder.CreateCondBr(UndefValue::get(T_int1), L, Post);
1017 LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), LoopBB);
1074 LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), LoopBB);
unittests/Analysis/ValueLatticeTest.cpp 165 auto LV1 = ValueLatticeElement::get(UndefValue::get(I32Ty));
unittests/Analysis/VectorUtilsTest.cpp 80 Value *UndefVec = UndefValue::get(VectorType::get(IRB.getInt8Ty(), 4));
83 Constant *UndefScalar = UndefValue::get(IRB.getInt8Ty());
unittests/FuzzMutate/OperationsTest.cpp 186 SBOp.BuilderFunc({UndefValue::get(Type::getInt1Ty(Ctx))}, RI);
297 GEPOp.BuilderFunc({UndefValue::get(Int8PtrTy), ConstantInt::get(Int32Ty, 0)},
346 Constant *SVal = UndefValue::get(StructTy);
347 Constant *OVal = UndefValue::get(OpaqueTy);
348 Constant *AVal = UndefValue::get(ArrayTy);
349 Constant *ZAVal = UndefValue::get(ZeroSizedArrayTy);
350 Constant *VVal = UndefValue::get(VectorTy);
unittests/IR/AsmWriterTest.cpp 27 auto Undef = UndefValue::get(Ty);
unittests/IR/BasicBlockTest.cpp 61 PN.addIncoming(UndefValue::get(Int32Ty), BB1.get());
62 PN.addIncoming(UndefValue::get(Int32Ty), BB2.get());
unittests/IR/ConstantsTest.cpp 30 Constant* Undef = UndefValue::get(Int1);
219 Constant *Undef16 = UndefValue::get(Int16Ty);
220 Constant *Undef64 = UndefValue::get(Int64Ty);
221 Constant *UndefV16 = UndefValue::get(P6->getType());
unittests/IR/IRBuilderTest.cpp 137 ArgTys.push_back(UndefValue::get(DstVecTy));
138 ArgTys.push_back(UndefValue::get(PredTy));
139 ArgTys.push_back(UndefValue::get(SrcVecTy));
156 ArgTys.push_back(UndefValue::get(PtrToVecTy));
157 ArgTys.push_back(UndefValue::get(Builder.getInt32Ty()));
158 ArgTys.push_back(UndefValue::get(PredTy));
159 ArgTys.push_back(UndefValue::get(VecTy));
774 Value *Vec = UndefValue::get(VecTy);
unittests/IR/InstructionsTest.cpp 544 OperandBundleDef OldBundle("before", UndefValue::get(Int32Ty));
573 OperandBundleDef OldBundle("before", UndefValue::get(Int32Ty));
668 Value *V = Builder.CreateGEP(ArrTy, UndefValue::get(PointerType::getUnqual(ArrTy)),
708 SwitchInst::Create(UndefValue::get(Int32Ty), BB0.get(), 3, BB0.get());
771 SwitchInst::Create(UndefValue::get(Int32Ty), BB0.get(), 4, BB0.get());
807 Constant *CU = UndefValue::get(Int32Ty);
unittests/IR/PatternMatch.cpp 920 Value *UndefVec = UndefValue::get(VecTy);
1002 Constant *ScalarUndef = UndefValue::get(ScalarTy);
1003 Constant *VectorUndef = UndefValue::get(VectorTy);
1030 Constant *ScalarUndef = UndefValue::get(ScalarTy);
1031 Constant *VectorUndef = UndefValue::get(VectorTy);
unittests/Transforms/Utils/CloningTest.cpp 177 VMap[A] = UndefValue::get(A->getType());
usr/include/c++/7.4.0/bits/unique_ptr.h 68 default_delete(const default_delete<_Up>&) noexcept { }
72 operator()(_Tp* __ptr) const
74 static_assert(!is_void<_Tp>::value,
76 static_assert(sizeof(_Tp)>0,
122 using type = _Up*;
137 using pointer = typename _Ptr<_Tp, _Dp>::type;
161 typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
163 __uniq_ptr_impl<_Tp, _Dp> _M_t;
166 using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
167 using element_type = _Tp;
252 unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
297 __safe_conversion_up<_Up, _Ep>,
301 operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
1554 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1645 { typedef _Tp& type; };
1650 : public __add_lvalue_reference_helper<_Tp>
utils/unittest/googletest/include/gtest/gtest-printers.h 407 T* p, ::std::ostream* os) {
416 if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {