Home
last modified time | relevance | path

Searched refs:complexity (Results 1 – 25 of 172) sorted by relevance

1234567

/llvm-project-15.0.7/third-party/benchmark/src/
H A Dcomplexity.cc29 BigOFunc* FittingCurve(BigO complexity) { in FittingCurve() argument
31 switch (complexity) { in FittingCurve()
55 switch (complexity) { in GetBigOString()
99 result.complexity = oLambda; in MinimalLeastSq()
130 BM_CHECK_NE(complexity, oNone); in MinimalLeastSq()
134 if (complexity == oAuto) { in MinimalLeastSq()
139 best_fit.complexity = o1; in MinimalLeastSq()
146 best_fit.complexity = fit; in MinimalLeastSq()
151 best_fit.complexity = complexity; in MinimalLeastSq()
209 big_o.complexity = result_cpu.complexity; in ComputeBigO()
[all …]
H A Dcomplexity.h43 LeastSq() : coef(0.0), rms(0.0), complexity(oNone) {} in LeastSq()
47 BigO complexity; member
51 std::string GetBigOString(BigO complexity);
H A Dbenchmark_register.cc405 Benchmark* Benchmark::Complexity(BigO complexity) { in Complexity() argument
406 complexity_ = complexity; in Complexity()
410 Benchmark* Benchmark::Complexity(BigOFunc* complexity) { in Complexity() argument
411 complexity_lambda_ = complexity; in Complexity()
H A Dbenchmark_api_internal.h34 BigO complexity() const { return complexity_; } in complexity() function
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/
H A Dfunction-cognitive-complexity.rst1 .. title:: clang-tidy - readability-function-cognitive-complexity
3 readability-function-cognitive-complexity
22 If set to `true`, then for each function exceeding the complexity threshold
24 `if` statement, etc.) which contributes to that complexity. See also the
30 any macro arguments are ignored, even if they should count to the complexity.
155 increase to the complexity of the function and the current nesting level.
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dsmin-icmp.ll44 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
59 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
100 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
115 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
156 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
171 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
212 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
227 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
264 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
277 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
[all …]
H A Dfadd.ll41 %z = frem double 42.0, %pz ; thwart complexity-based canonicalization
73 %z = frem double 42.0, %pz ; thwart complexity-based canonicalization
90 %y = frem double -42.0, %py ; thwart complexity-based canonicalization
91 %z = frem double 42.0, %pz ; thwart complexity-based canonicalization
107 %z = frem double 42.0, %pz ; thwart complexity-based canonicalization
139 %z = frem double 42.0, %pz ; thwart complexity-based canonicalization
156 %y = frem double 41.0, %py ; thwart complexity-based canonicalization
157 %z = frem double 42.0, %pz ; thwart complexity-based canonicalization
175 %z = frem float 42.0, %pz ; thwart complexity-based canonicalization
196 %z = frem float 42.0, %pz ; thwart complexity-based canonicalization
[all …]
H A Dsmax-icmp.ll45 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
60 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
101 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
116 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
157 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
172 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
213 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
228 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
H A Dumin-icmp.ll45 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
60 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
101 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
116 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
157 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
172 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
213 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
228 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
H A Dumax-icmp.ll45 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
60 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
101 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
116 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
157 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
172 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
213 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
228 %x = add i32 %a, 3 ; thwart complexity-based canonicalization
H A Dshl-bo.ll14 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
29 %x = srem <2 x i8> %a, <i8 42, i8 42> ; thwart complexity-based canonicalization
44 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
73 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
102 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
132 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
192 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
225 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
257 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
289 %x = srem i8 %a, 42 ; thwart complexity-based canonicalization
[all …]
H A Dand-xor-or.ll17 %a = udiv i32 42, %pa ; thwart complexity-based canonicalization
18 %b = udiv i32 43, %pb ; thwart complexity-based canonicalization
35 %a = udiv i32 42, %pa ; thwart complexity-based canonicalization
36 %b = udiv i32 43, %pb ; thwart complexity-based canonicalization
53 %a = udiv i32 42, %pa ; thwart complexity-based canonicalization
54 %b = udiv i32 43, %pb ; thwart complexity-based canonicalization
192 %x = udiv i64 42, %px ; thwart complexity-based canonicalization
193 %y = udiv i64 42, %py ; thwart complexity-based canonicalization
194 %z = udiv i64 42, %pz ; thwart complexity-based canonicalization
211 %x = udiv i64 42, %px ; thwart complexity-based canonicalization
[all …]
H A Dshift-logic.ll40 %y = srem i16 %py, 42 ; thwart complexity-based canonicalization
55 %y = srem <2 x i16> %py, <i16 42, i16 42> ; thwart complexity-based canonicalization
96 %y = srem i64 %py, 42 ; thwart complexity-based canonicalization
111 %y = srem <2 x i64> %py, <i64 42, i64 42> ; thwart complexity-based canonicalization
139 … 42, i16 42, i16 42, i16 42, i16 42, i16 42, i16 42, i16 -42> ; thwart complexity-based canonicali…
154 %y = srem <16 x i8> %py, %pz ; thwart complexity-based canonicalization
182 %y = srem i32 %py, 42 ; thwart complexity-based canonicalization
H A Dicmp-gep.ll27 %x = call i8* @getptr() ; thwart complexity-based canonicalization
49 %x = call i8* @getptr() ; thwart complexity-based canonicalization
73 %x = call i8* @getptr() ; thwart complexity-based canonicalization
97 %x = call i8* @getptr() ; thwart complexity-based canonicalization
121 %x = call i8* @getptr() ; thwart complexity-based canonicalization
143 %x = call i8* @getptr() ; thwart complexity-based canonicalization
170 %x = call i8* @getptr() ; thwart complexity-based canonicalization
H A Dsub-lshr-or-to-icmp-select.ll27 %x = sdiv i32 42, %x0 ; thwart complexity-based canonicalization
55 …%x = sdiv <4 x i32> <i32 42, i32 42, i32 42, i32 42>, %x0 ; thwart complexity-based canonicalizati…
H A Dor.ll630 %a1 = mul i32 %a, 42 ; thwart complexity-based ordering
631 %b1 = bitcast float %b to i32 ; thwart complexity-based ordering
648 %a1 = mul i32 %a, 42 ; thwart complexity-based ordering
649 %b1 = bitcast float %b to i32 ; thwart complexity-based ordering
666 %a1 = mul i32 %a, 42 ; thwart complexity-based ordering
667 %b1 = bitcast float %b to i32 ; thwart complexity-based ordering
684 %a1 = mul i32 %a, 42 ; thwart complexity-based ordering
685 %b1 = bitcast float %b to i32 ; thwart complexity-based ordering
985 %y = icmp ugt i32 %c, 42 ; thwart complexity-based ordering
1000 %y = icmp ugt i32 %c, 42 ; thwart complexity-based ordering
[all …]
H A Dand-or.ll299 %c = mul i8 %b, 43 ; thwart complexity-based ordering
314 %c = mul <2 x i8> %b, <i8 43, i8 43> ; thwart complexity-based ordering
398 %ct = udiv i8 42, %c ; thwart complexity-based canonicalization
415 %ct = udiv i8 42, %c ; thwart complexity-based canonicalization
432 %ct = udiv i8 42, %c ; thwart complexity-based canonicalization
449 %ct = udiv i8 42, %c ; thwart complexity-based canonicalization
548 %ct = udiv i8 42, %c ; thwart complexity-based canonicalization
565 %ct = udiv i8 42, %c ; thwart complexity-based canonicalization
582 %ct = udiv i8 42, %c ; thwart complexity-based canonicalization
599 %ct = udiv i8 42, %c ; thwart complexity-based canonicalization
H A Dbinop-cast.ll42 %x = mul <2 x i32> %px, %px ; thwart complexity-based canonicalization
100 %x = mul <2 x i32> %px, %px ; thwart complexity-based canonicalization
161 %x = mul <2 x i32> %px, %px ; thwart complexity-based canonicalization
/llvm-project-15.0.7/libcxx/
H A D.clang-tidy21 readability-function-cognitive-complexity,
31 - key: readability-function-cognitive-complexity.Threshold
54 # readability-function-cognitive-complexity,
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/hicpp/
H A Dfunction-size.rst9 Useful to enforce multiple sections on function complexity.
12 …ngstandard.com/rule/8-3-1-do-not-write-functions-with-an-excessive-mccabe-cyclomatic-complexity/>`_
/llvm-project-15.0.7/polly/test/ScopInfo/
H A Dpwaff-complexity-bailout.ll3 ; Make sure we hit the complexity bailout, and don't crash.
4 ; CHECK: Low complexity assumption: { : false }
/llvm-project-15.0.7/llvm/test/Transforms/PhaseOrdering/
H A Dreassociate-gvn-bdce.ll62 %a = sdiv i32 42, %a0 ; thwart complexity-based canonicalization
80 %b = sdiv i32 42, %b0 ; thwart complexity-based canonicalization
97 %c = sdiv i32 42, %c0 ; thwart complexity-based canonicalization
206 %a = sdiv i32 42, %a0 ; thwart complexity-based canonicalization
224 %b = sdiv i32 42, %b0 ; thwart complexity-based canonicalization
241 %c = sdiv i32 42, %c0 ; thwart complexity-based canonicalization
/llvm-project-15.0.7/llvm/utils/gn/secondary/third-party/benchmark/
H A DBUILD.gn10 "src/complexity.cc",
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DDSInstructions.td956 let AddedComplexity = complexity;
970 /* complexity */ 0, /* gds */ 1>;
991 /* complexity */ 0, /* gds */ 1>;
994 /* complexity */ 1, /* gds */ 1>;
1002 int complexity = 0, bit gds=0> : GCNPat<
1005 let AddedComplexity = complexity;
1013 /* complexity */ 1>;
1021 /* complexity */ 1>;
1034 int complexity = 0, bit gds=0> : GCNPat<
1037 let AddedComplexity = complexity;
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-size/
H A Doutput-alloc.test2 ## To avoid unnecessary complexity llvm size outputs these sections in cases they have the SHF_ALLO…

1234567