[PATCH] D116405: [IR] Add DebugEntryValuesCallSite pass

Milica Lazarevic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 30 05:10:05 PST 2021


milica-lazarevic created this revision.
milica-lazarevic added reviewers: Orlando, jmorse, djtodoro, aprantl.
Herald added subscribers: ormris, wenlei, steven_wu, hiraditya.
milica-lazarevic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The purpose of this IR pass is to describe argument values on caller site. Pass has been added to the default<O2 <https://reviews.llvm.org/owners/package/2/>> pass pipeline, right before DeadArgumentEliminationPass. It attaches params field to DILocation of call instructions, which represents an array of DICallSiteParam elements. Information about call-site-value is carried through the pipeline, so in the phase of DWARF emitting, we can try to interpret those values as DWARF tag DW_TAG_call_site_parameter. For DWARF emission, it is necessary to have CallSiteInfo support by the target. For now, constant arguments passing is supported.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116405

Files:
  llvm/include/llvm/Transforms/Utils/DebugEntryValues.h
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/Passes/PassBuilderPipelines.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Transforms/Utils/DebugEntryValues.cpp
  llvm/test/Other/new-pm-defaults.ll
  llvm/test/Other/new-pm-thinlto-defaults.ll
  llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
  llvm/test/Transforms/DebugEntryValues/diloc-params.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116405.396650.patch
Type: text/x-patch
Size: 15756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211230/fd73cc8e/attachment.bin>


More information about the llvm-commits mailing list