[clang] [llvm] Update ReleaseNotes for MC/DC changes. (PR #95887)
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 17 23:38:46 PDT 2024
https://github.com/chapuni created https://github.com/llvm/llvm-project/pull/95887
Mostly apparent changes are described here.
>From defd3f6b694a5091da92d925738631b8359c43bb Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi <geek4civic at gmail.com>
Date: Tue, 18 Jun 2024 11:10:14 +0900
Subject: [PATCH] Update ReleaseNotes for MC/DC changes.
---
clang/docs/ReleaseNotes.rst | 14 ++++++++++++++
llvm/docs/ReleaseNotes.rst | 7 +++++++
2 files changed, 21 insertions(+)
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 36efeb8c70cca..7ef4fc21c37be 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -586,6 +586,20 @@ Improvements to Clang's time-trace
- Clang now specifies that using ``auto`` in a lambda parameter is a C++14 extension when
appropriate. (`#46059: <https://github.com/llvm/llvm-project/issues/46059>`_).
+Improvements to Coverage mapping
+--------------------------------
+
+- Macros defined in system headers are not expanded in coverage
+ mapping. Conditional expressions in system header macros are no
+ longer taken into account for branch coverage. They can be included
+ with ``-mllvm -system-headers-coverage``. (#78920)
+- MC/DC coverage has been improved. (#82448)
+ - The maximum number of conditions is no longer limited to 6. See
+ `this <SourceBasedCodeCoverage.html#mc-dc-instrumentation>` for
+ more details.
+ - The format of profraw generated by the runtime is not backwards
+ compatible.
+
Bug Fixes in This Version
-------------------------
- Clang's ``-Wundefined-func-template`` no longer warns on pure virtual
diff --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst
index 5fdbc9f349af4..555e2632d80a0 100644
--- a/llvm/docs/ReleaseNotes.rst
+++ b/llvm/docs/ReleaseNotes.rst
@@ -70,6 +70,13 @@ Changes to the LLVM IR
records by default. Details of the change and instructions on how to update
any downstream tools and tests can be found in the `migration docs
<https://llvm.org/docs/RemoveDIsDebugInfo.html>`_.
+* Semantics of MC/DC intrinsics have been changed.
+ * ``llvm.instprof.mcdc.parameters``: 3rd argument has been changed
+ from bytes to bits.
+ * ``llvm.instprof.mcdc.condbitmap.update``: Removed.
+ * ``llvm.instprof.mcdc.tvbitmap.update``: 3rd argument has been
+ removed. The next argument has been changed from byte index to bit
+ index.
Changes to LLVM infrastructure
------------------------------
More information about the cfe-commits
mailing list