[all-commits] [llvm/llvm-project] 64d195: [LIT] Added an option to llvm-lit to emit the nece...

shivam-amd via All-commits all-commits at lists.llvm.org
Wed Jul 26 04:19:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64d19542e78a43edb7ae26ea6762a2b1c360a916
      https://github.com/llvm/llvm-project/commit/64d19542e78a43edb7ae26ea6762a2b1c360a916
  Author: Shivam Gupta <Shivam.Gupta2 at amd.com>
  Date:   2023-07-26 (Wed, 26 Jul 2023)

  Changed paths:
    M llvm/CMakeLists.txt
    M llvm/cmake/modules/HandleLLVMOptions.cmake
    M llvm/docs/CMake.rst
    M llvm/docs/CommandGuide/lit.rst
    M llvm/utils/lit/lit/LitConfig.py
    M llvm/utils/lit/lit/TestRunner.py
    M llvm/utils/lit/lit/cl_arguments.py
    M llvm/utils/lit/lit/main.py
    A llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/lit.cfg
    A llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/per-test-coverage-by-lit-cfg.py
    A llvm/utils/lit/tests/Inputs/per-test-coverage/lit.cfg
    A llvm/utils/lit/tests/Inputs/per-test-coverage/per-test-coverage.py
    A llvm/utils/lit/tests/per-test-coverage-by-lit-cfg.py
    A llvm/utils/lit/tests/per-test-coverage.py

  Log Message:
  -----------
  [LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case

This patch is the first part of https://llvm.org/OpenProjects.html#llvm_patch_coverage.

We have first define a new variable LLVM_TEST_COVERAGE which when set, pass --per-test-coverage option to
llvm-lit which will help in setting a unique value to LLVM_PROFILE_FILE for each RUN. So for example
coverage data for test case llvm/test/Analysis/AliasSet/memtransfer.ll will be emitted as
build/test/Analysis/AliasSet/memtransfer0.profraw

Reviewed By: hnrklssn

Differential Revision: https://reviews.llvm.org/D154280




More information about the All-commits mailing list