[llvm] Add code to handle #debug_values in SROA. (PR #94068)
Shubham Sandeep Rastogi via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 22:00:34 PDT 2024
================
@@ -259,6 +259,13 @@ CallInst *changeToCall(InvokeInst *II, DomTreeUpdater *DTU = nullptr);
/// Dbg Intrinsic utilities
///
+/// Moves an llvm.dbg.value intrinsic before a store to an alloca'd value
+/// that has an associated llvm.dbg.value intrinsic.
+void MoveDebugValueToStoreLoc(DbgVariableRecord *DVR, StoreInst *SI,
+ DIBuilder &Builder);
+void MoveDebugValueToStoreLoc(DbgVariableIntrinsic *DII, StoreInst *SI,
----------------
rastogishubham wrote:
If you noticed the functions below, they also have a singular comment for both their overloaded variants, so I just followed the same pattern
https://github.com/llvm/llvm-project/pull/94068
More information about the llvm-commits
mailing list