[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / profile-function-groups.c
blob052e8676459442473e194d2c02213d1444cf9bfc
1 // RUN: %clang -fprofile-generate -fprofile-function-groups=3 -fprofile-selected-function-group=0 -emit-llvm -S %s -o - | FileCheck %s --implicit-check-not="; {{.* (noprofile|skipprofile)}}" --check-prefixes=CHECK,SELECT0
2 // RUN: %clang -fprofile-generate -fprofile-function-groups=3 -fprofile-selected-function-group=1 -emit-llvm -S %s -o - | FileCheck %s --implicit-check-not="; {{.* (noprofile|skipprofile)}}" --check-prefixes=CHECK,SELECT1
3 // RUN: %clang -fprofile-generate -fprofile-function-groups=3 -fprofile-selected-function-group=2 -emit-llvm -S %s -o - | FileCheck %s --implicit-check-not="; {{.* (noprofile|skipprofile)}}" --check-prefixes=CHECK,SELECT2
5 // Group 0
7 // SELECT1: skipprofile
8 // SELECT2: skipprofile
9 // CHECK: define {{.*}} @hoo()
10 void hoo() {}
12 // Group 1
13 // SELECT0: skipprofile
15 // SELECT2: skipprofile
16 // CHECK: define {{.*}} @goo()
17 void goo() {}
19 // Group 2
20 // SELECT0: skipprofile
21 // SELECT1: skipprofile
23 // CHECK: define {{.*}} @boo()
24 void boo() {}