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

Marco Elver via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 28 04:08:24 PDT 2025


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

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

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

>From 7ff8cd4dabfb1d6d7c47a0ae9dfb75c1ea547ab7 Mon Sep 17 00:00:00 2001
From: Marco Elver <elver at google.com>
Date: Fri, 28 Mar 2025 12:05:40 +0100
Subject: [PATCH] [LangRef] Add entry for pcsections Metadata

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

Fixes: https://github.com/llvm/llvm-project/issues/130552
---
 llvm/docs/LangRef.rst | 8 ++++++++
 1 file changed, 8 insertions(+)

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



More information about the llvm-commits mailing list