1 // Test that `-Zpgo-gen` creates expected instrumentation artifacts in LLVM IR.
2 // Compiling with `-Cpanic=abort` because PGO+unwinding isn't supported on all platforms.
4 // needs-profiler-support
5 // compile-flags: -Z pgo-gen -Ccodegen-units=1 -Cpanic=abort
7 // CHECK: @__llvm_profile_raw_version =
8 // CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = private global
9 // CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = private global
10 // CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}some_other_function{{.*}} = private global
11 // CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}some_other_function{{.*}} = private global
12 // CHECK: @__llvm_profile_filename = {{.*}}"default_%m.profraw\00"{{.*}}
21 pub fn some_other_function() {