Lines Matching defs:void

5 int __attribute__((target("sse4.2"))) foo(void) { return 0; }
6 int __attribute__((target("arch=sandybridge"))) foo(void);
7 int __attribute__((target("arch=ivybridge"))) foo(void) {return 1;}
8 int __attribute__((target("arch=goldmont"))) foo(void) {return 3;}
9 int __attribute__((target("arch=goldmont-plus"))) foo(void) {return 4;}
10 int __attribute__((target("arch=tremont"))) foo(void) {return 5;}
11 int __attribute__((target("arch=icelake-client"))) foo(void) {return 6;}
12 int __attribute__((target("arch=icelake-server"))) foo(void) {return 7;}
13 int __attribute__((target("arch=cooperlake"))) foo(void) {return 8;}
14 int __attribute__((target("arch=tigerlake"))) foo(void) {return 9;}
15 int __attribute__((target("arch=sapphirerapids"))) foo(void) {return 10;}
16 int __attribute__((target("arch=alderlake"))) foo(void) {return 11;}
17 int __attribute__((target("arch=rocketlake"))) foo(void) {return 12;}
18 int __attribute__((target("arch=core2"))) foo(void) {return 13;}
19 int __attribute__((target("arch=raptorlake"))) foo(void) {return 14;}
20 int __attribute__((target("arch=meteorlake"))) foo(void) {return 15;}
21 int __attribute__((target("arch=sierraforest"))) foo(void) {return 16;}
22 int __attribute__((target("arch=grandridge"))) foo(void) {return 17;}
23 int __attribute__((target("arch=graniterapids"))) foo(void) {return 18;}
24 int __attribute__((target("arch=emeraldrapids"))) foo(void) {return 19;}
25 int __attribute__((target("arch=graniterapids-d"))) foo(void) {return 20;}
26 int __attribute__((target("arch=arrowlake"))) foo(void) {return 21;}
27 int __attribute__((target("arch=arrowlake-s"))) foo(void) {return 22;}
28 int __attribute__((target("arch=lunarlake"))) foo(void) {return 23;}
29 int __attribute__((target("arch=gracemont"))) foo(void) {return 24;}
30 int __attribute__((target("arch=pantherlake"))) foo(void) {return 25;}
31 int __attribute__((target("arch=clearwaterforest"))) foo(void) {return 26;}
32 int __attribute__((target("arch=diamondrapids"))) foo(void) {return 27;}
33 int __attribute__((target("default"))) foo(void) { return 2; }
35 int bar(void) {
39 static int __attribute__((target("arch=meteorlake"))) foo_internal(void) {return 15;}
40 static int __attribute__((target("default"))) foo_internal(void) { return 2; }
42 int bar1(void) {
46 inline int __attribute__((target("sse4.2"))) foo_inline(void) { return 0; }
47 inline int __attribute__((target("arch=sandybridge"))) foo_inline(void);
48 inline int __attribute__((target("arch=ivybridge"))) foo_inline(void) {return 1;}
49 inline int __attribute__((target("default"))) foo_inline(void) { return 2; }
51 int bar2(void) {
55 inline __attribute__((target("default"))) void foo_decls(void);
56 inline __attribute__((target("sse4.2"))) void foo_decls(void);
57 void bar3(void) {
60 inline __attribute__((target("default"))) void foo_decls(void) {}
61 inline __attribute__((target("sse4.2"))) void foo_decls(void) {}
63 inline __attribute__((target("default"))) void foo_multi(int i, double d) {}
64 inline __attribute__((target("avx,sse4.2"))) void foo_multi(int i, double d) {}
65 inline __attribute__((target("sse4.2,fma4"))) void foo_multi(int i, double d) {}
66 inline __attribute__((target("arch=ivybridge,fma4,sse4.2"))) void foo_multi(int i, double d) {}
67 void bar4(void) {
71 int fwd_decl_default(void);
72 int __attribute__((target("default"))) fwd_decl_default(void) { return 2; }
74 int fwd_decl_avx(void);
75 int __attribute__((target("avx"))) fwd_decl_avx(void) { return 2; }
76 int __attribute__((target("default"))) fwd_decl_avx(void) { return 2; }
78 void bar5(void) {
83 int __attribute__((target("avx"))) changed_to_mv(void) { return 0;}
84 int __attribute__((target("fma4"))) changed_to_mv(void) { return 1;}
86 __attribute__((target("default"), used)) inline void foo_used(int i, double d) {}
87 __attribute__((target("avx,sse4.2"))) inline void foo_used(int i, double d) {}
89 __attribute__((target("default"))) inline void foo_used2(int i, double d) {}
90 __attribute__((target("avx,sse4.2"), used)) inline void foo_used2(int i, double d) {}
93 static void must_be_emitted(void) {}
94 inline __attribute__((target("default"))) void pr50025(void) { must_be_emitted(); }
95 void calls_pr50025(void) { pr50025(); }
98 inline __attribute__((target("default"))) void pr50025b(void) { must_be_emitted(); }
99 inline __attribute__((target("default"))) void pr50025c(void) { pr50025b(); }
100 void calls_pr50025c(void) { pr50025c(); }
147 // ITANIUM: @foo_decls.ifunc = weak_odr ifunc void (), ptr @foo_decls.resolver
148 // ITANIUM: @foo_multi.ifunc = weak_odr ifunc void (i32, double), ptr @foo_multi.resolver
268 // ITANIUM: call void @__cpu_indicator_init()
275 // WINDOWS: call void @__cpu_indicator_init()
294 // ITANIUM: call void @__cpu_indicator_init()
301 // WINDOWS: call void @__cpu_indicator_init()
307 // ITANIUM: define{{.*}} void @bar3()
308 // ITANIUM: call void @foo_decls.ifunc()
310 // WINDOWS: define dso_local void @bar3()
311 // WINDOWS: call void @foo_decls.resolver()
318 // WINDOWS: define weak_odr dso_local void @foo_decls.resolver() comdat
319 // WINDOWS: call void @foo_decls.sse4.2
320 // WINDOWS: call void @foo_decls
322 // ITANIUM: define{{.*}} void @bar4()
323 // ITANIUM: call void @foo_multi.ifunc(i32 noundef 1, double noundef 5.{{[0+e]*}})
325 // WINDOWS: define dso_local void @bar4()
326 // WINDOWS: call void @foo_multi.resolver(i32 noundef 1, double noundef 5.{{[0+e]*}})
342 // WINDOWS: define weak_odr dso_local void @foo_multi.resolver(i32 %0, double %1) comdat
345 // WINDOWS: call void @foo_multi.fma4_sse4.2(i32 %0, double %1)
346 // WINDOWS-NEXT: ret void
350 // WINDOWS: call void @foo_multi.arch_ivybridge_fma4_sse4.2(i32 %0, double %1)
351 // WINDOWS-NEXT: ret void
354 // WINDOWS: call void @foo_multi.avx_sse4.2(i32 %0, double %1)
355 // WINDOWS-NEXT: ret void
356 // WINDOWS: call void @foo_multi(i32 %0, double %1)
357 // WINDOWS-NEXT: ret void
373 // ITANIUM: define{{.*}} void @bar5()
377 // WINDOWS: define dso_local void @bar5()
383 // ITANIUM: call void @__cpu_indicator_init()
387 // ITANIUM: call void @__cpu_indicator_init()
392 // WINDOWS: call void @__cpu_indicator_init()
395 // WINDOWS: call void @__cpu_indicator_init()
405 // ITANIUM: define linkonce void @foo_used(i32 noundef %{{.*}}, double noundef %{{.*}})
408 // ITANIUM: define linkonce void @foo_used2.avx_sse4.2(i32 noundef %{{.*}}, double noundef %{{.*}})
410 // WINDOWS: define linkonce_odr dso_local void @foo_used(i32 noundef %{{.*}}, double noundef %{{.*}})
413 // WINDOWS: define linkonce_odr dso_local void @foo_used2.avx_sse4.2(i32 noundef %{{.*}}, double noundef %{{.*}})
438 // ITANIUM: define linkonce void @foo_decls()
439 // ITANIUM: define linkonce void @foo_decls.sse4.2()
441 // WINDOWS: define linkonce_odr dso_local void @foo_decls()
442 // WINDOWS: define linkonce_odr dso_local void @foo_decls.sse4.2()
444 // ITANIUM: define linkonce void @foo_multi(i32 noundef %{{[^,]+}}, double noundef %{{[^\)]+}})
445 // ITANIUM: define linkonce void @foo_multi.avx_sse4.2(i32 noundef %{{[^,]+}}, double noundef %{{[^\)]+}})
446 // ITANIUM: define linkonce void @foo_multi.fma4_sse4.2(i32 noundef %{{[^,]+}}, double noundef %{{[^\)]+}})
447 // ITANIUM: define linkonce void @foo_multi.arch_ivybridge_fma4_sse4.2(i32 noundef %{{[^,]+}}, double noundef %{{[^\)]+}})
449 // WINDOWS: define linkonce_odr dso_local void @foo_multi(i32 noundef %{{[^,]+}}, double noundef %{{[^\)]+}})
450 // WINDOWS: define linkonce_odr dso_local void @foo_multi.avx_sse4.2(i32 noundef %{{[^,]+}}, double noundef %{{[^\)]+}})
451 // WINDOWS: define linkonce_odr dso_local void @foo_multi.fma4_sse4.2(i32 noundef %{{[^,]+}}, double noundef %{{[^\)]+}})
452 // WINDOWS: define linkonce_odr dso_local void @foo_multi.arch_ivybridge_fma4_sse4.2(i32 noundef %{{[^,]+}}, double noundef %{{[^\)]+}})
455 // ITANIUM: define linkonce void @pr50025()
456 // ITANIUM: call void @must_be_emitted
457 // ITANIUM: define internal void @must_be_emitted()
458 // WINDOWS: define linkonce_odr dso_local void @pr50025() #{{[0-9]*}} comdat
459 // WINDOWS: call void @must_be_emitted
460 // WINDOWS: define internal void @must_be_emitted()
462 // ITANIUM: define linkonce void @pr50025c()
463 // ITANIUM: call void @pr50025b.ifunc()
464 // WINDOWS: define linkonce_odr dso_local void @pr50025c() #{{[0-9]*}} comdat
465 // WINDOWS: call void @pr50025b.resolver()
470 // ITANIUM: define linkonce void @pr50025b()
471 // ITANIUM: call void @must_be_emitted()
472 // WINDOWS: define weak_odr dso_local void @pr50025b.resolver() comdat
473 // WINDOWS: musttail call void @pr50025b()
474 // WINDOWS: define linkonce_odr dso_local void @pr50025b() #{{[0-9]*}} comdat
475 // WINDOWS: call void @must_be_emitted()