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

References

include/llvm/ADT/APInt.h
  390   bool isStrictlyPositive() const { return isNonNegative() && !isNullValue(); }
  436   bool isMinValue() const { return isNullValue(); }
 1786     if (isNullValue())
include/llvm/ADT/APSInt.h
   61   bool isStrictlyPositive() const { return isNonNegative() && !isNullValue(); }
include/llvm/IR/Constants.h
  193     return Val.isNullValue();
include/llvm/IR/PatternMatch.h
  387   bool isValue(const APInt &C) { return C.isNullValue(); }
include/llvm/Support/KnownBits.h
   62   bool isUnknown() const { return Zero.isNullValue() && One.isNullValue(); }
   62   bool isUnknown() const { return Zero.isNullValue() && One.isNullValue(); }
lib/Analysis/CmpInstAnalysis.cpp
   80     if (!C->isNullValue())
  101     if (!C->isNullValue())
lib/Analysis/ConstantFolding.cpp
 2208       if (C1->isOneValue() && (!C0 || C0->isNullValue()))
lib/Analysis/DemandedBits.cpp
  396           if (AB.isNullValue())
  456     if (Found != AliveBits.end() && Found->second.isNullValue())
lib/Analysis/InstructionSimplify.cpp
 1945         (~(*Mask)).lshr(*ShAmt).isNullValue())
 1951         (~(*Mask)).shl(*ShAmt).isNullValue())
 5184       if (ShAmtC->urem(BitWidth).isNullValue())
lib/Analysis/ScalarEvolution.cpp
 8459   assert(!N.isNullValue() && "This is not a quadratic addrec");
lib/Analysis/ValueTracking.cpp
 4712     if (Pred == CmpInst::ICMP_SLT && C1->isNullValue() &&
 5424     if (match(BO.getOperand(1), m_APInt(C)) && !C->isNullValue()) {
 5462       if (!C->isNullValue() && IIQ.isExact(&BO))
 5483       if (!C->isNullValue() && IIQ.isExact(&BO))
 5545     if (match(BO.getOperand(1), m_APInt(C)) && !C->isNullValue()) {
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
 3049   if (Amt.isNullValue()) {
lib/CodeGen/InterleavedLoadCombinePass.cpp
  314     if (C.isNullValue()) {
  465     if (C.isNullValue())
  572     return (r.ErrorMSBs == 0) && (!r.isFirstOrder()) && (r.A.isNullValue());
lib/CodeGen/MIRParser/MIParser.cpp
 2312       if (!Int.isNullValue())
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 3367   if (N1IsConst && ConstValue1.isNullValue())
 8284       if (C1Val.isPowerOf2() && C2Val.isNullValue()) {
lib/CodeGen/SelectionDAG/TargetLowering.cpp
  624         if (!Sub.isNullValue()) {
 1867         if (!Sub.isNullValue()) {
 2939          isConstOrConstSplat(N1C)->getAPIntValue().isNullValue() &&
 3086     if (N0.getOpcode() == ISD::SRL && (C1.isNullValue() || C1.isOneValue()) &&
 3578       if (C1.isNullValue())
 4984     assert(!P.isNullValue() && "No multiplicative inverse!"); // unreachable
 5171     assert(!P.isNullValue() && "No multiplicative inverse!"); // unreachable
lib/IR/ConstantRange.cpp
  313   return Lower.ugt(Upper) && !Upper.isNullValue();
  577     if (L.isNullValue() && U.isNullValue())
  577     if (L.isNullValue() && U.isNullValue())
 1025   if (isEmptySet() || RHS.isEmptySet() || RHS.getUnsignedMax().isNullValue())
 1031   if (RHS_umin.isNullValue()) {
 1071     if (NegL.Lower.isMinSignedValue() && NegR.Upper.isNullValue()) {
 1130   if (isEmptySet() || RHS.isEmptySet() || RHS.getUnsignedMax().isNullValue())
 1151   if (MaxAbsRHS.isNullValue())
 1154   if (MinAbsRHS.isNullValue())
 1216   if (Other_umax.isNullValue())
lib/MCA/InstrBuilder.cpp
  657       if (Mask.isNullValue()) {
lib/Support/APInt.cpp
 2853   if (C.sextOrTrunc(RangeWidth).isNullValue() ) {
 2915     if (T.isNullValue())
 2999   if (!InexactSQ && Rem.isNullValue()) {
 3016                     VX.isNullValue() != VY.isNullValue();
 3016                     VX.isNullValue() != VY.isNullValue();
lib/Target/AArch64/AArch64ISelLowering.cpp
 7558         if (Val.isNullValue() || Val.isAllOnesValue())
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  952       if (Lower->getValue().isNullValue()) {
lib/Target/Mips/MipsInstructionSelector.cpp
  133   if (Imm.getHiBits(16).isNullValue()) {
  139   if (Imm.getLoBits(16).isNullValue()) {
lib/Target/X86/X86ISelLowering.cpp
 6912     if (Known0.One.isNullValue() && Known1.One.isNullValue()) {
 6912     if (Known0.One.isNullValue() && Known1.One.isNullValue()) {
 7999   if (ZeroMask.isNullValue() && isPowerOf2_32(NumElems) && Subtarget.hasAVX() &&
17099     assert(!Zeroable.isNullValue() && "V2's non-undef elements are used?!");
20560     if ((IsInc && EltC.isMaxValue()) || (!IsInc && EltC.isNullValue()))
37318   if (!Comparison.isNullValue())
39261           return M.isNullValue() || M.isAllOnesValue();
39274             EltBits[i].isNullValue() ? SM_SentinelZero : VecIdx;
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1775     if (Op0C->isNullValue()) {
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  140         if ((AddRHS & (AndRHSV - 1)).isNullValue()) {
  145           if ((AddRHS & AndRHSV).isNullValue()) { // Bit is not set, noop
  843   if (C1->isNullValue() && C2->isAllOnesValue())
  987   assert(!UnsetBitsMask.isNullValue() && "empty mask makes no sense.");
 1242       if ((Low & AndC->getValue()).isNullValue() &&
 1243           (Low & BigC->getValue()).isNullValue()) {
 2503       if ((C1->getValue() & C2->getValue()).isNullValue()) {
 2526             (C3->getValue() & ~C1->getValue()).isNullValue() &&
 2528             (C4->getValue() & ~C2->getValue()).isNullValue()) {
lib/Transforms/InstCombine/InstCombineCalls.cpp
  391   if (Count.isNullValue())
 1234   if (!Known.One.isNullValue() ||
lib/Transforms/InstCombine/InstCombineCasts.cpp
  856     if ((ICI->getPredicate() == ICmpInst::ICMP_SLT && Op1CV->isNullValue()) ||
  883     if ((Op1CV->isNullValue() || Op1CV->isPowerOf2()) &&
  894         if (!Op1CV->isNullValue() && (*Op1CV != KnownZeroMask)) {
  910         if (!Op1CV->isNullValue() == isNE) { // Toggle the low bit.
lib/Transforms/InstCombine/InstCombineCompares.cpp
   80   if (C.isNullValue())
 1164   if (AP2.isNullValue())
 1223   if (AP2.isNullValue())
 1699   if (Shift->hasOneUse() && C1.isNullValue() && Cmp.isEquality() &&
 1724   if (isICMP_NE && Cmp.getType()->isVectorTy() && C1.isNullValue() &&
 1737   if (Cmp.isEquality() && C1.isNullValue()) {
 1787   if (!Cmp.isSigned() && C1.isNullValue() && And->getOperand(0)->hasOneUse() &&
 1862   if (And->hasOneUse() && C.isNullValue() && match(Y, m_APInt(C2))) {
 1908   if (!Cmp.isEquality() || !C.isNullValue() || !Or->hasOneUse())
 2171       C.isNullValue())
 2273   if (!C.isNullValue() || !match(SRem->getOperand(1), m_Power2(DivisorC)))
 2353   if (C2->isNullValue() || C2->isOneValue() ||
 2394     if (C.isNullValue()) {       // (X / pos) op 0
 2415     if (C.isNullValue()) { // (X / neg) op 0
 2526     if (Pred == ICmpInst::ICMP_SGT && C.isNullValue())
 2530     if (Pred == ICmpInst::ICMP_SLT && C.isNullValue())
 2920     if (C.isNullValue() && BO->hasOneUse()) {
 2937     } else if (C.isNullValue()) {
 2958       } else if (C.isNullValue()) {
 2971       } else if (C.isNullValue()) {
 3000     if (C.isNullValue() && BO->hasNoSignedWrap()) {
 3002       if (match(BOp1, m_APInt(BOC)) && !BOC->isNullValue()) {
 3011     if (C.isNullValue()) {
 3068     bool IsZero = C.isNullValue();
 3082     if (C.isNullValue()) {
 3093     if (C.isNullValue()) {
 3961       if (match(BO0->getOperand(1), m_APInt(C)) && !C->isNullValue() &&
lib/Transforms/InstCombine/InstCombineInternal.h
  124     return RHS.isNullValue();
  133     return RHS.isNullValue();
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  660   if (C2.isNullValue())
  759     if (!C2->isNullValue()) // avoid X udiv 0
lib/Transforms/InstCombine/InstCombineSelect.cpp
  166   if (!TC.isNullValue() && !FC.isNullValue()) {
  166   if (!TC.isNullValue() && !FC.isNullValue()) {
  203   const APInt &ValC = !TC.isNullValue() ? TC : FC;
  225   bool ShouldNotVal = !TC.isNullValue();
  416   if (!C1I.isNullValue() && !C2I.isNullValue()) // One side must be zero.
  416   if (!C1I.isNullValue() && !C2I.isNullValue()) // One side must be zero.
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  134   if (DemandedMask.isNullValue())     // Not demanding any bits from V.
  736         if (DemandedElts.isNullValue())
 1103   if (DemandedElts.isNullValue()) { // If nothing is demanded, provide undef.
lib/Transforms/Scalar/BDCE.cpp
  102          DB.getDemandedBits(&I).isNullValue() &&
lib/Transforms/Scalar/Reassociate.cpp
 1183   if (ConstOpnd.isNullValue())
 1208   if (!Opnd1->isOrExpr() || Opnd1->getConstPart().isNullValue())
 1265     if (!C3.isNullValue() && !C3.isAllOnesValue()) {
 1281     if (!C3.isNullValue() && !C3.isAllOnesValue()) {
 1372     if (!ConstOpnd.isNullValue() &&
 1414     if (!ConstOpnd.isNullValue()) {
 1423       assert(ConstOpnd.isNullValue());
tools/clang/lib/CodeGen/CGBuiltin.cpp
14090     if (!MemConst.isNullValue())
tools/clang/lib/Lex/LiteralSupport.cpp
 1158     for (int64_t i = BaseShift; i < 0 && !Val.isNullValue(); ++i)
tools/clang/lib/Sema/SemaExpr.cpp
 3542     bool ValIsZero = Val.isNullValue() && !Overflowed;
tools/clang/lib/Sema/SemaOpenMP.cpp
14777           if (!Result.Val.getInt().isNullValue()) {
14847           if (!ResultL.Val.getInt().isNullValue()) {
tools/clang/tools/extra/clang-tidy/bugprone/StringConstructorCheck.cpp
  143         ((ConstPtr.Val.isInt() && ConstPtr.Val.getInt().isNullValue()) ||
unittests/ADT/APIntTest.cpp
 2617         EXPECT_TRUE(D.getHiBits(Bits).isNullValue() != Overflow);
 2715       if (!V.isNullValue() && V.countTrailingZeros() == 0) {
 2720         EXPECT_TRUE(MulInv.isNullValue());
unittests/IR/ConstantRangeTest.cpp
  513           assert(Lower1.isNullValue() && Upper3.isMaxValue());
utils/TableGen/PredicateExpander.cpp
  453       if (PI.OperandMask.isNullValue())