[llvm] Add code to handle llvm.dbg.values in SROA. (PR #94068)

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 09:10:23 PDT 2024


================
@@ -426,6 +426,11 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
   /// Does this describe the address of a local variable. True for dbg.addr
   /// and dbg.declare, but not dbg.value, which describes its value.
   bool isAddressOfVariable() const { return Type == LocationType::Declare; }
+
+  /// Does this describe the value of a local variable. False for dbg.addr
----------------
adrian-prantl wrote:

`llvm.dbg.addr` has been removed from LLVM and replaced with dbg.value(op_deref)

https://github.com/llvm/llvm-project/pull/94068


More information about the llvm-commits mailing list