| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | attr-likelihood.cpp | 28 [[likely]]; in c() 38 [[likely]] {} in g() 45 [[likely]] {} in h() 60 [[likely]] {} in j() 66 [[likely]] {} in k() 71 [[likely]] {} in l() 86 [[likely]] {} in m() 122 [[likely]]++ x; in m() 149 } else [[likely]]; in o() 159 [[likely]] return 0; in constexpr_function() [all …]
|
| H A D | attr-extension-diags.cpp | 14 if (true) [[likely]]; // ext-warning {{use of the 'likely' attribute is a C++20 extension}} in func5()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | attr-likelihood-switch-branch-weights.cpp | 17 [[likely]] case 1: break; in OneCaseL() 53 [[likely]] case 1: break; in TwoCasesLN() 87 [[likely]] case 1: break; in TwoCasesLU() 112 [[likely]] case 3: in CasesFallthroughNNLN() 171 [[likely]] case 103: in CasesFallthroughRangeSmallLN() 231 [[likely]] case 0 ... 64: in CasesFallthroughRangeLargeLLN() 232 [[likely]] case 1003: in CasesFallthroughRangeLargeLLN() 278 [[likely]] default: break; in OneCaseDefaultL() 314 [[likely]] case 1: break; in TwoCasesDefaultLNL() 334 [[likely]] case 1: break; in TwoCasesDefaultLNN() [all …]
|
| H A D | attr-likelihood-iteration-stmt.cpp | 24 while(e) [[likely]] ++e; in wl() 63 while(1) [[likely]] ++e; in w_branch_elided() 97 for(int i = 0; i != e; ++e) [[likely]]; in fl() 142 for(;;) [[likely]]; in f_branch_elided() 202 for(int i : e) [[likely]];
|
| H A D | attr-likelihood-if-vs-builtin-expect.cpp | 27 if (a() && b() && c()) [[likely]] { in al() 77 if (a() || b() || c()) [[likely]] { in ol() 121 if (bool d = !a()) [[likely]] { in nl() 167 if (bool d = a() ? b() : c()) [[likely]] { in tl() 179 if (a() ? b() : c()) [[likely]] { in tl2()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | attr-likelihood.c | 5 [[clang::likely]] {} in g() 8 …[[clang::likely]] int x = 42; // expected-error {{'likely' attribute cannot be applied to a declar… in m() 17 [[clang::likely]] {} in m() 19 [[clang::likely]] case 2 : case 3 : {} in m() 48 [[clang::likely]] x = x + 1; in m() 50 [[clang::likely]]++ x; in m()
|
| /llvm-project-15.0.7/clang/test/Preprocessor/ |
| H A D | has_c_attribute.c | 38 #define L likely 39 #define CL clang::likely 57 #if __has_c_attribute(C::likely) 68 #if __has_c_attribute(FUNCLIKE1(likely)) 74 #if __has_c_attribute(FUNCLIKE2(likely))
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | warn-retain-cycle.m | 12 …^{ [x actNow]; }]; // expected-warning {{capturing 'x' strongly in this block is likely to lead to… 14 …^{ [x actNow]; }; // expected-warning {{capturing 'x' strongly in this block is likely to lead to … 17 …^{ [x actNow]; }]; // expected-warning {{capturing 'x' strongly in this block is likely to lead to… 31 …ctNow; }; // expected-warning {{capturing 'x' strongly in this block is likely to lead to a retai… 74 …ner; }; // expected-warning {{capturing 'self' strongly in this block is likely to lead to a retai… 94 …test2_helper(x); // expected-warning {{capturing 'self' strongly in this block is likely to lead t… 126 …doSomething(count); // expected-warning {{capturing 'self' strongly in this block is likely to lea… 149 …b1(); // expected-warning{{capturing 'b1' strongly in this block is likely to lead to a retain cyc… 154 …b2(); // expected-warning{{capturing 'b2' strongly in this block is likely to lead to a retain cyc… 170 …[obj actNow]; // expected-warning{{capturing 'obj' strongly in this block is likely to lead to a r… [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | tail-dup-break-cfg.ll | 33 br i1 %tagbit1eq0, label %test2, label %body1, !prof !1 ; %test2 more likely 43 br i1 %tagbit2eq0, label %exit, label %body2, !prof !1 ; %exit more likely 72 br i1 %tagbit1eq0, label %test2, label %body1, !prof !1 ; %test2 more likely 82 br i1 %tagbit2eq0, label %body2, label %exit, !prof !3 ; %body2 more likely 116 br i1 %tagbit1eq0, label %v, label %bb, !prof !2 ; %v very much more likely 120 br i1 %tagbit2eq0, label %succ, label %c, !prof !3 ; %succ more likely 128 br i1 %tagbit3eq0, label %ret, label %v, !prof !1 ; %u more likely
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | amdgpu-relocs2.s | 11 .text.likely : { *(.text.likely) } 20 .section .text.likely
|
| H A D | mips-jalr-non-functions.s | 23 …ALR relocation against non-function symbol tls_obj. This is invalid and most likely a compiler bug. 29 …ALR relocation against non-function symbol reg_obj. This is invalid and most likely a compiler bug.
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/ |
| H A D | braces-around-statements-attributes.cpp | 7 if (b) [[likely]] { in test() 16 if (b) [[likely]] in test()
|
| /llvm-project-15.0.7/clang/test/Profile/ |
| H A D | misexpect-branch.c | 19 #define likely(x) __builtin_expect(!!(x), 1) macro 32 …if (likely(rando % (outer_loop * inner_loop) == 0)) { // exact-warning-re {{Potential performance … in bar()
|
| /llvm-project-15.0.7/libc/src/__support/ |
| H A D | common.h | 14 #ifndef likely 15 #define likely(x) __builtin_expect(!!(x), 1) macro
|
| /llvm-project-15.0.7/libc/src/__support/FPUtil/generic/ |
| H A D | FMod.h | 129 if (likely(!sy.is_zero() && !sy.is_inf_or_nan() && !sx.is_inf_or_nan())) { in PreCheck() 228 if (likely(sx.uintval() <= sy.uintval())) { in eval_internal() 238 if (likely(e_y > int(FPB::FloatProp::MANTISSA_WIDTH) && in eval_internal() 261 if (likely(e_y > 0)) { in eval_internal()
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A D | BranchWeightMetadata.rst | 122 comparison value. If it is equal to 1 (true), the condition is likely to be 123 true, in other case condition is likely to be false. For example: 128 // This block is likely to be taken. 136 case is assumed to be likely taken. 144 case 5: // This case is likely to be taken. 168 // This block is likely to be taken with probability 80%. 185 case 5: break; // This case is likely to be taken with probability 70%
|
| /llvm-project-15.0.7/libc/AOR_v20.02/networking/arm/ |
| H A D | chksum_simd.c | 34 if (likely(off != 0)) in __chksum_arm_simd() 78 while (likely(nbytes >= 16)) in __chksum_arm_simd() 113 if (likely(nbytes != 0)) in __chksum_arm_simd()
|
| /llvm-project-15.0.7/libc/AOR_v20.02/networking/ |
| H A D | chksum_common.h | 31 #define likely(x) __builtin_expect(!!(x), 1) macro 42 #define likely(x) (x) macro
|
| /llvm-project-15.0.7/polly/docs/ |
| H A D | Architecture.rst | 54 options, as running Polly in the inline loop, is likely to disturb the inliner 62 Hence, it is less likely that transformations applied by LLVM change the IR in 64 likely better and it is less likely that kernels that in C seem a perfect fit 89 scalar dependences. After this work has been completed, Polly will likely use
|
| /llvm-project-15.0.7/llvm/test/Transforms/SimplifyCFG/ |
| H A D | fold-two-entry-phi-node-with-one-block-profmd.ll | 45 br i1 %cmp, label %cond.true, label %end, !prof !0 ; likely branches to %cond.true 74 br i1 %cmp, label %end, label %cond.true, !prof !0 ; likely branches to %end 99 br i1 %cmp, label %end, label %cond.true, !prof !1 ; probably likely branches to %end 149 …br i1 %cmp, label %cond.true, label %end, !prof !0, !unpredictable !2 ; likely branches to %cond.t… 174 …br i1 %cmp, label %end, label %cond.true, !prof !0, !unpredictable !2 ; likely branches to %end, y…
|
| H A D | fold-two-entry-phi-node-with-two-blocks-profmd.ll | 57 br i1 %cmp, label %cond.true, label %cond.false, !prof !0 ; likely branches to %cond.true 87 br i1 %cmp, label %cond.true, label %cond.false, !prof !1 ; almost likely branches to %cond.true 123 br i1 %cmp, label %cond.false, label %cond.true, !prof !0 ; likely branches to %cond.false 153 …br i1 %cmp, label %cond.false, label %cond.true, !prof !1 ; probably likely branches to %cond.false 213 …br i1 %cmp, label %cond.true, label %cond.false, !prof !0, !unpredictable !2 ; likely branches to … 243 …br i1 %cmp, label %cond.false, label %cond.true, !prof !0, !unpredictable !2 ; likely branches to …
|
| H A D | speculatively-execute-block-profmd.ll | 66 br i1 %cmp, label %cond.true, label %end, !prof !0 ; likely branches to %cond.true 102 br i1 %cmp, label %end, label %cond.true, !prof !0 ; likely branches to %end 137 br i1 %cmp, label %end, label %cond.true, !prof !1 ; almost likely branches to %end 207 …br i1 %cmp, label %cond.true, label %end, !prof !0, !unpredictable !2 ; likely branches to %cond.t… 242 …br i1 %cmp, label %end, label %cond.true, !prof !0, !unpredictable !2 ; likely branches to %end, y…
|
| /llvm-project-15.0.7/libc/AOR_v20.02/networking/aarch64/ |
| H A D | chksum_simd.c | 25 if (likely(off != 0)) in slurp_head64() 45 if (likely(nbytes != 0)) in slurp_tail64()
|
| /llvm-project-15.0.7/lld/docs/ |
| H A D | missingkeyfunction.rst | 10 it's likely that your class C has a key function (defined by the ABI as the first 46 key function, but it's quite common because virtual destructors are likely to be 48 also more likely that you won't have any direct references to the destructor, so
|
| /llvm-project-15.0.7/llvm/test/Transforms/CodeExtractor/ |
| H A D | cost.ll | 9 ; bb1 is not likely 30 ; bb1 is likely
|