mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 13:36:08 +00:00
[Assignment Tracking][Docs] Add new metadata to LangRef.rst
And link to the AssignmentTracking.md document which goes into more detail. Reviewed By: jryans Differential Revision: https://reviews.llvm.org/D141131
This commit is contained in:
parent
39564dc382
commit
a66c8c7f34
@ -5998,6 +5998,21 @@ valid debug intrinsic.
|
||||
!4 = !DIExpression(DW_OP_constu, 2, DW_OP_swap, DW_OP_xderef)
|
||||
!5 = !DIExpression(DW_OP_constu, 42, DW_OP_stack_value)
|
||||
|
||||
DIAssignID
|
||||
""""""""""""
|
||||
|
||||
``DIAssignID`` nodes have no operands and are always distinct. They are used to
|
||||
link together `@llvm.dbg.assign` intrinsics (:ref:`debug
|
||||
intrinsics<dbg_intrinsics>`) and instructions that store in IR. See `Debug Info
|
||||
Assignment Tracking <AssignmentTracking.html>`_ for more info.
|
||||
|
||||
.. code-block:: llvm
|
||||
|
||||
store i32 %a, ptr %a.addr, align 4, !DIAssignID !2
|
||||
llvm.dbg.assign(metadata %a, metadata !1, metadata !DIExpression(), !2, metadata %a.addr, metadata !DIExpression()), !dbg !3
|
||||
|
||||
!2 = distinct !DIAssignID()
|
||||
|
||||
DIArgList
|
||||
""""""""""""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user