| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 183 bool Overflowed = false; in add() local 190 Result = ThisVal.isSigned() ? ThisVal.sadd_ov(OtherVal, Overflowed) in add() 191 : ThisVal.uadd_ov(OtherVal, Overflowed); in add() 195 *Overflow = Overflowed; in add() 207 bool Overflowed = false; in sub() local 214 Result = ThisVal.isSigned() ? ThisVal.ssub_ov(OtherVal, Overflowed) in sub() 215 : ThisVal.usub_ov(OtherVal, Overflowed); in sub() 219 *Overflow = Overflowed; in sub() 231 bool Overflowed = false; in mul() local 252 Result = ThisVal.smul_ov(OtherVal, Overflowed) in mul() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ProfileData/ |
| H A D | SampleProf.h | 318 bool Overflowed; 319 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed); 320 return Overflowed ? sampleprof_error::counter_overflow 332 bool Overflowed; 334 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed); 335 return Overflowed ? sampleprof_error::counter_overflow 538 bool Overflowed; 540 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed); 541 return Overflowed ? sampleprof_error::counter_overflow 548 bool Overflowed; [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| H A D | MathExtras.h | 805 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/ProfileData/ |
| H A D | InstrProf.cpp | 635 bool Overflowed; in merge() local 636 I->Count = SaturatingMultiplyAdd(J->Count, Weight, I->Count, &Overflowed); in merge() 637 if (Overflowed) in merge() 649 bool Overflowed; in scale() local 650 I->Count = SaturatingMultiply(I->Count, N, &Overflowed) / D; in scale() 651 if (Overflowed) in scale() 687 bool Overflowed; in merge() local 689 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge() 690 if (Overflowed) in merge() 709 bool Overflowed; in scale() local [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| H A D | PGOMemOPSizeOpt.cpp | 289 bool Overflowed; in getScaledCount() local 290 uint64_t ScaleCount = SaturatingMultiply(Count, Num, &Overflowed); in getScaledCount()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 13226 bool Overflowed; in VisitCastExpr() local 13229 DestType->isSignedIntegerOrEnumerationType(), &Overflowed); in VisitCastExpr() 13230 if (Overflowed && !HandleOverflow(Info, E, Result, DestType)) in VisitCastExpr() 13370 bool Overflowed; in VisitUnaryOperator() local 13371 APFixedPoint Negated = Result.getFixedPoint().negate(&Overflowed); in VisitUnaryOperator() 13372 if (Overflowed && !HandleOverflow(Info, E, Negated, E->getType())) in VisitUnaryOperator() 13397 bool Overflowed; in VisitCastExpr() local 13398 APFixedPoint Result = Src.convert(DestFXSema, &Overflowed); in VisitCastExpr() 13399 if (Overflowed) { in VisitCastExpr() 13414 bool Overflowed; in VisitCastExpr() local [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 12450 bool Overflowed; in CheckImplicitConversion() local 12453 Target->isSignedIntegerOrEnumerationType(), &Overflowed); in CheckImplicitConversion() 12455 if (Overflowed) { in CheckImplicitConversion() 12472 bool Overflowed; in CheckImplicitConversion() local 12474 Value, S.Context.getFixedPointSemantics(T), &Overflowed); in CheckImplicitConversion() 12476 if (Overflowed) { in CheckImplicitConversion()
|
| H A D | SemaExpr.cpp | 3801 bool Overflowed = Literal.GetFixedPointValue(Val, scale); in ActOnNumericConstant() local 3802 bool ValIsZero = Val.isNullValue() && !Overflowed; in ActOnNumericConstant() 3811 else if (Val.ugt(MaxVal) || Overflowed) in ActOnNumericConstant()
|