Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp204 bool Overflowed = false; in add() local
211 Result = ThisVal.isSigned() ? ThisVal.sadd_ov(OtherVal, Overflowed) in add()
212 : ThisVal.uadd_ov(OtherVal, Overflowed); in add()
216 *Overflow = Overflowed; in add()
228 bool Overflowed = false; in sub() local
235 Result = ThisVal.isSigned() ? ThisVal.ssub_ov(OtherVal, Overflowed) in sub()
236 : ThisVal.usub_ov(OtherVal, Overflowed); in sub()
240 *Overflow = Overflowed; in sub()
252 bool Overflowed = false; in mul() local
273 Result = ThisVal.smul_ov(OtherVal, Overflowed) in mul()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h620 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy; variable
623 Overflowed = (Z < X || Z < Y);
624 if (Overflowed)
635 bool Overflowed = false; in SaturatingAdd() local
636 T XY = SaturatingAdd(X, Y, &Overflowed); in SaturatingAdd()
637 if (Overflowed) in SaturatingAdd()
649 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy; variable
656 Overflowed = false;
668 Overflowed = true;
677 Overflowed = true;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProf.h353 bool Overflowed;
354 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed);
355 return Overflowed ? sampleprof_error::counter_overflow
376 bool Overflowed;
378 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed);
379 return Overflowed ? sampleprof_error::counter_overflow
765 bool Overflowed;
767 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed);
768 return Overflowed ? sampleprof_error::counter_overflow
784 bool Overflowed;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp912 bool Overflowed; in merge() local
913 I->Count = SaturatingMultiplyAdd(J.Count, Weight, I->Count, &Overflowed); in merge()
914 if (Overflowed) in merge()
929 bool Overflowed; in scale() local
930 I.Count = SaturatingMultiply(I.Count, N, &Overflowed) / D; in scale()
931 if (Overflowed) in scale()
985 bool Overflowed; in merge() local
987 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
990 Overflowed = true; in merge()
993 if (Overflowed) in merge()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOMemOPSizeOpt.cpp238 bool Overflowed; in getScaledCount() local
239 uint64_t ScaleCount = SaturatingMultiply(Count, Num, &Overflowed); in getScaledCount()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseHLSLRootSignature.cpp1283 bool Overflowed = Literal.GetIntegerValue(Val); in handleIntLiteral() local
1287 Overflowed |= (Negated && MaxNegativeMagnitude < Val.getExtValue()); in handleIntLiteral()
1290 Overflowed |= (!Negated && MaxPositiveMagnitude < Val.getExtValue()); in handleIntLiteral()
1292 if (Overflowed) { in handleIntLiteral()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp15210 bool Overflowed; in VisitCastExpr() local
15213 DestType->isSignedIntegerOrEnumerationType(), &Overflowed); in VisitCastExpr()
15214 if (Overflowed && !HandleOverflow(Info, E, Result, DestType)) in VisitCastExpr()
15396 bool Overflowed; in VisitUnaryOperator() local
15397 APFixedPoint Negated = Result.getFixedPoint().negate(&Overflowed); in VisitUnaryOperator()
15398 if (Overflowed && !HandleOverflow(Info, E, Negated, E->getType())) in VisitUnaryOperator()
15423 bool Overflowed; in VisitCastExpr() local
15424 APFixedPoint Result = Src.convert(DestFXSema, &Overflowed); in VisitCastExpr()
15425 if (Overflowed) { in VisitCastExpr()
15440 bool Overflowed; in VisitCastExpr() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp12341 bool Overflowed; in CheckImplicitConversion() local
12344 &Overflowed); in CheckImplicitConversion()
12346 if (Overflowed) { in CheckImplicitConversion()
12363 bool Overflowed; in CheckImplicitConversion() local
12365 Value, Context.getFixedPointSemantics(T), &Overflowed); in CheckImplicitConversion()
12367 if (Overflowed) { in CheckImplicitConversion()
H A DSemaExpr.cpp3852 bool Overflowed = Literal.GetFixedPointValue(Val, scale); in ActOnNumericConstant() local
3853 bool ValIsZero = Val.isZero() && !Overflowed; in ActOnNumericConstant()
3862 else if (Val.ugt(MaxVal) || Overflowed) in ActOnNumericConstant()