[PATCH] D96559: Support emitting complex expressions that include entry values
David Stenberg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 12 02:27:47 PST 2021
dstenb added inline comments.
================
Comment at: llvm/test/DebugInfo/MIR/X86/complex-entryvalue.mir:85
+ bb.0.entry:
+ DBG_VALUE $edi, $noreg, !14, !DIExpression(DW_OP_LLVM_entry_value, 1, DW_OP_lit0, DW_OP_plus), debug-location !15
+ frame-setup PUSH64r killed $rbp, implicit-def $rsp, implicit $rsp
----------------
vsk wrote:
> Interesting, is 1 code for %rdi? That might be worth a note.
The 1 is for the number of expression operands (including the DBG_VALUE value operand, i.e. in this case $edi) that the DW_OP_LLVM_entry_value covers. The actual byte size operand of the to-be-emitted DW_OP_entry_value operation is then calculated by `getTemporaryBufferSize()` in `finalizeEntryValue()`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96559/new/
https://reviews.llvm.org/D96559
More information about the llvm-commits
mailing list