Home
last modified time | relevance | path

Searched refs:Max (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/llvm-project-15.0.7/llvm/unittests/Support/
H A DCheckedArithmeticTest.cpp9 const int64_t Max = std::numeric_limits<int64_t>::max(); in TEST() local
11 EXPECT_EQ(checkedAdd<int64_t>(Max, Max), None); in TEST()
13 EXPECT_EQ(checkedAdd<int64_t>(Max, 1), None); in TEST()
20 EXPECT_EQ(checkedAdd<int16_t>(Max, Max), None); in TEST()
22 EXPECT_EQ(checkedAdd<int16_t>(Max, 1), None); in TEST()
29 EXPECT_EQ(checkedMul<int64_t>(Max, 2), None); in TEST()
30 EXPECT_EQ(checkedMul<int64_t>(Max, Max), None); in TEST()
47 EXPECT_EQ(checkedMul<int16_t>(Max, 2), None); in TEST()
48 EXPECT_EQ(checkedMul<int16_t>(Max, Max), None); in TEST()
64 EXPECT_EQ(checkedAddUnsigned<uint64_t>(Max, Max), None); in TEST()
[all …]
H A DMathExtrasTest.cpp322 EXPECT_EQ(Max, SaturatingAdd(Max, T(1))); in SaturatingAddTestHelper()
330 EXPECT_EQ(Max, SaturatingAdd(T(1), Max)); in SaturatingAddTestHelper()
334 EXPECT_EQ(Max, SaturatingAdd(Max, Max)); in SaturatingAddTestHelper()
335 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper()
383 EXPECT_EQ(Max, SaturatingMultiply(Max, T(2))); in SaturatingMultiplyTestHelper()
387 EXPECT_EQ(Max, SaturatingMultiply(T(2), Max)); in SaturatingMultiplyTestHelper()
391 EXPECT_EQ(Max, SaturatingMultiply(Max, Max)); in SaturatingMultiplyTestHelper()
392 EXPECT_EQ(Max, SaturatingMultiply(Max, Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
438 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
452 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
[all …]
H A DInstructionCostTest.cpp81 auto Max = InstructionCost::getMax(); in TEST_F() local
87 EXPECT_EQ(Max + One, Max); in TEST_F()
90 EXPECT_EQ(Max - MinusOne, Max); in TEST_F()
91 EXPECT_EQ(Max * Two, Max); in TEST_F()
93 EXPECT_EQ(Max * MinusTwo, Min); in TEST_F()
94 EXPECT_EQ(Min * MinusTwo, Max); in TEST_F()
H A DKnownBitsTest.h23 unsigned Max = 1 << Bits; in ForeachKnownBits() local
25 for (unsigned Zero = 0; Zero < Max; ++Zero) { in ForeachKnownBits()
26 for (unsigned One = 0; One < Max; ++One) { in ForeachKnownBits()
40 unsigned Max = 1 << Bits; in ForeachNumInKnownBits() local
41 for (unsigned N = 0; N < Max; ++N) { in ForeachNumInKnownBits()
/llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/
H A Dresult_type.pass.cpp23 template <class UIntType, UIntType Min, UIntType Max>
33 static_assert(Min < Max, "rand1 invalid parameters");
39 static const result_type _Max = Max;
43 static TEST_CONSTEXPR result_type max() {return Max;} in max()
49 if (x_ > Max) in rand1()
50 x_ = Max; in rand1()
56 if (x_ < Max) in operator ()()
H A Deval.pass.cpp21 template <class UIntType, UIntType Min, UIntType Max>
31 static_assert(Min < Max, "rand1 invalid parameters");
37 static const result_type _Max = Max;
41 static TEST_CONSTEXPR result_type max() {return Max;} in max()
45 if (x_ > Max) in rand1()
46 x_ = Max; in rand1()
52 if (x_ < Max) in operator ()()
/llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/
H A Dresult_type.pass.cpp23 template <class UIntType, UIntType Min, UIntType Max>
33 static_assert(Min < Max, "rand1 invalid parameters");
39 static const result_type _Max = Max;
43 static TEST_CONSTEXPR result_type max() {return Max;} in max()
49 if (x_ > Max) in rand1()
50 x_ = Max; in rand1()
56 if (x_ < Max) in operator ()()
H A Deval.pass.cpp21 template <class UIntType, UIntType Min, UIntType Max>
31 static_assert(Min < Max, "rand1 invalid parameters");
37 static const result_type _Max = Max;
41 static TEST_CONSTEXPR result_type max() {return Max;} in max()
45 if (x_ > Max) in rand1()
46 x_ = Max; in rand1()
52 if (x_ < Max) in operator ()()
/llvm-project-15.0.7/llvm/test/Linker/
H A Dmodule-max-warn.ll3 ; CHECK: warning: linking module flags 'Combine Max and Warn': IDs have conflicting values ('i32 4'…
4 ; CHECK: warning: linking module flags 'Combine Warn and Max': IDs have conflicting values ('i32 5'…
7 ; CHECK: !0 = !{i32 7, !"Combine Max and Warn", i32 4}
8 ; CHECK: !1 = !{i32 7, !"Combine Warn and Max", i32 5}
11 !0 = !{i32 7, !"Combine Max and Warn", i32 2}
12 !1 = !{i32 2, !"Combine Warn and Max", i32 3}
/llvm-project-15.0.7/llvm/tools/llvm-xray/
H A Dxray-graph.h48 double Max; member
169 A.Pct90 + B.Pct90, A.Pct99 + B.Pct99, A.Max + B.Max,
178 A.Pct90 - B.Pct90, A.Pct99 - B.Pct99, A.Max - B.Max,
191 A.Max / B,
203 A.Max * B,
217 A.Pct90 * B.Pct90, A.Pct99 * B.Pct99, A.Max * B.Max,
225 A.Pct90 / B.Pct90, A.Pct99 / B.Pct99, A.Max / B.Max,
H A Dxray-color-helper.cpp88 int Max = 0; in convertToHSV() local
92 if (Scaled[i] > Scaled[Max]) in convertToHSV()
93 Max = i; in convertToHSV()
96 double C = Scaled[Max] - Scaled[Min]; in convertToHSV()
99 (C == 0) ? 0 : (Scaled[(Max + 1) % 3] - Scaled[(Max + 2) % 3]) / C; in convertToHSV()
100 HPrime = HPrime + 2.0 * Max; in convertToHSV()
104 double V = Scaled[Max]; in convertToHSV()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DPettisAndHansen.cpp80 const double Max = std::max(std::max(C1headC2head, C1headC2tail), in orderFuncs() local
83 if (C1headC2head == Max) { in orderFuncs()
86 } else if (C1headC2tail == Max) { in orderFuncs()
90 } else if (C1tailC2tail == Max) { in orderFuncs()
152 ClusterArc Max = *Maxpos; in pettisAndHansen() local
155 Cluster *const C1 = Max.C1; in pettisAndHansen()
156 Cluster *const C2 = Max.C2; in pettisAndHansen()
170 Max.Weight)); in pettisAndHansen()
195 C1->merge(*C2, Max.Weight); in pettisAndHansen()
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_buffer_queue.h84 size_t Max = 0; variable
87 DCHECK_NE(Offset, Max);
90 } while (!Buffers[Offset].Used && Offset != Max);
107 Max(M) { in Iterator()
110 while (!Buffers[Offset].Used && Offset != Max) { in Iterator()
124 DCHECK_EQ(L.Max, R.Max);
/llvm-project-15.0.7/llvm/test/tools/llvm-mca/X86/
H A Dregister-file-statistics.s26 # ALL-NEXT: Max number of mappings used: 2
30 # BARCELONA-NEXT: Max number of mappings used: 2
35 # BDVER2-NEXT: Max number of mappings used: 0
40 # BTVER2-NEXT: Max number of mappings used: 0
45 # ZNVER1-NEXT: Max number of mappings used: 0
50 # ZNVER2-NEXT: Max number of mappings used: 0
55 # ZNVER3-NEXT: Max number of mappings used: 0
60 # BDVER2-NEXT: Max number of mappings used: 2
65 # BTVER2-NEXT: Max number of mappings used: 2
70 # ZNVER1-NEXT: Max number of mappings used: 2
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DBytesOutputStyle.cpp92 uint32_t Max = R.Max.value_or(R.Min); in dump() local
94 if (Max < R.Min) in dump()
98 if (Max >= File.getBlockCount()) in dump()
103 dumpBlockRanges(R.Min, Max); in dump()
109 uint32_t Max = R.Max.value_or(File.getFileSize()); in dump() local
111 if (Max < R.Min) in dump()
114 if (Max >= File.getFileSize()) 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()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/xray/tests/unit/
H A Dsegmented_array_test.cpp203 constexpr uint64_t Max = 9; in TEST() local
205 for (uint64_t i = 0; i < Max; ++i) { in TEST()
215 auto Counter = Max; in TEST()
216 ASSERT_EQ(Data.size(), size_t(Max)); in TEST()
240 constexpr uint64_t Max = 9; in TEST() local
242 for (uint64_t i = 0; i < Max; ++i) { in TEST()
252 auto Counter = Max; in TEST()
264 for (uint64_t i = 0; i < Max; ++i) { in TEST()
281 for (uint64_t i = 0; i < Max; ++i) { in TEST()
291 Counter = Max; in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/benchmarks/CompletionModel/
H A DDecisionForestBenchmark.cpp27 auto RandInt = [&](int Max) { return rand() % Max; }; in generateRandomDataset() argument
28 auto RandFloat = [&](float Max = 1.0) { in generateRandomDataset() argument
29 return rand() % 1000 / 1000.0 * Max; in generateRandomDataset()
/llvm-project-15.0.7/compiler-rt/lib/ubsan/
H A Dubsan_diag.cpp260 MemoryLocation Max = addNoOverflow(Loc, MinBytesNearLoc); in PrintMemorySnippet() local
264 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in PrintMemorySnippet()
269 if (Max - Min > BytesToShow) in PrintMemorySnippet()
270 Min = __sanitizer::Min(Max - BytesToShow, OrigMin); in PrintMemorySnippet()
271 Max = addNoOverflow(Min, BytesToShow); in PrintMemorySnippet()
273 if (!IsAccessibleMemoryRange(Min, Max - Min)) { in PrintMemorySnippet()
280 for (uptr P = Min; P != Max; ++P) { in PrintMemorySnippet()
289 for (uptr P = Min; P != Max; ++P) { in PrintMemorySnippet()
310 for (uptr P = Min; P != Max; ++P) { in PrintMemorySnippet()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMacroRepeatedSideEffectsCheck.cpp82 unsigned Max = 0; in countArgumentExpansions() local
98 return Max; in countArgumentExpansions()
157 if (Current > Max) in countArgumentExpansions()
158 Max = Current; in countArgumentExpansions()
161 return Max; in countArgumentExpansions()
/llvm-project-15.0.7/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h196 bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max);
205 unsigned Min, Max; variable
223 unsigned Min, unsigned Max) in Directive() argument
225 Min(Min), Max(Max), MatchAnyLine(MatchAnyLine || MatchAnyFileAndLine), in Directive()
/llvm-project-15.0.7/llvm/lib/MCA/
H A DSupport.cpp88 double Max = static_cast<double>(NumMicroOps) / DispatchWidth; in computeBlockRThroughput() local
100 Max = std::max(Max, Throughput); in computeBlockRThroughput()
106 return Max; in computeBlockRThroughput()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp86 APInt Max = getUnsignedMax(); in toKnownBits() local
746 Max = Max.zext(ResultBitWidth); in castOp()
1144 APInt Max = getSignedMax(); in smul_fast() local
1150 Max.smul_ov(OtherMin, O3), Max.smul_ov(OtherMax, O4)}; in smul_fast()
1448 APInt Max = getUnsignedMax(); in shl() local
1471 Max <<= OtherMax; in shl()
1593 APInt Max = getSignedMax(); in smul_sat() local
1598 Max.smul_sat(OtherMin), Max.smul_sat(OtherMax)}; in smul_sat()
1619 APInt NewU = Max.sshl_sat(Max.isNegative() ? ShAmtMin : ShAmtMax) + 1; in sshl_sat()
1684 if (Max.ugt(~OtherMax)) in unsignedAddMayOverflow()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-mca/X86/Znver3/
H A Dzero-idioms-avx-ymm.s130 # CHECK-NEXT: Max number of mappings used: 9
135 # CHECK-NEXT: Max number of mappings used: 9
140 # CHECK-NEXT: Max number of mappings used: 0
221 # CHECK-NEXT: Max number of mappings used: 9
226 # CHECK-NEXT: Max number of mappings used: 9
231 # CHECK-NEXT: Max number of mappings used: 0
312 # CHECK-NEXT: Max number of mappings used: 9
317 # CHECK-NEXT: Max number of mappings used: 9
322 # CHECK-NEXT: Max number of mappings used: 0
403 # CHECK-NEXT: Max number of mappings used: 9
[all …]
H A Dzero-idioms-avx-xmm.s120 # CHECK-NEXT: Max number of mappings used: 9
125 # CHECK-NEXT: Max number of mappings used: 9
130 # CHECK-NEXT: Max number of mappings used: 0
211 # CHECK-NEXT: Max number of mappings used: 9
216 # CHECK-NEXT: Max number of mappings used: 9
221 # CHECK-NEXT: Max number of mappings used: 0
302 # CHECK-NEXT: Max number of mappings used: 9
307 # CHECK-NEXT: Max number of mappings used: 9
312 # CHECK-NEXT: Max number of mappings used: 0
393 # CHECK-NEXT: Max number of mappings used: 9
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFixedPoint.cpp262 APSInt Max = APFixedPoint::getMax(CommonFXSema).getValue() in mul() local
269 else if (Result > Max) in mul()
270 Result = Max; in mul()
272 Overflowed = Result < Min || Result > Max; in mul()
317 APSInt Max = APFixedPoint::getMax(CommonFXSema).getValue() in div() local
324 else if (Result > Max) in div()
325 Result = Max; in div()
327 Overflowed = Result < Min || Result > Max; in div()
359 else if (Result > Max) in shl()
360 Result = Max; in shl()
[all …]

12345678910>>...16