Home
last modified time | relevance | path

Searched refs:MaxVal (Results 1 – 25 of 39) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousEnumUsageCheck.cpp38 llvm::APSInt MaxVal; member
48 MaxVal = MinMaxVal.second->getInitVal(); in ValueRange()
60 return llvm::APSInt::compareValues(Range1.MaxVal, Range2.MinVal) < 0 || in hasDisjointValueRange()
61 llvm::APSInt::compareValues(Range2.MaxVal, Range1.MinVal) < 0; in hasDisjointValueRange()
106 (VR.MaxVal - VR.MinVal != EnumLen - 1) && in isPossiblyBitMask()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DConversionChecker.cpp175 unsigned long long MaxVal = 1ULL << RepresentsUntilExp; in isLossOfPrecision() local
178 MaxVal++; in isLossOfPrecision()
180 return C.isGreaterOrEqual(Cast->getSubExpr(), MaxVal); in isLossOfPrecision()
/external/ImageMagick/coders/
Dmat.c188 double MaxVal,ExceptionInfo *exception) in InsertComplexDoubleRow() argument
196 if (MaxVal <= 0) in InsertComplexDoubleRow()
197 MaxVal = 1; in InsertComplexDoubleRow()
206 f=(*p/MaxVal)*(Quantum) (QuantumRange-GetPixelRed(image,q)); in InsertComplexDoubleRow()
251 double MaxVal,ExceptionInfo *exception) in InsertComplexFloatRow() argument
259 if (MaxVal <= 0) in InsertComplexFloatRow()
260 MaxVal = 1; in InsertComplexFloatRow()
269 f=(*p/MaxVal)*(Quantum) (QuantumRange-GetPixelRed(image,q)); in InsertComplexFloatRow()
288 f=(*p/MaxVal)*(Quantum) (QuantumRange-GetPixelBlue(image,q)); in InsertComplexFloatRow()
888 double MinVal, MaxVal; in ReadMATImage() local
[all …]
/external/llvm-project/polly/lib/Transform/
DFlattenAlgo.cpp282 auto MaxVal = getConstant(Max, true, false); in tryFlattenLoop() local
284 if (!MinVal || !MaxVal || MinVal.is_nan() || MaxVal.is_nan()) { in tryFlattenLoop()
292 auto LenVal = MaxVal.sub(MinVal).add_ui(1); in tryFlattenLoop()
/external/llvm/lib/Target/SystemZ/
DSystemZFrameLowering.cpp307 int64_t MaxVal = (int64_t(1) << 31) - 8; in emitIncrement() local
310 else if (ThisVal > MaxVal) in emitIncrement()
311 ThisVal = MaxVal; in emitIncrement()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZFrameLowering.cpp405 int64_t MaxVal = (int64_t(1) << 31) - 8; in emitIncrement() local
408 else if (ThisVal > MaxVal) in emitIncrement()
409 ThisVal = MaxVal; in emitIncrement()
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZFrameLowering.cpp373 int64_t MaxVal = (int64_t(1) << 31) - 8; in emitIncrement() local
376 else if (ThisVal > MaxVal) in emitIncrement()
377 ThisVal = MaxVal; in emitIncrement()
/external/llvm-project/clang/lib/Lex/
DLiteralSupport.cpp1184 auto MaxVal = llvm::APInt::getMaxValue(StoreVal.getBitWidth()); in GetFixedPointValue() local
1186 IntOverflowOccurred |= Val.ugt(MaxVal.zext(Val.getBitWidth())); in GetFixedPointValue()
1189 IntOverflowOccurred |= Val.zext(MaxVal.getBitWidth()).ugt(MaxVal); in GetFixedPointValue()
/external/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp383 int64_t MaxVal, bool AllowTLS);
854 int64_t MaxVal, bool AllowTLS) { in parsePCRel() argument
866 if ((Value & 1) || Value < MinVal || Value > MaxVal) { in parsePCRel()
/external/deqp/modules/egl/
DteglChooseConfigTests.cpp368 template <int MinVal, int MaxVal> static EGLint getInt (de::Random& rnd) in getInt()
370 return rnd.getInt(MinVal, MaxVal); in getInt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryBuiltins.cpp509 bool MaxVal = cast<ConstantInt>(ObjectSize->getArgOperand(1))->isZero(); in lowerObjectSizeCall() local
515 MaxVal ? ObjectSizeOpts::Mode::Max : ObjectSizeOpts::Mode::Min; in lowerObjectSizeCall()
556 return ConstantInt::get(ResultType, MaxVal ? -1ULL : 0); in lowerObjectSizeCall()
/external/llvm-project/llvm/lib/Analysis/
DMemoryBuiltins.cpp530 bool MaxVal = cast<ConstantInt>(ObjectSize->getArgOperand(1))->isZero(); in lowerObjectSizeCall() local
536 MaxVal ? ObjectSizeOpts::Mode::Max : ObjectSizeOpts::Mode::Min; in lowerObjectSizeCall()
577 return ConstantInt::get(ResultType, MaxVal ? -1ULL : 0); in lowerObjectSizeCall()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2783 APInt MaxVal = APInt::getMaxValue(MulWidth); in ProcessUMulZExtIdiom() local
2784 MaxVal = MaxVal.zext(CI->getBitWidth()); in ProcessUMulZExtIdiom()
2785 if (MaxVal.eq(CI->getValue())) in ProcessUMulZExtIdiom()
2795 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth); in ProcessUMulZExtIdiom() local
2796 if (MaxVal.eq(CI->getValue())) in ProcessUMulZExtIdiom()
2806 APInt MaxVal = APInt::getMaxValue(MulWidth); in ProcessUMulZExtIdiom() local
2807 MaxVal = MaxVal.zext(CI->getBitWidth()); in ProcessUMulZExtIdiom()
2808 if (MaxVal.eq(CI->getValue())) in ProcessUMulZExtIdiom()
2818 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth); in ProcessUMulZExtIdiom() local
2819 if (MaxVal.eq(CI->getValue())) in ProcessUMulZExtIdiom()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp431 int64_t MaxVal, bool AllowTLS);
1299 int64_t MaxVal, bool AllowTLS) { in parsePCRel() argument
1310 if ((Value & 1) || Value < MinVal || Value > MaxVal) in parsePCRel()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1737 APInt MinVal, MaxVal; in SimplifySetCC() local
1741 MaxVal = APInt::getSignedMaxValue(OperandBitSize); in SimplifySetCC()
1744 MaxVal = APInt::getMaxValue(OperandBitSize); in SimplifySetCC()
1764 if (C1 == MaxVal) return DAG.getConstant(1, dl, VT); // X <= MAX --> true in SimplifySetCC()
1782 if ((Cond == ISD::SETGT || Cond == ISD::SETUGT) && C1 == MaxVal) in SimplifySetCC()
1784 if ((Cond == ISD::SETLE || Cond == ISD::SETULE) && C1 == MaxVal) in SimplifySetCC()
1791 if ((Cond == ISD::SETLT || Cond == ISD::SETULT) && C1 == MaxVal) in SimplifySetCC()
1800 if ((Cond == ISD::SETGT || Cond == ISD::SETUGT) && C1 == MaxVal-1) in SimplifySetCC()
1802 DAG.getConstant(MaxVal, dl, N0.getValueType()), in SimplifySetCC()
/external/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp427 int64_t MaxVal, bool AllowTLS);
1481 int64_t MaxVal, bool AllowTLS) { in parsePCRel() argument
1492 if ((Value & 1) || Value < MinVal || Value > MaxVal) in parsePCRel()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp4732 APInt MaxVal = APInt::getMaxValue(MulWidth); in processUMulZExtIdiom() local
4733 MaxVal = MaxVal.zext(CI->getBitWidth()); in processUMulZExtIdiom()
4734 if (MaxVal.eq(CI->getValue())) in processUMulZExtIdiom()
4744 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth); in processUMulZExtIdiom() local
4745 if (MaxVal.eq(CI->getValue())) in processUMulZExtIdiom()
4755 APInt MaxVal = APInt::getMaxValue(MulWidth); in processUMulZExtIdiom() local
4756 MaxVal = MaxVal.zext(CI->getBitWidth()); in processUMulZExtIdiom()
4757 if (MaxVal.eq(CI->getValue())) in processUMulZExtIdiom()
4767 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth); in processUMulZExtIdiom() local
4768 if (MaxVal.eq(CI->getValue())) in processUMulZExtIdiom()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp4665 APInt MaxVal = APInt::getMaxValue(MulWidth); in processUMulZExtIdiom() local
4666 MaxVal = MaxVal.zext(CI->getBitWidth()); in processUMulZExtIdiom()
4667 if (MaxVal.eq(CI->getValue())) in processUMulZExtIdiom()
4677 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth); in processUMulZExtIdiom() local
4678 if (MaxVal.eq(CI->getValue())) in processUMulZExtIdiom()
4688 APInt MaxVal = APInt::getMaxValue(MulWidth); in processUMulZExtIdiom() local
4689 MaxVal = MaxVal.zext(CI->getBitWidth()); in processUMulZExtIdiom()
4690 if (MaxVal.eq(CI->getValue())) in processUMulZExtIdiom()
4700 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth); in processUMulZExtIdiom() local
4701 if (MaxVal.eq(CI->getValue())) in processUMulZExtIdiom()
/external/clang/lib/Frontend/
DInitPreprocessor.cpp187 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth) in DefineTypeSize() local
189 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix); in DefineTypeSize()
/external/llvm-project/clang/lib/Frontend/
DInitPreprocessor.cpp169 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth) in DefineTypeSize() local
171 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix); in DefineTypeSize()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp3865 APInt MinVal, MaxVal; in SimplifySetCC() local
3869 MaxVal = APInt::getSignedMaxValue(OperandBitSize); in SimplifySetCC()
3872 MaxVal = APInt::getMaxValue(OperandBitSize); in SimplifySetCC()
3898 if (C1 == MaxVal) in SimplifySetCC()
3923 if (C1 == MaxVal) in SimplifySetCC()
3935 if (C1 == MaxVal) in SimplifySetCC()
3945 if (C1 == MaxVal-1) in SimplifySetCC()
3947 DAG.getConstant(MaxVal, dl, N0.getValueType()), in SimplifySetCC()
7613 APInt MaxVal = APInt::getSignedMaxValue(BitWidth); in expandAddSubSat() local
7615 SDValue SatMax = DAG.getConstant(MaxVal, dl, VT); in expandAddSubSat()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp3560 APInt MinVal, MaxVal; in SimplifySetCC() local
3564 MaxVal = APInt::getSignedMaxValue(OperandBitSize); in SimplifySetCC()
3567 MaxVal = APInt::getMaxValue(OperandBitSize); in SimplifySetCC()
3593 if (C1 == MaxVal) in SimplifySetCC()
3618 if (C1 == MaxVal) in SimplifySetCC()
3630 if (C1 == MaxVal) in SimplifySetCC()
3640 if (C1 == MaxVal-1) in SimplifySetCC()
3642 DAG.getConstant(MaxVal, dl, N0.getValueType()), in SimplifySetCC()
7163 APInt MaxVal = APInt::getSignedMaxValue(BitWidth); in expandAddSubSat() local
7165 SDValue SatMax = DAG.getConstant(MaxVal, dl, VT); in expandAddSubSat()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDebugInfoMetadata.h2607 static const uint64_t MaxVal = std::numeric_limits<uint64_t>::max();
2609 static inline FragInfo getEmptyKey() { return {MaxVal, MaxVal}; }
2611 static inline FragInfo getTombstoneKey() { return {MaxVal - 1, MaxVal - 1}; }
/external/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp1350 bool tryParseFmt(const char *Pref, int64_t MaxVal, int64_t &Val);
1462 const unsigned MaxVal,
1467 const unsigned MaxVal,
5193 int64_t MaxVal, in tryParseFmt() argument
5204 if (Val < 0 || Val > MaxVal) { in tryParseFmt()
6246 const unsigned MaxVal, in parseSwizzleOperand() argument
6256 if (Op < MinVal || Op > MaxVal) { in parseSwizzleOperand()
6267 const unsigned MaxVal, in parseSwizzleOperands() argument
6271 if (!parseSwizzleOperand(Op[i], MinVal, MaxVal, ErrMsg, Loc)) in parseSwizzleOperands()
/external/llvm-project/llvm/include/llvm/IR/
DDebugInfoMetadata.h2853 static const uint64_t MaxVal = std::numeric_limits<uint64_t>::max();
2855 static inline FragInfo getEmptyKey() { return {MaxVal, MaxVal}; }
2857 static inline FragInfo getTombstoneKey() { return {MaxVal - 1, MaxVal - 1}; }

12