[DebugInfo] Upgrade `dbg.addr` to `dbg.value`
authorJ. Ryan Stinnett <jryans@gmail.com>
Sun, 29 Jan 2023 00:59:33 +0000 (00:59 +0000)
committerJ. Ryan Stinnett <jryans@gmail.com>
Thu, 2 Mar 2023 09:29:42 +0000 (09:29 +0000)
commitc0527fff030799bffd1d7bda01012f8b62363cb2
tree2c90189f039db80837a6096273547ac489b51b50
parent1572742cfa10c12f66acb119190ffdf2db6e941c
[DebugInfo] Upgrade `dbg.addr` to `dbg.value`

As part of removing `dbg.addr`, this upgrades any calls to `dbg.value` with
`DW_OP_deref` prepended onto the value expression.

Part of `dbg.addr` removal
Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898

Differential Revision: https://reviews.llvm.org/D144793
llvm/lib/IR/AutoUpgrade.cpp
llvm/test/Bitcode/upgrade-dbg-addr.ll [new file with mode: 0644]
llvm/test/Bitcode/upgrade-dbg-addr.ll.bc [new file with mode: 0644]
llvm/test/Bitcode/upgrade-dbg-value.ll