diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-09 16:47:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 16:47:01 +0900 |
commit | f5cd181ffbb7cb61d582fe130d46580d5969d47a (patch) | |
tree | e187667c086075701c4f8643400295bc78a9010b /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 61b294aa15e9e2149398a641121fc3e977284a17 (diff) | |
download | llvm-f5cd181ffbb7cb61d582fe130d46580d5969d47a.zip llvm-f5cd181ffbb7cb61d582fe130d46580d5969d47a.tar.gz llvm-f5cd181ffbb7cb61d582fe130d46580d5969d47a.tar.bz2 |
[Coverage] Introduce `getBranchCounterPair()`. NFC. (#112702)
This aggregates the generation of branch counter pair as `ExecCnt` and
`SkipCnt`, to aggregate `CounterExpr::subtract`. At the moment:
- This change preserves the behavior of
`llvm::EnableSingleByteCoverage`. Almost of SingleByteCoverage will be
cleaned up by coming commits.
- `IsCounterEqual(Out, Par)` is introduced instead of
`Counter::operator==`. Tweaks would be required for the comparison for
additional counters.
https://discourse.llvm.org/t/rfc-integrating-singlebytecoverage-with-branch-coverage/82492
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions