[PATCH] D88592: [DebugInfo] Emit DBG_VALUE_LIST from ISel

Stephen Tozer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 10:05:08 PDT 2020


StephenTozer created this revision.
StephenTozer added reviewers: aprantl, djtodoro, dblaikie, probinson, vsk.
StephenTozer added a project: debug-info.
Herald added subscribers: llvm-commits, hiraditya, MatzeB.
Herald added a project: LLVM.
StephenTozer requested review of this revision.

This patch continues implementing the ISel support for multi-location-operand debug values by enabling the emission of `DBG_VALUE_LIST` for variadic SDDbgValues. This patch does not add support for processing dbg.value intrinsics; that is added in a separate patch in this stack.

This patch is relatively small, with most of the patch being the extraction of location operand emission from `EmitDbgValue` to `AddDbgValueLocationOps`, so that it can be used for both the variadic set of location ops in `DBG_VALUE_LIST` as well as the single location op in `DBG_VALUE`. Outside of that, the only behaviour change is that the scheduler has a lambda added, `HasUnknownVReg`, to prevent us from attempting to emit a `DBG_VALUE_LIST` before all of its used VRegs have become available.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88592

Files:
  llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  llvm/lib/CodeGen/SelectionDAG/InstrEmitter.h
  llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88592.295333.patch
Type: text/x-patch
Size: 11455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200930/6a504afe/attachment.bin>


More information about the llvm-commits mailing list