[llvm] Add new llvm.dbg.declare_value intrinsic. (PR #168132)

Felipe de Azevedo Piovezan via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 19 01:38:54 PST 2025


================
@@ -308,6 +308,27 @@ directly, not its address.  Note that the value operand of this intrinsic may
 be indirect (i.e, a pointer to the source variable), provided that interpreting
 the complex expression derives the direct value.
 
+
+``#dbg_declare_value``
+^^^^^^^^^^^^^^^^
+
+.. code-block:: llvm
+
+    #dbg_declare_value([Value|MDNode], DILocalVariable, DIExpression, DILocation)
+
+This record provides information about a local element (e.g., variable). The
+first argument is is the new value, and in the function entry block.  The 
----------------
felipepiovezan wrote:

is ~is~

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


More information about the llvm-commits mailing list