We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227be65 commit e2acaeeCopy full SHA for e2acaee
src/test/codegen/pgo-instrumentation.rs
@@ -0,0 +1,20 @@
1
+// Test that `-Zpgo-gen` creates expected instrumentation artifacts in LLVM IR.
2
+
3
+// needs-profiler-support
4
+// compile-flags: -Z pgo-gen -Ccodegen-units=1
5
6
+// CHECK: @__llvm_profile_raw_version =
7
+// CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = private global
8
+// CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = private global
9
+// CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}main{{.*}} = private global
10
+// CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}main{{.*}} = private global
11
+// CHECK: @__llvm_profile_filename = {{.*}}"default_%m.profraw\00"{{.*}}
12
13
+#[inline(never)]
14
+fn some_function() {
15
16
+}
17
18
+fn main() {
19
+ some_function();
20
0 commit comments