[PATCH] D70833: [DebugInfo] Support for DW_OP_explicit_pointer (temp2reg).
Alok Kumar Sharma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 28 11:25:49 PST 2019
alok created this revision.
alok added reviewers: aprantl, probinson, dblaikie, jmorse, jini.susan.george, SouraVX, awpandey.
alok added projects: debug-info, LLVM.
Herald added subscribers: llvm-commits, ormris, hiraditya.
Summary:
This enables debugger to display de-referenced value of pointer in case temporary is optimized out. It happens in case of reference. This patch need to include some compile time option to enable/disable.
Testing:
-Added unit test for validation thru llvm-dwarfdump
-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/D70833
Files:
llvm/docs/LangRef.rst
llvm/include/llvm/BinaryFormat/Dwarf.def
llvm/include/llvm/BinaryFormat/Dwarf.h
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/include/llvm/IR/IntrinsicInst.h
llvm/lib/BinaryFormat/Dwarf.cpp
llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/IR/IntrinsicInst.cpp
llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
llvm/test/DebugInfo/dwarfdump_explicit_pointer.ll
llvm/test/DebugInfo/explicit_pointer.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70833.231458.patch
Type: text/x-patch
Size: 16696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191128/a23b7225/attachment.bin>
More information about the llvm-commits
mailing list