25 lines · c
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,SELECT02// 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,SELECT13// 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,SELECT24 5// Group 06 7// SELECT1: skipprofile8// SELECT2: skipprofile9// CHECK: define {{.*}} @hoo()10void hoo() {}11 12// Group 113// SELECT0: skipprofile14 15// SELECT2: skipprofile16// CHECK: define {{.*}} @goo()17void goo() {}18 19// Group 220// SELECT0: skipprofile21// SELECT1: skipprofile22 23// CHECK: define {{.*}} @boo()24void boo() {}25