[PATCH] D99160: [X86][FastISEL] Support DW_TAG_call_site_parameter with FastISEL

Alok Kumar Sharma via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 23 02:21:45 PDT 2021


alok created this revision.
alok added reviewers: aprantl, jmorse, djtodoro.
alok added a project: debug-info.
Herald added subscribers: jansvoboda11, pengfei, ormris, hiraditya.
Herald added a reviewer: sscalpone.
alok requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

DW_OP_entry_value and DW_TAG_call_site_parameter work together to preserve optimized out paramters value for debugging purpose.
There is always some level of optimization happening even with -O0.
 Currently DW_OP_entry_value is generated at all the options but DW_TAG_call_site_parameter is not generated with FastISEL.
 This causes debuggers to show optimized out parameters value at higher optimization but not at lower optimization.

Adding support to it now.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99160

Files:
  clang/lib/Frontend/CompilerInvocation.cpp
  llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
  llvm/lib/Target/X86/X86FastISel.cpp
  llvm/test/CodeGen/X86/call-site-info-output.ll
  llvm/test/DebugInfo/X86/callsitepar-fastisel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99160.332572.patch
Type: text/x-patch
Size: 15928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210323/eb7b1dcb/attachment-0001.bin>


More information about the cfe-commits mailing list