diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2024-12-24 06:40:44 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-24 06:40:44 +0900 |
commit | 1c25a3bfa57209e7a29eaae58ce5e0432aafe8c3 (patch) | |
tree | 0fd1d14e9a2ce2ac5f64eb215f98ce7ff3862e49 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | ba373096e8ac83a7136fc44bc4e71a7bc53417a6 (diff) | |
download | llvm-1c25a3bfa57209e7a29eaae58ce5e0432aafe8c3.zip llvm-1c25a3bfa57209e7a29eaae58ce5e0432aafe8c3.tar.gz llvm-1c25a3bfa57209e7a29eaae58ce5e0432aafe8c3.tar.bz2 |
Introduce SingleByteCoverage tests (w/yaml2obj) (#113114)
Restructure some tests to split into `%.test` and Inputs/%.c*`.
Add test actions with `yaml2obj` for single byte coverage. `FileCheck`
lines are:
- Relax to accept both counter values and single values `1`. A few line
counting are greater than `1` due to `llvm-profdata merge`. They will be
fixed by #110972.
- Suppress matching with `--check-prefixes=CHECK,BRCOV`, since the
current implementation of single byte doesn't emit any branch coverages.
They will be integrated to `CHECK` finally.
- Some tests are not unified but use dedicated `CHECK` lines for single
byte, since old format is different (esp. "partial fold"). They will be
unified when `Inputs` will be regenerated.
Introduce llvm/test/tools/llvm-cov/Inputs/yaml.makefile for convenience.
`%-single.yaml` and `%-single.proftext` are generated by it. It could be
used to regenerate other files.
https://discourse.llvm.org/t/rfc-integrating-singlebytecoverage-with-branch-coverage/82492
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions