Home
last modified time | relevance | path

Searched refs:SaturatingAdd (Results 1 – 6 of 6) sorted by relevance

/openbsd/gnu/llvm/llvm/include/llvm/Support/
H A DMathExtras.h605 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) {
620 std::enable_if_t<std::is_unsigned_v<T>, T> SaturatingAdd(T X, T Y, T Z, in SaturatingAdd() function
623 T XY = SaturatingAdd(X, Y, &Overflowed); in SaturatingAdd()
625 return SaturatingAdd(std::numeric_limits<T>::max(), T(1), Args...); in SaturatingAdd()
626 return SaturatingAdd(XY, Z, Args...); in SaturatingAdd()
669 return SaturatingAdd(Z, Y, ResultOverflowed);
688 return SaturatingAdd(A, Product, &Overflowed);
/openbsd/gnu/llvm/llvm/lib/LTO/
H A DSummaryBasedOptimizations.cpp72 SaturatingAdd(F->entryCount(), New.template toInt<uint64_t>())); in computeSyntheticCounts()
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DCGProfile.cpp61 Count = SaturatingAdd(Count, NewCount); in runCGProfilePass()
/openbsd/gnu/llvm/llvm/include/llvm/ProfileData/
H A DInstrProf.h979 TotalCount = SaturatingAdd(TotalCount, V.Count); in getValueForSite()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h101 SaturatingAdd<uint64_t>(Temp.toInt<uint64_t>(), RelBlockFreq); in updateRelBlockFreq()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DInlineCost.cpp1409 AllocatedSize = SaturatingAdd(DL.getTypeAllocSize(Ty).getKnownMinValue(), in visitAlloca()