diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-08-14 13:00:28 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-09-05 11:55:17 +1000 |
| commit | 004db4728bc6ccc62416f93ba6473b144def7fe8 (patch) | |
| tree | 93e40b740d55ec9ba1415c06df31af97da7e32ae /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 1367104cb22ba5e9f8bc95c7bc719a12dc80d2c6 (diff) | |
| download | rust-004db4728bc6ccc62416f93ba6473b144def7fe8.tar.gz rust-004db4728bc6ccc62416f93ba6473b144def7fe8.zip | |
Add test suite `coverage-map` to test coverage mappings emitted by LLVM
We compile each test file to LLVM IR assembly, and then pass that IR to a dedicated program that can decode LLVM coverage maps and print them in a more human-readable format. We can then check that output against known-good snapshots. This test suite has some advantages over the existing `run-coverage` tests: - We can test coverage instrumentation without needing to run target binaries. - We can observe subtle improvements/regressions in the underlying coverage mappings that don't make a visible difference to coverage reports.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
