Skip to content

[LangRef] Add entry for pcsections Metadata #133423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2025
Merged

Conversation

melver
Copy link
Contributor

@melver melver commented Mar 28, 2025

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

Fixes: #130552

@melver melver requested review from dvyukov and vitalybuka March 28, 2025 11:08
@llvmbot
Copy link
Member

llvmbot commented Mar 28, 2025

@llvm/pr-subscribers-llvm-ir

Author: Marco Elver (melver)

Changes

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

Fixes: #130552


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

1 Files Affected:

  • (modified) llvm/docs/LangRef.rst (+8)
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

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

Fixes: llvm#130552
@melver melver force-pushed the sanitize-metadata branch from 7ff8cd4 to ebe5f68 Compare March 28, 2025 11:14
@melver melver merged commit fa5025b into llvm:main Mar 29, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LangRef does not mention pcsections metadata
3 participants