[PATCH] D133929: [DebugInfo] Produce variadic DBG_INSTR_REFs from ISel

Stephen Tozer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 03:12:41 PDT 2022


StephenTozer created this revision.
StephenTozer added reviewers: jmorse, Orlando.
StephenTozer added a project: debug-info.
Herald added a subscriber: hiraditya.
Herald added a project: All.
StephenTozer requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch modifies SelectionDAG and FastISel to produce DBG_INSTR_REFs with variadic expressions, and produce DBG_INSTR_REFs for debug values with variadic location expressions. The former essentially means just prepending `DW_OP_LLVM_arg, 0` to the existing expression. The latter is achieved in `MachineFunction::finalizeDebugInstrRefs` and `InstrEmitter::EmitDbgInstrRef`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133929

Files:
  llvm/lib/CodeGen/MachineFunction.cpp
  llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
  llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  llvm/lib/CodeGen/SelectionDAG/InstrEmitter.h
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133929.460343.patch
Type: text/x-patch
Size: 15015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220915/cf410f7f/attachment-0001.bin>


More information about the llvm-commits mailing list