summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-12-08 21:57:28 +0000
committerVedant Kumar <vsk@apple.com>2017-12-08 21:57:28 +0000
commit195dfd10a679ed4860200e935d1ca292d09bb64b (patch)
tree6ac22bd0aa200d8a4bff41e35822eb9430a1447d /llvm/docs
parent927604def63286a4a67d19666399af52fee74f04 (diff)
downloadbcm5719-llvm-195dfd10a679ed4860200e935d1ca292d09bb64b.tar.gz
bcm5719-llvm-195dfd10a679ed4860200e935d1ca292d09bb64b.zip
[Debugify] Add a pass to test debug info preservation
The Debugify pass synthesizes debug info for IR. It's paired with a CheckDebugify pass which determines how much of the original debug info is preserved. These passes make it easier to create targeted tests for debug info preservation. Here is the Debugify algorithm: NextLine = 1 for (Instruction &I : M) attach DebugLoc(NextLine++) to I NextVar = 1 for (Instruction &I : M) if (canAttachDebugValue(I)) attach dbg.value(NextVar++) to I The CheckDebugify pass expects contiguous ranges of DILocations and DILocalVariables. If it fails to find all of the expected debug info, it prints a specific error to stderr which can be FileChecked. This was discussed on llvm-dev in the thread: "Passes to add/validate synthetic debug info" Differential Revision: https://reviews.llvm.org/D40512 llvm-svn: 320202
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/ReleaseNotes.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst
index 4b6d7931e84..41b9cf92d76 100644
--- a/llvm/docs/ReleaseNotes.rst
+++ b/llvm/docs/ReleaseNotes.rst
@@ -49,6 +49,11 @@ Non-comprehensive list of changes in this release
the name used in the `def X : Target` definition to the call to
`RegisterTarget`.
+* The ``Debugify`` pass was added to ``opt`` to facilitate testing of debug
+ info preservation. This pass attaches synthetic ``DILocations`` and
+ ``DIVariables`` to the instructions in a ``Module``. The ``CheckDebugify``
+ pass determines how much of the metadata is lost.
+
* Note..
.. NOTE
OpenPOWER on IntegriCloud