Home
last modified time | relevance | path

Searched refs:MinVal (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DTypeSize.h301 constexpr ElementCount(ScalarTy MinVal, bool Scalable) in ElementCount() argument
302 : FixedOrScalableQuantity(MinVal, Scalable) {} in ElementCount()
311 static constexpr ElementCount getFixed(ScalarTy MinVal) { in getFixed() argument
312 return ElementCount(MinVal, false); in getFixed()
314 static constexpr ElementCount getScalable(ScalarTy MinVal) { in getScalable() argument
315 return ElementCount(MinVal, true); in getScalable()
317 static constexpr ElementCount get(ScalarTy MinVal, bool Scalable) { in get() argument
318 return ElementCount(MinVal, Scalable); in get()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp79 APInt MinVal = LHS.getMinValue().uadd_sat(RHS.getMinValue()); in computeForAddSub() local
83 unsigned NumBits = MinVal.trunc(BitWidth - 1).countl_one(); in computeForAddSub()
88 KnownOut.One.setHighBits(MinVal.countl_one()); in computeForAddSub()
105 APInt MinVal; in computeForAddSub() local
109 MinVal = LHS.getSignedMinValue().sadd_sat(RHS.getSignedMinValue()); in computeForAddSub()
113 MinVal = LHS.getSignedMinValue().ssub_sat(RHS.getSignedMaxValue()); in computeForAddSub()
116 if (MinVal.isNonNegative()) { in computeForAddSub()
119 unsigned NumBits = MinVal.trunc(BitWidth - 1).countl_one(); in computeForAddSub()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.cpp488 int64_t MinVal = -uint64_t(1) << 31; in emitIncrement() local
490 if (ThisVal < MinVal) in emitIncrement()
491 ThisVal = MinVal; in emitIncrement()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp439 ParseStatus parsePCRel(OperandVector &Operands, int64_t MinVal,
1578 int64_t MinVal, int64_t MaxVal, in parsePCRel() argument
1592 if ((Value & 1) || Value < MinVal || Value > MaxVal) in parsePCRel()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp261 constexpr Immediate(ScalarTy MinVal, bool Scalable) in Immediate() argument
262 : FixedOrScalableQuantity(MinVal, Scalable) {} in Immediate()
270 static constexpr Immediate getFixed(ScalarTy MinVal) { in getFixed() argument
271 return {MinVal, false}; in getFixed()
273 static constexpr Immediate getScalable(ScalarTy MinVal) { in getScalable() argument
274 return {MinVal, true}; in getScalable()
276 static constexpr Immediate get(ScalarTy MinVal, bool Scalable) { in get() argument
277 return {MinVal, Scalable}; in get()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.h201 SDValue Src, SDValue MinVal, SDValue MaxVal,
H A DSIISelLowering.cpp13048 SDValue MinVal, in performIntMed3ImmCombine() argument
13058 ConstantSDNode *MinK = dyn_cast<ConstantSDNode>(MinVal); in performIntMed3ImmCombine()
13075 return DAG.getNode(Med3Opc, SL, VT, Src, MaxVal, MinVal); in performIntMed3ImmCombine()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp4921 APInt MinVal, MaxVal; in SimplifySetCC() local
4924 MinVal = APInt::getSignedMinValue(OperandBitSize); in SimplifySetCC()
4927 MinVal = APInt::getMinValue(OperandBitSize); in SimplifySetCC()
4934 if (C1 == MinVal) in SimplifySetCC()
4973 if (C1 == MinVal) in SimplifySetCC()
4983 if (C1 == MinVal+1) in SimplifySetCC()
4985 DAG.getConstant(MinVal, dl, N0.getValueType()), in SimplifySetCC()
4997 if (C1 == MinVal) in SimplifySetCC()
10402 APInt MinVal = APInt::getSignedMinValue(BitWidth); in expandAddSubSat() local
10427 SDValue SatMin = DAG.getConstant(MinVal, dl, VT); in expandAddSubSat()
[all …]
H A DLegalizeIntegerTypes.cpp1112 APInt MinVal = APInt::getSignedMinValue(OldBits).sext(NewBits); in PromoteIntRes_ADDSUBSHLSAT() local
1114 SDValue SatMin = DAG.getConstant(MinVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
4268 APInt MinVal = APInt::getSignedMinValue(VTSize); in ExpandIntRes_MULFIX() local
4270 SDValue SatMin = DAG.getConstant(MinVal, dl, VT); in ExpandIntRes_MULFIX()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DELFYAML.cpp1316 const int64_t MinVal = Is64 ? INT64_MIN : INT32_MIN; in input() local
1318 if (getAsSignedInteger(Scalar, /*Radix=*/0, Int) || (Int < MinVal)) in input()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp1820 const unsigned MinVal,
1825 const unsigned MinVal,
7931 const unsigned MinVal, in parseSwizzleOperand() argument
7942 if (Op < MinVal || Op > MaxVal) { in parseSwizzleOperand()
7952 const unsigned MinVal, in parseSwizzleOperands() argument
7957 if (!parseSwizzleOperand(Op[i], MinVal, MaxVal, ErrMsg, Loc)) in parseSwizzleOperands()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1714 APInt MinVal = APInt::getSignedMinValue(Ty->getScalarSizeInBits()); in visitSDiv() local
1715 Value *Cond = Builder.CreateICmpEQ(Op0, ConstantInt::get(Ty, MinVal)); in visitSDiv()
H A DInstCombineSelect.cpp2124 APInt MinVal = APInt::getSignedMinValue(Ty->getScalarSizeInBits()); in foldOverflowingAddSubSelect() local
2126 return match(Min, m_SpecificInt(MinVal)) && in foldOverflowingAddSubSelect()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp824 int64_t MinVal, MaxVal; in isImmScaled() local
827 MinVal = (int64_t(1) << Shift) * -Scale; in isImmScaled()
830 MinVal = 0; in isImmScaled()
834 if (Val >= MinVal && Val <= MaxVal && (Val % Scale) == 0) in isImmScaled()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp8021 auto MinVal = in lowerAddSubSatToMinMax() local
8027 Lo = MIRBuilder.buildSub(Ty, MinVal, MIRBuilder.buildSMin(Ty, LHS, Zero)); in lowerAddSubSatToMinMax()
8033 MinVal); in lowerAddSubSatToMinMax()
8098 auto MinVal = in lowerAddSubSatToAddoSubo() local
8100 Clamp = MIRBuilder.buildAdd(Ty, Sign, MinVal); in lowerAddSubSatToAddoSubo()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp6907 APInt MinVal = APInt::getZero(BitWidth); in getRangeRef() local
6909 MinVal = Align; in getRangeRef()
6911 ConstantRange::getNonEmpty(MinVal, MaxVal + 1), RangeType); in getRangeRef()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp10960 llvm::APFixedPoint MinVal = Context.getFixedPointMin(T); in CheckImplicitConversion() local
10961 if (Value > MaxVal || Value < MinVal) { in CheckImplicitConversion()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp5697 APInt MinVal = APInt::getSignedMinValue(32).sext(64); in lowerSADDSAT_SSUBSAT() local
5699 SDValue SatMin = DAG.getConstant(MinVal, DL, MVT::i64); in lowerSADDSAT_SSUBSAT()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp28185 APInt MinVal = APInt::getSignedMinValue(BitWidth); in LowerADDSAT_SUBSAT() local
28193 SDValue SatMin = DAG.getConstant(MinVal, DL, VT); in LowerADDSAT_SUBSAT()