about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
AgeCommit message (Collapse)AuthorLines
2021-09-07Move rustc_mir::transform to rustc_mir_transform.Camille GILLOT-840/+0
2021-08-01clippy::perf fixesMatthias Krüger-2/+2
2021-07-25clippy::useless_formatMatthias Krüger-2/+2
2021-05-30Remove CrateNum::ReservedForIncrCompCachebjorn3-1/+0
2021-05-12Spanview needs the relevant body_span used for coverageRich Kadel-1/+3
The coverage body_span doesn't always match the function body_span.
2021-04-19fix few typosklensy-1/+1
2021-03-26Use iter::zip in compiler/Josh Stone-3/+2
2021-03-18Remove unwrap_none/expect_none from compiler/.Mara Bos-7/+5
2021-01-03remove redundant closures (clippy::redundant_closure)Matthias Krüger-5/+5
2020-12-11don't convert types into identical types with .into() ↵Matthias Krüger-2/+2
(clippy::useless_conversion)
2020-12-08Review feedbackEric Arellano-32/+36
* Use a match statement. * Clarify why we can't use `file_stem()`. * Error if the `:` is missing for Tidy error codes, rather than no-oping.
2020-12-07Dogfood 'str_split_once() with `compiler/`Eric Arellano-23/+25
2020-11-25Fixup compiler docsCamelid-12/+12
The sublist was being rendered as a code block because it was indented 4 spaces.
2020-11-11Added some unit tests as requestedRich Kadel-8/+8
As discussed in PR #78267, for example: * https://github.com/rust-lang/rust/pull/78267#discussion_r515404722 * https://github.com/rust-lang/rust/pull/78267#discussion_r515405958
2020-11-07use single char patterns for split() (clippy::single_char_pattern)Matthias Krüger-4/+4
2020-11-05Responded to all feedback as of 2020-10-30Rich Kadel-9/+120
2020-11-05Injecting expressions in place of counters where helpfulRich Kadel-8/+302
Implementing the Graph traits for the BasicCoverageBlock graph. optimized replacement of counters with expressions plus new BCB graphviz * Avoid adding coverage to unreachable blocks. * Special case for Goto at the end of the body. Make it non-reportable. Improved debugging and formatting options (from env) Don't automatically add counters to BCBs without CoverageSpans. They may still get counters but only if there are dependencies from other BCBs that have spans, I think. Make CodeRegions optional for Counters too. It is possible to inject counters (`llvm.instrprof.increment` intrinsic calls without corresponding code regions in the coverage map. An expression can still uses these counter values. Refactored instrument_coverage.rs -> instrument_coverage/mod.rs, and then broke up the mod into multiple files. Compiling with coverage, with the expression optimization, works on the json5format crate and its dependencies. Refactored debug features from mod.rs to debug.rs
2020-11-05Adds coverage graphvizRich Kadel-2/+363
2020-11-05Implemented CoverageGraph of BasicCoverageBlocksRich Kadel-8/+8
2020-11-05Splitting transform/instrument_coverage.rs into transform/coverage/...Rich Kadel-0/+70