Home
last modified time | relevance | path

Searched refs:Min (Results 1 – 25 of 270) sorted by relevance

1234567891011

/freebsd/contrib/llvm-project/llvm/tools/llvm-xray/
H A Dxray-graph.h44 double Min; member
168 return {A.Count + B.Count, A.Min + B.Min, A.Median + B.Median,
177 return {A.Count - B.Count, A.Min - B.Min, A.Median - B.Median,
187 A.Min / B,
199 A.Min * B,
216 return {A.Count * B.Count, A.Min * B.Min, A.Median * B.Median,
224 return {A.Count / B.Count, A.Min / B.Min, A.Median / B.Median,
H A Dxray-color-helper.cpp87 int Min = 0; in convertToHSV() local
90 if (Scaled[i] < Scaled[Min]) in convertToHSV()
91 Min = i; in convertToHSV()
96 double C = Scaled[Max] - Scaled[Min]; in convertToHSV()
143 double Min = V - C; in convertToRGB() local
144 double RGB2[3] = {RGB1[0] + Min, RGB1[1] + Min, RGB1[2] + Min}; in convertToRGB()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/PBQP/
H A DReductionRules.h50 PBQPNum Min = ECosts[0][j] + XCosts[0]; in applyR1() local
53 if (C < Min) in applyR1()
54 Min = C; in applyR1()
56 YCosts[j] += Min; in applyR1()
60 PBQPNum Min = ECosts[i][0] + XCosts[0]; in applyR1() local
63 if (C < Min) in applyR1()
64 Min = C; in applyR1()
66 YCosts[i] += Min; in applyR1()
112 PBQPNum Min = (*YXECosts)[i][0] + (*ZXECosts)[j][0] + XCosts[0]; in applyR2() local
115 if (C < Min) { in applyR2()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_diag.cpp267 MemoryLocation Min = subtractNoOverflow(Loc, MinBytesNearLoc); in PrintMemorySnippet() local
269 MemoryLocation OrigMin = Min; in PrintMemorySnippet()
271 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); in PrintMemorySnippet()
277 if (Max - Min > BytesToShow) in PrintMemorySnippet()
278 Min = __sanitizer::Min(Max - BytesToShow, OrigMin); in PrintMemorySnippet()
279 Max = addNoOverflow(Min, BytesToShow); in PrintMemorySnippet()
281 if (!IsAccessibleMemoryRange(Min, Max - Min)) { in PrintMemorySnippet()
288 for (uptr P = Min; P != Max; ++P) { in PrintMemorySnippet()
296 Range *InRange = upperBound(Min, Ranges, NumRanges); in PrintMemorySnippet()
297 for (uptr P = Min; P != Max; ++P) { in PrintMemorySnippet()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Headers/hlsl/
H A Dhlsl_intrinsic_helpers.h97 template <typename T> constexpr T smoothstep_impl(T Min, T Max, T X) { in smoothstep_impl() argument
99 return __builtin_spirv_smoothstep(Min, Max, X); in smoothstep_impl()
101 T S = saturate((X - Min) / (Max - Min)); in smoothstep_impl()
107 constexpr vector<T, N> smoothstep_vec_impl(vector<T, N> Min, vector<T, N> Max, in smoothstep_vec_impl() argument
110 return __builtin_spirv_smoothstep(Min, Max, X); in smoothstep_vec_impl()
112 vector<T, N> S = saturate((X - Min) / (Max - Min)); in smoothstep_vec_impl()
H A Dhlsl_intrinsics.h497 T> smoothstep(T Min, T Max, T X) { in smoothstep() argument
498 return __detail::smoothstep_impl(Min, Max, X); in smoothstep()
504 smoothstep(T Min, T Max, T X) { in smoothstep() argument
505 return __detail::smoothstep_impl(Min, Max, X); in smoothstep()
511 __detail::HLSL_FIXED_VECTOR<half, N> Min, in smoothstep() argument
514 return __detail::smoothstep_vec_impl(Min, Max, X); in smoothstep()
519 smoothstep(__detail::HLSL_FIXED_VECTOR<float, N> Min, in smoothstep() argument
522 return __detail::smoothstep_vec_impl(Min, Max, X); in smoothstep()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaAMDGPU.h34 CreateAMDGPUFlatWorkGroupSizeAttr(const AttributeCommonInfo &CI, Expr *Min,
40 Expr *Min, Expr *Max);
44 CreateAMDGPUWavesPerEUAttr(const AttributeCommonInfo &CI, Expr *Min,
50 Expr *Min, Expr *Max);
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/Directive/
H A DSpelling.h24 int Min = 0; member
28 return std::tie(Min, Max) < std::tie(R.Min, R.Max);
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h49 unsigned Min, unsigned Max);
59 unsigned Min, Max; variable
77 StringRef Text, unsigned Min, unsigned Max) in Directive() argument
79 Spelling(Spelling), Text(Text), Min(Min), Max(Max), in Directive()
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DBytesOutputStyle.cpp92 uint32_t Max = R.Max.value_or(R.Min); in dump()
94 if (Max < R.Min) in dump()
103 dumpBlockRanges(R.Min, Max); in dump()
111 if (Max < R.Min) in dump()
119 dumpByteRanges(R.Min, Max); in dump()
207 void BytesOutputStyle::dumpBlockRanges(uint32_t Min, uint32_t Max) { in dumpBlockRanges() argument
211 for (uint32_t I = Min; I <= Max; ++I) { in dumpBlockRanges()
430 void BytesOutputStyle::dumpByteRanges(uint32_t Min, uint32_t Max) { in dumpByteRanges() argument
437 consumeError(Reader.skip(Min)); in dumpByteRanges()
438 uint32_t Size = Max - Min + 1; in dumpByteRanges()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp87 APInt Min = getUnsignedMin(); in toKnownBits() local
89 KnownBits Known = KnownBits::makeConstant(Min); in toKnownBits()
91 APIntOps::GetMostSignificantDifferentBit(Min, Max)) { in toKnownBits()
810 APInt Min = APInt::getMinValue(BW); in castOp() local
813 Min = Min.zext(ResultBitWidth); in castOp()
816 return getNonEmpty(std::move(Min), std::move(Max) + 1); in castOp()
1276 APInt Min = getSignedMin(); in smul_fast() local
1282 auto Muls = {Min.smul_ov(OtherMin, O1), Min.smul_ov(OtherMax, O2), in smul_fast()
1653 APInt Min = getUnsignedMin(); in shl() local
1660 unsigned EqualLeadingBits = (Min ^ Max).countl_zero(); in shl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAMDGPU.cpp178 uint32_t Min = 0; in checkAMDGPUFlatWorkGroupSizeArguments() local
179 if (!S.checkUInt32Argument(Attr, MinExpr, Min, 0)) in checkAMDGPUFlatWorkGroupSizeArguments()
186 if (Min == 0 && Max != 0) { in checkAMDGPUFlatWorkGroupSizeArguments()
191 if (Min > Max) { in checkAMDGPUFlatWorkGroupSizeArguments()
239 uint32_t Min = 0; in checkAMDGPUWavesPerEUArguments() local
240 if (!S.checkUInt32Argument(Attr, MinExpr, Min, 0)) in checkAMDGPUWavesPerEUArguments()
247 if (Min == 0 && Max != 0) { in checkAMDGPUWavesPerEUArguments()
252 if (Max != 0 && Min > Max) { in checkAMDGPUWavesPerEUArguments()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DPointerSumType.h232 struct Min : std::integral_constant< struct
233 uintptr_t, (V < Min<Vs...>::value ? V : Min<Vs...>::value)> {
236 struct Min<V> : std::integral_constant<uintptr_t, V> {};
237 enum { NumTagBits = Min<MemberTs::TraitsT::NumLowBitsAvailable...>::value };
241 static_cast<TagT>(Min<MemberTs::Tag...>::value);
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp285 APSInt Min = APFixedPoint::getMin(CommonFXSema).getValue() in mul() local
288 if (Result < Min) in mul()
289 Result = Min; in mul()
293 Overflowed = Result < Min || Result > Max; in mul()
348 APSInt Min = APFixedPoint::getMin(CommonFXSema).getValue() in div() local
351 if (Result < Min) in div()
352 Result = Min; in div()
356 Overflowed = Result < Min || Result > Max; in div()
385 APSInt Min = APFixedPoint::getMin(Sema).getValue().extOrTrunc(Wide); in shl() local
387 if (Result < Min) in shl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizeMutations.cpp78 unsigned Min) { in widenScalarOrEltToNextPow2() argument
82 std::max(1u << Log2_32_Ceil(Ty.getScalarSizeInBits()), Min); in widenScalarOrEltToNextPow2()
98 unsigned Min) { in moreElementsToNextPow2() argument
102 std::max(1u << Log2_32_Ceil(VecTy.getNumElements()), Min); in moreElementsToNextPow2()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dsize_class_map.h37 return static_cast<u16>(Max(1U, Min<u32>(Config::MaxNumCachedHint, N))); in getMaxCachedHint()
151 u8 Min = 255, Max = 0; in LSBTable() local
156 if (Bit < Min) in LSBTable()
157 Min = Bit; in LSBTable()
165 if (Max - Min > 3 || ClassesSize > 32) in LSBTable()
169 CompressedMin = Min; in LSBTable()
171 CompressedValue |= u64(Tab[I] - Min) << (I * 2); in LSBTable()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DDarwinSDKInfo.cpp41 VersionTuple Min = VersionTuple(std::numeric_limits<unsigned>::max()); in parseJSON() local
43 VersionTuple MinValue = Min; in parseJSON()
52 if (KeyVersion < Min) in parseJSON()
53 Min = KeyVersion; in parseJSON()
63 Min, Max, MinValue, MaximumDeploymentTarget, std::move(Mapping)); in parseJSON()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DLowerTypeTests.h64 uint64_t Min = std::numeric_limits<uint64_t>::max();
70 if (Min > Offset) in addOffset()
71 Min = Offset; in addOffset()
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DDirectiveEmitter.h102 int64_t Min = R->getValueAsInt("minVersion"); in getMinVersion() local
103 assert(llvm::isInt<IntWidth>(Min) && "Value out of range of 'int'"); in getMinVersion()
104 return Min; in getMinVersion()
171 if (V.Versions.Min < Oldest.Versions.Min) in getSpellingForIdentifier()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DPatterns.h49 VariadicPackTypeInfo(unsigned Min, unsigned Max) : Min(Min), Max(Max) { in VariadicPackTypeInfo()
50 assert(Min >= 1 && (Max >= Min || Max == 0)); in VariadicPackTypeInfo()
54 return Min == Other.Min && Max == Other.Max;
57 unsigned Min; member
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_poisoning.cpp182 *beg.chunk = Min(value, beg.offset); in __asan_poison_memory_region()
195 *beg.chunk = Min(beg.value, beg.offset); in __asan_poison_memory_region()
450 old_beg = Min(end_down, old_beg); in FixUnalignedStorage()
451 old_end = Min(end_down, old_end); in FixUnalignedStorage()
452 new_beg = Min(end_down, new_beg); in FixUnalignedStorage()
453 new_end = Min(end_down, new_end); in FixUnalignedStorage()
505 uptr a = RoundDownTo(Min(old_end, new_end), granularity); in __sanitizer_annotate_contiguous_container()
670 uptr end = Min(granule_end, dst_end); in SlowCopyContainerAnnotations()
858 beg = Min(beg, annotations_end); in __sanitizer_contiguous_container_find_bad_address()
859 mid = Min(mid, annotations_end); in __sanitizer_contiguous_container_find_bad_address()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAMDGPU.cpp715 unsigned Min = 0; in handleAMDGPUFlatWorkGroupSizeAttr() local
721 Min = Eval(FlatWGS->getMin()); in handleAMDGPUFlatWorkGroupSizeAttr()
724 if (ReqdWGS && Min == 0 && Max == 0) in handleAMDGPUFlatWorkGroupSizeAttr()
725 Min = Max = Eval(ReqdWGS->getXDim()) * Eval(ReqdWGS->getYDim()) * in handleAMDGPUFlatWorkGroupSizeAttr()
728 if (Min != 0) { in handleAMDGPUFlatWorkGroupSizeAttr()
729 assert(Min <= Max && "Min must be less than or equal Max"); in handleAMDGPUFlatWorkGroupSizeAttr()
732 *MinThreadsVal = Min; in handleAMDGPUFlatWorkGroupSizeAttr()
735 std::string AttrVal = llvm::utostr(Min) + "," + llvm::utostr(Max); in handleAMDGPUFlatWorkGroupSizeAttr()
744 unsigned Min = in handleAMDGPUWavesPerEUAttr() local
751 if (Min != 0) { in handleAMDGPUWavesPerEUAttr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp853 auto [Min, Max] = Default; in emitAttributeIfNotDefaultAfterClamp()
858 if (Lower < Min) in emitAttributeIfNotDefaultAfterClamp()
859 Lower = Min; in emitAttributeIfNotDefaultAfterClamp()
864 if ((Lower == Min && Upper == Max + 1) || (Upper < Lower)) in emitAttributeIfNotDefaultAfterClamp()
915 auto [Min, Max] = Range; in initialize()
916 ConstantRange CR(APInt(32, Min), APInt(32, Max + 1)); in initialize()
1119 auto [Min, Max] = *Attr; in initialize()
1120 ConstantRange Range(APInt(32, Min), APInt(32, Max + 1)); in initialize()
1148 unsigned Min = std::max(Assumed.getLower().getZExtValue(), in updateImpl() local
1152 ConstantRange Range(APInt(32, Min), APInt(32, Max)); in updateImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp57 int32_t Min = INT_MIN, Max = INT_MAX; member
63 : Min(L), Max(H), Align(A), Offset(O) {} in OffsetRange()
70 Min = adjustUp(std::max(Min, A.Min), Align, Offset); in intersect()
74 Min = 0; in intersect()
78 if (Min > Max) in intersect()
79 std::tie(Min, Max, Align) = std::make_tuple(0, -1, 1); in intersect()
83 Min += S; in shift()
92 Min = (INT_MIN-D < Min) ? Min+D : INT_MIN; in extendBy()
98 return Min > Max; in empty()
101 return Min <= V && V <= Max && (V-Offset) % Align == 0; in contains()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp71 std::optional<uint32_t> Min = Limits.front().bytesRemaining(Offset); in maxFieldLength() local
75 Min = Min ? std::min(*Min, *ThisMin) : *ThisMin; in maxFieldLength()
77 assert(Min && "Every field must have a maximum length!"); in maxFieldLength()
79 return *Min; in maxFieldLength()

1234567891011