Home
last modified time | relevance | path

Searched refs:isStrictlyPositive (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPSIntTest.cpp197 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 DAPIntTest.cpp3006 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 DInferIntRangeInterfaceImpls.cpp196 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 DConstantRange.cpp314 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 DKnownBits.h105 bool isStrictlyPositive() const { in isStrictlyPositive() function
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPSInt.h62 bool isStrictlyPositive() const { return isNonNegative() && !isZero(); } in isStrictlyPositive() function
H A DAPInt.h339 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 DImplicitNullChecks.cpp428 assert(MultiplierC.isStrictlyPositive() && in isSuitableMemoryOp()
H A DSwitchLoweringUtils.cpp405 if (Low.isStrictlyPositive() && High.slt(BitWidth)) { in buildBitTests()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DTiling.cpp93 assert(attr.cast<IntegerAttr>().getValue().isStrictlyPositive() && in emitIsPositiveIndexAssertion()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPInt.cpp2846 assert(A.isStrictlyPositive()); in SolveQuadraticEquationWrap()
2861 if (C.isStrictlyPositive()) in SolveQuadraticEquationWrap()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2441 !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 DLoopAccessAnalysis.cpp1882 assert(Val.isStrictlyPositive() && "Expect a positive value"); in isDependent()
H A DInstructionSimplify.cpp1722 if (C0->isStrictlyPositive()) { in simplifyAndOfICmpsWithAdd()
1884 if (C0->isStrictlyPositive()) { in simplifyOrOfICmpsWithAdd()
3278 if (C->isStrictlyPositive()) { in simplifyICmpWithBinOp()
H A DValueTracking.cpp360 return CI->getValue().isStrictlyPositive(); in isKnownPositive()
3118 if (!Denominator->isStrictlyPositive()) in ComputeNumSignBitsImpl()
3140 if (Denominator->isStrictlyPositive()) { in ComputeNumSignBitsImpl()
H A DScalarEvolution.cpp9048 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 DPatternMatch.h491 bool isValue(const APInt &C) { return C.isStrictlyPositive(); } in isValue()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLocal.cpp1833 assert(Offset.second.isStrictlyPositive() && in getSalvageOpsForGEP()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp4533 bool LHSPositive = LHSKnown.isStrictlyPositive(); in computeKnownBitsForTargetNode()
4536 bool RHSPositive = RHSKnown.isStrictlyPositive(); in computeKnownBitsForTargetNode()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOpenMP.cpp8401 (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 DSemaExpr.cpp3734 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 DVectorOps.cpp4799 intVal.isStrictlyPositive()) in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DOpBase.td1596 CPred<"$_self.cast<::mlir::IntegerAttr>().getValue().isStrictlyPositive()">,
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp2201 if (!C->getValue().isStrictlyPositive()) continue; in OptimizeShadowIV()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp5820 } else if (Divisor.isStrictlyPositive() && magics.Magic.isNegative()) { in BuildSDIV()
5823 } else if (Divisor.isNegative() && magics.Magic.isStrictlyPositive()) { in BuildSDIV()

12