Zalathar
cc8336b6c1
coverage: Don't store a body span in FunctionCoverageInfo
2025-03-18 23:18:24 +11:00
Zalathar
20d051ec87
coverage: Defer part of counter-creation until codegen
2025-02-06 21:44:31 +11:00
Zalathar
ee7dc06cf1
coverage: Store BCB node IDs in mappings, and resolve them in codegen
...
Even though the coverage graph itself is no longer available during codegen,
its nodes can still be used as opaque IDs.
2025-02-06 21:44:29 +11:00
Zalathar
34ed51cb83
coverage: Store coverage source regions as Span
until codegen
2024-12-19 18:09:09 +11:00
Zalathar
9461f4296f
Revert "Rollup merge of #133418 - Zalathar:spans, r=jieyouxu"
...
This reverts commit adf9b5fcd1
, reversing
changes made to af1ca153d4
.
Reverting due to <https://github.com/rust-lang/rust/issues/133606 >.
2024-11-29 14:57:01 +11:00
Zalathar
b9fb1a69d2
coverage: Store coverage source regions as Span
until codegen
2024-11-24 23:46:39 +11:00
Zalathar
3c30fe3423
coverage: Restrict empty-span expansion to only cover {
and }
2024-11-08 20:43:08 +11:00
Zalathar
996bdabc2a
coverage: Remove unhelpful code for handling multiple files per function
...
Functions currently can't have mappings in multiple files, and if that ever
changes (e.g. to properly support expansion regions), this code will need to be
completely overhauled anyway.
2024-11-08 20:43:08 +11:00
Zalathar
d01df6f9aa
coverage: Simplify counter expressions using simple algebra
...
Some of these cases currently don't occur in practice, but are included for
completeness, and to avoid having to add them later as branch coverage and
MC/DC coverage start building more complex expressions.
2024-05-14 13:58:40 +10:00
Zalathar
da37b14121
coverage: Move mir-opt coverage tests into a subdirectory
2024-04-22 21:55:33 +10:00