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

Declarations

include/llvm/IR/Constant.h
   51   bool isNullValue() const;

References

include/llvm/Analysis/SparsePropagation.h
  328     Succs[C->isNullValue()] = true;
include/llvm/IR/IRBuilder.h
 1311       if (RC->isNullValue())
include/llvm/IR/PatternMatch.h
  398     return C && (C->isNullValue() || cst_pred_ty<is_zero_int>().match(C));
lib/Analysis/ConstantFolding.cpp
  100   if (C->isNullValue() && !DestTy->isX86_MMXTy())
  528       if (Res->isNullValue() && !LoadTy->isX86_MMXTy())
  535         if (Res->isNullValue() && !LoadTy->isX86_MMXTy())
  689       if (GV->getInitializer()->isNullValue())
  854               CE->getOperand(0)->isNullValue()) {
  908   if ((Ptr->isNullValue() || BasePtr != 0) &&
 1217     if (Ops1->isNullValue()) {
 1270         CE0->getOpcode() == Instruction::Or && Ops1->isNullValue()) {
 1370   if (!CE->getOperand(1)->isNullValue())
 2422       if (MaskElt->isNullValue()) {
lib/Analysis/GlobalsModRef.cpp
  410     if (!C->isNullValue())
lib/Analysis/InlineCost.cpp
 1397                          : (CondC->isNullValue()) ? FalseVal : nullptr;
lib/Analysis/InstructionSimplify.cpp
  912       if (Elt && (Elt->isNullValue() || isa<UndefValue>(Elt)))
 2409           LHSOffset->isNullValue() &&
 2410           RHSOffset->isNullValue())
 3951     if (CondC->isNullValue())
lib/Analysis/LazyValueInfo.cpp
 1820       if (Res->isNullValue())
 1827       if (Res->isNullValue())
 1857   if (V->getType()->isPointerTy() && C->isNullValue() &&
lib/Analysis/ScalarEvolution.cpp
  492             CE->getOperand(0)->isNullValue() &&
  509             CE->getOperand(0)->isNullValue()) {
  515                 CE->getOperand(1)->isNullValue()) {
  535             CE->getOperand(0)->isNullValue() &&
  536             CE->getOperand(1)->isNullValue()) {
 7508       !cast<Constant>(GEP->getOperand(1))->isNullValue())
 8915                                 RHSC->getValue())->isNullValue())
lib/Analysis/ValueTracking.cpp
  218           if (C->isNullValue())
 2002     if (C->isNullValue())
 2022         if (!Elt || Elt->isNullValue())
 2540         if (CLHS->isNullValue()) {
 3215   if (C->isNullValue())
 3511   if (GV->getInitializer()->isNullValue()) {
lib/Analysis/VectorUtils.cpp
  302       if (Elt->isNullValue())
  756   if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask))
  761       if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt))
  793       if (CV->getAggregateElement(i)->isNullValue())
lib/Bitcode/Writer/BitcodeWriter.cpp
 2341     if (C->isNullValue()) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2007     if (CS->getOperand(1)->isNullValue())
 2015     if (!CS->getOperand(2)->isNullValue())
 2168   if (CV->isNullValue() || isa<UndefValue>(CV))
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
  165       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  298       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  413       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  537       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  623       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  733       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
15600             IsElementZero = C->getConstantFPValue()->isNullValue();
lib/CodeGen/SelectionDAG/FastISel.cpp
  416     if (CF->isNullValue())
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 2212       cast<Constant>(Cases[0].CmpRHS)->isNullValue()) {
 3549   if (MaskV->isNullValue() && VT.isScalableVector()) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 1203       cast<Constant>(CPI->getArgOperand(0))->isNullValue();
lib/CodeGen/ShadowStackGCLowering.cpp
  110     if (!C->isNullValue())
  223     return C->isNullValue();
lib/CodeGen/WasmEHPrepare.cpp
  259         cast<Constant>(CPI->getArgOperand(0))->isNullValue())
lib/CodeGen/WinEHPrepare.cpp
  149     if (TypeInfo->isNullValue())
  357     assert((Filter || FilterOrNull->isNullValue()) &&
lib/ExecutionEngine/ExecutionEngine.cpp
  391     if (FP->isNullValue())
lib/IR/AbstractCallSite.cpp
  128   if (VarArgFlagAsCM->getValue()->isNullValue())
lib/IR/ConstantFold.cpp
   48   if (CV->isNullValue()) return Constant::getNullValue(DstTy);
  259     if (RHS->isNullValue())
  533   if (V->isNullValue() && !DestTy->isX86_MMXTy() &&
  559         if (!CE->getOperand(i)->isNullValue()) {
  625     if (V->isNullValue())       // Is it an integral null value?
  630     if (V->isNullValue())
  637           CE->getOperand(0)->isNullValue()) {
  660                    CE->getOperand(1)->isNullValue()) {
  736   if (Cond->isNullValue()) return V2;
  756         V = Cond->isNullValue() ? V2Element : V1Element;
 1317       if (Instruction::isIntDivRem(Opcode) && RHS->isNullValue())
 1648       if (V2->isNullValue() && CE1->getType()->isIntOrPtrTy()) {
 1677             if (!CE1->getOperand(i)->isNullValue())
 1701                    !CE1->getOperand(1)->isNullValue() &&
 1757               if (!CE1->getOperand(i)->isNullValue()) {
 1765               if (!CE2->getOperand(i)->isNullValue()) {
 1822   if (C1->isNullValue()) {
 1834   } else if (C2->isNullValue()) {
 2109         (C1->isNullValue() && !C2->isNullValue())) {
 2109         (C1->isNullValue() && !C2->isNullValue())) {
 2127   if (cast<Constant>(Idxs[0])->isNullValue()) return true;
 2142     if (!cast<Constant>(Idxs[i])->isNullValue())
 2177   if (Idxs.size() == 1 && (Idx0->isNullValue() || isa<UndefValue>(Idx0)))
 2183   if (C->isNullValue()) {
 2187           !cast<Constant>(Idxs[i])->isNullValue()) {
 2245       if (Idx0->isNullValue())
 2265         if (!Idx0->isNullValue()) {
 2291         if (IRIndex && *IRIndex == CE->getNumOperands() - 2 && !Idx0->isNullValue())
 2310     if (CE->isCast() && Idxs.size() > 1 && Idx0->isNullValue()) {
lib/IR/Constants.cpp
   60   return isNullValue();
   82   return isNullValue();
  451     if (!isa<ConstantInt>(CE->getOperand(1)) ||CE->getOperand(1)->isNullValue())
 1037   if (C->isNullValue() && rangeOnlyContains(V.begin(), V.end(), C))
 1085     isZero = V[0]->isNullValue();
 1088         if (!V[i]->isNullValue())
 1124   bool isZero = C->isNullValue();
 2882   if (AllSame && ToC->isNullValue())
 2922   if (AllSame && ToC->isNullValue())
lib/IR/Core.cpp
 1034     return C->isNullValue();
lib/IR/Verifier.cpp
  629       Assert(GV.getInitializer()->isNullValue(),
lib/Target/AArch64/AArch64FastISel.cpp
  400   if (CFP->isNullValue())
  550   assert(CFP->isNullValue() &&
 1222     if (C->isNullValue())
 2332     if (isa<Constant>(LHS) && cast<Constant>(LHS)->isNullValue())
 2335     if (!isa<Constant>(RHS) || !cast<Constant>(RHS)->isNullValue())
 2361     if (!isa<Constant>(RHS) || !cast<Constant>(RHS)->isNullValue())
lib/Target/AArch64/AArch64InstructionSelector.cpp
 3343   if (ImmOp.getFPImm()->isNullValue())
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  242     if (Op->isNullValue() && AT.getNullPointerValue(SrcAddr) == 0) {
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  332     Info.IsVolatile = !Volatile->isNullValue();
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 1160         if (!Initializer->isNullValue() && !isa<UndefValue>(Initializer)) {
 1168         if (!GVar->getInitializer()->isNullValue() &&
 1195         if (!isa<UndefValue>(Initializer) && !Initializer->isNullValue()) {
 1790   if (isa<UndefValue>(CPV) || CPV->isNullValue()) {
 1974   if (CV->isNullValue() || isa<UndefValue>(CV))
lib/Target/TargetLoweringObjectFile.cpp
   59   if (C->isNullValue() || isa<UndefValue>(C))
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
   93     if (DtorFunc->isNullValue())
  142               (!Associated->isNullValue() ? (Twine(".") + Associated->getName())
  158               (!Associated->isNullValue() ? (Twine(".") + Associated->getName())
lib/Target/X86/X86FastISel.cpp
 1468     if (RHSC && RHSC->isNullValue())
 1656         if (CmpRHSC && CmpRHSC->isNullValue())
 2168     if (CmpRHSC && CmpRHSC->isNullValue())
 3735   if (CFP->isNullValue())
lib/Transforms/IPO/Attributor.cpp
 2039         if (C->isNullValue() || isa<UndefValue>(C))
lib/Transforms/IPO/FunctionAttrs.cpp
  871       if (!C->isNullValue() && !isa<UndefValue>(C))
lib/Transforms/IPO/GlobalOpt.cpp
  371       !cast<Constant>(U->getOperand(1))->isNullValue())
 1579       GV->getInitializer()->isNullValue() &&
 1651     IsOneZero = InitVal->isNullValue() && CI->isOne();
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1082   if (ConstMask->isNullValue())
 1128   if (ConstMask->isNullValue())
 1806       if (NumBytes->isNullValue())
 3679         if (CCmp->isNullValue()) {
 4223   if ((Op0C && Op0C->isNullValue()) || (Op1C && Op1C->isNullValue()))
 4223   if ((Op0C && Op0C->isNullValue()) || (Op1C && Op1C->isNullValue()))
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1911       if (C->isNullValue())
lib/Transforms/InstCombine/InstCombineCompares.cpp
  878       isa<Constant>(RHS) && cast<Constant>(RHS)->isNullValue() &&
 3178     if (RHSC->isNullValue() &&
 3242     if (RHSC->isNullValue() &&
 3547           (NewShAmtSplat->isNullValue() ||
lib/Transforms/InstCombine/InstCombineSelect.cpp
 1816     } else if (Elt->isNullValue()) {
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1380         if (CElt->isNullValue())
 1474           if (CElt->isNullValue())
lib/Transforms/InstCombine/InstructionCombining.cpp
 1015         InV = InC->isNullValue() ? FalseVInPred : TrueVInPred;
 1896                cast<Constant>(*GEP.idx_begin())->isNullValue() &&
 2793     return TypeInfo->isNullValue();
 3050           if (LArray->getOperand(l)->isNullValue()) {
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 2028           if (!ConstOrigin || !ConstOrigin->isNullValue()) {
 2330     if ((constOp->isNullValue() &&
 3334         if (Cst && Cst->isNullValue()) ArgIsInitialized = true;
lib/Transforms/Scalar/CallSiteSplitting.cpp
  172     else if (ConstVal->getType()->isPointerTy() && ConstVal->isNullValue()) {
lib/Transforms/Scalar/DeadStoreElimination.cpp
 1055   if (StoredConstant && StoredConstant->isNullValue() && isRemovable(SI)) {
lib/Transforms/Scalar/SCCP.cpp
 1024     if (V1State.isConstant() && V1State.getConstant()->isNullValue())
 1047         if (NonOverdefVal->getConstant()->isNullValue())
lib/Transforms/Utils/CtorUtils.cpp
   66   if (GV->getInitializer()->isNullValue())
lib/Transforms/Utils/Evaluator.cpp
  504           if (Val->isNullValue() && DestVal && DestVal->isNullValue()) {
  504           if (Val->isNullValue() && DestVal && DestVal->isNullValue()) {
lib/Transforms/Utils/FunctionComparator.cpp
  260   if (L->isNullValue() && R->isNullValue())
  260   if (L->isNullValue() && R->isNullValue())
  262   if (L->isNullValue() && !R->isNullValue())
  262   if (L->isNullValue() && !R->isNullValue())
  264   if (!L->isNullValue() && R->isNullValue())
  264   if (!L->isNullValue() && R->isNullValue())
lib/Transforms/Utils/Local.cpp
  427       return C->isNullValue() || isa<UndefValue>(C);
lib/Transforms/Utils/SimplifyCFG.cpp
 4395   if (!Offset->isNullValue())
 4400   if (NumCases->isNullValue() && !ContiguousCases->empty())
 4652     if (A->isNullValue())
 5398   if (MinCaseVal->isNullValue())
 5972   if (C->isNullValue() || isa<UndefValue>(C)) {
lib/Transforms/Utils/SimplifyLibCalls.cpp
  167         if (C->isNullValue())
lib/Transforms/Utils/VNCoercion.cpp
   44       return CI->isNullValue();
  232     if (!CI || !CI->isNullValue())
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  519       cast<Constant>(ID.getStartValue())->isNullValue()) {
tools/bugpoint/CrashDebugger.cpp
  224     if (!Op->isNullValue()) {
  273       } else if (Root->isNullValue()) {
tools/bugpoint/ExtractFunction.cpp
  264       if (CS->getOperand(1)->isNullValue())
tools/clang/lib/CodeGen/CGDecl.cpp
  869     return Init->isNullValue() || NumStores--;
  900   assert(!Init->isNullValue() && !isa<llvm::UndefValue>(Init) &&
  916       if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt))
  931     if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt))
 1165         constant->isNullValue() || isa<llvm::UndefValue>(constant);
tools/clang/lib/CodeGen/CGExpr.cpp
  721     if (!ConstantSize || !ConstantSize->isNullValue()) {
tools/clang/lib/CodeGen/CGExprCXX.cpp
  527   if (!NullConstantForBase->isNullValue()) {
tools/clang/lib/CodeGen/CGExprConstant.cpp
  244           Elems[*FirstElemToUpdate]->isNullValue() ||
  411       if (Elems[I]->isNullValue())
  922   if (Elements.size() < NonzeroLength && Filler->isNullValue())
  925     while (NonzeroLength > 0 && Elements[NonzeroLength - 1]->isNullValue())
 1201     if (fillC && fillC->isNullValue())
 2114     if (Filler && Filler->isNullValue())
tools/clang/lib/CodeGen/CGObjCMac.cpp
 3143   if (optInstanceMethods->isNullValue() &&
 3144       optClassMethods->isNullValue() &&
 3145       extendedMethodTypes->isNullValue() &&
 3146       instanceProperties->isNullValue() &&
 3147       classProperties->isNullValue()) {
 3751   if (layout->isNullValue() && propertyList->isNullValue()) {
 3751   if (layout->isNullValue() && propertyList->isNullValue()) {
tools/clang/lib/CodeGen/CodeGenModule.cpp
 4073     if (!GV->getInitializer()->isNullValue())
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  538     if (PtrVal->isNullValue())
 2913     return FirstField->isNullValue();
 2918   if (isZeroInitializable(MPT) && Val->isNullValue())
unittests/IR/ConstantsTest.cpp
  497                            TheConstant)->isNullValue();
  585       Instruction::And, TheConstantExpr, TheConstant)->isNullValue());