Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use yaml2obj for llvm-cov tests to see covmap #115886

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

chapuni
Copy link
Contributor

@chapuni chapuni commented Nov 12, 2024

Make llvm/test/tools/llvm-cov use covmap binary files generated from yaml2obj.

Some old tests (branch-*) are transformed and decoupled to source files and test scripts.

A small Makefile is included as a convenience.

  • llvm-objcopy extracts essential sections, __llvm_prf_names, __llvm_covmap, and __llvm_covfun. I guess more fields might be reduced but I don't want to add extra manual steps. Let me know if someone knows further reduction.
  • obj2yaml dumps final YAML files. At the moment, covmap fields are blobs.

I'm working on #115707 (and others) to make YAML files easier to read and handle.

https://discourse.llvm.org/t/rfc-objectyaml-with-coverage-map-sections/82953

I was using `GNUmakefile` just before creating this request.
@chapuni
Copy link
Contributor Author

chapuni commented Nov 13, 2024

I've pushed #116057 and #116058 as examples. Their format will be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant