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

Declarations

include/llvm/IR/Constant.h
  166   static Constant *getNullValue(Type* Ty);

References

examples/BrainF/BrainF.cpp
  164       Constant *zero_32 = Constant::getNullValue(IntegerType::getInt32Ty(C));
examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp
  984   return Constant::getNullValue(Type::getDoubleTy(*TheContext));
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
  984   return Constant::getNullValue(Type::getDoubleTy(*TheContext));
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp
  983   return Constant::getNullValue(Type::getDoubleTy(TheContext));
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp
  969   return Constant::getNullValue(Type::getDoubleTy(TheContext));
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
  993   return Constant::getNullValue(Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter5/toy.cpp
  765   return Constant::getNullValue(Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter6/toy.cpp
  877   return Constant::getNullValue(Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter7/toy.cpp
  989   return Constant::getNullValue(Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter8/toy.cpp
  988   return Constant::getNullValue(Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter9/toy.cpp
 1153   return Constant::getNullValue(Type::getDoubleTy(TheContext));
include/llvm/Analysis/Utils/Local.h
   32   Value *Result = Constant::getNullValue(IntPtrTy);
include/llvm/IR/IRBuilder.h
 2401     return CreateICmpEQ(Arg, Constant::getNullValue(Arg->getType()),
 2407     return CreateICmpNE(Arg, Constant::getNullValue(Arg->getType()),
include/llvm/Transforms/Utils/Evaluator.h
   51         Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType()));
lib/Analysis/ConstantFolding.cpp
  101     return Constant::getNullValue(DestTy);
  205     Constant *Zero = Constant::getNullValue(DstEltTy);
  216           Src = Constant::getNullValue(C->getType()->getVectorElementType());
  530         return Constant::getNullValue(LoadTy);
  536           return Constant::getNullValue(LoadTy);
  690         return Constant::getNullValue(Ty);
 1224         Constant *Null = Constant::getNullValue(C->getType());
 1234           Constant *Null = Constant::getNullValue(C->getType());
 1705       return Constant::getNullValue(Ty);
 2144              Constant::getNullValue(Ty->getStructElementType(1))});
 2152         return Constant::getNullValue(Ty);
 2198         return Constant::getNullValue(Ty);
 2211         return Constant::getNullValue(Ty);
lib/Analysis/InstructionSimplify.cpp
  591     return Constant::getNullValue(Op0->getType());
  712     return Constant::getNullValue(Op0->getType());
  718       return Constant::getNullValue(Op0->getType());
  725         return Constant::getNullValue(Op0->getType());
  839     return Constant::getNullValue(Op0->getType());
  920     return Constant::getNullValue(Ty);
  925     return Constant::getNullValue(Op0->getType());
  930     return IsDiv ? ConstantInt::get(Ty, 1) : Constant::getNullValue(Ty);
  940     return IsDiv ? Op0 : Constant::getNullValue(Ty);
 1035     return Constant::getNullValue(Op0->getType());
 1044       return Constant::getNullValue(Op0->getType());
 1060     return Constant::getNullValue(Op0->getType());
 1087     return Constant::getNullValue(Op0->getType());
 1142     return ConstantInt::getNullValue(Op0->getType());
 1146     return ConstantInt::getNullValue(Op0->getType());
 1202     return Constant::getNullValue(Op0->getType());
 1253     return Constant::getNullValue(Op0->getType());
 1258     return isExact ? Op0 : Constant::getNullValue(Op0->getType());
 1280     return isNSW || isNUW ? Op0 : Constant::getNullValue(Op0->getType());
 1910     return Constant::getNullValue(Op0->getType());
 1918     return Constant::getNullValue(Op0->getType());
 1927     return Constant::getNullValue(Op0->getType());
 1979     return Constant::getNullValue(Op1->getType());
 1982     return Constant::getNullValue(Op0->getType());
 2218     return Constant::getNullValue(Op0->getType());
 2700                                       Constant::getNullValue(RHS->getType()), Q,
 2707               SimplifyICmpInst(Pred, Constant::getNullValue(LHS->getType()),
 3383                                               Constant::getNullValue(SrcTy),
 3392                                               Constant::getNullValue(SrcTy),
 3441         Constant *Null = Constant::getNullValue(GLHS->getPointerOperandType());
 4029             return Constant::getNullValue(GEPTy);
 4528       return ConstantFP::getNullValue(Op0->getType());
 4532       return ConstantFP::getNullValue(Op0->getType());
 4581     return Constant::getNullValue(Op0->getType());
 4608     return ConstantFP::getNullValue(Op0->getType());
 4612     return ConstantFP::getNullValue(Op1->getType());
 4673     return ConstantFP::getNullValue(Op0->getType());
 4716       return ConstantFP::getNullValue(Op0->getType());
 5011       return Constant::getNullValue(ReturnType);
 5023            Constant::getNullValue(ReturnType->getStructElementType(1))});
 5031       return Constant::getNullValue(ReturnType);
 5035       return Constant::getNullValue(ReturnType);
 5061       return Constant::getNullValue(ReturnType);
 5066       return Constant::getNullValue(ReturnType);
lib/Analysis/ScalarEvolutionExpander.cpp
  459                     Constant::getNullValue(Ty) :
  493           Constant::getNullValue(Type::getInt32Ty(Ty->getContext())));
  825       Prod = InsertBinop(Instruction::Sub, Constant::getNullValue(Ty), Prod,
 1590         CanonicalIV->addIncoming(Constant::getNullValue(Ty), HP);
 2363   Value *Check = ConstantInt::getNullValue(BoolType);
lib/Analysis/ValueTracking.cpp
 3216     return Constant::getNullValue(Type::getInt8Ty(Ctx));
lib/AsmParser/LLParser.cpp
 5210     V = Constant::getNullValue(Ty);
 5215     V = Constant::getNullValue(Ty);
 5268     C = Constant::getNullValue(Ty);
lib/Bitcode/Reader/BitcodeReader.cpp
 2382       V = Constant::getNullValue(CurTy);
lib/CodeGen/AtomicExpandPass.cpp
  438   Constant *DummyVal = Constant::getNullValue(Ty);
lib/CodeGen/CodeGenPrepare.cpp
 1752   Value *Zero = Constant::getNullValue(Ty);
 3213       Map[V] = Constant::getNullValue(CommonType);
 4840       SunkAddr = Constant::getNullValue(Addr->getType());
 4997       SunkAddr = Constant::getNullValue(Addr->getType());
lib/CodeGen/GlobalISel/IRTranslator.cpp
  349         Res, getOrCreateVReg(*Constant::getNullValue(U.getType())));
lib/CodeGen/IntrinsicLowering.cpp
  270        CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
  317       CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
lib/CodeGen/MIRParser/MIParser.cpp
 2326     Constant *C = AllZero ? Constant::getNullValue(VT) : UndefValue::get(VT);
lib/CodeGen/SelectionDAG/FastISel.cpp
  414         Constant::getNullValue(DL.getIntPtrType(V->getContext())));
lib/CodeGen/ShadowStackGCLowering.cpp
  212         Constant::getNullValue(StackEntryPtrTy), "llvm_gc_root_chain");
  214     Head->setInitializer(Constant::getNullValue(StackEntryPtrTy));
lib/IR/AutoUpgrade.cpp
  860         Constant::getNullValue(IRB.getInt8PtrTy()));
  880   Value *Res = Constant::getNullValue(VecTy);
  914   Value *Res = Constant::getNullValue(VecTy);
 1003     return llvm::Constant::getNullValue(Op0->getType());
 1010     Op0 = llvm::Constant::getNullValue(Op0->getType());
 1166     return Constant::getNullValue(Ty); // FALSE
 1255   Value *Zero = llvm::Constant::getNullValue(Ty);
 1325                                       Constant::getNullValue(Vec->getType()),
 1338     Cmp = Constant::getNullValue(llvm::VectorType::get(Builder.getInt1Ty(), NumElts));
 1830       Value *Zero = llvm::Constant::getNullValue(Ty);
 1901         C = ConstantInt::getNullValue(Builder.getInt16Ty());
 2008       Value *Zero = llvm::Constant::getNullValue(Op->getType());
 2340                                         Constant::getNullValue(MaskTy));
 3081       Rep = Builder.CreateInsertElement(Constant::getNullValue(CI->getType()),
 3128       Value *PassThru = IsMaskZ ? Constant::getNullValue(Rep->getType()) :
 3185       Value *PassThru = IsMaskZ ? llvm::Constant::getNullValue(CI->getType()) :
 3261       Value *PassThru = IsMaskZ ? llvm::Constant::getNullValue(CI->getType()) :
 3428           Arg, llvm::Constant::getNullValue(Arg->getType()), "abs.cond");
 3511       Args.push_back(Constant::getNullValue(CI->getOperand(0)->getType()));
 3755                              Constant::getNullValue(Type::getInt64Ty(Context))),
 3760   Metadata *Elts[] = {&MD, &MD, ConstantAsMetadata::get(Constant::getNullValue(
lib/IR/ConstantFold.cpp
   48   if (CV->isNullValue()) return Constant::getNullValue(DstTy);
  114           Constant::getNullValue(Type::getInt32Ty(DPTy->getContext()));
  146         return Constant::getNullValue(DestTy);
  279       return Constant::getNullValue(
  302       return Constant::getNullValue(
  319       return Constant::getNullValue(IntegerType::get(CE->getContext(),
  365         return ConstantExpr::getNullValue(DestTy);
  529       return Constant::getNullValue(DestTy);
  535     return Constant::getNullValue(DestTy);
 1000         return Constant::getNullValue(C1->getType());
 1008       return Constant::getNullValue(C1->getType());   // undef & X -> 0
 1020       return Constant::getNullValue(C1->getType());
 1032       return Constant::getNullValue(C1->getType());
 1042       return Constant::getNullValue(C1->getType());
 1055       return Constant::getNullValue(C1->getType());
 1065       return Constant::getNullValue(C1->getType());
 1074       return Constant::getNullValue(C1->getType());
 1123         return Constant::getNullValue(CI2->getType());        // X % 1 == 0
 1179               return Constant::getNullValue(CI2->getType());
 1652                                     Constant::getNullValue(CE1Op0->getType()),
 1796     return Constant::getNullValue(ResultTy);
 1883     case FCmpInst::FCMP_FALSE: return Constant::getNullValue(ResultTy);
 2210       return Constant::getNullValue(GEPTy);
lib/IR/Constants.cpp
  806   return Constant::getNullValue(Ty);
  869   return Constant::getNullValue(getType()->getSequentialElementType());
  873   return Constant::getNullValue(getType()->getStructElementType(Elt));
 1402     return getNullValue(this->getType()->getVectorElementType());
 1932       Ty, Constant::getNullValue(PointerType::getUnqual(Ty)), GEPIdx);
 1941   Constant *NullPtr = Constant::getNullValue(AligningTy->getPointerTo(0));
 1963       Ty, Constant::getNullValue(PointerType::getUnqual(Ty)), GEPIdx);
 2348         return Constant::getNullValue(Ty);
 2373       return Constant::getNullValue(Ty);
 2395     return Constant::getNullValue(Ty);
lib/IR/Core.cpp
 1017   return wrap(Constant::getNullValue(unwrap(Ty)));
 3155     ParentPad = wrap(Constant::getNullValue(Ty));
 3171     ParentPad = wrap(Constant::getNullValue(Ty));
lib/IR/SafepointIRVerifier.cpp
  364       if (V != Constant::getNullValue(V->getType()))
lib/Target/AArch64/AArch64StackTagging.cpp
  203       Value *Store1 = I1 == Out.end() ? Constant::getNullValue(IRB.getInt64Ty())
  205       Value *Store2 = I2 == Out.end() ? Constant::getNullValue(IRB.getInt64Ty())
  456       IRB.CreateCall(IRG_SP, {Constant::getNullValue(IRB.getInt64Ty())});
  624         IRB.CreateCall(TagP, {Constant::getNullValue(Info.AI->getType()), Base,
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
  123           /*Initializer=*/Constant::getNullValue(T), RuntimeHandle,
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  820     Constant::getNullValue(Type::getInt32Ty(Mod->getContext())),
lib/Target/NVPTX/NVPTXISelLowering.cpp
 2589           Value *srcValue = Constant::getNullValue(PointerType::get(
lib/Target/PowerPC/PPCBoolRetToInt.cpp
  101       Value *Zero = Constant::getNullValue(IntTy);
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
  169                                 Constant::getNullValue(Res->getType()));
lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
  114     auto *Val = cast<ConstantFP>(Constant::getNullValue(
  119     auto *Val = cast<ConstantFP>(Constant::getNullValue(
lib/Target/X86/X86FastISel.cpp
  661     Val = Constant::getNullValue(DL.getIntPtrType(Val->getContext()));
 1399     Op1 = Constant::getNullValue(DL.getIntPtrType(Op0->getContext()));
lib/Target/X86/X86ISelLowering.cpp
18033   Value *Ptr = Constant::getNullValue(Type::getInt8PtrTy(*DAG.getContext(),
18175     Value *Ptr = Constant::getNullValue(Subtarget.is64Bit()
lib/Target/X86/X86InstrInfo.cpp
 5339                                     Constant::getNullValue(Ty);
lib/Target/X86/X86WinEHState.cpp
  435       Constant::getNullValue(LinkTy->getPointerTo()->getPointerTo(257));
  454       Constant::getNullValue(LinkTy->getPointerTo()->getPointerTo(257));
lib/Transforms/Coroutines/CoroFrame.cpp
 1272   auto InitialValue = Constant::getNullValue(ValueTy);
lib/Transforms/IPO/GlobalOpt.cpp
  334           SubInit = Constant::getNullValue(GEP->getResultElementType());
  548   Constant *NullInt =Constant::getNullValue(Type::getInt32Ty(GV->getContext()));
 1209                               Constant::getNullValue(NPtr->getType()),
 1305         Constant::getNullValue(PFieldTy), GV->getName() + ".f" + Twine(FieldNo),
 1340                              Constant::getNullValue(FieldMallocs[i]->getType()),
 1368                               Constant::getNullValue(GVVal->getType()));
 1378     new StoreInst(Constant::getNullValue(GVVal->getType()), FieldGlobals[i],
 1416       Constant *Null = Constant::getNullValue(ValTy);
 2900     CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
lib/Transforms/IPO/LowerTypeTests.cpp
 1272   GV->setInitializer(Constant::getNullValue(GV->getValueType()));
 1305                             Constant::getNullValue(F->getType())),
 1306       JT, Constant::getNullValue(F->getType()));
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1173         Constant::getNullValue(Target.Fn->getFunctionType()->getParamType(0)));
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 2001     Value *Cmp = Builder.CreateICmpSLT(A, ConstantInt::getNullValue(Ty));
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  656     Value *Zero = Constant::getNullValue(A->getType());
 1957     return SelectInst::Create(A, Op1, Constant::getNullValue(I.getType()));
 1960     return SelectInst::Create(A, Op0, Constant::getNullValue(I.getType()));
 1972       return SelectInst::Create(NewICmpInst, X, ConstantInt::getNullValue(Ty));
 2831       Value *Zero = ConstantInt::getNullValue(LHS0->getType());
 3231     Value *Cmp = Builder.CreateICmpSLT(A, ConstantInt::getNullValue(Ty));
lib/Transforms/InstCombine/InstCombineCalls.cpp
  130     MI->setLength(Constant::getNullValue(MI->getLength()->getType()));
  223   MI->setLength(Constant::getNullValue(MemOpLength->getType()));
  240     MI->setLength(Constant::getNullValue(MI->getLength()->getType()));
  279     MI->setLength(Constant::getNullValue(LenC->getType()));
  515         ConstantVec.push_back(ConstantInt::getNullValue(SVT));
  618     return Constant::getNullValue(ResTy);
  634   Res = Builder.CreateICmpSLT(Res, Constant::getNullValue(IntegerVecTy));
  957   auto V2 = Constant::getNullValue(VecTy);
 1301   Constant *ZeroVec = Constant::getNullValue(II.getType());
 1432   auto *V2 = Constant::getNullValue(V1->getType());
 3524         return replaceInstUsesWith(*II, ConstantInt::getNullValue(Ty));
 3724       II->setArgOperand(1, ConstantInt::getNullValue(Src1->getType()));
 4333           Constant::getNullValue(CalleeF->getType()));
 4588     Args.push_back(Constant::getNullValue(FT->getParamType(i)));
lib/Transforms/InstCombine/InstCombineCasts.cpp
  724     Value *Zero = Constant::getNullValue(Src->getType());
  770       return replaceInstUsesWith(CI, Constant::getNullValue(DestTy));
 1263                        ConstantInt::getNullValue(CI.getType());
 1864     V2 = Constant::getNullValue(SrcTy);
 2020   Value *Result = Constant::getNullValue(CI.getType());
 2365                      Constant::getNullValue(Type::getInt32Ty(CI.getContext())));
 2397                      Constant::getNullValue(Type::getInt32Ty(CI.getContext())));
lib/Transforms/InstCombine/InstCombineCompares.cpp
  657   NewInsts[Base] = ConstantInt::getNullValue(IndexType);
  767   Constant *Index = ConstantInt::getNullValue(IndexType);
  874                         Constant::getNullValue(Offset->getType()));
 1183     return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType()));
 1234     return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType()));
 1388                           X, ConstantInt::getNullValue(XTy));
 1590                           ConstantInt::getNullValue(X->getType()));
 1741       Constant *Zero = Constant::getNullValue(X->getType());
 1871       return new ICmpInst(NewPred, Trunc, Constant::getNullValue(NTy));
 1904       return new ICmpInst(Pred, A, ConstantInt::getNullValue(OrOp0->getType()));
 1916         Builder.CreateICmp(Pred, P, ConstantInt::getNullValue(P->getType()));
 1918         Builder.CreateICmp(Pred, Q, ConstantInt::getNullValue(Q->getType()));
 1954                         Constant::getNullValue(Mul->getType()));
 2071       return new ICmpInst(Pred, X, Constant::getNullValue(ShType));
 2118                         And, Constant::getNullValue(ShType));
 2129                           And, Constant::getNullValue(ShType));
 2138                           And, Constant::getNullValue(ShType));
 2286     return new ICmpInst(ICmpInst::ICMP_SGT, And, ConstantInt::getNullValue(Ty));
 2748         return new ICmpInst(Pred, X, ConstantInt::getNullValue(X->getType()));
 2765         return new ICmpInst(Pred, X, ConstantInt::getNullValue(X->getType()));
 2925                             Constant::getNullValue(BO->getType()));
 2995                             BO, Constant::getNullValue(RHS->getType()));
 3006         return new ICmpInst(Pred, BOp0, Constant::getNullValue(RHS->getType()));
 3042       Cmp.setOperand(1, ConstantInt::getNullValue(Ty));
 3073           IsZero ? Constant::getNullValue(Ty) : Constant::getAllOnesValue(Ty);
 3085           Cmp.getPredicate(), Or, Constant::getNullValue(Ty)));
 3147                              ConstantInt::getNullValue(Ty));
 3156                              ConstantInt::getNullValue(Ty));
 3182           Constant::getNullValue(LHSI->getOperand(0)->getType()));
 3246           Constant::getNullValue(LHSI->getOperand(0)->getType()));
 3593                             Constant::getNullValue(WidestTy));
 3718                         Constant::getNullValue(Op1->getType()));
 3723     return new ICmpInst(Pred, Constant::getNullValue(Op0->getType()),
 3858     return new ICmpInst(Pred, Constant::getNullValue(Op1->getType()), B);
 3861     return new ICmpInst(Pred, D, Constant::getNullValue(Op0->getType()));
 3922                           Constant::getNullValue(SRem->getType()));
 4014       auto *Zero = Constant::getNullValue(BO0->getType());
 4131       return new ICmpInst(Pred, OtherVal, Constant::getNullValue(A->getType()));
 4159     return new ICmpInst(Pred, OtherVal, Constant::getNullValue(A->getType()));
 4189       I.setOperand(1, Constant::getNullValue(Op1->getType()));
 4234       return new ICmpInst(Pred, And, Constant::getNullValue(Cst1->getType()));
 4387   return new ICmpInst(CmpInst::ICMP_SLT, X, Constant::getNullValue(SrcTy));
 5047                             Constant::getNullValue(Op1->getType()));
 5069                             Constant::getNullValue(Op1->getType()));
 5353   Constant *Zero = Constant::getNullValue(NewX->getType());
 5464       Constant *Zero = Constant::getNullValue(Op0->getType());
 5982       I.setOperand(1, Constant::getNullValue(OpType));
 5991       I.setOperand(1, Constant::getNullValue(OpType));
 6000       I.setOperand(0, ConstantFP::getNullValue(OpType));
 6004       I.setOperand(1, ConstantFP::getNullValue(OpType));
 6032     I.setOperand(1, ConstantFP::getNullValue(OpType));
lib/Transforms/InstCombine/InstCombineInternal.h
  279         SafeC = Constant::getNullValue(EltTy);
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  213       Value *NullIdx = Constant::getNullValue(IdxTy);
  226     return IC.replaceInstUsesWith(AI, Constant::getNullValue(AI.getType()));
 1005                                   Constant::getNullValue(Op->getType()), &LI);
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
 1388     return SelectInst::Create(Cmp, ConstantInt::getNullValue(Ty), Op0);
lib/Transforms/InstCombine/InstCombineSelect.cpp
 1070     Cmp.setOperand(1, ConstantInt::getNullValue(Cmp.getOperand(0)->getType()));
 1230     C1 = ConstantInt::getNullValue(Sel0.getType());
 1788       Constant *Zero = ConstantInt::getNullValue(SelType);
lib/Transforms/InstCombine/InstCombineShifts.cpp
  498       return Constant::getNullValue(ShType);
  954       return SelectInst::Create(X, NewC, ConstantInt::getNullValue(Ty));
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  737           return ConstantInt::getNullValue(VTy);
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  840   Constant *Zero = ConstantInt::getNullValue(I32Ty);
lib/Transforms/InstCombine/InstructionCombining.cpp
 1671         *I = Constant::getNullValue(NewIndexType);
 2039         Value *Idx[2] = { Constant::getNullValue(IdxType), GEP.getOperand(1) };
 2118             Value *Off[2] = {Constant::getNullValue(IndTy), NewIdx};
 2874           Constant::getNullValue(FilterType->getElementType());
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1699   Value *CmpVal = Constant::getNullValue(ShadowTy);
 2283         NewTy, G->getInitializer(), Constant::getNullValue(RightRedZoneTy));
 2333     Constant *ODRIndicator = ConstantExpr::getNullValue(IRB.getInt8PtrTy());
 2355                              Constant::getNullValue(IRB.getInt8Ty()),
 2952   IRB.CreateStore(Constant::getNullValue(IntptrTy), DynamicAllocaLayout);
 3087         Constant::getNullValue(IRB.getInt32Ty()));
 3103         IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy));
 3205           IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy));
 3222             Constant::getNullValue(IRBPoison.getInt8Ty()),
 3266   Value *Zero = Constant::getNullValue(IntptrTy);
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  804                            Constant::getNullValue(CounterTy),
 1012                : Constant::getNullValue(Builder.getInt8PtrTy()),
 1215     Constant *Null = Constant::getNullValue(GV->getValueType());
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  842       GetStackPointerFn, {Constant::getNullValue(IRB.getInt32Ty())});
  979                        {Constant::getNullValue(IRB.getInt32Ty())}),
 1395       Constant::getNullValue(Int8Arr0Ty), "hwasan.dummy.global");
 1487                  : Constant::getNullValue(Int8PtrTy),
lib/Transforms/Instrumentation/InstrOrderFile.cpp
   83                            Constant::getNullValue(BufferTy), SymbolName);
   90                            Constant::getNullValue(IdxTy), IndexName);
   94                                 Constant::getNullValue(MapTy), BitMapName);
lib/Transforms/Instrumentation/InstrProfiling.cpp
  783                          Constant::getNullValue(CounterTy),
  805                              Constant::getNullValue(ValuesTy),
  904       Constant::getNullValue(VNodesTy), getInstrProfVNodesVarName());
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1530     return Constant::getNullValue(ShadowTy);
 1570     return Constant::getNullValue(MS.OriginTy);
 1635                   CpShadowPtr, Constant::getNullValue(EntryIRB.getInt8Ty()),
 2233     Value *Zero = Constant::getNullValue(Sc->getType());
 2669             ResultShadow, ConstantInt::getNullValue(EltTy),
 2794         IRB.CreateICmpNE(S1, Constant::getNullValue(T)), T);
 2796         IRB.CreateICmpNE(S2, Constant::getNullValue(T)), T);
 2824     S = IRB.CreateSExt(IRB.CreateICmpNE(S, Constant::getNullValue(ResTy)),
 2840     S = IRB.CreateSExt(IRB.CreateICmpNE(S, Constant::getNullValue(ResTy)),
 2855         IRB.CreateICmpNE(S0, Constant::getNullValue(ResTy)), ResTy);
 2975             IRB.CreateICmpNE(Acc, Constant::getNullValue(Acc->getType())),
 3544                                 ConstantInt::getNullValue(FlatTy));
 3546                                       ConstantInt::getNullValue(FlatTy));
 3917     IRB.CreateMemSet(ShadowPtr, Constant::getNullValue(IRB.getInt8Ty()),
 4067     IRB.CreateMemSet(ShadowPtr, Constant::getNullValue(IRB.getInt8Ty()),
 4079     IRB.CreateMemSet(ShadowPtr, Constant::getNullValue(IRB.getInt8Ty()),
 4236     IRB.CreateMemSet(ShadowPtr, Constant::getNullValue(IRB.getInt8Ty()),
 4248     IRB.CreateMemSet(ShadowPtr, Constant::getNullValue(IRB.getInt8Ty()),
 4503     IRB.CreateMemSet(ShadowPtr, Constant::getNullValue(IRB.getInt8Ty()),
 4516     IRB.CreateMemSet(ShadowPtr, Constant::getNullValue(IRB.getInt8Ty()),
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  648       Constant::getNullValue(ArrayTy), "__sancov_gen_");
  895         IRB.CreateCall(GetFrameAddr, {Constant::getNullValue(Int32Ty)});
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  805                       Constant::getNullValue(Ty),
  826                       Constant::getNullValue(Ty),
lib/Transforms/Scalar/GVN.cpp
  936     Res = AvailableValue::get(Constant::getNullValue(LI->getType()));
 1410                     Constant::getNullValue(Int8Ty->getPointerTo()),
lib/Transforms/Scalar/GuardWidening.cpp
  643       CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())),
lib/Transforms/Scalar/LoopUnswitch.cpp
  767           auto *AllZero = cast<ConstantInt>(Constant::getNullValue(SC->getType()));
lib/Transforms/Scalar/MemCpyOptimizer.cpp
 1056       Ule, ConstantInt::getNullValue(DestSize->getType()), SizeDiff);
lib/Transforms/Scalar/NewGVN.cpp
 1484     return createConstantExpression(Constant::getNullValue(LoadType));
 3702                 Constant::getNullValue(Int8Ty->getPointerTo()),
lib/Transforms/Scalar/Reassociate.cpp
  278   Neg->setOperand(OpNo, Constant::getNullValue(Ty)); // Drop use of op.
  961   Sub->setOperand(0, Constant::getNullValue(Sub->getType())); // Drop use of op.
  962   Sub->setOperand(1, Constant::getNullValue(Sub->getType())); // Drop use of op.
 1143           return Constant::getNullValue(X->getType());
 1165         return Constant::getNullValue(Ops[0].Op->getType());
 1496       return Constant::getNullValue(X->getType());
lib/Transforms/Scalar/Reg2Mem.cpp
   86       Constant::getNullValue(Type::getInt32Ty(F.getContext())),
lib/Transforms/Scalar/SCCP.cpp
 1526           markForcedConstant(&I, Constant::getNullValue(ITy));
 1542         markForcedConstant(&I, Constant::getNullValue(ITy));
 1551         markForcedConstant(&I, Constant::getNullValue(ITy));
 1565           markForcedConstant(&I, Constant::getNullValue(ITy));
 1585         markForcedConstant(&I, Constant::getNullValue(ITy));
 1600         markForcedConstant(&I, Constant::getNullValue(ITy));
 1618         markForcedConstant(&I, Constant::getNullValue(ITy));
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  686     return ConstantInt::getNullValue(UserChain[ChainIndex]->getType());
lib/Transforms/Utils/CodeExtractor.cpp
  934       Idx[0] = Constant::getNullValue(Type::getInt32Ty(header->getContext()));
 1118       Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context));
 1157       Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context));
 1180       SwitchInst::Create(Constant::getNullValue(Type::getInt16Ty(Context)),
 1260       Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context));
 1293                          Constant::getNullValue(OldFnRetTy), TheSwitch);
lib/Transforms/Utils/LoopUtils.cpp
  891           Constant::getNullValue(Src->getType()->getVectorElementType()), Src);
lib/Transforms/Utils/ModuleUtils.cpp
   47                    : Constant::getNullValue(IRB.getInt8PtrTy());
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  308                                        Constant::getNullValue(LI->getType()));
lib/Transforms/Utils/SanitizerStats.cpp
   51       {Constant::getNullValue(Int8PtrTy),
   86           {Constant::getNullValue(Int8PtrTy),
lib/Transforms/Utils/SimplifyLibCalls.cpp
  378     return Constant::getNullValue(CI->getType());
  406     return Constant::getNullValue(CI->getType());
  761     return Constant::getNullValue(CI->getType());
  767       return Constant::getNullValue(CI->getType());
  799     return Constant::getNullValue(CI->getType());
  819     return Constant::getNullValue(CI->getType());
  854                        ConstantInt::getNullValue(StrNCmp->getType()), "cmp");
  874       return Constant::getNullValue(CI->getType());
  909       return Constant::getNullValue(CI->getType());
  981     return Constant::getNullValue(CI->getType());
  991     return Constant::getNullValue(CI->getType());
 1070     return Constant::getNullValue(CI->getType());
 1080     return Constant::getNullValue(CI->getType());
 2210   Value *Cond = B.CreateICmpNE(Op, Constant::getNullValue(ArgType));
 2230   Value *IsNeg = B.CreateICmpSLT(X, Constant::getNullValue(X->getType()));
lib/Transforms/Utils/ValueMapper.cpp
  983       Constant *Null = Constant::getNullValue(VoidPtrTy);
tools/bugpoint-passes/TestPasses.cpp
   62             CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
tools/bugpoint/CrashDebugger.cpp
  475           BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType()));
tools/bugpoint/ExtractFunction.cpp
  105     TheInst->replaceAllUsesWith(Constant::getNullValue(TheInst->getType()));
tools/bugpoint/Miscompilation.cpp
  854             2, Constant::getNullValue(Type::getInt32Ty(F->getContext())));
tools/clang/lib/CodeGen/CGBuiltin.cpp
  441   Value *Zero = llvm::Constant::getNullValue(IntTy);
  923     Value *ArgZero = llvm::Constant::getNullValue(ArgType);
  924     Value *ResZero = llvm::Constant::getNullValue(ResultType);
 1103       ArgValue, llvm::Constant::getNullValue(ArgValue->getType()));
 1333   llvm::Value *Zero = llvm::Constant::getNullValue(OpTy);
 1818     Constant *Zero = llvm::Constant::getNullValue(ArgValue->getType());
 1832         : llvm::Constant::getNullValue(Imag->getType());
 1905     Value *Zero = llvm::Constant::getNullValue(ArgType);
 1962     Value *Zero = llvm::Constant::getNullValue(ArgType);
 2260     Value *Zero = Constant::getNullValue(IntTy);
 2311     Value *IsZero = Builder.CreateFCmpOEQ(V, Constant::getNullValue(Ty),
 2847       Builder.CreateAlignedStore(llvm::Constant::getNullValue(ITy), Ptr,
 2882       Args.add(RValue::get(llvm::Constant::getNullValue(VoidPtrTy)),
 5827     Op = Builder.CreateFCmp(Fp, Op, Constant::getNullValue(OTy));
 5829     Op = Builder.CreateICmp(Ip, Op, Constant::getNullValue(OTy));
 7779         Builder.CreateICmpEQ(Ops[0], llvm::Constant::getNullValue(Int64Ty));
 7879                                 llvm::Constant::getNullValue(Int64Ty));
 9643     return llvm::Constant::getNullValue(Ty); // FALSE
 9698         Cmp, llvm::Constant::getNullValue(Cmp->getType()), Indices);
 9714     Cmp = Constant::getNullValue(
 9741   Value *Zero = Constant::getNullValue(In->getType());
 9767   Value *Zero = llvm::Constant::getNullValue(Ty);
 9868     MaskFalseVal = Constant::getNullValue(Ops[0]->getType());
 9915     Value *PassThru = ZeroMask ? Constant::getNullValue(Res->getType())
10269     return llvm::Constant::getNullValue(ConvertType(E->getType()));
10455                              Constant::getNullValue(Ops[0]->getType()));
11116       return llvm::Constant::getNullValue(ConvertType(E->getType()));
11123       Ops[0] = llvm::Constant::getNullValue(Ops[0]->getType());
11240       return llvm::Constant::getNullValue(ResultType);
11254     Value *Zero = llvm::Constant::getNullValue(VecTy);
11270       return llvm::Constant::getNullValue(ResultType);
11284     Value *Zero = llvm::Constant::getNullValue(VecTy);
11298       return llvm::Constant::getNullValue(Ops[0]->getType());
11306     Value *Zero = llvm::Constant::getNullValue(In->getType());
11320       return llvm::Constant::getNullValue(Ops[0]->getType());
11328     Value *Zero = llvm::Constant::getNullValue(In->getType());
11475     Value *C = llvm::Constant::getNullValue(Ops[0]->getType());
tools/clang/lib/CodeGen/CGCUDANV.cpp
  641           llvm::Constant::getNullValue(HandleValue->getType());
  783     llvm::Constant *Zero = llvm::Constant::getNullValue(HandleValue->getType());
tools/clang/lib/CodeGen/CGCXXABI.cpp
   32   return llvm::Constant::getNullValue(CGM.getTypes().ConvertType(T));
   53   llvm::Constant *FnPtr = llvm::Constant::getNullValue(FTy->getPointerTo());
   64   return llvm::Constant::getNullValue(Ty);
tools/clang/lib/CodeGen/CGCall.cpp
 2237       llvm::Constant* Zero = llvm::Constant::getNullValue(LLVMTy);
 3395       Builder.CreateICmpNE(V, llvm::Constant::getNullValue(V->getType()));
tools/clang/lib/CodeGen/CGClass.cpp
  368     PHI->addIncoming(llvm::Constant::getNullValue(BasePtrTy), origBB);
  428     PHI->addIncoming(llvm::Constant::getNullValue(Value->getType()), CastNull);
tools/clang/lib/CodeGen/CGDecl.cpp
  993     return llvm::Constant::getNullValue(Ty);
 1019       CurOp = llvm::Constant::getNullValue(STy->getElementType(i));
 1054       OpValue = llvm::Constant::getNullValue(ElemTy);
 1227       constWithPadding(CGM, IsPattern::No, llvm::Constant::getNullValue(ElTy));
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  140     Argument = llvm::Constant::getNullValue(CGF.Int8PtrTy);
tools/clang/lib/CodeGen/CGException.cpp
  919       TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy);
  926                         llvm::Constant::getNullValue(CGF.VoidPtrTy)});
  969       TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy);
 1001       TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy);
tools/clang/lib/CodeGen/CGExpr.cpp
  341       CleanupArg = llvm::Constant::getNullValue(CGF.Int8PtrTy);
 2911     Filename = llvm::Constant::getNullValue(Int8PtrTy);
 3664       Idx = llvm::ConstantInt::getNullValue(IntPtrTy);
tools/clang/lib/CodeGen/CGExprAgg.cpp
 1320               llvm::Constant::getNullValue(CGF.Int8PtrTy),
 1505           CGF.Int8Ty, llvm::Constant::getNullValue(CGF.Int8PtrTy),
tools/clang/lib/CodeGen/CGExprCXX.cpp
 1742     PHI->addIncoming(llvm::Constant::getNullValue(resultPtr->getType()),
 2171     return llvm::Constant::getNullValue(DestLTy);
 2265     PHI->addIncoming(llvm::Constant::getNullValue(Value->getType()), CastNull);
tools/clang/lib/CodeGen/CGExprComplex.cpp
  235     llvm::Constant *Null = llvm::Constant::getNullValue(CGF.ConvertType(Elem));
  242                        llvm::Constant::getNullValue(CGF.ConvertType(Elem));
  402   return ComplexPairTy(llvm::Constant::getNullValue(Imag->getType()), Imag);
  447   return ComplexPairTy(Val, llvm::Constant::getNullValue(Val->getType()));
  795         LibCallOp.LHS.second = llvm::Constant::getNullValue(LHSr->getType());
  815         LHSi = llvm::Constant::getNullValue(RHSi->getType());
 1080   llvm::Value* zeroConstant = llvm::Constant::getNullValue(LTy);
tools/clang/lib/CodeGen/CGExprConstant.cpp
  406     llvm::Constant *Filler = llvm::Constant::getNullValue(CommonType);
 2269       elements[i] = llvm::Constant::getNullValue(structure->getElementType(i));
 2283     return llvm::Constant::getNullValue(baseType);
 2300     return llvm::Constant::getNullValue(getTypes().ConvertTypeForMem(T));
tools/clang/lib/CodeGen/CGExprScalar.cpp
  387     llvm::Value *Zero = llvm::Constant::getNullValue(V->getType());
 1444       Value *Zero = llvm::Constant::getNullValue(Result->getType());
 1682     llvm::Value *Zero = llvm::Constant::getNullValue(SrcTy);
 1927     llvm::Value *Init = llvm::Constant::getNullValue(EltTy);
 2282     return llvm::Constant::getNullValue(ConvertType(DestTy));
 2596   BinOp.LHS = llvm::Constant::getNullValue(BinOp.RHS->getType());
 2614     Value *Zero = llvm::Constant::getNullValue(Oper->getType());
 2646   llvm::Value* Result = llvm::Constant::getNullValue(ResultType);
 2805   return llvm::Constant::getNullValue(ConvertType(E->getType()));
 3000       llvm::Value *Zero = llvm::Constant::getNullValue(ConvertType(Ops.Ty));
 3005       llvm::Value *Zero = llvm::Constant::getNullValue(ConvertType(Ops.Ty));
 3042     llvm::Value *Zero = llvm::Constant::getNullValue(ConvertType(Ops.Ty));
 3863       LHS.second = llvm::Constant::getNullValue(LHS.first->getType());
 3874       RHS.second = llvm::Constant::getNullValue(RHS.first->getType());
 3997       return llvm::Constant::getNullValue(ResTy);
 4202     llvm::Value *zeroVec = llvm::Constant::getNullValue(vecTy);
 4585   auto *Zero = llvm::ConstantInt::getNullValue(IntPtrTy);
 4687   auto *Zero = llvm::ConstantInt::getNullValue(IntPtrTy);
tools/clang/lib/CodeGen/CGObjC.cpp
 1715   llvm::Value *zero = llvm::Constant::getNullValue(NSUIntegerTy);
 1899     llvm::Value *null = llvm::Constant::getNullValue(convertedElementType);
 3711   return Builder.CreateICmpNE(CallRes, llvm::Constant::getNullValue(Int32Ty));
 3747                                 llvm::Constant::getNullValue(VoidPtrTy));
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 1490       auto ZeroInit = llvm::Constant::getNullValue(emptyStruct);
 2658             llvm::Constant::getNullValue(Receiver->getType()));
 2736       phi->addIncoming(llvm::Constant::getNullValue(v->getType()), startBB);
 2743       CGF.InitTempAlloca(NullVal, llvm::Constant::getNullValue(RetTy));
 2751       phi->addIncoming(llvm::Constant::getNullValue(v.first->getType()),
 2755       phi2->addIncoming(llvm::Constant::getNullValue(v.second->getType()),
 3826             llvm::Constant::getNullValue(RegisterAlias->getType()));
 4089           llvm::Constant::getNullValue(IntTy), name);
tools/clang/lib/CodeGen/CGObjCMac.cpp
 1809     llvm::Constant *scalarZero = llvm::Constant::getNullValue(scalarTy);
 2360   llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy);
 2719   llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy);
 2981   llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy);
 3148     return llvm::Constant::getNullValue(ObjCTypes.ProtocolExtensionPtrTy);
 3181     return llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy);
 3253       return llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy);
 3289     return llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy);
 3323     return llvm::Constant::getNullValue(ObjCTypes.Int8PtrPtrTy);
 3752     return llvm::Constant::getNullValue(ObjCTypes.ClassExtensionPtrTy);
 3789     return llvm::Constant::getNullValue(ObjCTypes.IvarListPtrTy);
 3816     return llvm::Constant::getNullValue(ObjCTypes.IvarListPtrTy);
 3933     return llvm::Constant::getNullValue(forProtocol
 5051     return llvm::Constant::getNullValue(ObjCTypes.SymtabPtrTy);
 5161   return llvm::Constant::getNullValue(ObjCTypes.Int8PtrTy);
 5428     return llvm::Constant::getNullValue(PtrTy);
 5467     return llvm::Constant::getNullValue(PtrTy);
 5477     return llvm::Constant::getNullValue(PtrTy);
 6661     return llvm::Constant::getNullValue(ObjCTypes.MethodListnfABIPtrTy);
 6848     return llvm::Constant::getNullValue(ObjCTypes.IvarListnfABIPtrTy);
 7013     return llvm::Constant::getNullValue(ObjCTypes.ProtocolListnfABIPtrTy);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1533       Fields.add(llvm::Constant::getNullValue(StructTy->getElementType(I)));
 1585         llvm::ConstantInt::getNullValue(CGM.Int32Ty),
 1588         llvm::ConstantInt::getNullValue(CGM.Int32Ty), DefaultOpenMPPSource};
 2841     CopyCtor = llvm::Constant::getNullValue(CopyCtorTy);
 2846       Ctor = llvm::Constant::getNullValue(CtorTy);
 2852       Dtor = llvm::Constant::getNullValue(DtorTy);
 2936           llvm::Constant::getNullValue(CGM.Int8Ty), Twine(Buffer, "_ctor"));
 2975           llvm::Constant::getNullValue(CGM.Int8Ty), Twine(Buffer, "_dtor"));
 3148              llvm::GlobalValue::CommonLinkage, llvm::Constant::getNullValue(Ty),
 6529         llvm::Constant::getNullValue(CGM.Int8Ty), Name);
 8011           Sizes.push_back(llvm::Constant::getNullValue(CGF.Int64Ty));
 8067           CurSizes.push_back(llvm::Constant::getNullValue(this->CGF.Int64Ty));
 8496         CurSizes.push_back(llvm::Constant::getNullValue(CGF.Int64Ty));
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 1433   CGF.InitTempAlloca(WorkFn, llvm::Constant::getNullValue(CGF.Int8PtrTy));
 2767   CGF.EmitStoreOfScalar(llvm::Constant::getNullValue(CGM.Int32Ty), CounterLVal,
 3216         llvm::Constant::getNullValue(Ty), TransferMediumName,
 3261         CGF.EmitStoreOfScalar(llvm::Constant::getNullValue(CGM.IntTy), CntAddr,
 3303           TransferMedium, {llvm::Constant::getNullValue(CGM.Int64Ty), WarpID});
 3349           {llvm::Constant::getNullValue(CGM.Int64Ty), ThreadID});
 3669   llvm::Value *Idxs[] = {llvm::ConstantInt::getNullValue(CGF.Int32Ty),
 3774   llvm::Value *Idxs[] = {llvm::ConstantInt::getNullValue(CGF.Int32Ty),
 3870   llvm::Value *Idxs[] = {llvm::ConstantInt::getNullValue(CGF.Int32Ty),
 3974   llvm::Value *Idxs[] = {llvm::ConstantInt::getNullValue(CGF.Int32Ty),
 4755           llvm::Constant::getNullValue(VarTy), VD->getName(),
 4767           llvm::Constant::getNullValue(VarTy), VD->getName(),
 4780           llvm::Constant::getNullValue(VarTy), VD->getName());
 5128           llvm::Constant::getNullValue(LLVMStaticTy),
 5158           llvm::Constant::getNullValue(LLVMArr2Ty),
 5193         llvm::Constant::getNullValue(LLVMReductionsBufferTy),
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 3665         ScalarVal, llvm::Constant::getNullValue(ScalarVal->getType()));
tools/clang/lib/CodeGen/CGVTables.cpp
  104     PHI->addIncoming(llvm::Constant::getNullValue(ReturnValue->getType()),
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1943             llvm::Value *Zero = llvm::Constant::getNullValue(Size->getType());
tools/clang/lib/CodeGen/CodeGenModule.cpp
 4627   llvm::Constant *Zero = llvm::Constant::getNullValue(Int32Ty);
 5736     return llvm::Constant::getNullValue(Int8PtrTy);
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1084   llvm::Value *Zero = llvm::Constant::getNullValue(LPtr->getType());
 1273   if (!Dtor) Dtor = llvm::Constant::getNullValue(CGM.Int8PtrTy);
 2399     addr = llvm::Constant::getNullValue(CGF.Int8PtrTy);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  539       return llvm::Constant::getNullValue(CGM.IntTy);
  944       emitRTtypeidCall(CGF, llvm::Constant::getNullValue(CGM.VoidPtrTy));
 2640     fields.push_back(llvm::Constant::getNullValue(CGM.VoidPtrTy));
 2866     llvm::Value *Zero = llvm::Constant::getNullValue(L0->getType());
 2884     fields.push_back(llvm::Constant::getNullValue(CGM.VoidPtrTy));
 3644   BaseClassArrayData.push_back(llvm::Constant::getNullValue(PtrType));
 4039     CopyCtor = llvm::Constant::getNullValue(CGM.Int8PtrTy);
 4243   llvm::Constant *CleanupFn = llvm::Constant::getNullValue(CGM.Int8PtrTy);
 4252       getImageRelativeConstant(llvm::Constant::getNullValue(CGM.Int8PtrTy));
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  492   Constant *alloc_arg = Constant::getNullValue(i8_ptr_ty);
  494                              : Constant::getNullValue(i8_ptr_ty);
 1500   Constant *zero(Constant::getNullValue(guard_load->getType()));
 1889       GlobalVariable::InternalLinkage, Constant::getNullValue(int8_ty),
tools/llvm-stress/llvm-stress.cpp
  213       return ConstantInt::getNullValue(Tp);
  217       return ConstantFP::getNullValue(Tp);
  235       return ConstantInt::getNullValue(Tp);
  239       return ConstantFP::getNullValue(Tp);
  428                 return PT->push_back(ConstantVector::getNullValue(Ty));
  443         return PT->push_back(ConstantFP::getNullValue(Ty));
tools/polly/lib/CodeGen/BlockGenerators.cpp
 1094   Constant *SplatVector = Constant::getNullValue(
 1345     Constant *SplatVector = Constant::getNullValue(
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  189   return createSub(ConstantInt::getNullValue(MaxType), V);
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
 1311   MergePHI->addIncoming(Constant::getNullValue(AccInstTy), CondBB);
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
  287   Builder.CreateCall(F, Constant::getNullValue(F->arg_begin()->getType()));
tools/polly/lib/Transform/ZoneAlgo.cpp
  438       Constant *Zero = Constant::getNullValue(Ty);
unittests/Analysis/ScalarEvolutionTest.cpp
   76   Constant *Init = Constant::getNullValue(Ty);
  130   PN->addIncoming(Constant::getNullValue(Ty), EntryBB);
  690   Value *Accum = Constant::getNullValue(I8PtrTy);
unittests/IR/ConstantsTest.cpp
  124   Constant *Zero128 = Constant::getNullValue(Int128Ty);
  139   EXPECT_EQ(Constant::getNullValue(Int64Ty),
  141               Constant::getNullValue(Int8PtrTy), Int64Ty));
  144   EXPECT_EQ(Constant::getNullValue(Int32PtrTy),
  146               Constant::getNullValue(Int8PtrTy), Int32PtrTy));
  149   EXPECT_EQ(Constant::getNullValue(Int64VecTy),
  151               Constant::getNullValue(Int8PtrVecTy), Int64VecTy));
  154   EXPECT_EQ(Constant::getNullValue(Int32PtrVecTy),
  156               Constant::getNullValue(Int8PtrVecTy), Int32PtrVecTy));
  169   Constant *NullInt32Ptr0 = Constant::getNullValue(Int32PtrTy);
  170   Constant *NullInt32Ptr1 = Constant::getNullValue(Int32Ptr1Ty);
  173   EXPECT_NE(Constant::getNullValue(Int32PtrTy),
  176   EXPECT_NE(Constant::getNullValue(Int32Ptr1Ty),
unittests/IR/InstructionsTest.cpp
  216   const Constant* c8 = Constant::getNullValue(V8x8Ty);
  217   const Constant* c64 = Constant::getNullValue(V8x64Ty);
  219   const Constant *v2ptr32 = Constant::getNullValue(V2Int32PtrTy);
  276                                      Constant::getNullValue(V4Int32PtrTy),
  279                                      Constant::getNullValue(V2Int32PtrTy),
  283                                      Constant::getNullValue(V4Int32PtrAS1Ty),
  286                                      Constant::getNullValue(V2Int32PtrTy),
  294   Constant *NullV2I32Ptr = Constant::getNullValue(V2Int32PtrTy);
  508   Value *Callee = Constant::getNullValue(FnTy->getPointerTo());
  542   Value *Callee = Constant::getNullValue(FnTy->getPointerTo());
  569   Value *Callee = Constant::getNullValue(FnTy->getPointerTo());
  649     Value *GEPBase = Constant::getNullValue(B.getInt8PtrTy());
unittests/IR/PatternMatch.cpp
 1004   Constant *ScalarZero = Constant::getNullValue(ScalarTy);
 1005   Constant *VectorZero = Constant::getNullValue(VectorTy);
 1032   Constant *ScalarZero = Constant::getNullValue(ScalarTy);
 1033   Constant *VectorZero = Constant::getNullValue(VectorTy);
unittests/IR/ValueHandleTest.cpp
  327           Constant::getNullValue(Type::getInt32Ty(*Context)));
  343       RVH, Constant::getNullValue(Type::getInt32Ty(Context))));
  346   EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(Context)),
  348   EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(Context)),
unittests/Transforms/Utils/CloningTest.cpp
  140   Constant *Z = Constant::getNullValue(Type::getInt32Ty(context));
unittests/Transforms/Utils/LocalTest.cpp
  154   Value *NewBase = Constant::getNullValue(Type::getInt32PtrTy(C));