/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | KnownBits.cpp | 91 APInt MaxVal = LHS.getMaxValue().usub_sat(RHS.getMinValue()); in computeForAddSub() local 97 unsigned NumBits = MaxVal.trunc(BitWidth - 1).countl_zero(); in computeForAddSub() 100 KnownOut.Zero.setHighBits(MaxVal.countl_zero()); in computeForAddSub() 106 APInt MaxVal; in computeForAddSub() local 110 MaxVal = LHS.getSignedMaxValue().sadd_sat(RHS.getSignedMaxValue()); in computeForAddSub() 114 MaxVal = LHS.getSignedMaxValue().ssub_sat(RHS.getSignedMinValue()); in computeForAddSub() 123 if (MaxVal.isNegative()) { in computeForAddSub() 125 unsigned NumBits = MaxVal.trunc(BitWidth - 1).countl_zero(); in computeForAddSub()
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 1654 auto MaxVal = llvm::APInt::getMaxValue(StoreVal.getBitWidth()); in GetFixedPointValue() local 1656 IntOverflowOccurred |= Val.ugt(MaxVal.zext(Val.getBitWidth())); in GetFixedPointValue() 1659 IntOverflowOccurred |= Val.zext(MaxVal.getBitWidth()).ugt(MaxVal); in GetFixedPointValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemoryBuiltins.cpp | 618 bool MaxVal = cast<ConstantInt>(ObjectSize->getArgOperand(1))->isZero(); in lowerObjectSizeCall() local 626 MaxVal ? ObjectSizeOpts::Mode::Max : ObjectSizeOpts::Mode::Min; in lowerObjectSizeCall() 678 return ConstantInt::get(ResultType, MaxVal ? -1ULL : 0); in lowerObjectSizeCall()
|
H A D | ScalarEvolution.cpp | 6903 APInt MaxVal = APInt::getMaxValue(BitWidth) - APInt(BitWidth, ObjSize); in getRangeRef() local 6905 uint64_t Rem = MaxVal.urem(Align); in getRangeRef() 6906 MaxVal -= APInt(BitWidth, Rem); in getRangeRef() 6911 ConstantRange::getNonEmpty(MinVal, MaxVal + 1), RangeType); in getRangeRef()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZFrameLowering.cpp | 489 int64_t MaxVal = (int64_t(1) << 31) - 8; in emitIncrement() local 492 else if (ThisVal > MaxVal) in emitIncrement() 493 ThisVal = MaxVal; in emitIncrement()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
H A D | SystemZAsmParser.cpp | 440 int64_t MaxVal, bool AllowTLS); 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/Target/AArch64/AsmParser/ |
H A D | AArch64AsmParser.cpp | 824 int64_t MinVal, MaxVal; in isImmScaled() local 828 MaxVal = ((int64_t(1) << Shift) - 1) * Scale; in isImmScaled() 831 MaxVal = ((int64_t(1) << Bits) - 1) * Scale; in isImmScaled() 834 if (Val >= MinVal && Val <= MaxVal && (Val % Scale) == 0) in isImmScaled() 3058 unsigned MaxVal = 63; in tryParseRPRFMOperand() local 3071 if (prfop > MaxVal) in tryParseRPRFMOperand() 3072 return TokError("prefetch operand out of range, [0," + utostr(MaxVal) + in tryParseRPRFMOperand() 3117 unsigned MaxVal = IsSVEPrefetch ? 15 : 31; in tryParsePrefetch() local 3131 if (prfop > MaxVal) in tryParsePrefetch() 3132 return TokError("prefetch operand out of range, [0," + utostr(MaxVal) + in tryParsePrefetch()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 176 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth) in DefineTypeSize() local 178 Builder.defineMacro(MacroName, toString(MaxVal, 10, isSigned) + ValSuffix); in DefineTypeSize()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DebugInfoMetadata.h | 3184 static const uint64_t MaxVal = std::numeric_limits<uint64_t>::max(); 3186 static inline FragInfo getEmptyKey() { return {MaxVal, MaxVal}; } 3188 static inline FragInfo getTombstoneKey() { return {MaxVal - 1, MaxVal - 1}; }
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/ |
H A D | AMDGPUAsmParser.cpp | 1657 bool tryParseFmt(const char *Pref, int64_t MaxVal, int64_t &Val); 1821 const unsigned MaxVal, 1826 const unsigned MaxVal, 6722 int64_t MaxVal, in tryParseFmt() argument 6733 if (Val < 0 || Val > MaxVal) { in tryParseFmt() 7932 const unsigned MaxVal, in parseSwizzleOperand() argument 7942 if (Op < MinVal || Op > MaxVal) { in parseSwizzleOperand() 7953 const unsigned MaxVal, in parseSwizzleOperands() argument 7957 if (!parseSwizzleOperand(Op[i], MinVal, MaxVal, ErrMsg, Loc)) in parseSwizzleOperands()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 4921 APInt MinVal, MaxVal; in SimplifySetCC() local 4925 MaxVal = APInt::getSignedMaxValue(OperandBitSize); in SimplifySetCC() 4928 MaxVal = APInt::getMaxValue(OperandBitSize); in SimplifySetCC() 4954 if (C1 == MaxVal) in SimplifySetCC() 4979 if (C1 == MaxVal) in SimplifySetCC() 4991 if (C1 == MaxVal) in SimplifySetCC() 5001 if (C1 == MaxVal-1) in SimplifySetCC() 5003 DAG.getConstant(MaxVal, dl, N0.getValueType()), in SimplifySetCC() 10403 APInt MaxVal = APInt::getSignedMaxValue(BitWidth); in expandAddSubSat() local 10419 SDValue SatMax = DAG.getConstant(MaxVal, dl, VT); in expandAddSubSat() [all …]
|
H A D | LegalizeIntegerTypes.cpp | 1067 APInt MaxVal = APInt::getAllOnes(OldBits).zext(NewBits); in PromoteIntRes_ADDSUBSHLSAT() local 1068 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT() 1113 APInt MaxVal = APInt::getSignedMaxValue(OldBits).sext(NewBits); in PromoteIntRes_ADDSUBSHLSAT() local 1115 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT() 4269 APInt MaxVal = APInt::getSignedMaxValue(VTSize); in ExpandIntRes_MULFIX() local 4271 SDValue SatMax = DAG.getConstant(MaxVal, dl, VT); in ExpandIntRes_MULFIX() 4282 APInt MaxVal = APInt::getMaxValue(VTSize); in ExpandIntRes_MULFIX() local 4283 SDValue SatMax = DAG.getConstant(MaxVal, dl, VT); in ExpandIntRes_MULFIX()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SIISelLowering.h | 201 SDValue Src, SDValue MinVal, SDValue MaxVal,
|
H A D | SIISelLowering.cpp | 13049 SDValue MaxVal, in performIntMed3ImmCombine() argument 13059 ConstantSDNode *MaxK = dyn_cast<ConstantSDNode>(MaxVal); in performIntMed3ImmCombine() 13075 return DAG.getNode(Med3Opc, SL, VT, Src, MaxVal, MinVal); in performIntMed3ImmCombine()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 2196 auto MaxVal = APInt::getMaxValue(DstBits).zext(SrcBits); in generateOverflowCheck() local 2199 ConstantInt::get(Loc->getContext(), MaxVal)); in generateOverflowCheck()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | ELFYAML.cpp | 1324 const uint64_t MaxVal = Is64 ? UINT64_MAX : UINT32_MAX; in input() local 1326 if (getAsUnsignedInteger(Scalar, /*Radix=*/0, UInt) || (UInt > MaxVal)) in input()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 6216 APInt MaxVal = APInt::getMaxValue(MulWidth); in processUMulZExtIdiom() local 6217 MaxVal = MaxVal.zext(OtherVal->getBitWidth()); in processUMulZExtIdiom() 6218 if (MaxVal.eq(*OtherVal)) in processUMulZExtIdiom() 6227 APInt MaxVal = APInt::getOneBitSet(OtherVal->getBitWidth(), MulWidth); in processUMulZExtIdiom() local 6228 if (MaxVal.eq(*OtherVal)) in processUMulZExtIdiom()
|
H A D | InstCombineSelect.cpp | 2125 APInt MaxVal = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldOverflowingAddSubSelect() local 2127 match(Max, m_SpecificInt(MaxVal)); in foldOverflowingAddSubSelect()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 3076 APFloat MaxVal = APFloat(FltSem); in lowerVectorFTRUNC_FCEIL_FFLOOR_FROUND() local 3077 MaxVal.convertFromAPInt(APInt::getOneBitSet(Precision, Precision - 1), in lowerVectorFTRUNC_FCEIL_FFLOOR_FROUND() 3080 DAG.getConstantFP(MaxVal, DL, ContainerVT.getVectorElementType()); in lowerVectorFTRUNC_FCEIL_FFLOOR_FROUND() 3186 APFloat MaxVal = APFloat(FltSem); in lowerVectorStrictFTRUNC_FCEIL_FFLOOR_FROUND() local 3187 MaxVal.convertFromAPInt(APInt::getOneBitSet(Precision, Precision - 1), in lowerVectorStrictFTRUNC_FCEIL_FFLOOR_FROUND() 3190 DAG.getConstantFP(MaxVal, DL, ContainerVT.getVectorElementType()); in lowerVectorStrictFTRUNC_FCEIL_FFLOOR_FROUND() 3266 APFloat MaxVal = APFloat(FltSem); in lowerFTRUNC_FCEIL_FFLOOR_FROUND() local 3267 MaxVal.convertFromAPInt(APInt::getOneBitSet(Precision, Precision - 1), in lowerFTRUNC_FCEIL_FFLOOR_FROUND() 3269 SDValue MaxValNode = DAG.getConstantFP(MaxVal, DL, VT); in lowerFTRUNC_FCEIL_FFLOOR_FROUND() 5698 APInt MaxVal = APInt::getSignedMaxValue(32).sext(64); in lowerSADDSAT_SSUBSAT() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalizerHelper.cpp | 8019 auto MaxVal = in lowerAddSubSatToMinMax() local 8026 Hi = MIRBuilder.buildSub(Ty, MaxVal, MIRBuilder.buildSMax(Ty, LHS, Zero)); in lowerAddSubSatToMinMax() 8031 MaxVal); in lowerAddSubSatToMinMax()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExpr.cpp | 3807 auto MaxVal = Context.getFixedPointMax(Ty).getValue(); in ActOnNumericConstant() local 3808 if (Literal.isFract && Val == MaxVal + 1 && !ValIsZero) in ActOnNumericConstant() 3814 else if (Val.ugt(MaxVal) || Overflowed) in ActOnNumericConstant()
|
H A D | SemaChecking.cpp | 10959 llvm::APFixedPoint MaxVal = Context.getFixedPointMax(T); in CheckImplicitConversion() local 10961 if (Value > MaxVal || Value < MinVal) { in CheckImplicitConversion()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 28186 APInt MaxVal = APInt::getSignedMaxValue(BitWidth); in LowerADDSAT_SUBSAT() local 28194 SDValue SatMax = DAG.getConstant(MaxVal, DL, VT); in LowerADDSAT_SUBSAT()
|