[llvm] [LangRef] Add entry for pcsections Metadata (PR #133423)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 28 04:09:00 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-ir

Author: Marco Elver (melver)

<details>
<summary>Changes</summary>

Add an entry for pcsections Metadata that references the PC Sections Metadata document.

Fixes: https://github.com/llvm/llvm-project/issues/130552

---
Full diff: https://github.com/llvm/llvm-project/pull/133423.diff


1 Files Affected:

- (modified) llvm/docs/LangRef.rst (+8) 


``````````diff
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 655ec4389456c..d107aa98a5fe9 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -8221,6 +8221,14 @@ Example:
 Clang emits ``kcfi_type`` metadata nodes for address-taken functions with
 ``-fsanitize=kcfi``.
 
+'``pcsections``' Metadata
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The ``pcsections`` metadata can be attached to instructions and functions, for
+which addresses, viz. program counters (PCs), are to be emitted in specially
+encoded binary sections. You can read more about PC Sections Metadata
+`here <PCSectionsMetadata.html>`_.
+
 .. _md_memprof:
 
 '``memprof``' Metadata

``````````

</details>


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


More information about the llvm-commits mailing list