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
4
5 // Group 0
6
7 // SELECT1: skipprofile
8 // SELECT2: skipprofile
9 // CHECK: define {{.*}} @hoo()
hoo()10 void hoo() {}
11
12 // Group 1
13 // SELECT0: skipprofile
14
15 // SELECT2: skipprofile
16 // CHECK: define {{.*}} @goo()
goo()17 void goo() {}
18
19 // Group 2
20 // SELECT0: skipprofile
21 // SELECT1: skipprofile
22
23 // CHECK: define {{.*}} @boo()
boo()24 void boo() {}
25