[all-commits] [llvm/llvm-project] b12e5c: [DebugInfo][InstrRef][NFC] Emit variadic debug val...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Tue Aug 23 05:23:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b12e5c884f068cc79054ead44f4688978215c16a
      https://github.com/llvm/llvm-project/commit/b12e5c884f068cc79054ead44f4688978215c16a
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2022-08-23 (Tue, 23 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h

  Log Message:
  -----------
  [DebugInfo][InstrRef][NFC] Emit variadic debug values from InstrRefLDV

In preparation for supporting DBG_VALUE_LIST in InstrRefLDV, this patch
adds the logic for emitting DBG_VALUE_LIST instructions from
InstrRefLDV. The logical changes here are fairly simple, with the main
change being that instead of directly prepending offsets to the DIExpr,
we use appendOpsToArg to modify the expression for individual debug
operands in the expression. The function emitLoc is also changed to take
a list of debug ops, with an empty list meaning an undef value.

Differential Revision: https://reviews.llvm.org/D128209




More information about the All-commits mailing list