/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | MemberPointer.h | 73 if (Base.isZero()) in atInstanceBase() 79 assert(this->Base.isZero()); in takeInstance() 85 bool isZero() const { return Base.isZero() && !Dcl; } in isZero() function 86 bool hasBase() const { return !Base.isZero(); } in hasBase()
|
H A D | Pointer.h | 175 if (isZero() || isUnknownSizeArray()) in narrow() 247 bool isZero() const { in isZero() function 402 if (isZero() || isIntegralPointer()) in isRoot() 543 if (isZero()) in getIndex() 576 return !isZero() && Offset > PointeeStorage.BS.Pointee->getSize(); in isPastEnd() 670 assert(!isZero()); in getDescriptor() 679 assert(!isZero()); in getInitMap()
|
H A D | Boolean.h | 64 bool isZero() const { return !V; } in isZero() function 65 bool isMin() const { return isZero(); } in isMin() 102 return Boolean(!Value.isZero()); in from()
|
H A D | Pointer.cpp | 126 if (isZero()) in toAPValue() 256 if (isZero()) in toDiagnosticString() 366 if (A.isZero() && B.isZero()) in hasSameBase() 536 if (isZero() || isIntegralPointer()) in toRValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAtomicRMW.cpp | 28 return CF->isZero() && CF->isNegative(); in isIdempotentRMW() 30 return CF->isZero() && !CF->isNegative(); in isIdempotentRMW() 44 return C->isZero(); in isIdempotentRMW() 90 return C->isZero(); in isSaturating()
|
H A D | InstCombineCompares.cpp | 85 if (C.isZero()) in isSignTest() 133 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in foldCmpLoadFromIndexedGlobal() 238 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero(); in foldCmpLoadFromIndexedGlobal() 578 if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero()) in rewriteGEPAsOffset() 974 if (AP2.isZero()) in foldICmpShrConstConst() 1033 if (AP2.isZero()) in foldICmpShlConstConst() 1259 if (!XKnown.One.isZero() || isKnownNonZero(X, Q)) in foldICmpWithZero() 1264 if (!YKnown.One.isZero() || isKnownNonZero(Y, Q)) in foldICmpWithZero() 1442 if (C.isZero()) { in foldICmpTruncConstant() 1727 if (Shift->hasOneUse() && C1.isZero() && Cmp.isEquality() && in foldICmpAndShift() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APFloat.h | 424 bool isZero() const { return category == fcZero; } in isZero() function 447 bool isFiniteNonZero() const { return isFinite() && !isZero(); } in isFiniteNonZero() 448 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero() 449 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero() 1350 bool isZero() const { return getCategory() == fcZero; } in isZero() function 1363 bool isNonZero() const { return !isZero(); } in isNonZero() 1364 bool isFiniteNonZero() const { return isFinite() && !isZero(); } in isFiniteNonZero() 1365 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero() 1366 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero() 1460 if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative())) in minnum() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | DivisionByConstantInfo.cpp | 22 assert(!D.isZero() && "Precondition violation."); in get() 57 } while (Q1.ult(Delta) || (Q1 == Delta && R1.isZero())); in get() 76 assert(!D.isZero() && !D.isOne() && "Precondition violation."); in get() 133 (Q1.ult(Delta) || (Q1 == Delta && R1.isZero()))); in get()
|
H A D | KnownBits.cpp | 599 if (IntMinIsPoison || (!One.isZero() && !One.isMinSignedValue())) { in abs() 955 if (LHS.isZero() || RHS.isZero()) { in sdiv() 977 Res = Denom.isZero() ? Num : Num.sdiv(Denom); in sdiv() 1007 if (LHS.isZero() || RHS.isZero()) { in udiv() 1019 APInt MaxRes = MinDenom.isZero() ? MaxNum : MaxNum.udiv(MinDenom); in udiv() 1031 if (!RHS.isZero() && RHS.Zero[0]) { in remGetLowBits()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScalarEvolutionDivision.cpp | 70 if (Numerator->isZero()) { in divide() 93 if (!R->isZero()) { in divide() 194 if (!R->isZero()) { in visitMulExpr() 224 if (Remainder->isZero()) { in visitMulExpr()
|
H A D | Lint.cpp | 361 Check(!TripCount->isZero(), in visitCallBase() 386 if (Loc.Size.isZero()) in visitMemoryReference() 512 static bool isZero(Value *V, const DataLayout &DL, DominatorTree *DT, in isZero() function 522 return Known.isZero(); in isZero() 542 if (Known.isZero()) in isZero() 550 Check(!isZero(I.getOperand(1), I.getDataLayout(), DT, AC), in visitSDiv() 555 Check(!isZero(I.getOperand(1), I.getDataLayout(), DT, AC), in visitUDiv() 560 Check(!isZero(I.getOperand(1), I.getDataLayout(), DT, AC), in visitSRem() 565 Check(!isZero(I.getOperand(1), I.getDataLayout(), DT, AC), in visitURem()
|
H A D | Delinearization.cpp | 225 if (!R->isZero()) in findArrayDimensionsRec() 309 if (!Q->isZero()) in findArrayDimensions() 373 if (!R->isZero()) { in computeAccessFunctions() 498 if (Const->getValue()->isZero()) { in getIndexExpressionsFromGEP()
|
H A D | CmpInstAnalysis.cpp | 90 if (!C->isZero()) in decomposeBitTestICmp() 111 if (!C->isZero()) in decomposeBitTestICmp()
|
H A D | ScalarEvolutionAliasAnalysis.cpp | 42 if (LocA.Size.isZero() || LocB.Size.isZero()) in alias()
|
H A D | ConstantFolding.cpp | 395 } while (ElemC && DL.getTypeSizeInBits(ElemC->getType()).isZero()); in ConstantFoldLoadThroughBitcast() 674 if (Offset.isZero()) in getConstantAtOffset() 682 if (!Offset.isZero() || !Indices[0].isZero()) in getConstantAtOffset() 1971 if (Src.isZero()) { in constantFoldCanonicalize() 2374 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2381 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2389 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2626 if (Op1V.isZero() && Op2V.isZero()) in ConstantFoldLibCall2() 2730 if (Op1V.isZero() || Op2V.isZero()) in ConstantFoldIntrinsicCall2() 2750 ((Mask & fcNegZero) && Op1V.isZero() && Op1V.isNegative()) || in ConstantFoldIntrinsicCall2() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 62 bool isUnknown() const { return Zero.isZero() && One.isZero(); } in isUnknown() 76 bool isZero() const { return Zero.isAllOnes(); } in isZero() function 100 bool isNonZero() const { return !One.isZero(); } in isNonZero() 104 return Zero.isSignBitSet() && !One.isZero(); in isStrictlyPositive()
|
H A D | ScaledNumber.h | 543 bool isZero() const { return !Digits; } in isZero() function 575 bool operator!() const { return isZero(); } 803 if (isZero()) 805 if (X.isZero()) 820 if (isZero()) 822 if (X.isZero()) 835 if (!Shift || isZero()) in shiftLeft() 865 if (!Shift || isZero()) in shiftRight()
|
H A D | TypeSize.h | 105 if (!RHS.isZero()) 115 if (!RHS.isZero()) 156 constexpr bool isZero() const { return Quantity == 0; } in isZero() function 203 assert((!isScalable() || isZero()) && in getFixedValue()
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransZeroOutPropsInDealloc.cpp | 187 return isZero(BOE->getRHS()); in isZeroingPropIvar() 208 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr()); in isZeroingPropIvar() 211 bool isZero(Expr *E) { in isZero() function in __anon7bb8f6870111::ZeroOutInDeallocRemover
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | RecordLayout.cpp | 82 assert(getVBaseClassOffset(PrimaryBase).isZero() && in ASTRecordLayout() 86 assert(getBaseClassOffset(PrimaryBase).isZero() && in ASTRecordLayout()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CastSizeChecker.cpp | 79 if (FlexSize.isZero()) in evenFlexibleArraySize() 124 if (typeSize.isZero()) in checkPreStmt()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 239 return Offset.isZero(); in getEquivalentICmp() 403 if (Mask.isZero()) in makeMaskNotEqualRange() 422 return Lower.ugt(Upper) && !Upper.isZero(); in isWrappedSet() 710 if (L.isZero() && U.isZero()) in unionWith() 1325 if (isEmptySet() || RHS.isEmptySet() || RHS.getUnsignedMax().isZero()) in udiv() 1331 if (RHS_umin.isZero()) { in udiv() 1374 if (NegL.Lower.isMinSignedValue() && NegR.Upper.isZero()) { in sdiv() 1433 if (isEmptySet() || RHS.isEmptySet() || RHS.getUnsignedMax().isZero()) in urem() 1438 if (RHSInt->isZero()) in urem() 1460 if (RHSInt->isZero()) in srem() [all …]
|
H A D | Operator.cpp | 165 if (ConstOffset->isZero()) in accumulateConstantOffset() 224 if (ConstOffset->isZero()) in collectOffset() 252 if (!IndexedSize.isZero()) { in collectOffset()
|
H A D | ConstantFold.cpp | 736 if (CI2->isZero()) in ConstantFoldBinaryInstruction() 741 if (CI2->isZero()) in ConstantFoldBinaryInstruction() 748 if (CI2->isZero()) in ConstantFoldBinaryInstruction() 752 if (CI2->isZero()) in ConstantFoldBinaryInstruction() 821 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction() 824 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction() 829 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction() 832 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction() 865 if (CI1->isZero()) return C1; in ConstantFoldBinaryInstruction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTDC.cpp | 140 if (Const->isZero()) { in convertFCmp() 251 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) { in convertICmp() 268 if (!Const->isZero()) in convertICmp()
|