Similar to `-Z dump-mir-graphviz`, this adds the option to write HTML+CSS files that allow users to analyze the spans associated with MIR elements (by individual statement, just terminator, or overall basic block). This PR was split out from PR #76004, and exposes an API for spanview HTML+CSS files that is also used to analyze code regions chosen for coverage instrumentation (in a follow-on PR). Rust compiler MCP rust-lang/compiler-team#278 Relevant issue: #34701 - Implement support for LLVMs code coverage instrumentation
5 lines
190 B
Rust
5 lines
190 B
Rust
// Test spanview output (the default value for `-Z dump-mir-spanview` is "statement")
|
|
// compile-flags: -Z dump-mir-spanview
|
|
|
|
// EMIT_MIR spanview_statement.main.mir_map.0.html
|
|
fn main() {}
|