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
7f10ab2c98
coverage: Tweak FileCheck directives in a mir-opt test
2025-01-24 16:13:12 +11:00
Zalathar
f1300c860e
coverage: Completely overhaul counter assignment, using node-flow graphs
2025-01-16 22:07:18 +11:00
Zalathar
87c2f9a5be
Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser"
...
This reverts commit 1d35638dc3 , reversing
changes made to f23a80a4c2 .
2024-12-23 12:30:37 +11:00
Zalathar
34ed51cb83
coverage: Store coverage source regions as Span until codegen
2024-12-19 18:09:09 +11:00
ltdk
cb487cc2fa
Stabilize #[coverage] attribute
2024-12-16 21:07:06 -05:00
Zalathar
44e4e4515c
coverage: Add an extra "transcribe" step after counter creation
2024-12-04 17:50:52 +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
Scott McMurray
99cb0c6bc3
Bless *all* the mir-opt tests
2024-08-18 16:07:33 -07:00
Nadrieril
e2fd9aa33e
Set up false edges in lower_match_tree
2024-07-29 09:50:07 +02:00
Zalathar
2fa78f3a2a
coverage: Replace the old span refiner with a single function
...
As more and more of the span refiner's functionality has been pulled out into
separate early passes, it has finally reached the point where we can remove the
rest of the old `SpansRefiner` code, and replace it with a single
modestly-sized function.
2024-06-12 22:59:24 +10: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
a892c2387e
coverage: Add a mir-opt test for branch coverage of match arms
2024-04-22 21:55:33 +10:00
Zalathar
da37b14121
coverage: Move mir-opt coverage tests into a subdirectory
2024-04-22 21:55:33 +10:00