Home
last modified time | relevance | path

Searched refs:Overflowed (Results 1 – 8 of 8) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp188 bool Overflowed = false; in add() local
200 *Overflow = Overflowed; in add()
212 bool Overflowed = false; in sub() local
224 *Overflow = Overflowed; in sub()
236 bool Overflowed = false; in mul() local
280 *Overflow = Overflowed; in mul()
293 bool Overflowed = false; in div() local
341 *Overflow = Overflowed; in div()
349 bool Overflowed = false; in shl() local
376 *Overflow = Overflowed; in shl()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h483 Overflowed = (Z < X || Z < Y);
484 if (Overflowed)
495 bool Overflowed = false; in SaturatingAdd() local
496 T XY = SaturatingAdd(X, Y, &Overflowed); in SaturatingAdd()
497 if (Overflowed) in SaturatingAdd()
516 Overflowed = false;
528 Overflowed = true;
537 Overflowed = true;
557 T Product = SaturatingMultiply(X, Y, &Overflowed);
558 if (Overflowed)
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProf.h347 bool Overflowed;
348 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed);
349 return Overflowed ? sampleprof_error::counter_overflow
370 bool Overflowed;
372 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed);
373 return Overflowed ? sampleprof_error::counter_overflow
752 bool Overflowed;
754 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed);
755 return Overflowed ? sampleprof_error::counter_overflow
771 bool Overflowed;
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp760 bool Overflowed; in merge() local
762 if (Overflowed) in merge()
774 bool Overflowed; in scale() local
776 if (Overflowed) in scale()
830 bool Overflowed; in merge() local
835 Overflowed = true; in merge()
838 if (Overflowed) in merge()
869 bool Overflowed; in scale() local
870 Count = SaturatingMultiply(Count, N, &Overflowed) / D; in scale()
873 Overflowed = true; in scale()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOMemOPSizeOpt.cpp243 bool Overflowed; in getScaledCount() local
244 uint64_t ScaleCount = SaturatingMultiply(Count, Num, &Overflowed); in getScaledCount()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp13956 bool Overflowed; in VisitCastExpr() local
13959 DestType->isSignedIntegerOrEnumerationType(), &Overflowed); in VisitCastExpr()
13960 if (Overflowed && !HandleOverflow(Info, E, Result, DestType)) in VisitCastExpr()
14151 bool Overflowed; in VisitUnaryOperator() local
14178 bool Overflowed; in VisitCastExpr() local
14179 APFixedPoint Result = Src.convert(DestFXSema, &Overflowed); in VisitCastExpr()
14180 if (Overflowed) { in VisitCastExpr()
14195 bool Overflowed; in VisitCastExpr() local
14199 if (Overflowed) { in VisitCastExpr()
14215 bool Overflowed; in VisitCastExpr() local
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp15863 bool Overflowed; in CheckImplicitConversion() local
15866 Target->isSignedIntegerOrEnumerationType(), &Overflowed); in CheckImplicitConversion()
15868 if (Overflowed) { in CheckImplicitConversion()
15885 bool Overflowed; in CheckImplicitConversion() local
15887 Value, S.Context.getFixedPointSemantics(T), &Overflowed); in CheckImplicitConversion()
15889 if (Overflowed) { in CheckImplicitConversion()
H A DSemaExpr.cpp4078 bool Overflowed = Literal.GetFixedPointValue(Val, scale); in ActOnNumericConstant() local
4079 bool ValIsZero = Val.isZero() && !Overflowed; in ActOnNumericConstant()
4088 else if (Val.ugt(MaxVal) || Overflowed) in ActOnNumericConstant()