<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/87960>87960</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            How to get coverage during the execution of llc ??
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          cpython-java
      </td>
    </tr>
</table>

<pre>
    How to capture code coverage during the execution of llc, for example: executing 'llc test_cover.bc -o test_cover.s', how to know which files and code lines in the llc source code are covered during this process?

I know 'lcov' and 'gcov' seem to be able to capture coverage during gcc execution. I'm not sure if they can be used to capture coverage during llc execution. Perhaps there are other tools that can accomplish this?

If someone could help me, I would be extremely grateful  !!!!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMktFunDwQhZ_G3Ix2ZQy7wAUX-f8INXd9g8o2Azg1NvLYu9m3r8xumqQXVSVkYDDnfHM8ksjMDrFnp__Y6bmQKS4-9Hq7xcW7w6u8yEL58dZ_81eIHrTcYgoI2o95uWCQM8KYgnEzxAUB31CnaLwDP4G1mon_YfIB8E2um0VWPb1vcTMw0VirISLFH7vYUWk4-M8FYqLJGsvd_6fzV7guRi8wGYsE0o13GGscEhi3U2RV8inoB6kMD1ocP2ANwRa8RiJWDYw_M_50X1_uNplO-wsTze7CRDM_XglxzTQKQSqLX4P5msms9UcmR3hholnB-QiUd5sp495AS5fFEuH4N7Hc1iex7xgWuVGWCPcefX6E6L3NVRl3Yam1XzdraNmb_rPZCciv6F22S3aEBe0GK-bQX-C6l1Q-1xhwRXuDOciIU7IATJS_r2Lsq7GrOllgXzalONVdXfNi6Xk3nuuylgpl1-lylKobp_NZlScuuWixML3gouY1b3ld8pofyxZlfSpbNVWt6irBao6rNPZo7WU9-jAXhihh3zbdmRdWKrS0z68QDq-wf2RC5HEOff7noNJMrObWUKQPlWiixffBnjH-0zxDjq8aihRsv8S4EauemBiYGGYTl6SO2q9MDNnkcTtswb-ijkwMOxoxMezovwIAAP__Sc4rGg">