[PATCH] D72055: [DebugInfo] Support for DW_OP_implicit_pointer (for temp references & dynamic allocations)
Alok Kumar Sharma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 1 10:24:05 PST 2020
alok created this revision.
alok added reviewers: aprantl, probinson, dblaikie, jmorse, jini.susan.george, SouraVX, awpandey.
alok added projects: LLVM, debug-info.
Herald added subscribers: llvm-commits, hiraditya.
This is a POC patch. Before review, it needs more maturity.
This patch (10/N) stems from D69787 <https://reviews.llvm.org/D69787>
This enables debugger (using DW_OP_implicit_pointer) to display de-referenced value of pointer in case temporary is optimized out. It happens in case of reference or dynamic allocation.
Testing:
-Added unit test for validation thru llvm IR
-check-llvm (LLDB need to be modifed to support this)
-check-debuginfo (the debug info integration tests)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72055
Files:
llvm/lib/IR/Instruction.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/DebugInfo/implicit_pointer_temp_dyn_alloc.cc
llvm/test/DebugInfo/implicit_pointer_temp_reference.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72055.235774.patch
Type: text/x-patch
Size: 5414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200101/39038496/attachment.bin>
More information about the llvm-commits
mailing list