/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constant.h | 79 bool isMinSignedValue() const;
|
H A D | Constants.h | 239 return Val.isMinSignedValue(); in isMinValue()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 120 if (SMax.isMinSignedValue()) in makeAllowedICmpRegion() 217 } else if (getLower().isMinSignedValue() || getLower().isMinValue()) { in getEquivalentICmp() 219 getLower().isMinSignedValue() ? CmpInst::ICMP_SLT : CmpInst::ICMP_ULT; in getEquivalentICmp() 221 } else if (getUpper().isMinSignedValue() || getUpper().isMinValue()) { in getEquivalentICmp() 223 getUpper().isMinSignedValue() ? CmpInst::ICMP_SGE : CmpInst::ICMP_UGE; in getEquivalentICmp() 430 return Lower.sgt(Upper) && !Upper.isMinSignedValue(); in isSignWrappedSet() 852 if (Upper.isMinSignedValue()) in signExtend() 1205 (UR.getUpper().isNonNegative() || UR.getUpper().isMinSignedValue())) in multiply() 1374 if (NegL.Lower.isMinSignedValue() && NegR.Upper.isZero()) { in sdiv() 1784 if (IntMinIsPoison && SMin.isMinSignedValue()) { in abs() [all …]
|
H A D | ConstantFold.cpp | 825 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction() 833 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
|
H A D | Constants.cpp | 169 bool Constant::isMinSignedValue() const { in isMinSignedValue() function in Constant 176 return CFP->getValueAPF().bitcastToAPInt().isMinSignedValue(); in isMinSignedValue() 181 return SplatVal->isMinSignedValue(); in isMinSignedValue() 193 return !CFP->getValueAPF().bitcastToAPInt().isMinSignedValue(); in isNotMinSignedValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APFixedPoint.cpp | 438 (!isSigned() && Val != 0) || (isSigned() && Val.isMinSignedValue()); in negate() 447 return Val.isMinSignedValue() ? getMax(Sema) : APFixedPoint(-Val, Sema); in negate()
|
H A D | SlowDynamicAPInt.cpp | 240 if (Val.isMinSignedValue()) { in operator -()
|
H A D | KnownBits.cpp | 599 if (IntMinIsPoison || (!One.isZero() && !One.isMinSignedValue())) { in abs() 969 Res = (Num.isMinSignedValue() && Denom.isAllOnes()) in sdiv()
|
H A D | APInt.cpp | 1926 Overflow = isMinSignedValue() && RHS.isAllOnes(); in sdiv_ov() 1935 (isMinSignedValue() && RHS.isAllOnes()); in smul_ov()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APInt.h | 403 bool isMinSignedValue() const { in isMinSignedValue() function 446 bool isSignMask() const { return isMinSignedValue(); } in isSignMask()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 1069 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnes()) in isMultiple() 1652 if (!Op1C->isMinSignedValue() && match(Op0, m_NSWNeg(m_Value(X)))) { in visitSDiv() 2143 !Op1Int->isMinSignedValue())) { in commonIRemTransforms() 2252 if (match(Op1, m_Negative(Y)) && !Y->isMinSignedValue()) in visitSRem()
|
H A D | InstCombineCompares.cpp | 1648 if (Shift == 0 || PowerOf2.isMinSignedValue()) in foldICmpXorShiftConst() 2200 if (C.isMinSignedValue() && MulC->isAllOnes()) in foldICmpMulConstant() 2339 assert(!C.isMinSignedValue() && "Unexpected icmp slt"); in foldICmpShlConstant() 2536 if (!C.isMaxSignedValue() && !(C + 1).shl(ShAmtVal).isMinSignedValue() && in foldICmpShrConstant() 2546 (C + 1).shl(ShAmtVal).isMinSignedValue()) in foldICmpShrConstant() 2721 (!DivIsSigned || C.isMinSignedValue())) { in foldICmpDivConstant() 3618 if (C.isZero() || C.isMinSignedValue()) in foldICmpEqIntrinsicWithConstant() 7396 if (Pred == ICmpInst::ICMP_ULT && C->isMinSignedValue()) { in visitICmpInst()
|
H A D | InstCombineShifts.cpp | 795 !DivC->isMinSignedValue()) { in FoldShiftByConstant()
|
H A D | InstCombineAddSub.cpp | 941 C2->isMinSignedValue() && C2->sext(Ty->getScalarSizeInBits()) == *C) in foldAddWithConstant()
|
H A D | InstCombineSelect.cpp | 1687 if (CmpC->isMinSignedValue() && match(TVal, m_SpecificInt(*CmpC + 1))) in foldSelectInstWithICmpConst()
|
H A D | InstructionCombining.cpp | 753 if (match(V, m_APInt(CInt)) && !CInt->isMinSignedValue()) in tryFactorization()
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 490 bool Overflow = !Result.isUnsigned() && Result.Val.isMinSignedValue(); in EvaluateValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 4336 return RHS.isMinSignedValue(); in isSignBitCheck() 4340 return RHS.isMinSignedValue(); in isSignBitCheck() 6872 return !Numerator->isMinSignedValue(); in isSafeToSpeculativelyExecuteWithOpcode() 8340 if (Pred == CmpInst::ICMP_SGT && C1->isAllOnes() && C2->isMinSignedValue()) in matchMinMax() 9459 if (C->isMinSignedValue()) { in setLimitsForBinOp()
|
H A D | ConstantFolding.cpp | 2929 if (C1->isOne() && (!C0 || C0->isMinSignedValue())) in ConstantFoldIntrinsicCall2()
|
H A D | ScalarEvolution.cpp | 4699 !getSignedRangeMin(RHS).isMinSignedValue(); in getMinusSCEV() 10758 assert(!RA.isMinSignedValue() && "Should have been caught earlier!"); in SimplifyICmpOperands() 10790 } else if (!getSignedRangeMin(LHS).isMinSignedValue()) { in SimplifyICmpOperands() 10798 if (!getSignedRangeMin(RHS).isMinSignedValue()) { in SimplifyICmpOperands()
|
H A D | InstructionSimplify.cpp | 1032 if (match(X, m_APInt(C)) && !C->isMinSignedValue()) { in isDivZero() 1046 if (C->isMinSignedValue()) in isDivZero()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SelectionDAGNodes.h | 1681 bool isMinSignedValue() const { return Value->isMinValue(true); }
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 5084 (Cond == ISD::SETUGE && C1.isMinSignedValue())) in SimplifySetCC() 5091 if ((Cond == ISD::SETULT && C1.isMinSignedValue()) || in SimplifySetCC() 6995 HadIntMinDivisor |= D.isMinSignedValue(); in prepareSREMEqFold() 7006 if (!D.isMinSignedValue()) { in prepareSREMEqFold() 7026 if (!D.isMinSignedValue()) { in prepareSREMEqFold() 10972 bool UseArithShift = isSigned && !C.isMinSignedValue(); in expandMULO()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | RangeConstraintManager.cpp | 1410 if (Origin.From().isMinSignedValue()) { in getSymmetricalRange()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 1906 if (Int.isUnsigned() || Int.isMinSignedValue()) { in negateAsSigned() 2827 LHS.isMinSignedValue()) in handleIntIntBinOp() 14216 if (Value.isSigned() && Value.isMinSignedValue() && E->canOverflow()) { in VisitUnaryOperator() 16640 if (LEval.isMinSignedValue()) in CheckICE()
|