[clang] [llvm] [sancov] add -fsanitize-coverage=trace-pc-entry-exit (PR #185972)
Alexander Potapenko via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 13 03:57:22 PDT 2026
================
@@ -201,6 +201,12 @@ With ``-fsanitize-coverage=trace-pc`` the compiler will insert
``__sanitizer_cov_trace_pc()`` on every edge.
With an additional ``...=trace-pc,indirect-calls`` flag
``__sanitizer_cov_trace_pc_indirect(void *callee)`` will be inserted on every indirect call.
+With ``-fsanitize-coverage=trace-pc-entry-exit`` the compiler will insert
+``__sanitizer_cov_trace_pc_entry()`` on function entry (and will not emit
+``__sanitizer_cov_trace_pc()`` for this basic block), and insert
----------------
ramosian-glider wrote:
What about __sanitizer_cov_trace_pc_guard() for this basic block?
https://github.com/llvm/llvm-project/pull/185972
More information about the cfe-commits
mailing list