mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
72800d3b89
Except for `simd-intrinsic/`, which has a lot of files containing multiple types like `u8x64` which really are better when hand-formatted. There is a surprising amount of two-space indenting in this directory. Non-trivial changes: - `rustfmt::skip` needed in `debug-column.rs` to preserve meaning of the test. - `rustfmt::skip` used in a few places where hand-formatting read more nicely: `enum/enum-match.rs` - Line number adjustments needed for the expected output of `debug-column.rs` and `coroutine-debug.rs`.
21 lines
774 B
Rust
21 lines
774 B
Rust
// Test that `-Cprofile-generate` creates expected instrumentation artifacts in LLVM IR.
|
|
|
|
//@ needs-profiler-support
|
|
//@ compile-flags: -Cprofile-generate -Ccodegen-units=1
|
|
|
|
// CHECK: @__llvm_profile_raw_version =
|
|
// CHECK-DAG: @__profc_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = {{.*}}global
|
|
// CHECK-DAG: @__profd_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = {{.*}}global
|
|
// CHECK-DAG: @__profc_{{.*}}pgo_instrumentation{{.*}}some_other_function{{.*}} = {{.*}}global
|
|
// CHECK-DAG: @__profd_{{.*}}pgo_instrumentation{{.*}}some_other_function{{.*}} = {{.*}}global
|
|
// CHECK: @__llvm_profile_filename = {{.*}}"default_%m.profraw\00"{{.*}}
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
#[inline(never)]
|
|
fn some_function() {}
|
|
|
|
pub fn some_other_function() {
|
|
some_function();
|
|
}
|