| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APSIntTest.cpp | 197 EXPECT_FALSE(False.isStrictlyPositive()); in TEST() 201 EXPECT_FALSE(True.isStrictlyPositive()); in TEST() 205 EXPECT_FALSE(CharMin.isStrictlyPositive()); in TEST() 209 EXPECT_TRUE(CharSmall.isStrictlyPositive()); in TEST() 225 EXPECT_FALSE(CharMax.isStrictlyPositive()); in TEST() 240 EXPECT_FALSE(False.isStrictlyPositive()); in TEST() 244 EXPECT_TRUE(True.isStrictlyPositive()); in TEST() 248 EXPECT_FALSE(CharMin.isStrictlyPositive()); in TEST() 252 EXPECT_TRUE(CharSmall.isStrictlyPositive()); in TEST() 264 EXPECT_TRUE(CharLarge.isStrictlyPositive()); in TEST() [all …]
|
| H A D | APIntTest.cpp | 3006 EXPECT_FALSE(APInt(8, -1).isStrictlyPositive()); in TEST() 3011 EXPECT_FALSE(APInt(8, 0).isStrictlyPositive()); in TEST() 3016 EXPECT_TRUE(APInt(8, 1).isStrictlyPositive()); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | InferIntRangeInterfaceImpls.cpp | 196 bool canDivide = rhsMin.isStrictlyPositive() || rhsMax.isNegative(); in inferDivSIRange() 326 bool canBound = (rhsMin.isStrictlyPositive() || rhsMax.isNegative()); in inferResultRanges() 328 APInt maxDivisor = rhsMin.isStrictlyPositive() ? rhsMax : rhsMin.abs(); in inferResultRanges() 330 bool canPositiveDividend = lhsMax.isStrictlyPositive(); in inferResultRanges()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 314 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion() 324 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion() 417 return !isUpperSignWrapped() && !Upper.isStrictlyPositive(); in isAllNegative() 1638 if (Upper.isStrictlyPositive() || !Lower.isStrictlyPositive()) in abs()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 105 bool isStrictlyPositive() const { in isStrictlyPositive() function
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 62 bool isStrictlyPositive() const { return isNonNegative() && !isZero(); } in isStrictlyPositive() function
|
| H A D | APInt.h | 339 bool isStrictlyPositive() const { return isNonNegative() && !isZero(); } in isStrictlyPositive() function 344 bool isNonPositive() const { return !isStrictlyPositive(); } in isNonPositive()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ImplicitNullChecks.cpp | 428 assert(MultiplierC.isStrictlyPositive() && in isSuitableMemoryOp()
|
| H A D | SwitchLoweringUtils.cpp | 405 if (Low.isStrictlyPositive() && High.slt(BitWidth)) { in buildBitTests()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | Tiling.cpp | 93 assert(attr.cast<IntegerAttr>().getValue().isStrictlyPositive() && in emitIsPositiveIndexAssertion()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APInt.cpp | 2846 assert(A.isStrictlyPositive()); in SolveQuadraticEquationWrap() 2861 if (C.isStrictlyPositive()) in SolveQuadraticEquationWrap()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 2441 !C.isStrictlyPositive())) in foldICmpSRemConstant() 2586 } else if (C2->isStrictlyPositive()) { // Divisor is > 0. in foldICmpDivConstant() 2591 } else if (C.isStrictlyPositive()) { // (X / pos) op pos in foldICmpDivConstant() 2616 } else if (C.isStrictlyPositive()) { // (X / neg) op pos in foldICmpDivConstant()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | LoopAccessAnalysis.cpp | 1882 assert(Val.isStrictlyPositive() && "Expect a positive value"); in isDependent()
|
| H A D | InstructionSimplify.cpp | 1722 if (C0->isStrictlyPositive()) { in simplifyAndOfICmpsWithAdd() 1884 if (C0->isStrictlyPositive()) { in simplifyOrOfICmpsWithAdd() 3278 if (C->isStrictlyPositive()) { in simplifyICmpWithBinOp()
|
| H A D | ValueTracking.cpp | 360 return CI->getValue().isStrictlyPositive(); in isKnownPositive() 3118 if (!Denominator->isStrictlyPositive()) in ComputeNumSignBitsImpl() 3140 if (Denominator->isStrictlyPositive()) { in ComputeNumSignBitsImpl()
|
| H A D | ScalarEvolution.cpp | 9048 return ShiftAmt->getValue().isStrictlyPositive(); in computeShiftCompareExitLimit() 10526 return getSignedRangeMin(S).isStrictlyPositive(); in isKnownPositive() 10534 return !getSignedRangeMax(S).isStrictlyPositive(); in isKnownNonPositive()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 491 bool isValue(const APInt &C) { return C.isStrictlyPositive(); } in isValue()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 1833 assert(Offset.second.isStrictlyPositive() && in getSalvageOpsForGEP()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelLowering.cpp | 4533 bool LHSPositive = LHSKnown.isStrictlyPositive(); in computeKnownBitsForTargetNode() 4536 bool RHSPositive = RHSKnown.isStrictlyPositive(); in computeKnownBitsForTargetNode()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaOpenMP.cpp | 8401 (TestIsStrictOp && LRes.isStrictlyPositive())); in calculateNumIters() 16200 (StrictlyPositive && Result->isStrictlyPositive()))) { in isNonNegativeIntegerValue() 16278 if ((StrictlyPositive && !Result.isStrictlyPositive()) || in VerifyPositiveIntegerConstantInClause() 16943 if (Result->isSigned() && !Result->isStrictlyPositive()) { in ActOnOpenMPScheduleClause() 19752 if (!Result->isNegative() && !Result->isStrictlyPositive()) in ActOnOpenMPLinearClause() 22392 if (Result->isSigned() && !Result->isStrictlyPositive()) { in ActOnOpenMPDistScheduleClause()
|
| H A D | SemaExpr.cpp | 3734 bool ValueIsPositive = ValueAPS.isStrictlyPositive(); in CheckLoopHintExpr() 5254 if (!StrideValue.isStrictlyPositive()) { in ActOnOMPArraySectionExpr() 5332 if (!Value.isStrictlyPositive()) { in ActOnOMPArrayShapingExpr()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/IR/ |
| H A D | VectorOps.cpp | 4799 intVal.isStrictlyPositive()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | OpBase.td | 1596 CPred<"$_self.cast<::mlir::IntegerAttr>().getValue().isStrictlyPositive()">,
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopStrengthReduce.cpp | 2201 if (!C->getValue().isStrictlyPositive()) continue; in OptimizeShadowIV()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 5820 } else if (Divisor.isStrictlyPositive() && magics.Magic.isNegative()) { in BuildSDIV() 5823 } else if (Divisor.isNegative() && magics.Magic.isStrictlyPositive()) { in BuildSDIV()
|