================ @@ -6975,16 +6975,22 @@ appear in the included source file. DILabel """"""" -``DILabel`` nodes represent labels within a :ref:`DISubprogram`. All fields of -a ``DILabel`` are mandatory. The ``scope:`` field must be one of either a -:ref:`DILexicalBlockFile`, a :ref:`DILexicalBlock`, or a :ref:`DISubprogram`. -The ``name:`` field is the label identifier. The ``file:`` field is the -:ref:`DIFile` the label is present in. The ``line:`` field is the source line +``DILabel`` nodes represent labels within a :ref:`DISubprogram`. The ``scope:`` +field must be one of either a :ref:`DILexicalBlockFile`, a +:ref:`DILexicalBlock`, or a :ref:`DISubprogram`. The ``name:`` field is the +label identifier. The ``file:`` field is the :ref:`DIFile` the label is +present in. The ``line:`` and ``column:`` field are the source line and column within the file where the label is declared. +Furthermore, a label can be marked as artificial, i.e. compiler-generated, +using ``isArtificial:``. Such artitificial labels are generated, e.g., by +the ``CoroSplit`` pass. In addition, the ``CoroSplit`` pass also uses the +``coroSuspendIdx:`` field to identify the coroutine suspend points. ---------------- pogo59 wrote:
Worth mentioning that `column`, `isArtificial`, and `coroSuspendIdx` are optional? Or at least the latter two. https://github.com/llvm/llvm-project/pull/141937 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits