reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Constants.h
 1296   static UndefValue *get(Type *T);

References

include/llvm/Analysis/ValueLattice.h
  296       return UndefValue::get(Ty);
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/IRBuilder.h
  892     Value *V = UndefValue::get(getCurrentFunctionReturnType());
 2491     Value *Undef = UndefValue::get(VectorType::get(V->getType(), NumElts));
lib/Analysis/ConstantFolding.cpp
  251       Result.append(Ratio, UndefValue::get(DstEltTy));
  566     return UndefValue::get(IntType);
  570     return UndefValue::get(IntType);
  692         return UndefValue::get(Ty);
 1147     return CommonValue ? CommonValue : UndefValue::get(PN->getType());
 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);
lib/Analysis/DomTreeUpdater.cpp
  223       I.replaceAllUsesWith(llvm::UndefValue::get(I.getType()));
lib/Analysis/InstructionSimplify.cpp
  704     return UndefValue::get(Op0->getType());
  903     return UndefValue::get(Ty);
  913         return UndefValue::get(Ty);
 1214     return UndefValue::get(Op0->getType());
 1232     return UndefValue::get(Op0->getType());
 3203     return UndefValue::get(ITy);
 4007     return UndefValue::get(GEPTy);
 4153       return UndefValue::get(Vec->getType());
 4158     return UndefValue::get(Vec->getType());
 4217       return UndefValue::get(Vec->getType()->getVectorElementType());
 4225       return UndefValue::get(Vec->getType()->getVectorElementType());
 4233     return UndefValue::get(Vec->getType()->getVectorElementType());
 4265     return UndefValue::get(PN->getType());
 4370     return UndefValue::get(RetTy);
 4393     Op0 = UndefValue::get(InVecTy);
 4395     Op1 = UndefValue::get(InVecTy);
 5022           {UndefValue::get(ReturnType->getStructElementType(0)),
 5174       return UndefValue::get(F->getReturnType());
 5209     return UndefValue::get(Call->getType());
 5400   return Result == I ? UndefValue::get(I->getType()) : Result;
lib/Analysis/Lint.cpp
  666     return UndefValue::get(V->getType());
lib/Analysis/MemoryBuiltins.cpp
  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()));
lib/Analysis/ValueTracking.cpp
 3195   auto *UndefInt8 = UndefValue::get(Type::getInt8Ty(Ctx));
 3356   Value *To = UndefValue::get(IndexedType);
lib/Analysis/VectorUtils.cpp
  266     return UndefValue::get(VTy->getElementType());
  291       return UndefValue::get(VTy->getElementType());
  692   Constant *Undef = UndefValue::get(Builder.getInt32Ty());
  718     V2 = Builder.CreateShuffleVector(V2, UndefValue::get(VecTy2), ExtMask);
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/CodeGen/Analysis.cpp
  675       CallVal = UndefValue::get(SlotType);
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);
 3967       TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType()));
 6429     UndefValue *UndefVal = UndefValue::get(Val->getType());
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(
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());
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/WinEHPrepare.cpp
  717     PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/ExecutionEngine/ExecutionEngine.cpp
  620               const Constant *ElemUndef = UndefValue::get(ElemTy);
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/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
  530     return UndefValue::get(DestTy);
  619         return UndefValue::get(DestTy);
  793     return UndefValue::get(Val->getType()->getVectorElementType());
  801     return UndefValue::get(Val->getType()->getVectorElementType());
  831     return UndefValue::get(Val->getType());
  838     return UndefValue::get(Val->getType());
  865     return UndefValue::get(VectorType::get(EltTy, MaskNumElts));
  877       Result.push_back(UndefValue::get(EltTy));
  882       InElt = UndefValue::get(EltTy);
 1004       return UndefValue::get(C1->getType());
 1017           return UndefValue::get(C1->getType());
 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);
 1809       return UndefValue::get(ResultTy);
 2174     return UndefValue::get(GEPTy);
lib/IR/Constants.cpp
  902   return UndefValue::get(getType()->getSequentialElementType());
  906   return UndefValue::get(getType()->getStructElementType(Elt));
 1035     return UndefValue::get(Ty);
 1098     return UndefValue::get(ST);
 1138     return UndefValue::get(T);
 2886     return UndefValue::get(getType());
 2926     return UndefValue::get(getType());
lib/IR/Core.cpp
 1025   return wrap(UndefValue::get(unwrap(Ty)));
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());
 1832       NewMask[i] = UndefValue::get(Int32Ty);
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  806     Value *Res = UndefValue::get(ExpectedType);
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/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
  148   BoolUndef = UndefValue::get(Boolean);
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/ARM/ARMCodeGenPrepare.cpp
  565         I->setOperand(i, UndefValue::get(ExtTy));
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
  218   Value *NewValue = UndefValue::get(C->getType());
lib/Target/PowerPC/PPCISelLowering.cpp
 8299           CV[i] = UndefValue::get(Type::getFloatTy(*DAG.getContext()));
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/X86ISelLowering.cpp
 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/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()));
  337       CS->replaceAllUsesWith(UndefValue::get(CS->getType()));
lib/Transforms/IPO/ArgumentPromotion.cpp
  159       I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/IPO/Attributor.cpp
 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/GlobalOpt.cpp
  854       UndefValue::get(GlobalType), GV->getName() + ".body", nullptr,
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()));
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/InstCombineCalls.cpp
  512         ConstantVec.push_back(UndefValue::get(SVT));
  529       ShiftVecAmts.push_back(UndefValue::get(SVT));
  552     return UndefValue::get(ResTy);
  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)};
  938       Indexes[I] = UndefValue::get(MaskEltTy);
  985       Indexes[I] = UndefValue::get(MaskEltTy);
 1007   auto V2 = UndefValue::get(V1->getType());
 1033       Indexes[I] = UndefValue::get(MaskEltTy);
 1044   auto V2 = UndefValue::get(VecTy);
 2481             Arg, UndefValue::get(ArgType), SubVecMask);
 3184         Value *Result = UndefValue::get(Op0->getType());
 3373       return replaceInstUsesWith(CI, UndefValue::get(II->getType()));
 3399         return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 3441         return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 3493       return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 3505       return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 3585           II->setArgOperand(I + 2, UndefValue::get(Src->getType()));
 3825     II->setOperand(0, UndefValue::get(Old->getType()));
 4006       return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 4325         replaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType()));
 4344       replaceInstUsesWith(Call, UndefValue::get(Call.getType()));
 4671       NV = UndefValue::get(Caller->getType());
lib/Transforms/InstCombine/InstCombineCasts.cpp
  644     Constant *NarrowUndef = UndefValue::get(Trunc.getType());
  676     UndefValue *NarrowUndef = UndefValue::get(DestTy);
 1856     V2 = UndefValue::get(SrcTy);
 2364       return InsertElementInst::Create(UndefValue::get(DestTy), Elem,
lib/Transforms/InstCombine/InstCombineCompares.cpp
 5372     return new ShuffleVectorInst(NewCmp, UndefValue::get(NewCmp->getType()), M);
lib/Transforms/InstCombine/InstCombineInternal.h
  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
  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);
 1004     StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()),
 1007     return replaceInstUsesWith(LI, UndefValue::get(LI.getType()));
 1345   IC.replaceInstUsesWith(*LI, UndefValue::get(LI->getType()));
 1456       SI.setOperand(0, UndefValue::get(Val->getType()));
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  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/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);
 1105     return UndefValue::get(V->getType());
 1117     Constant *Undef = UndefValue::get(EltTy);
 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()));
  452     Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
  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),
  614     Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
  616         PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr);
  800   UndefValue *UndefVec = UndefValue::get(VecTy);
  809       Mask[i] = UndefValue::get(Int32Ty);
  845   return new ShuffleVectorInst(Op0, UndefValue::get(Op0->getType()), NewMask);
 1013         Values[I] = UndefValue::get(InsElt.getType()->getElementType());
 1090           LR.second = UndefValue::get(LR.first->getType());
 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());
 1710   Value *Undef = UndefValue::get(X->getType());
 1858   SmallVector<Constant *, 16> NewMask(Mask.size(), UndefValue::get(I32Ty));
 1905         Elts.push_back(UndefValue::get(Int32Ty));
 1912         Elts.push_back(UndefValue::get(Int32Ty));
 1919     SVI.setOperand(1, UndefValue::get(RHS->getType()));
 2029                                                 UndefValue::get(Int32Ty));
 2032         V = Builder.CreateShuffleVector(V, UndefValue::get(V->getType()),
 2228         Elts.push_back(UndefValue::get(Int32Ty));
 2234       newRHS = UndefValue::get(newLHS->getType());
lib/Transforms/InstCombine/InstructionCombining.cpp
 1445     return new ShuffleVectorInst(XY, UndefValue::get(XY->getType()), M);
 1505     UndefValue *UndefScalar = UndefValue::get(C->getType()->getScalarType());
 2406         replaceInstUsesWith(*I, UndefValue::get(I->getType()));
 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/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/GVNSink.cpp
  623         PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/Transforms/Scalar/IndVarSimplify.cpp
  482   Incr->replaceAllUsesWith(UndefValue::get(Incr->getType()));
lib/Transforms/Scalar/InferAddressSpaces.cpp
  429   return UndefValue::get(NewPtrTy);
lib/Transforms/Scalar/JumpThreading.cpp
 1333       AvailableVal = UndefValue::get(LoadI->getType());
 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()));
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  371         PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/Transforms/Scalar/LoopUnswitch.cpp
 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/NewGVN.cpp
 1303       return UndefValue::get(V->getType());
 1473     return createConstantExpression(UndefValue::get(LoadType));
 1479       return createConstantExpression(UndefValue::get(LoadType));
 1501     return createConstantExpression(UndefValue::get(LI->getType()));
 1511         return createConstantExpression(UndefValue::get(LI->getType()));
 1769       return createConstantExpression(UndefValue::get(I->getType()));
 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()));
lib/Transforms/Scalar/Reassociate.cpp
  759       Constant *Undef = UndefValue::get(I->getType());
  981   Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op.
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  971         UndefValue *Undef = UndefValue::get(SI->getType());
  975         UndefValue *Undef = UndefValue::get(EE->getVectorOperand()->getType());
  980         UndefValue *VecUndef = UndefValue::get(IE->getOperand(0)->getType());
  981         UndefValue *ScalarUndef = UndefValue::get(IE->getOperand(1)->getType());
  987         UndefValue *VecUndef = UndefValue::get(SV->getOperand(0)->getType());
 2485     II->replaceAllUsesWith(UndefValue::get(II->getType()));
lib/Transforms/Scalar/SCCP.cpp
 1765                               : UndefValue::get(ST->getElementType(i)));
 1773     Const = IV.isConstant() ? IV.getConstant() : UndefValue::get(V->getType());
 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
  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/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/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
 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
  493     Value *Undef = UndefValue::get(I->getType());
  535       I->replaceAllUsesWith(UndefValue::get(I->getType()));
  677     if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
 1305     DV = UndefValue::get(DV->getType());
 1886       Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
 1932       BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
 2254         TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
lib/Transforms/Utils/LoopRotationUtils.cpp
  165         NewVal = UndefValue::get(OrigHeaderVal->getType());
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());
  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
 2941           AlternativeV ? AlternativeV : UndefValue::get(V->getType()), PredBB);
 4211       BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
lib/Transforms/Utils/SimplifyIndVar.cpp
  608   TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
lib/Transforms/Utils/ValueMapper.cpp
  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());
 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
 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),
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);
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));
 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);
  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));
 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-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/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);
unittests/Analysis/BranchProbabilityInfoTest.cpp
   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);
  293   EXPECT_TRUE(GEPOp.SourcePreds[0].matches({}, UndefValue::get(Int8PtrTy)));
  294   EXPECT_TRUE(GEPOp.SourcePreds[1].matches({UndefValue::get(Int8PtrTy)},
  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);
  389   EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int8PtrTy)));
  390   EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int32Ty)));
  391   EXPECT_FALSE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int64Ty)));
  392   EXPECT_FALSE(IVOp.SourcePreds[2].matches({SVal, UndefValue::get(Int32Ty)},
  394   EXPECT_TRUE(IVOp.SourcePreds[2].matches({SVal, UndefValue::get(Int32Ty)},
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());
unittests/Transforms/Utils/SSAUpdaterBulkTest.cpp
  193   EXPECT_EQ(UpdatePhi->getIncomingValueForBlock(IfBB), UndefValue::get(I32Ty));