Home
last modified time | relevance | path

Searched refs:isMinSignedValue (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstant.h79 bool isMinSignedValue() const;
H A DConstants.h239 return Val.isMinSignedValue(); in isMinValue()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp120 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 DConstantFold.cpp825 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
833 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
H A DConstants.cpp169 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 DAPFixedPoint.cpp438 (!isSigned() && Val != 0) || (isSigned() && Val.isMinSignedValue()); in negate()
447 return Val.isMinSignedValue() ? getMax(Sema) : APFixedPoint(-Val, Sema); in negate()
H A DSlowDynamicAPInt.cpp240 if (Val.isMinSignedValue()) { in operator -()
H A DKnownBits.cpp599 if (IntMinIsPoison || (!One.isZero() && !One.isMinSignedValue())) { in abs()
969 Res = (Num.isMinSignedValue() && Denom.isAllOnes()) in sdiv()
H A DAPInt.cpp1926 Overflow = isMinSignedValue() && RHS.isAllOnes(); in sdiv_ov()
1935 (isMinSignedValue() && RHS.isAllOnes()); in smul_ov()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h403 bool isMinSignedValue() const { in isMinSignedValue() function
446 bool isSignMask() const { return isMinSignedValue(); } in isSignMask()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1069 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 DInstCombineCompares.cpp1648 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 DInstCombineShifts.cpp795 !DivC->isMinSignedValue()) { in FoldShiftByConstant()
H A DInstCombineAddSub.cpp941 C2->isMinSignedValue() && C2->sext(Ty->getScalarSizeInBits()) == *C) in foldAddWithConstant()
H A DInstCombineSelect.cpp1687 if (CmpC->isMinSignedValue() && match(TVal, m_SpecificInt(*CmpC + 1))) in foldSelectInstWithICmpConst()
H A DInstructionCombining.cpp753 if (match(V, m_APInt(CInt)) && !CInt->isMinSignedValue()) in tryFactorization()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp490 bool Overflow = !Result.isUnsigned() && Result.Val.isMinSignedValue(); in EvaluateValue()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp4336 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 DConstantFolding.cpp2929 if (C1->isOne() && (!C0 || C0->isMinSignedValue())) in ConstantFoldIntrinsicCall2()
H A DScalarEvolution.cpp4699 !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 DInstructionSimplify.cpp1032 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 DSelectionDAGNodes.h1681 bool isMinSignedValue() const { return Value->isMinValue(true); }
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp5084 (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 DRangeConstraintManager.cpp1410 if (Origin.From().isMinSignedValue()) { in getSymmetricalRange()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp1906 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()

12