about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/build/coverageinfo
AgeCommit message (Collapse)AuthorLines
2024-12-17Rename `rustc_mir_build::build` to `builder`Zalathar-295/+0
2024-10-08coverage. Adapt to mcdc mapping formats introduced by llvm 19zhuyunxing-37/+51
2024-10-08coverage. MCDC ConditionId start from 0 to keep with llvm 19zhuyunxing-12/+17
2024-09-11Simplify some nested if statementsMichael Goulet-3/+2
2024-07-05coverage: Rename `mir::coverage::BranchInfo` to `CoverageInfoHi`Zalathar-6/+6
This opens the door to collecting and storing coverage information that is unrelated to branch coverage or MC/DC.
2024-06-04Reduce `pub` exposure.Nicholas Nethercote-4/+4
A lot of errors don't need to be visible outside the crate, and some other things as well.
2024-05-30coverage: Rename MC/DC `conditions_num` to `num_conditions`Zalathar-13/+13
This value represents a quantity of conditions, not an ID, so the new spelling is more appropriate.
2024-05-29coverage: Avoid overflow when the MC/DC condition limit is exceededZalathar-2/+3
If we perform this subtraction and then add 1, the subtraction can sometimes overflow to -1 before the addition can bring its value back to 0. That behaviour seems to be benign, but it nevertheless causes test failures in compiler configurations that check for overflow. We can avoid the overflow by instead subtracting (N - 1), which is algebraically equivalent, and more closely matches what the code is actually trying to do.
2024-05-13Remove `extern crate rustc_middle` from `rustc_mir_build`.Nicholas Nethercote-0/+1
2024-04-30coverage. Split mcdc builder to a sub module of coverageinfozhuyunxing-0/+275