| 1 |
// RUN: %clang_cc1 -emit-llvm -fprofile-instrument=llvm -fprofile-continuous %s -o - | FileCheck %s --check-prefix=IRPGO |
| 2 |
// RUN: %clang_cc1 -emit-llvm -fprofile-instrument=llvm -fprofile-continuous -fprofile-instrument-path=mydir/default_%m.profraw -mllvm -runtime-counter-relocation %s -o - \ |
| 3 |
// RUN: | FileCheck %s --check-prefix=IRPGO_EQ |
| 4 |
// RUN: %clang_cc1 -emit-llvm -O2 -fprofile-instrument=csllvm -fprofile-continuous %s -o - | FileCheck %s --check-prefix=CSIRPGO |
| 5 |
// RUN: %clang_cc1 -emit-llvm -fprofile-instrument=clang -fprofile-continuous -fprofile-instrument-path=default.profraw %s -o - | FileCheck %s --check-prefix=CLANG_PGO |
| 6 |
|
| 7 |
// IRPGO: @__llvm_profile_filename = {{.*}} c"%cdefault_%m.profraw\00" |
| 8 |
// IRPGO_EQ: @__llvm_profile_filename = {{.*}} c"%cmydir/default_%m.profraw\00" |
| 9 |
// CSIRPGO: @__llvm_profile_filename = {{.*}} c"%cdefault_%m.profraw\00" |
| 10 |
// CLANG_PGO: @__llvm_profile_filename = {{.*}} c"%cdefault.profraw\00" |
| 11 |
void foo(){} |