Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp183 bool Overflowed = false; in add() local
195 *Overflow = Overflowed; in add()
207 bool Overflowed = false; in sub() local
219 *Overflow = Overflowed; in sub()
231 bool Overflowed = false; in mul() local
275 *Overflow = Overflowed; in mul()
288 bool Overflowed = false; in div() local
330 *Overflow = Overflowed; in div()
338 bool Overflowed = false; in shl() local
365 *Overflow = Overflowed; in shl()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProf.h321 bool Overflowed;
322 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed);
323 return Overflowed ? sampleprof_error::counter_overflow
335 bool Overflowed;
337 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed);
338 return Overflowed ? sampleprof_error::counter_overflow
557 bool Overflowed;
559 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed);
560 return Overflowed ? sampleprof_error::counter_overflow
567 bool Overflowed;
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h805 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
808 Overflowed = (Z < X || Z < Y);
809 if (Overflowed)
822 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
829 Overflowed = false;
841 Overflowed = true;
850 Overflowed = true;
868 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
870 T Product = SaturatingMultiply(X, Y, &Overflowed);
871 if (Overflowed)
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp636 bool Overflowed; in merge() local
638 if (Overflowed) in merge()
650 bool Overflowed; in scale() local
651 I->Count = SaturatingMultiply(I->Count, N, &Overflowed) / D; in scale()
652 if (Overflowed) in scale()
688 bool Overflowed; in merge() local
690 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
691 if (Overflowed) in merge()
710 bool Overflowed; in scale() local
711 Count = SaturatingMultiply(Count, N, &Overflowed) / D; in scale()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOMemOPSizeOpt.cpp289 bool Overflowed; in getScaledCount() local
290 uint64_t ScaleCount = SaturatingMultiply(Count, Num, &Overflowed); in getScaledCount()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp13261 bool Overflowed; in VisitCastExpr() local
13264 DestType->isSignedIntegerOrEnumerationType(), &Overflowed); in VisitCastExpr()
13265 if (Overflowed && !HandleOverflow(Info, E, Result, DestType)) in VisitCastExpr()
13405 bool Overflowed; in VisitUnaryOperator() local
13432 bool Overflowed; in VisitCastExpr() local
13433 APFixedPoint Result = Src.convert(DestFXSema, &Overflowed); in VisitCastExpr()
13434 if (Overflowed) { in VisitCastExpr()
13449 bool Overflowed; in VisitCastExpr() local
13453 if (Overflowed) { in VisitCastExpr()
13469 bool Overflowed; in VisitCastExpr() local
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp12721 bool Overflowed; in CheckImplicitConversion() local
12724 Target->isSignedIntegerOrEnumerationType(), &Overflowed); in CheckImplicitConversion()
12726 if (Overflowed) { in CheckImplicitConversion()
12743 bool Overflowed; in CheckImplicitConversion() local
12745 Value, S.Context.getFixedPointSemantics(T), &Overflowed); in CheckImplicitConversion()
12747 if (Overflowed) { in CheckImplicitConversion()
H A DSemaExpr.cpp3834 bool Overflowed = Literal.GetFixedPointValue(Val, scale); in ActOnNumericConstant() local
3835 bool ValIsZero = Val.isNullValue() && !Overflowed; in ActOnNumericConstant()
3844 else if (Val.ugt(MaxVal) || Overflowed) in ActOnNumericConstant()